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