tx · Hjs5FPWkYKmUj92kLC1xb52hmVT551A8c5zmkuvGxnYG 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH: -0.01700000 Waves 2022.07.12 10:24 [2136212] smart account 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH > SELF 0.00000000 Waves
{ "type": 13, "id": "Hjs5FPWkYKmUj92kLC1xb52hmVT551A8c5zmkuvGxnYG", "fee": 1700000, "feeAssetId": null, "timestamp": 1657610702124, "version": 2, "chainId": 84, "sender": "3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH", "senderPublicKey": "4hcnYaYoB2XaCzyJ7wfePpG7EfTd6st6aCAhkskJ9cQ5", "proofs": [ "2gZSPTnw8JJ2AdAoKnC9rBL34okzDF7ufX4KJFNV9y2SopwXBetLHgGK9znavd621TYPijxUsALXUNHj73dCce46" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASABIAEgASABIAEgASABIAEgASABIAEgAAAAAVAAAAAAh1c2RuVXNkdAEAAAAg202DNWRHG5bvnwwvoM991XmdkujhmzUPwT/MewJwKQsAAAAADXVzZG5Vc2R0TFBUQ0kBAAAAIAqBzantQGEdmEq4Oth6BGhTCCbAyZjxYcEpfvod3iryAAAAAAh3eFVzZG5MUAEAAAAgG7mhj3vOTKXN+s5HyQsWjk32W97C65PB1sWo0bGqCxwAAAAAC3d4VXNkbkxQVENJAQAAACC37N3mGwJ72rYTh/1V0NY8tseiNz1LiL3Be29IRACYLwAAAAALd2F2ZXNVc2RuTHABAAAAINUKknePcghEmMkNN/IegHNiilmrJ+abeEGdbsH03iJ2AAAAAA53YXZlc1VzZG5MUFRDSQEAAAAgxRp2zzmtZIv1fW7qZyCOpdLB08oGyQGtTSaCWHrWElkAAAAACWV0aFVzZG5MUAEAAAAgf0Ew/c/5+Zy9fq7UHSNMMuNJS4SB4kp3y/IQBPX7+eEAAAAADGV0aFVzZG5MUFRDSQEAAAAg4e0WyvKtIAu2EMEK2Ns8J2Bjlkj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0kFAAAAAmFtBgQAAAACdHIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAACYW0FAAAADGJ0Y1VzZG5MUFRDSQkABEwAAAACBQAAAAN1cGQJAARMAAAAAgUAAAAEdXBkSwkABEwAAAACBQAAAAdMUElzc3VlCQAETAAAAAIFAAAAAnRyBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmV9BMy", "height": 2136212, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FTtDGumEc1UADC4JpKSzqcWoe2MjnWmMKKE6LRtkjMcs Next: F8v7q2QdSSXmBiUzBLmApArQq7Va3PoAmCoJ6Mo25snM Diff:
Old | New | Differences | |
---|---|---|---|
130 | 130 | } | |
131 | 131 | else throw("Can't find asset") | |
132 | 132 | } | |
133 | - | let C = (x * (z / y)) | |
133 | + | let H = fraction(z, 100000000, y) | |
134 | + | let C = (x * H) | |
134 | 135 | let D = IntegerEntry(o, (y + x)) | |
135 | 136 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
136 | 137 | if ((E == E)) | |
215 | 216 | ||
216 | 217 | @Callable(v) | |
217 | 218 | func compoundBTCUSDNLP () = { | |
218 | - | let | |
219 | - | let | |
220 | - | if (( | |
219 | + | let I = value(v.payments[0]) | |
220 | + | let J = I.amount | |
221 | + | if ((I.assetId != i)) | |
221 | 222 | then throw("attach BTCUSDNLP tokens only") | |
222 | 223 | else { | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | if (( | |
224 | + | let K = valueOrElse(getInteger(this, s), 0) | |
225 | + | let L = valueOrElse(getInteger(this, r), 0) | |
226 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
227 | + | if ((M == M)) | |
227 | 228 | then { | |
228 | - | let D = IntegerEntry(r, ( | |
229 | - | let | |
230 | - | [D, | |
229 | + | let D = IntegerEntry(r, (L + J)) | |
230 | + | let N = IntegerEntry(s, (K + J)) | |
231 | + | [D, N] | |
231 | 232 | } | |
232 | 233 | else throw("Strict value is not equal to itself.") | |
233 | 234 | } | |
237 | 238 | ||
238 | 239 | @Callable(v) | |
239 | 240 | func compoundETHUSDNLP () = { | |
240 | - | let | |
241 | - | let | |
242 | - | if (( | |
241 | + | let I = value(v.payments[0]) | |
242 | + | let J = I.amount | |
243 | + | if ((I.assetId != g)) | |
243 | 244 | then throw("attach ETHUSDNLP tokens only") | |
244 | 245 | else { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | if (( | |
246 | + | let K = valueOrElse(getInteger(this, u), 0) | |
247 | + | let L = valueOrElse(getInteger(this, t), 0) | |
248 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
249 | + | if ((M == M)) | |
249 | 250 | then { | |
250 | - | let D = IntegerEntry(t, ( | |
251 | - | let | |
252 | - | [D, | |
251 | + | let D = IntegerEntry(t, (L + J)) | |
252 | + | let N = IntegerEntry(u, (K + J)) | |
253 | + | [D, N] | |
253 | 254 | } | |
254 | 255 | else throw("Strict value is not equal to itself.") | |
255 | 256 | } | |
259 | 260 | ||
260 | 261 | @Callable(v) | |
261 | 262 | func compoundWXUSDNLP () = { | |
262 | - | let | |
263 | - | let | |
264 | - | if (( | |
263 | + | let I = value(v.payments[0]) | |
264 | + | let J = I.amount | |
265 | + | if ((I.assetId != c)) | |
265 | 266 | then throw("attach WXUSDNLP tokens only") | |
266 | 267 | else { | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | if (( | |
268 | + | let K = valueOrElse(getInteger(this, n), 0) | |
269 | + | let L = valueOrElse(getInteger(this, o), 0) | |
270 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
271 | + | if ((M == M)) | |
271 | 272 | then { | |
272 | - | let D = IntegerEntry(o, ( | |
273 | - | let | |
274 | - | [D, | |
273 | + | let D = IntegerEntry(o, (L + J)) | |
274 | + | let N = IntegerEntry(n, (K + J)) | |
275 | + | [D, N] | |
275 | 276 | } | |
276 | 277 | else throw("Strict value is not equal to itself.") | |
277 | 278 | } | |
281 | 282 | ||
282 | 283 | @Callable(v) | |
283 | 284 | func compoundUSDTUSDNLP () = { | |
284 | - | let | |
285 | - | let | |
286 | - | if (( | |
285 | + | let I = value(v.payments[0]) | |
286 | + | let J = I.amount | |
287 | + | if ((I.assetId != a)) | |
287 | 288 | then throw("attach USDTUSDNLP tokens only") | |
288 | 289 | else { | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | if (( | |
290 | + | let K = valueOrElse(getInteger(this, m), 0) | |
291 | + | let L = valueOrElse(getInteger(this, l), 0) | |
292 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
293 | + | if ((M == M)) | |
293 | 294 | then { | |
294 | - | let D = IntegerEntry(l, ( | |
295 | - | let | |
296 | - | [D, | |
295 | + | let D = IntegerEntry(l, (L + J)) | |
296 | + | let N = IntegerEntry(m, (K + J)) | |
297 | + | [D, N] | |
297 | 298 | } | |
298 | 299 | else throw("Strict value is not equal to itself.") | |
299 | 300 | } | |
303 | 304 | ||
304 | 305 | @Callable(v) | |
305 | 306 | func compoundWAVESUSDNLP () = { | |
306 | - | let | |
307 | - | let | |
308 | - | if (( | |
307 | + | let I = value(v.payments[0]) | |
308 | + | let J = I.amount | |
309 | + | if ((I.assetId != e)) | |
309 | 310 | then throw("attach WAVESUSDNLP tokens only") | |
310 | 311 | else { | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | if (( | |
312 | + | let K = valueOrElse(getInteger(this, q), 0) | |
313 | + | let L = valueOrElse(getInteger(this, p), 0) | |
314 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
315 | + | if ((M == M)) | |
315 | 316 | then { | |
316 | - | let D = IntegerEntry(p, ( | |
317 | - | let | |
318 | - | [D, | |
317 | + | let D = IntegerEntry(p, (L + J)) | |
318 | + | let N = IntegerEntry(q, (K + J)) | |
319 | + | [D, N] | |
319 | 320 | } | |
320 | 321 | else throw("Strict value is not equal to itself.") | |
321 | 322 | } | |
325 | 326 | ||
326 | 327 | @Callable(v) | |
327 | 328 | func initWX () = { | |
328 | - | let | |
329 | - | let | |
330 | - | if (( | |
329 | + | let O = value(v.payments[0]) | |
330 | + | let P = O.amount | |
331 | + | if ((O.assetId != c)) | |
331 | 332 | then throw("Unexpected token") | |
332 | 333 | else { | |
333 | - | let | |
334 | - | if (( | |
334 | + | let Q = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [O]) | |
335 | + | if ((Q == Q)) | |
335 | 336 | then { | |
336 | - | let | |
337 | - | let | |
338 | - | [ | |
337 | + | let R = IntegerEntry(o, P) | |
338 | + | let S = IntegerEntry(n, 0) | |
339 | + | [R, S] | |
339 | 340 | } | |
340 | 341 | else throw("Strict value is not equal to itself.") | |
341 | 342 | } | |
345 | 346 | ||
346 | 347 | @Callable(v) | |
347 | 348 | func initWAVES () = { | |
348 | - | let | |
349 | - | let | |
350 | - | if (( | |
349 | + | let O = value(v.payments[0]) | |
350 | + | let P = O.amount | |
351 | + | if ((O.assetId != e)) | |
351 | 352 | then throw("Unexpected token") | |
352 | 353 | else { | |
353 | - | let | |
354 | - | if (( | |
354 | + | let Q = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [O]) | |
355 | + | if ((Q == Q)) | |
355 | 356 | then { | |
356 | - | let | |
357 | - | let | |
358 | - | [ | |
357 | + | let R = IntegerEntry(p, P) | |
358 | + | let S = IntegerEntry(q, 0) | |
359 | + | [R, S] | |
359 | 360 | } | |
360 | 361 | else throw("Strict value is not equal to itself.") | |
361 | 362 | } | |
365 | 366 | ||
366 | 367 | @Callable(v) | |
367 | 368 | func initETH () = { | |
368 | - | let | |
369 | - | let | |
370 | - | if (( | |
369 | + | let O = value(v.payments[0]) | |
370 | + | let P = O.amount | |
371 | + | if ((O.assetId != g)) | |
371 | 372 | then throw("Unexpected token") | |
372 | 373 | else { | |
373 | - | let | |
374 | - | if (( | |
374 | + | let Q = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [O]) | |
375 | + | if ((Q == Q)) | |
375 | 376 | then { | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | [ | |
377 | + | let R = IntegerEntry(t, P) | |
378 | + | let S = IntegerEntry(u, 0) | |
379 | + | let T = Reissue(h, P, true) | |
380 | + | let U = ScriptTransfer(v.caller, P, h) | |
381 | + | [R, S, T, U] | |
381 | 382 | } | |
382 | 383 | else throw("Strict value is not equal to itself.") | |
383 | 384 | } | |
387 | 388 | ||
388 | 389 | @Callable(v) | |
389 | 390 | func initBTC () = { | |
390 | - | let | |
391 | - | let | |
392 | - | if (( | |
391 | + | let O = value(v.payments[0]) | |
392 | + | let P = O.amount | |
393 | + | if ((O.assetId != i)) | |
393 | 394 | then throw("Unexpected token") | |
394 | 395 | else { | |
395 | - | let | |
396 | - | if (( | |
396 | + | let Q = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [O]) | |
397 | + | if ((Q == Q)) | |
397 | 398 | then { | |
398 | - | let | |
399 | - | let | |
400 | - | let F = Reissue(j, | |
401 | - | let | |
402 | - | [ | |
399 | + | let R = IntegerEntry(r, P) | |
400 | + | let S = IntegerEntry(s, 0) | |
401 | + | let F = Reissue(j, P, true) | |
402 | + | let V = ScriptTransfer(v.caller, P, j) | |
403 | + | [R, S, F, V] | |
403 | 404 | } | |
404 | 405 | else throw("Strict value is not equal to itself.") | |
405 | 406 | } | |
406 | 407 | } | |
407 | 408 | ||
408 | 409 | ||
409 | - | @Verifier( | |
410 | - | func | |
410 | + | @Verifier(W) | |
411 | + | func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey) | |
411 | 412 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS' | |
5 | 5 | ||
6 | 6 | let b = base58'i1snzKxSEZVokh9TWj8hTJQEDBsocnL2hRWsSbsMPK7' | |
7 | 7 | ||
8 | 8 | let c = base58'2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib' | |
9 | 9 | ||
10 | 10 | let d = base58'DNy6WBfhPE4y82RonGdHhZEunNotEDzmNfrBomWnsyGi' | |
11 | 11 | ||
12 | 12 | let e = base58'FLdC14nUVRyiSYjVrMo3X4g8rXQjLbNRaGAyQAm8V68V' | |
13 | 13 | ||
14 | 14 | let f = base58'EGQiqw8jLjg6SVLUeeqMLjk3EjhEVHtjkJ6w46HyFfep' | |
15 | 15 | ||
16 | 16 | let g = base58'9ZkS8GoUWn69QhgF1RsRtS9CFtc7ZbDNX5N238Jmqjdr' | |
17 | 17 | ||
18 | 18 | let h = base58'GCvR4BmCSjncVEEwr9psvhN5mctdNTGPs8Xp4b2oQNFZ' | |
19 | 19 | ||
20 | 20 | let i = base58'2RmyyZ39ZoPoTWksM6urmjgx9mB8ksP8Ru6ba8u89mZm' | |
21 | 21 | ||
22 | 22 | let j = base58'4jarprgmcev38EU5p2duJAznZSLUxZ831jCT2vf95Hey' | |
23 | 23 | ||
24 | 24 | let k = false | |
25 | 25 | ||
26 | 26 | let l = "STAKED_LP" | |
27 | 27 | ||
28 | 28 | let m = "From_Compound" | |
29 | 29 | ||
30 | 30 | let n = "WX_USDN_compound" | |
31 | 31 | ||
32 | 32 | let o = "WX_USDN" | |
33 | 33 | ||
34 | 34 | let p = "WAVES_USDN" | |
35 | 35 | ||
36 | 36 | let q = "WAVES_USDN_COMPOUND" | |
37 | 37 | ||
38 | 38 | let r = "BTC_USDN" | |
39 | 39 | ||
40 | 40 | let s = "BTC_USDN_COMPOUND" | |
41 | 41 | ||
42 | 42 | let t = "ETH_USDN" | |
43 | 43 | ||
44 | 44 | let u = "ETH_USDN_COMPOUND" | |
45 | 45 | ||
46 | 46 | @Callable(v) | |
47 | 47 | func depositBtcUsdnLP () = { | |
48 | 48 | let w = value(v.payments[0]) | |
49 | 49 | let x = w.amount | |
50 | 50 | if ((w.assetId != i)) | |
51 | 51 | then throw("attach BTCUSDNLP tokens only") | |
52 | 52 | else if (k) | |
53 | 53 | then throw("smart contract is on lock") | |
54 | 54 | else { | |
55 | 55 | let y = valueOrElse(getInteger(this, r), 0) | |
56 | 56 | let z = { | |
57 | 57 | let A = assetInfo(j) | |
58 | 58 | if ($isInstanceOf(A, "Asset")) | |
59 | 59 | then { | |
60 | 60 | let B = A | |
61 | 61 | B.quantity | |
62 | 62 | } | |
63 | 63 | else throw("Can't find asset") | |
64 | 64 | } | |
65 | 65 | let C = (x * ((z - assetBalance(this, j)) / y)) | |
66 | 66 | let D = IntegerEntry(r, (y + x)) | |
67 | 67 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
68 | 68 | if ((E == E)) | |
69 | 69 | then { | |
70 | 70 | let F = Reissue(j, C, true) | |
71 | 71 | let G = ScriptTransfer(v.caller, C, j) | |
72 | 72 | [F, G, D] | |
73 | 73 | } | |
74 | 74 | else throw("Strict value is not equal to itself.") | |
75 | 75 | } | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | ||
80 | 80 | @Callable(v) | |
81 | 81 | func depositWavesUsdnLP () = { | |
82 | 82 | let w = value(v.payments[0]) | |
83 | 83 | let x = w.amount | |
84 | 84 | if ((w.assetId != e)) | |
85 | 85 | then throw("attach WAVESUSDNLP tokens only") | |
86 | 86 | else if (k) | |
87 | 87 | then throw("smart contract is on lock") | |
88 | 88 | else { | |
89 | 89 | let y = valueOrElse(getInteger(this, p), 0) | |
90 | 90 | let z = { | |
91 | 91 | let A = assetInfo(f) | |
92 | 92 | if ($isInstanceOf(A, "Asset")) | |
93 | 93 | then { | |
94 | 94 | let B = A | |
95 | 95 | B.quantity | |
96 | 96 | } | |
97 | 97 | else throw("Can't find asset") | |
98 | 98 | } | |
99 | 99 | let C = (x * (z / y)) | |
100 | 100 | let D = IntegerEntry(p, (y + x)) | |
101 | 101 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
102 | 102 | if ((E == E)) | |
103 | 103 | then { | |
104 | 104 | let F = Reissue(f, C, true) | |
105 | 105 | let G = ScriptTransfer(v.caller, C, f) | |
106 | 106 | [F, G, D] | |
107 | 107 | } | |
108 | 108 | else throw("Strict value is not equal to itself.") | |
109 | 109 | } | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(v) | |
115 | 115 | func depositWxUsdnLP () = { | |
116 | 116 | let w = value(v.payments[0]) | |
117 | 117 | let x = w.amount | |
118 | 118 | if ((w.assetId != c)) | |
119 | 119 | then throw("attach WXUSDNLP tokens only") | |
120 | 120 | else if (k) | |
121 | 121 | then throw("smart contract is on lock") | |
122 | 122 | else { | |
123 | 123 | let y = valueOrElse(getInteger(this, o), 0) | |
124 | 124 | let z = { | |
125 | 125 | let A = assetInfo(d) | |
126 | 126 | if ($isInstanceOf(A, "Asset")) | |
127 | 127 | then { | |
128 | 128 | let B = A | |
129 | 129 | B.quantity | |
130 | 130 | } | |
131 | 131 | else throw("Can't find asset") | |
132 | 132 | } | |
133 | - | let C = (x * (z / y)) | |
133 | + | let H = fraction(z, 100000000, y) | |
134 | + | let C = (x * H) | |
134 | 135 | let D = IntegerEntry(o, (y + x)) | |
135 | 136 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
136 | 137 | if ((E == E)) | |
137 | 138 | then { | |
138 | 139 | let F = Reissue(d, C, true) | |
139 | 140 | let G = ScriptTransfer(v.caller, C, d) | |
140 | 141 | [F, G, D] | |
141 | 142 | } | |
142 | 143 | else throw("Strict value is not equal to itself.") | |
143 | 144 | } | |
144 | 145 | } | |
145 | 146 | ||
146 | 147 | ||
147 | 148 | ||
148 | 149 | @Callable(v) | |
149 | 150 | func depositUsdtUsdnLP () = { | |
150 | 151 | let w = value(v.payments[0]) | |
151 | 152 | let x = w.amount | |
152 | 153 | if ((w.assetId != a)) | |
153 | 154 | then throw("attach USDTUSDNLP tokens only") | |
154 | 155 | else if (k) | |
155 | 156 | then throw("smart contract is on lock") | |
156 | 157 | else { | |
157 | 158 | let y = valueOrElse(getInteger(this, l), 0) | |
158 | 159 | let z = { | |
159 | 160 | let A = assetInfo(b) | |
160 | 161 | if ($isInstanceOf(A, "Asset")) | |
161 | 162 | then { | |
162 | 163 | let B = A | |
163 | 164 | B.quantity | |
164 | 165 | } | |
165 | 166 | else throw("Can't find asset") | |
166 | 167 | } | |
167 | 168 | let C = (x * (z / y)) | |
168 | 169 | let D = IntegerEntry(l, (y + x)) | |
169 | 170 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
170 | 171 | if ((E == E)) | |
171 | 172 | then { | |
172 | 173 | let F = Reissue(b, C, true) | |
173 | 174 | let G = ScriptTransfer(v.caller, C, b) | |
174 | 175 | [F, G, D] | |
175 | 176 | } | |
176 | 177 | else throw("Strict value is not equal to itself.") | |
177 | 178 | } | |
178 | 179 | } | |
179 | 180 | ||
180 | 181 | ||
181 | 182 | ||
182 | 183 | @Callable(v) | |
183 | 184 | func depositEthUsdnLP () = { | |
184 | 185 | let w = value(v.payments[0]) | |
185 | 186 | let x = w.amount | |
186 | 187 | if ((w.assetId != g)) | |
187 | 188 | then throw("attach ETHUSDNLP tokens only") | |
188 | 189 | else if (k) | |
189 | 190 | then throw("smart contract is on lock") | |
190 | 191 | else { | |
191 | 192 | let y = valueOrElse(getInteger(this, t), 0) | |
192 | 193 | let z = { | |
193 | 194 | let A = assetInfo(h) | |
194 | 195 | if ($isInstanceOf(A, "Asset")) | |
195 | 196 | then { | |
196 | 197 | let B = A | |
197 | 198 | B.quantity | |
198 | 199 | } | |
199 | 200 | else throw("Can't find asset") | |
200 | 201 | } | |
201 | 202 | let C = (x * ((z - assetBalance(this, h)) / y)) | |
202 | 203 | let D = IntegerEntry(t, (y + x)) | |
203 | 204 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
204 | 205 | if ((E == E)) | |
205 | 206 | then { | |
206 | 207 | let F = Reissue(h, C, true) | |
207 | 208 | let G = ScriptTransfer(v.caller, C, h) | |
208 | 209 | [F, G, D] | |
209 | 210 | } | |
210 | 211 | else throw("Strict value is not equal to itself.") | |
211 | 212 | } | |
212 | 213 | } | |
213 | 214 | ||
214 | 215 | ||
215 | 216 | ||
216 | 217 | @Callable(v) | |
217 | 218 | func compoundBTCUSDNLP () = { | |
218 | - | let | |
219 | - | let | |
220 | - | if (( | |
219 | + | let I = value(v.payments[0]) | |
220 | + | let J = I.amount | |
221 | + | if ((I.assetId != i)) | |
221 | 222 | then throw("attach BTCUSDNLP tokens only") | |
222 | 223 | else { | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | if (( | |
224 | + | let K = valueOrElse(getInteger(this, s), 0) | |
225 | + | let L = valueOrElse(getInteger(this, r), 0) | |
226 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
227 | + | if ((M == M)) | |
227 | 228 | then { | |
228 | - | let D = IntegerEntry(r, ( | |
229 | - | let | |
230 | - | [D, | |
229 | + | let D = IntegerEntry(r, (L + J)) | |
230 | + | let N = IntegerEntry(s, (K + J)) | |
231 | + | [D, N] | |
231 | 232 | } | |
232 | 233 | else throw("Strict value is not equal to itself.") | |
233 | 234 | } | |
234 | 235 | } | |
235 | 236 | ||
236 | 237 | ||
237 | 238 | ||
238 | 239 | @Callable(v) | |
239 | 240 | func compoundETHUSDNLP () = { | |
240 | - | let | |
241 | - | let | |
242 | - | if (( | |
241 | + | let I = value(v.payments[0]) | |
242 | + | let J = I.amount | |
243 | + | if ((I.assetId != g)) | |
243 | 244 | then throw("attach ETHUSDNLP tokens only") | |
244 | 245 | else { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | if (( | |
246 | + | let K = valueOrElse(getInteger(this, u), 0) | |
247 | + | let L = valueOrElse(getInteger(this, t), 0) | |
248 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
249 | + | if ((M == M)) | |
249 | 250 | then { | |
250 | - | let D = IntegerEntry(t, ( | |
251 | - | let | |
252 | - | [D, | |
251 | + | let D = IntegerEntry(t, (L + J)) | |
252 | + | let N = IntegerEntry(u, (K + J)) | |
253 | + | [D, N] | |
253 | 254 | } | |
254 | 255 | else throw("Strict value is not equal to itself.") | |
255 | 256 | } | |
256 | 257 | } | |
257 | 258 | ||
258 | 259 | ||
259 | 260 | ||
260 | 261 | @Callable(v) | |
261 | 262 | func compoundWXUSDNLP () = { | |
262 | - | let | |
263 | - | let | |
264 | - | if (( | |
263 | + | let I = value(v.payments[0]) | |
264 | + | let J = I.amount | |
265 | + | if ((I.assetId != c)) | |
265 | 266 | then throw("attach WXUSDNLP tokens only") | |
266 | 267 | else { | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | if (( | |
268 | + | let K = valueOrElse(getInteger(this, n), 0) | |
269 | + | let L = valueOrElse(getInteger(this, o), 0) | |
270 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
271 | + | if ((M == M)) | |
271 | 272 | then { | |
272 | - | let D = IntegerEntry(o, ( | |
273 | - | let | |
274 | - | [D, | |
273 | + | let D = IntegerEntry(o, (L + J)) | |
274 | + | let N = IntegerEntry(n, (K + J)) | |
275 | + | [D, N] | |
275 | 276 | } | |
276 | 277 | else throw("Strict value is not equal to itself.") | |
277 | 278 | } | |
278 | 279 | } | |
279 | 280 | ||
280 | 281 | ||
281 | 282 | ||
282 | 283 | @Callable(v) | |
283 | 284 | func compoundUSDTUSDNLP () = { | |
284 | - | let | |
285 | - | let | |
286 | - | if (( | |
285 | + | let I = value(v.payments[0]) | |
286 | + | let J = I.amount | |
287 | + | if ((I.assetId != a)) | |
287 | 288 | then throw("attach USDTUSDNLP tokens only") | |
288 | 289 | else { | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | if (( | |
290 | + | let K = valueOrElse(getInteger(this, m), 0) | |
291 | + | let L = valueOrElse(getInteger(this, l), 0) | |
292 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
293 | + | if ((M == M)) | |
293 | 294 | then { | |
294 | - | let D = IntegerEntry(l, ( | |
295 | - | let | |
296 | - | [D, | |
295 | + | let D = IntegerEntry(l, (L + J)) | |
296 | + | let N = IntegerEntry(m, (K + J)) | |
297 | + | [D, N] | |
297 | 298 | } | |
298 | 299 | else throw("Strict value is not equal to itself.") | |
299 | 300 | } | |
300 | 301 | } | |
301 | 302 | ||
302 | 303 | ||
303 | 304 | ||
304 | 305 | @Callable(v) | |
305 | 306 | func compoundWAVESUSDNLP () = { | |
306 | - | let | |
307 | - | let | |
308 | - | if (( | |
307 | + | let I = value(v.payments[0]) | |
308 | + | let J = I.amount | |
309 | + | if ((I.assetId != e)) | |
309 | 310 | then throw("attach WAVESUSDNLP tokens only") | |
310 | 311 | else { | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | if (( | |
312 | + | let K = valueOrElse(getInteger(this, q), 0) | |
313 | + | let L = valueOrElse(getInteger(this, p), 0) | |
314 | + | let M = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [I]) | |
315 | + | if ((M == M)) | |
315 | 316 | then { | |
316 | - | let D = IntegerEntry(p, ( | |
317 | - | let | |
318 | - | [D, | |
317 | + | let D = IntegerEntry(p, (L + J)) | |
318 | + | let N = IntegerEntry(q, (K + J)) | |
319 | + | [D, N] | |
319 | 320 | } | |
320 | 321 | else throw("Strict value is not equal to itself.") | |
321 | 322 | } | |
322 | 323 | } | |
323 | 324 | ||
324 | 325 | ||
325 | 326 | ||
326 | 327 | @Callable(v) | |
327 | 328 | func initWX () = { | |
328 | - | let | |
329 | - | let | |
330 | - | if (( | |
329 | + | let O = value(v.payments[0]) | |
330 | + | let P = O.amount | |
331 | + | if ((O.assetId != c)) | |
331 | 332 | then throw("Unexpected token") | |
332 | 333 | else { | |
333 | - | let | |
334 | - | if (( | |
334 | + | let Q = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [O]) | |
335 | + | if ((Q == Q)) | |
335 | 336 | then { | |
336 | - | let | |
337 | - | let | |
338 | - | [ | |
337 | + | let R = IntegerEntry(o, P) | |
338 | + | let S = IntegerEntry(n, 0) | |
339 | + | [R, S] | |
339 | 340 | } | |
340 | 341 | else throw("Strict value is not equal to itself.") | |
341 | 342 | } | |
342 | 343 | } | |
343 | 344 | ||
344 | 345 | ||
345 | 346 | ||
346 | 347 | @Callable(v) | |
347 | 348 | func initWAVES () = { | |
348 | - | let | |
349 | - | let | |
350 | - | if (( | |
349 | + | let O = value(v.payments[0]) | |
350 | + | let P = O.amount | |
351 | + | if ((O.assetId != e)) | |
351 | 352 | then throw("Unexpected token") | |
352 | 353 | else { | |
353 | - | let | |
354 | - | if (( | |
354 | + | let Q = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [O]) | |
355 | + | if ((Q == Q)) | |
355 | 356 | then { | |
356 | - | let | |
357 | - | let | |
358 | - | [ | |
357 | + | let R = IntegerEntry(p, P) | |
358 | + | let S = IntegerEntry(q, 0) | |
359 | + | [R, S] | |
359 | 360 | } | |
360 | 361 | else throw("Strict value is not equal to itself.") | |
361 | 362 | } | |
362 | 363 | } | |
363 | 364 | ||
364 | 365 | ||
365 | 366 | ||
366 | 367 | @Callable(v) | |
367 | 368 | func initETH () = { | |
368 | - | let | |
369 | - | let | |
370 | - | if (( | |
369 | + | let O = value(v.payments[0]) | |
370 | + | let P = O.amount | |
371 | + | if ((O.assetId != g)) | |
371 | 372 | then throw("Unexpected token") | |
372 | 373 | else { | |
373 | - | let | |
374 | - | if (( | |
374 | + | let Q = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [O]) | |
375 | + | if ((Q == Q)) | |
375 | 376 | then { | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | [ | |
377 | + | let R = IntegerEntry(t, P) | |
378 | + | let S = IntegerEntry(u, 0) | |
379 | + | let T = Reissue(h, P, true) | |
380 | + | let U = ScriptTransfer(v.caller, P, h) | |
381 | + | [R, S, T, U] | |
381 | 382 | } | |
382 | 383 | else throw("Strict value is not equal to itself.") | |
383 | 384 | } | |
384 | 385 | } | |
385 | 386 | ||
386 | 387 | ||
387 | 388 | ||
388 | 389 | @Callable(v) | |
389 | 390 | func initBTC () = { | |
390 | - | let | |
391 | - | let | |
392 | - | if (( | |
391 | + | let O = value(v.payments[0]) | |
392 | + | let P = O.amount | |
393 | + | if ((O.assetId != i)) | |
393 | 394 | then throw("Unexpected token") | |
394 | 395 | else { | |
395 | - | let | |
396 | - | if (( | |
396 | + | let Q = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [O]) | |
397 | + | if ((Q == Q)) | |
397 | 398 | then { | |
398 | - | let | |
399 | - | let | |
400 | - | let F = Reissue(j, | |
401 | - | let | |
402 | - | [ | |
399 | + | let R = IntegerEntry(r, P) | |
400 | + | let S = IntegerEntry(s, 0) | |
401 | + | let F = Reissue(j, P, true) | |
402 | + | let V = ScriptTransfer(v.caller, P, j) | |
403 | + | [R, S, F, V] | |
403 | 404 | } | |
404 | 405 | else throw("Strict value is not equal to itself.") | |
405 | 406 | } | |
406 | 407 | } | |
407 | 408 | ||
408 | 409 | ||
409 | - | @Verifier( | |
410 | - | func | |
410 | + | @Verifier(W) | |
411 | + | func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey) | |
411 | 412 |
github/deemru/w8io/026f985 76.37 ms ◑