tx · J3ZGxTeEyn6qfi6aiDCqAn6WQwiUafpCwHNidrmhUs7b 3N1zgm8dDfyBN52V11G3BgtVzEu9JVXCnW5: -0.01000000 Waves 2022.09.01 12:45 [2209904] smart account 3N1zgm8dDfyBN52V11G3BgtVzEu9JVXCnW5 > SELF 0.00000000 Waves
{ "type": 13, "id": "J3ZGxTeEyn6qfi6aiDCqAn6WQwiUafpCwHNidrmhUs7b", "fee": 1000000, "feeAssetId": null, "timestamp": 1662025546353, "version": 2, "chainId": 84, "sender": "3N1zgm8dDfyBN52V11G3BgtVzEu9JVXCnW5", "senderPublicKey": "ALQccZeVHZQn9Aga4nt9bN6hVLeUiKNKKmeez1kJb8BS", "proofs": [ "4ASmyFyGcTsdh9M2uDLNdJKvNVZ4gzMKjBDhtN4qdXmVfSmojCmSMvE8pCjuHiTi3DHSZSyvAeo6C8WYHYZaWD9t" ], "script": "base64:BgIjCAISABIAEgASAwoBBBIAEgASBAoCAQQSAwoBBBIDCgEIEgAmAAtrZXlNQWNjUEtleQIJbWFzdGVyX3BrAQxnZXRDRkFkZHJlc3MACQERQGV4dHJOYXRpdmUoMTA2MikBCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUEdGhpcwIKQ0ZfQUREUkVTUwIUQ0ZfQUREUkVTUyBub3QgZm91bmQACG1BY2NQS2V5CQDZBAEJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCCQEMZ2V0Q0ZBZGRyZXNzAAULa2V5TUFjY1BLZXkJAKwCAgULa2V5TUFjY1BLZXkCCiBub3QgZm91bmQACG1BY2NBZGRyCQCnCAEFCG1BY2NQS2V5ARFnZXRDb3Vwb25zQWRkcmVzcwAJARFAZXh0ck5hdGl2ZSgxMDYyKQEJARFAZXh0ck5hdGl2ZSgxMDUzKQIFCG1BY2NBZGRyAg9DT1VQT05TX0FERFJFU1MAEGtleVRvdGFsQ29tcG91bmQCDnRvdGFsX2NvbXBvdW5kABFrZXlTdGFrZWRDb21wb3VuZA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succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "master_pk" | |
5 | + | ||
6 | + | func b () = addressFromStringValue(valueOrErrorMessage(getString(this, "CF_ADDRESS"), "CF_ADDRESS not found")) | |
7 | + | ||
8 | + | ||
9 | + | let c = fromBase58String(valueOrErrorMessage(getString(b(), a), (a + " not found"))) | |
10 | + | ||
11 | + | let d = addressFromPublicKey(c) | |
12 | + | ||
13 | + | func e () = addressFromStringValue(getStringValue(d, "COUPONS_ADDRESS")) | |
14 | + | ||
15 | + | ||
16 | + | let f = "total_compound" | |
17 | + | ||
18 | + | let g = "staked_compound" | |
19 | + | ||
20 | + | let h = "last_virtual_price" | |
21 | + | ||
22 | + | let i = 100000000 | |
23 | + | ||
24 | + | func j (k) = ((toString(k) + "_") + g) | |
25 | + | ||
26 | + | ||
27 | + | func l (m,n) = if ((n == 0)) | |
28 | + | then 1 | |
29 | + | else if ((m == 0)) | |
30 | + | then 1 | |
31 | + | else fraction(n, i, m) | |
32 | + | ||
33 | + | ||
34 | + | let o = 100000000 | |
35 | + | ||
36 | + | func p (q) = (toString(q) + "_farm_staked") | |
37 | + | ||
38 | + | ||
39 | + | func r (q) = (toString(q) + "_lastCheck_interest") | |
40 | + | ||
41 | + | ||
42 | + | func s (q) = (toString(q) + "_claimed") | |
43 | + | ||
44 | + | ||
45 | + | let t = "global_lastCheck_interest" | |
46 | + | ||
47 | + | let u = "global_staked" | |
48 | + | ||
49 | + | let v = "global_earnings" | |
50 | + | ||
51 | + | let w = "locked_investments" | |
52 | + | ||
53 | + | func x () = { | |
54 | + | let y = getBoolean(b(), w) | |
55 | + | if ($isInstanceOf(y, "Boolean")) | |
56 | + | then { | |
57 | + | let z = y | |
58 | + | z | |
59 | + | } | |
60 | + | else false | |
61 | + | } | |
62 | + | ||
63 | + | ||
64 | + | func A () = fromBase58String(getStringValue(d, "EGG_ASSET_ID")) | |
65 | + | ||
66 | + | ||
67 | + | func B (q) = [StringEntry("CF_ADDRESS", q), IntegerEntry(t, 1)] | |
68 | + | ||
69 | + | ||
70 | + | func C () = fromBase58String(getStringValue(b(), "SHARE_ASSET_ID")) | |
71 | + | ||
72 | + | ||
73 | + | func D (q,E) = { | |
74 | + | let y = getInteger(q, E) | |
75 | + | if ($isInstanceOf(y, "Int")) | |
76 | + | then { | |
77 | + | let z = y | |
78 | + | z | |
79 | + | } | |
80 | + | else 0 | |
81 | + | } | |
82 | + | ||
83 | + | ||
84 | + | func F (E) = D(this, E) | |
85 | + | ||
86 | + | ||
87 | + | func G (E) = { | |
88 | + | let y = getString(this, E) | |
89 | + | if ($isInstanceOf(y, "String")) | |
90 | + | then { | |
91 | + | let H = y | |
92 | + | H | |
93 | + | } | |
94 | + | else "" | |
95 | + | } | |
96 | + | ||
97 | + | ||
98 | + | func I () = "VOTE_HEIGHT_START" | |
99 | + | ||
100 | + | ||
101 | + | func J () = if ((D(d, "VOTE_DURATION") == 0)) | |
102 | + | then 10000 | |
103 | + | else D(d, "VOTE_DURATION") | |
104 | + | ||
105 | + | ||
106 | + | func K (k,L) = ((("VOTE_" + k) + "_") + L) | |
107 | + | ||
108 | + | ||
109 | + | func M (N,L) = ((("VOTE_TOTAL_" + N) + "_") + L) | |
110 | + | ||
111 | + | ||
112 | + | func O (L) = ("VOTE_TOTAL_" + L) | |
113 | + | ||
114 | + | ||
115 | + | func P (L) = ("LIQUIDATED_" + L) | |
116 | + | ||
117 | + | ||
118 | + | func Q (L) = ("QUORUM_" + L) | |
119 | + | ||
120 | + | ||
121 | + | func R (q) = { | |
122 | + | let S = F(t) | |
123 | + | let T = F(r(q)) | |
124 | + | let U = F(p(q)) | |
125 | + | let V = if ((T > 0)) | |
126 | + | then fraction((S - T), U, o) | |
127 | + | else 0 | |
128 | + | let W = if ((V > 0)) | |
129 | + | then [ScriptTransfer(q, V, A())] | |
130 | + | else nil | |
131 | + | (W ++ [IntegerEntry(r(q), S), IntegerEntry(s(q), (F(s(q)) + V))]) | |
132 | + | } | |
133 | + | ||
134 | + | ||
135 | + | func X (Y) = { | |
136 | + | let S = F(t) | |
137 | + | let Z = F(u) | |
138 | + | let aa = if ((Z > 0)) | |
139 | + | then fraction(Y, o, Z) | |
140 | + | else 0 | |
141 | + | [IntegerEntry(v, (F(v) + Y)), IntegerEntry(t, (S + aa))] | |
142 | + | } | |
143 | + | ||
144 | + | ||
145 | + | func ab (ac,ad,ae,af) = if (if ((ad == 0)) | |
146 | + | then true | |
147 | + | else (ae == "")) | |
148 | + | then nil | |
149 | + | else if ((height > (ad + J()))) | |
150 | + | then throw((((((((("CAVP: Voting is finished, please finalize the vote;" + " Arguments: ") + ac) + ", ") + toString(ad)) + ", ") + ae) + ", ") + toString(af))) | |
151 | + | else { | |
152 | + | let ag = F(M(ae, toString(ad))) | |
153 | + | let ah = F(O(toString(ad))) | |
154 | + | [StringEntry(K(ac, toString(ad)), ae), IntegerEntry(M(ae, toString(ad)), (ag + af)), IntegerEntry(O(toString(ad)), (ah + af))] | |
155 | + | } | |
156 | + | ||
157 | + | ||
158 | + | func ai (ac,af) = { | |
159 | + | let aj = F(I()) | |
160 | + | let ak = G(K(ac, toString(aj))) | |
161 | + | ab(ac, aj, ak, af) | |
162 | + | } | |
163 | + | ||
164 | + | ||
165 | + | func al () = { | |
166 | + | let aj = F(I()) | |
167 | + | if ((aj == 0)) | |
168 | + | then false | |
169 | + | else getBooleanValue(P(toString(aj))) | |
170 | + | } | |
171 | + | ||
172 | + | ||
173 | + | @Callable(am) | |
174 | + | func claimRefundStaked () = { | |
175 | + | let an = toString(am.caller) | |
176 | + | let U = F(p(am.caller)) | |
177 | + | let aj = F(I()) | |
178 | + | let ak = G(K(an, toString(aj))) | |
179 | + | let ao = if ((ak == "")) | |
180 | + | then 7 | |
181 | + | else 10 | |
182 | + | let ap = ((U / 10) * ao) | |
183 | + | let aq = invoke(e(), "CFRefund", [an, ap], nil) | |
184 | + | if ((aq == aq)) | |
185 | + | then [IntegerEntry(p(am.caller), 0), Burn(C(), U)] | |
186 | + | else throw("Strict value is not equal to itself.") | |
187 | + | } | |
188 | + | ||
189 | + | ||
190 | + | ||
191 | + | @Callable(am) | |
192 | + | func claimRefundUnstaked () = { | |
193 | + | let ar = C() | |
194 | + | if ((size(am.payments) > 1)) | |
195 | + | then throw("CSFT: To many payments added") | |
196 | + | else if ((am.payments[0].assetId != ar)) | |
197 | + | then throw("CSFT: Wrong assetId") | |
198 | + | else { | |
199 | + | let Y = am.payments[0].amount | |
200 | + | if ((Y == 0)) | |
201 | + | then throw("CSFT: Please attach positive asset amount!") | |
202 | + | else { | |
203 | + | let an = toString(am.caller) | |
204 | + | let ao = 7 | |
205 | + | let ap = ((Y / 10) * ao) | |
206 | + | let aq = invoke(e(), "CFRefund", [an, ap], nil) | |
207 | + | if ((aq == aq)) | |
208 | + | then [Burn(C(), Y)] | |
209 | + | else throw("Strict value is not equal to itself.") | |
210 | + | } | |
211 | + | } | |
212 | + | } | |
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | @Callable(am) | |
217 | + | func startVote () = if ((am.caller != d)) | |
218 | + | then throw("CSV: Only the admin can start a liquidation vote for now!") | |
219 | + | else if ((F(I()) != 0)) | |
220 | + | then throw("CSV: There is already a vote running!") | |
221 | + | else [IntegerEntry("VOTE_HEIGHT_START", height)] | |
222 | + | ||
223 | + | ||
224 | + | ||
225 | + | @Callable(am) | |
226 | + | func voteToLiquidate (ae) = { | |
227 | + | let af = F(p(am.caller)) | |
228 | + | if ((af == 0)) | |
229 | + | then throw("CVTL: Please stake some tokens before you can vote!") | |
230 | + | else { | |
231 | + | let as = toString(ae) | |
232 | + | let aj = F(I()) | |
233 | + | if ((height > (aj + J()))) | |
234 | + | then throw("CV: Voting is finished, please finalize the vote!") | |
235 | + | else { | |
236 | + | let ak = G(K(toString(am.caller), toString(aj))) | |
237 | + | if ((ak != "")) | |
238 | + | then throw("CV: You can not change your vote!") | |
239 | + | else ab(toString(am.caller), aj, as, af) | |
240 | + | } | |
241 | + | } | |
242 | + | } | |
243 | + | ||
244 | + | ||
245 | + | ||
246 | + | @Callable(am) | |
247 | + | func finalizeVote () = { | |
248 | + | let aj = F(I()) | |
249 | + | if (((aj + J()) > height)) | |
250 | + | then throw("CFV: Voting is not finished!") | |
251 | + | else { | |
252 | + | let Z = F(u) | |
253 | + | let ah = F(O(toString(aj))) | |
254 | + | let at = ((ah / Z) * 100) | |
255 | + | let au = F(M("true", toString(aj))) | |
256 | + | let av = F(M("false", toString(aj))) | |
257 | + | let aw = if ((20 > at)) | |
258 | + | then true | |
259 | + | else if ((au > av)) | |
260 | + | then true | |
261 | + | else false | |
262 | + | let ax = if (aw) | |
263 | + | then nil | |
264 | + | else [IntegerEntry(I(), 0)] | |
265 | + | ([IntegerEntry(Q(toString(aj)), at), BooleanEntry(P(toString(aj)), aw)] ++ ax) | |
266 | + | } | |
267 | + | } | |
268 | + | ||
269 | + | ||
270 | + | ||
271 | + | @Callable(am) | |
272 | + | func topUpReward () = if (al()) | |
273 | + | then throw("CTUR: CF is liquidated!") | |
274 | + | else { | |
275 | + | let ay = A() | |
276 | + | if ((am.payments[0].assetId != ay)) | |
277 | + | then throw("CTUP: Wrong assetId, first payment should be EGG") | |
278 | + | else { | |
279 | + | let az = X(am.payments[0].amount) | |
280 | + | $Tuple2(az, true) | |
281 | + | } | |
282 | + | } | |
283 | + | ||
284 | + | ||
285 | + | ||
286 | + | @Callable(am) | |
287 | + | func withdrawFarmTokens (Y,aA) = if (al()) | |
288 | + | then throw("CTUR: CF is liquidated!") | |
289 | + | else if ((size(am.payments) > 0)) | |
290 | + | then throw("CWFT: Please don't add payments") | |
291 | + | else { | |
292 | + | let ar = C() | |
293 | + | if (aA) | |
294 | + | then { | |
295 | + | let aB = F(g) | |
296 | + | let n = F(f) | |
297 | + | let aC = l(aB, n) | |
298 | + | let aD = j(am.caller) | |
299 | + | let aE = F(aD) | |
300 | + | let aF = if ((Y == -1)) | |
301 | + | then aE | |
302 | + | else fraction(Y, i, aC) | |
303 | + | let aG = if ((Y == -1)) | |
304 | + | then fraction(aF, aC, i) | |
305 | + | else Y | |
306 | + | if ((aF > aE)) | |
307 | + | then throw("CWFT: You don't have so much funds to withdraw") | |
308 | + | else [IntegerEntry(aD, (aE - aF)), IntegerEntry(g, (aB - aF)), IntegerEntry(f, (n - aG)), ScriptTransfer(am.caller, aG, ar), IntegerEntry(h, aC), IntegerEntry("last_virt_compound_wd", aF), IntegerEntry("last_amount_compound_wd", aG)] | |
309 | + | } | |
310 | + | else { | |
311 | + | let an = toString(am.caller) | |
312 | + | let U = F(p(am.caller)) | |
313 | + | let aH = if ((Y == -1)) | |
314 | + | then U | |
315 | + | else Y | |
316 | + | if ((aH > U)) | |
317 | + | then throw("CWFT: you don't have tokens available") | |
318 | + | else { | |
319 | + | let af = ai(toString(am.caller), -(aH)) | |
320 | + | ((R(am.caller) ++ [IntegerEntry(p(am.caller), (U - aH)), IntegerEntry(u, (F(u) - aH)), ScriptTransfer(am.caller, aH, ar), IntegerEntry("last_staking_wd", aH)]) ++ af) | |
321 | + | } | |
322 | + | } | |
323 | + | } | |
324 | + | ||
325 | + | ||
326 | + | ||
327 | + | @Callable(am) | |
328 | + | func stakeFarmTokens (aA) = if (al()) | |
329 | + | then throw("CSFT: CF is liquidated!") | |
330 | + | else { | |
331 | + | let ar = C() | |
332 | + | if ((size(am.payments) > 1)) | |
333 | + | then throw("CSFT: To many payments added") | |
334 | + | else if ((am.payments[0].assetId != ar)) | |
335 | + | then throw("CSFT: Wrong assetId") | |
336 | + | else { | |
337 | + | let Y = am.payments[0].amount | |
338 | + | if ((Y == 0)) | |
339 | + | then throw("CSFT: Please attach positive asset amount!") | |
340 | + | else if (aA) | |
341 | + | then throw("CSFT: Compound was disabled!") | |
342 | + | else { | |
343 | + | let an = toString(am.caller) | |
344 | + | let Z = F(u) | |
345 | + | if ((am.payments[0].assetId != ar)) | |
346 | + | then throw("CSFT: wrong asset attached") | |
347 | + | else { | |
348 | + | let af = ai(toString(am.caller), Y) | |
349 | + | ((R(am.caller) ++ [IntegerEntry(u, (Z + Y)), IntegerEntry(p(am.caller), (F(p(am.caller)) + Y))]) ++ af) | |
350 | + | } | |
351 | + | } | |
352 | + | } | |
353 | + | } | |
354 | + | ||
355 | + | ||
356 | + | ||
357 | + | @Callable(am) | |
358 | + | func initiateDapp (q) = if (al()) | |
359 | + | then throw("CID: CF is liquidated!") | |
360 | + | else if ((am.caller != this)) | |
361 | + | then throw("CID: Can be called only by the dapp-account") | |
362 | + | else B(q) | |
363 | + | ||
364 | + | ||
365 | + | ||
366 | + | @Callable(am) | |
367 | + | func claimReward () = if (al()) | |
368 | + | then throw("CCR: CF is liquidated!") | |
369 | + | else if ((size(am.payments) > 0)) | |
370 | + | then throw("CCR: Please don't add payments") | |
371 | + | else R(am.caller) | |
372 | + | ||
373 | + |
github/deemru/w8io/026f985 38.74 ms ◑