tx · GSfhSV9m5Vt6WmLE2HbQF4VdagAYwrSHb23fCpqcYUEb 3N4vUDe3oc1YPNwMyQi2h8f2tmGoA7wBZp2: -0.04200000 Waves 2023.04.05 15:10 [2521219] smart account 3N4vUDe3oc1YPNwMyQi2h8f2tmGoA7wBZp2 > SELF 0.00000000 Waves
{ "type": 13, "id": "GSfhSV9m5Vt6WmLE2HbQF4VdagAYwrSHb23fCpqcYUEb", "fee": 4200000, "feeAssetId": null, "timestamp": 1680696634728, "version": 2, "chainId": 84, "sender": "3N4vUDe3oc1YPNwMyQi2h8f2tmGoA7wBZp2", "senderPublicKey": "6MuWw1pkme7UgQX2hZh8yTZyoWVkz8A4rmHZ1acrsrVm", "proofs": [ "jB9CCsCJZxP6WU22yCs9ZQ2Hnv4X8roVW5jb7P16Bb1GYxgnXUvsZhFJSbYxbKws8Yjkhx13bSzY1nE5eddYeNy" ], "script": "base64:BgKQNwgCEgASBQoDAQQBEgcKBQEEAQgBEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtd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gUCYlQCFFNldFNjcmlwdFRyYW5zYWN0aW9uBAJnZgUCYlQDCQD0AwMIBQJpaAlib2R5Qnl0ZXMJAJEDAggFAmloBnByb29mcwAABQJpagYEAmltCQD2AwEJAQV2YWx1ZQEIBQJnZgZzY3JpcHQEAmluCQDbBAEJAQV2YWx1ZQEJAJ0IAgUCYVQJAQJhRgAEAmlvCQDxBwEFBHRoaXMDCQAAAgUCaW4FAmltCQECIT0CBQJpbwUCaW0HCQD0AwMIBQJpaAlib2R5Qnl0ZXMJAJEDAggFAmloBnByb29mcwAABQJpauamT2I=", "height": 2521219, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BV9XxZrceqiKyP644juua3ZSZE7AZmdFNzwtkG2Cpucu Next: Bb1JkryxS2uppA5Z2iAu2pDttumzfcRcnGyFpZpGXk1W Diff:
Old | New | Differences | |
---|---|---|---|
366 | 366 | } | |
367 | 367 | ||
368 | 368 | ||
369 | - | func cq (ap) = invoke(aT, "getPoolLeaseConfigREADONLY", [toString(this), ap], nil) | |
369 | + | func cq (ap) = { | |
370 | + | let bT = invoke(aT, "getPoolLeaseConfigREADONLY", [toString(this), ap], nil) | |
371 | + | if ($isInstanceOf(bT, "(Boolean, Int, Int, String, String, Int, String)")) | |
372 | + | then { | |
373 | + | let cr = bT | |
374 | + | cr | |
375 | + | } | |
376 | + | else aQ((("[" + ap) + "] getLeaseProxyConfig() error")) | |
377 | + | } | |
370 | 378 | ||
371 | 379 | ||
372 | - | func | |
380 | + | func cs (ct,ap,bX,cu,bR,cg,ch) = { | |
373 | 381 | let bY = ar(ap) | |
374 | 382 | if ((bY == bY)) | |
375 | 383 | then { | |
376 | 384 | let bZ = as(bX) | |
377 | 385 | if ((bZ == bZ)) | |
378 | 386 | then { | |
379 | - | let | |
387 | + | let cv = { | |
380 | 388 | let bT = bd(ap) | |
381 | 389 | if ($isInstanceOf(bT, "ByteVector")) | |
382 | 390 | then { | |
383 | - | let | |
384 | - | assetBalance(this, | |
391 | + | let cw = bT | |
392 | + | assetBalance(this, cw) | |
385 | 393 | } | |
386 | 394 | else if ($isInstanceOf(bT, "Unit")) | |
387 | 395 | then { | |
388 | - | let | |
396 | + | let cx = bT | |
389 | 397 | wavesBalance(this).available | |
390 | 398 | } | |
391 | 399 | else throw("Match error") | |
392 | 400 | } | |
393 | - | if (( | |
401 | + | if ((cv == cv)) | |
394 | 402 | then { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | if (( | |
403 | + | let cy = max([0, ((cv + bY) - cu)]) | |
404 | + | let cz = fraction(ct, cy, 100) | |
405 | + | let cA = (bY - cz) | |
406 | + | if ((cA == 0)) | |
399 | 407 | then nil | |
400 | - | else if ((0 > | |
408 | + | else if ((0 > cA)) | |
401 | 409 | then { | |
402 | - | let | |
403 | - | bV(ap, | |
410 | + | let cB = -(cA) | |
411 | + | bV(ap, cB, bX, bR) | |
404 | 412 | } | |
405 | 413 | else { | |
406 | - | let | |
407 | - | cf(ap, | |
414 | + | let cC = cA | |
415 | + | cf(ap, cC, bX, bR, cg, ch) | |
408 | 416 | } | |
409 | 417 | } | |
410 | 418 | else throw("Strict value is not equal to itself.") | |
415 | 423 | } | |
416 | 424 | ||
417 | 425 | ||
418 | - | func cC (ap) = { | |
419 | - | let bT = cq(ap) | |
420 | - | if ($isInstanceOf(bT, "(Boolean, Int, Int, String, String, Int, String)")) | |
421 | - | then { | |
422 | - | let cD = bT | |
423 | - | let cE = cD | |
424 | - | let cF = cE._1 | |
425 | - | let cG = cE._2 | |
426 | - | let ct = cE._3 | |
427 | - | let cH = cE._4 | |
428 | - | let cI = cE._5 | |
429 | - | let cg = cE._6 | |
430 | - | let cJ = cE._7 | |
431 | - | if (cF) | |
432 | - | then cr(cG, ap, cI, ct, addressFromStringValue(cH), cg, addressFromStringValue(cJ)) | |
433 | - | else nil | |
434 | - | } | |
435 | - | else aQ((("[" + ap) + "] Rebalance error")) | |
426 | + | func cD (ap) = { | |
427 | + | let cE = cq(ap) | |
428 | + | let cF = cE._1 | |
429 | + | let cG = cE._2 | |
430 | + | let cu = cE._3 | |
431 | + | let cH = cE._4 | |
432 | + | let cI = cE._5 | |
433 | + | let cg = cE._6 | |
434 | + | let cJ = cE._7 | |
435 | + | if (cF) | |
436 | + | then cs(cG, ap, cI, cu, addressFromStringValue(cH), cg, addressFromStringValue(cJ)) | |
437 | + | else nil | |
436 | 438 | } | |
437 | 439 | ||
438 | 440 | ||
439 | 441 | func cK (ap,cL) = { | |
440 | - | let bT = cq(ap) | |
441 | - | if ($isInstanceOf(bT, "(Boolean, Int, Int, String, String, Int, String)")) | |
442 | + | let cM = cq(ap) | |
443 | + | let cF = cM._1 | |
444 | + | let cG = cM._2 | |
445 | + | let cu = cM._3 | |
446 | + | let cH = cM._4 | |
447 | + | let cI = cM._5 | |
448 | + | let cg = cM._6 | |
449 | + | let cJ = cM._7 | |
450 | + | if (cF) | |
442 | 451 | then { | |
443 | - | let cD = bT | |
444 | - | let cM = cD | |
445 | - | let cF = cM._1 | |
446 | - | let cG = cM._2 | |
447 | - | let ct = cM._3 | |
448 | - | let cH = cM._4 | |
449 | - | let cI = cM._5 | |
450 | - | let cg = cM._6 | |
451 | - | let cJ = cM._7 | |
452 | - | if (cF) | |
452 | + | let cN = max([0, ((bJ(ap) - cL) - cu)]) | |
453 | + | if ((cN == cN)) | |
453 | 454 | then { | |
454 | - | let | |
455 | - | if (( | |
455 | + | let cd = fraction(cG, cN, 100) | |
456 | + | if ((cd == cd)) | |
456 | 457 | then { | |
457 | - | let cd = fraction(cG, cN, 100) | |
458 | - | if ((cd == cd)) | |
459 | - | then { | |
460 | - | let cO = max([0, (ar(ap) - cd)]) | |
461 | - | if ((cO == cO)) | |
462 | - | then cf(ap, cO, cI, addressFromStringValue(cH), cg, addressFromStringValue(cJ)) | |
463 | - | else throw("Strict value is not equal to itself.") | |
464 | - | } | |
458 | + | let cO = max([0, (ar(ap) - cd)]) | |
459 | + | if ((cO == cO)) | |
460 | + | then cf(ap, cO, cI, addressFromStringValue(cH), cg, addressFromStringValue(cJ)) | |
465 | 461 | else throw("Strict value is not equal to itself.") | |
466 | 462 | } | |
467 | 463 | else throw("Strict value is not equal to itself.") | |
468 | 464 | } | |
469 | - | else | |
465 | + | else throw("Strict value is not equal to itself.") | |
470 | 466 | } | |
471 | - | else | |
467 | + | else nil | |
472 | 468 | } | |
473 | 469 | ||
474 | 470 | ||
930 | 926 | ||
931 | 927 | ||
932 | 928 | @Callable(eS) | |
933 | - | func rebalance () = ( | |
929 | + | func rebalance () = (cD(aM(this, ae())) ++ cD(aM(this, af()))) | |
934 | 930 | ||
935 | 931 | ||
936 | 932 | ||
999 | 995 | else throw("Exchange result is fewer coins than expected") | |
1000 | 996 | if ((gA == gA)) | |
1001 | 997 | then { | |
1002 | - | let gB = | |
998 | + | let gB = cD(gq) | |
1003 | 999 | if ((gB == gB)) | |
1004 | 1000 | then { | |
1005 | 1001 | let gC = cK(gp, gt) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(0) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(2) | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 2 | |
27 | 27 | ||
28 | 28 | let m = 3 | |
29 | 29 | ||
30 | 30 | let n = 4 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 2 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 1 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G (E,F) = fraction(E, d, F) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func H (I,J) = toInt(fraction(I, toBigInt(J), d)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func K (I,J,L) = toInt(fraction(I, toBigInt(J), d, L)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func M (N,O,P) = fraction(N, O, P) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func Q (I) = if ((0 > I)) | |
78 | 78 | then -(I) | |
79 | 79 | else I | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func R (I) = if ((e > I)) | |
83 | 83 | then -(I) | |
84 | 84 | else I | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func S () = "%s__swapContract" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func T () = "%s__factoryContract" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func U () = "%s__managerPublicKey" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func V () = "%s__pendingManagerPublicKey" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func W () = "%s%s__price__last" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func X (Y,Z) = makeString(["%s%s%d%d__price__history", toString(Y), toString(Z)], j) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func aa (ab,ac) = ((("%s%s%s__P__" + ab) + "__") + ac) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func ad (ab,ac) = ((("%s%s%s__G__" + ab) + "__") + ac) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func ae () = "%s__amountAsset" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func af () = "%s__priceAsset" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | let ag = "%s__fee" | |
118 | 118 | ||
119 | 119 | let ah = fraction(10, b, 10000) | |
120 | 120 | ||
121 | 121 | let ai = valueOrElse(getInteger(this, ag), ah) | |
122 | 122 | ||
123 | 123 | let aj = makeString(["%s", "kLp"], j) | |
124 | 124 | ||
125 | 125 | let ak = makeString(["%s", "kLpRefreshedHeight"], j) | |
126 | 126 | ||
127 | 127 | let al = makeString(["%s", "refreshKLpDelay"], j) | |
128 | 128 | ||
129 | 129 | let am = 30 | |
130 | 130 | ||
131 | 131 | let an = valueOrElse(getInteger(this, al), am) | |
132 | 132 | ||
133 | 133 | func ao (ap) = makeString(["%s%s", "stakedBalance", ap], j) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func aq (ap) = makeString(["%s%s", "shareAssetBalance", ap], j) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ar (ap) = valueOrElse(getInteger(this, ao(ap)), 0) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func as (ap) = valueOrElse(getInteger(this, aq(ap)), 0) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func at () = "%s__factoryConfig" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func au () = "%s%s__matcher__publicKey" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func av (aw) = (("%s%s%s__" + aw) + "__mappings__poolContract2LpAsset") | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ax (ay,az) = (((("%d%d%s__" + ay) + "__") + az) + "__config") | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func aA (aB) = ("%s%s%s__mappings__baseAsset2internalId__" + aB) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func aC () = "%s__shutdown" | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func aD (aE) = ("%s%s__poolWeight__" + aE) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func aF () = "%s__allowedLpScriptHash" | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | let aG = "%s__feeCollectorAddress" | |
170 | 170 | ||
171 | 171 | func aH (aI,aJ,aK,aL) = throw((((((((("order validation failed: orderValid=" + toString(aI)) + " (") + aJ) + ")") + " senderValid=") + toString(aK)) + " matcherValid=") + toString(aL))) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aM (aN,aO) = valueOrErrorMessage(getString(aN, aO), makeString(["mandatory ", toString(aN), ".", aO, " is not defined"], "")) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aP (aN,aO) = valueOrErrorMessage(getInteger(aN, aO), makeString(["mandatory ", toString(aN), ".", aO, " is not defined"], "")) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aQ (aR) = throw(makeString(["lp.ride:", aR], " ")) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func aS (aR) = makeString(["lp.ride:", aR], " ") | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | let aT = addressFromStringValue(aM(this, T())) | |
187 | 187 | ||
188 | 188 | let aU = addressFromStringValue(aM(aT, aG)) | |
189 | 189 | ||
190 | 190 | let aV = { | |
191 | 191 | let aW = invoke(aT, "getInFeeREADONLY", [toString(this)], nil) | |
192 | 192 | if ($isInstanceOf(aW, "Int")) | |
193 | 193 | then aW | |
194 | 194 | else throw(($getType(aW) + " couldn't be cast to Int")) | |
195 | 195 | } | |
196 | 196 | ||
197 | 197 | let aX = { | |
198 | 198 | let aW = invoke(aT, "getOutFeeREADONLY", [toString(this)], nil) | |
199 | 199 | if ($isInstanceOf(aW, "Int")) | |
200 | 200 | then aW | |
201 | 201 | else throw(($getType(aW) + " couldn't be cast to Int")) | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | func aY () = valueOrElse(getBoolean(aT, aC()), false) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func aZ () = fromBase58String(aM(aT, au())) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func ba () = { | |
211 | 211 | let bb = aM(this, ae()) | |
212 | 212 | let bc = aM(this, af()) | |
213 | 213 | let az = aP(aT, aA(bc)) | |
214 | 214 | let ay = aP(aT, aA(bb)) | |
215 | 215 | split(aM(aT, ax(toString(ay), toString(az))), j) | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func bd (be) = if ((be == i)) | |
220 | 220 | then unit | |
221 | 221 | else fromBase58String(be) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func bf (be) = if ((be == unit)) | |
225 | 225 | then i | |
226 | 226 | else toBase58String(value(be)) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func bg (bh) = $Tuple7(addressFromStringValue(bh[o]), parseIntValue(bh[p]), fromBase58String(bh[q]), bd(bh[r]), bd(bh[s]), parseIntValue(bh[t]), parseIntValue(bh[u])) | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | let bi = bg(ba()) | |
233 | 233 | ||
234 | 234 | let bj = bi | |
235 | 235 | ||
236 | 236 | let bk = bj._1 | |
237 | 237 | ||
238 | 238 | let bl = bj._2 | |
239 | 239 | ||
240 | 240 | let bm = bj._3 | |
241 | 241 | ||
242 | 242 | let bn = bj._4 | |
243 | 243 | ||
244 | 244 | let bo = bj._5 | |
245 | 245 | ||
246 | 246 | let bp = bj._6 | |
247 | 247 | ||
248 | 248 | let bq = bj._7 | |
249 | 249 | ||
250 | 250 | func br () = split(aM(aT, at()), j) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | let bs = valueOrErrorMessage(addressFromString(br()[B]), "incorrect staking address") | |
254 | 254 | ||
255 | 255 | let bt = valueOrErrorMessage(addressFromString(br()[C]), "incorrect staking address") | |
256 | 256 | ||
257 | 257 | func bu (bv,bw,bx,by,bz,bA,bB,bC,bD,bE) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bv), toString(bw), toString(bx), toString(by), toString(bz), toString(bA), toString(bB), toString(bC), toString(bD), toString(bE)], j) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func bF (bG,bH,bI,by,bB,bC) = makeString(["%d%d%d%d%d%d", toString(bG), toString(bH), toString(bI), toString(by), toString(bB), toString(bC)], j) | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bJ (ap) = { | |
264 | 264 | let bK = if ((ap == "WAVES")) | |
265 | 265 | then wavesBalance(this).available | |
266 | 266 | else assetBalance(this, fromBase58String(ap)) | |
267 | 267 | let bL = ((bK + ar(ap)) - as(ap)) | |
268 | 268 | max([0, bL]) | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func bM (bN,bO) = fraction(bN, d, bO) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bP (bN,bO,L) = fraction(bN, d, bO, L) | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func bQ (bR) = { | |
279 | 279 | let bS = invoke(bR, "getRate", nil, nil) | |
280 | 280 | if ((bS == bS)) | |
281 | 281 | then { | |
282 | 282 | let bT = bS | |
283 | 283 | if ($isInstanceOf(bT, "Int")) | |
284 | 284 | then { | |
285 | 285 | let bU = bT | |
286 | 286 | bU | |
287 | 287 | } | |
288 | 288 | else aQ("proxy.getRate() unexpected value") | |
289 | 289 | } | |
290 | 290 | else throw("Strict value is not equal to itself.") | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func bV (ap,bW,bX,bR) = { | |
295 | 295 | let bY = ar(ap) | |
296 | 296 | if ((bY == bY)) | |
297 | 297 | then { | |
298 | 298 | let bZ = as(bX) | |
299 | 299 | if ((bZ == bZ)) | |
300 | 300 | then { | |
301 | 301 | let ca = bd(ap) | |
302 | 302 | if ((bW > 0)) | |
303 | 303 | then { | |
304 | 304 | let cb = invoke(bR, "deposit", nil, [AttachedPayment(ca, bW)]) | |
305 | 305 | if ((cb == cb)) | |
306 | 306 | then { | |
307 | 307 | let bT = cb | |
308 | 308 | if ($isInstanceOf(bT, "Int")) | |
309 | 309 | then { | |
310 | 310 | let cc = bT | |
311 | 311 | let cd = (bY + bW) | |
312 | 312 | let ce = (bZ + cc) | |
313 | 313 | [IntegerEntry(ao(ap), cd), IntegerEntry(aq(bX), ce)] | |
314 | 314 | } | |
315 | 315 | else nil | |
316 | 316 | } | |
317 | 317 | else throw("Strict value is not equal to itself.") | |
318 | 318 | } | |
319 | 319 | else nil | |
320 | 320 | } | |
321 | 321 | else throw("Strict value is not equal to itself.") | |
322 | 322 | } | |
323 | 323 | else throw("Strict value is not equal to itself.") | |
324 | 324 | } | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | func cf (ap,bW,bX,bR,cg,ch) = { | |
328 | 328 | let bY = ar(ap) | |
329 | 329 | if ((bY == bY)) | |
330 | 330 | then { | |
331 | 331 | let bZ = as(bX) | |
332 | 332 | if ((bZ == bZ)) | |
333 | 333 | then { | |
334 | 334 | let ci = bQ(bR) | |
335 | 335 | if ((ci == ci)) | |
336 | 336 | then { | |
337 | 337 | let cj = fraction(cg, bY, bZ) | |
338 | 338 | let ck = bd(bX) | |
339 | 339 | let cl = fraction(cg, bW, cj) | |
340 | 340 | let cm = fraction(cg, bW, ci) | |
341 | 341 | let cn = max([0, (cl - cm)]) | |
342 | 342 | if ((cm > 0)) | |
343 | 343 | then { | |
344 | 344 | let co = invoke(bR, "withdraw", nil, [AttachedPayment(ck, cm)]) | |
345 | 345 | if ((co == co)) | |
346 | 346 | then { | |
347 | 347 | let bT = co | |
348 | 348 | if ($isInstanceOf(bT, "Int")) | |
349 | 349 | then { | |
350 | 350 | let cp = bT | |
351 | 351 | let cd = (bY - cp) | |
352 | 352 | let ce = ((bZ - cm) - cn) | |
353 | 353 | [IntegerEntry(ao(ap), cd), IntegerEntry(aq(bX), ce), ScriptTransfer(ch, cn, bd(bX))] | |
354 | 354 | } | |
355 | 355 | else nil | |
356 | 356 | } | |
357 | 357 | else throw("Strict value is not equal to itself.") | |
358 | 358 | } | |
359 | 359 | else nil | |
360 | 360 | } | |
361 | 361 | else throw("Strict value is not equal to itself.") | |
362 | 362 | } | |
363 | 363 | else throw("Strict value is not equal to itself.") | |
364 | 364 | } | |
365 | 365 | else throw("Strict value is not equal to itself.") | |
366 | 366 | } | |
367 | 367 | ||
368 | 368 | ||
369 | - | func cq (ap) = invoke(aT, "getPoolLeaseConfigREADONLY", [toString(this), ap], nil) | |
369 | + | func cq (ap) = { | |
370 | + | let bT = invoke(aT, "getPoolLeaseConfigREADONLY", [toString(this), ap], nil) | |
371 | + | if ($isInstanceOf(bT, "(Boolean, Int, Int, String, String, Int, String)")) | |
372 | + | then { | |
373 | + | let cr = bT | |
374 | + | cr | |
375 | + | } | |
376 | + | else aQ((("[" + ap) + "] getLeaseProxyConfig() error")) | |
377 | + | } | |
370 | 378 | ||
371 | 379 | ||
372 | - | func | |
380 | + | func cs (ct,ap,bX,cu,bR,cg,ch) = { | |
373 | 381 | let bY = ar(ap) | |
374 | 382 | if ((bY == bY)) | |
375 | 383 | then { | |
376 | 384 | let bZ = as(bX) | |
377 | 385 | if ((bZ == bZ)) | |
378 | 386 | then { | |
379 | - | let | |
387 | + | let cv = { | |
380 | 388 | let bT = bd(ap) | |
381 | 389 | if ($isInstanceOf(bT, "ByteVector")) | |
382 | 390 | then { | |
383 | - | let | |
384 | - | assetBalance(this, | |
391 | + | let cw = bT | |
392 | + | assetBalance(this, cw) | |
385 | 393 | } | |
386 | 394 | else if ($isInstanceOf(bT, "Unit")) | |
387 | 395 | then { | |
388 | - | let | |
396 | + | let cx = bT | |
389 | 397 | wavesBalance(this).available | |
390 | 398 | } | |
391 | 399 | else throw("Match error") | |
392 | 400 | } | |
393 | - | if (( | |
401 | + | if ((cv == cv)) | |
394 | 402 | then { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | if (( | |
403 | + | let cy = max([0, ((cv + bY) - cu)]) | |
404 | + | let cz = fraction(ct, cy, 100) | |
405 | + | let cA = (bY - cz) | |
406 | + | if ((cA == 0)) | |
399 | 407 | then nil | |
400 | - | else if ((0 > | |
408 | + | else if ((0 > cA)) | |
401 | 409 | then { | |
402 | - | let | |
403 | - | bV(ap, | |
410 | + | let cB = -(cA) | |
411 | + | bV(ap, cB, bX, bR) | |
404 | 412 | } | |
405 | 413 | else { | |
406 | - | let | |
407 | - | cf(ap, | |
414 | + | let cC = cA | |
415 | + | cf(ap, cC, bX, bR, cg, ch) | |
408 | 416 | } | |
409 | 417 | } | |
410 | 418 | else throw("Strict value is not equal to itself.") | |
411 | 419 | } | |
412 | 420 | else throw("Strict value is not equal to itself.") | |
413 | 421 | } | |
414 | 422 | else throw("Strict value is not equal to itself.") | |
415 | 423 | } | |
416 | 424 | ||
417 | 425 | ||
418 | - | func cC (ap) = { | |
419 | - | let bT = cq(ap) | |
420 | - | if ($isInstanceOf(bT, "(Boolean, Int, Int, String, String, Int, String)")) | |
421 | - | then { | |
422 | - | let cD = bT | |
423 | - | let cE = cD | |
424 | - | let cF = cE._1 | |
425 | - | let cG = cE._2 | |
426 | - | let ct = cE._3 | |
427 | - | let cH = cE._4 | |
428 | - | let cI = cE._5 | |
429 | - | let cg = cE._6 | |
430 | - | let cJ = cE._7 | |
431 | - | if (cF) | |
432 | - | then cr(cG, ap, cI, ct, addressFromStringValue(cH), cg, addressFromStringValue(cJ)) | |
433 | - | else nil | |
434 | - | } | |
435 | - | else aQ((("[" + ap) + "] Rebalance error")) | |
426 | + | func cD (ap) = { | |
427 | + | let cE = cq(ap) | |
428 | + | let cF = cE._1 | |
429 | + | let cG = cE._2 | |
430 | + | let cu = cE._3 | |
431 | + | let cH = cE._4 | |
432 | + | let cI = cE._5 | |
433 | + | let cg = cE._6 | |
434 | + | let cJ = cE._7 | |
435 | + | if (cF) | |
436 | + | then cs(cG, ap, cI, cu, addressFromStringValue(cH), cg, addressFromStringValue(cJ)) | |
437 | + | else nil | |
436 | 438 | } | |
437 | 439 | ||
438 | 440 | ||
439 | 441 | func cK (ap,cL) = { | |
440 | - | let bT = cq(ap) | |
441 | - | if ($isInstanceOf(bT, "(Boolean, Int, Int, String, String, Int, String)")) | |
442 | + | let cM = cq(ap) | |
443 | + | let cF = cM._1 | |
444 | + | let cG = cM._2 | |
445 | + | let cu = cM._3 | |
446 | + | let cH = cM._4 | |
447 | + | let cI = cM._5 | |
448 | + | let cg = cM._6 | |
449 | + | let cJ = cM._7 | |
450 | + | if (cF) | |
442 | 451 | then { | |
443 | - | let cD = bT | |
444 | - | let cM = cD | |
445 | - | let cF = cM._1 | |
446 | - | let cG = cM._2 | |
447 | - | let ct = cM._3 | |
448 | - | let cH = cM._4 | |
449 | - | let cI = cM._5 | |
450 | - | let cg = cM._6 | |
451 | - | let cJ = cM._7 | |
452 | - | if (cF) | |
452 | + | let cN = max([0, ((bJ(ap) - cL) - cu)]) | |
453 | + | if ((cN == cN)) | |
453 | 454 | then { | |
454 | - | let | |
455 | - | if (( | |
455 | + | let cd = fraction(cG, cN, 100) | |
456 | + | if ((cd == cd)) | |
456 | 457 | then { | |
457 | - | let cd = fraction(cG, cN, 100) | |
458 | - | if ((cd == cd)) | |
459 | - | then { | |
460 | - | let cO = max([0, (ar(ap) - cd)]) | |
461 | - | if ((cO == cO)) | |
462 | - | then cf(ap, cO, cI, addressFromStringValue(cH), cg, addressFromStringValue(cJ)) | |
463 | - | else throw("Strict value is not equal to itself.") | |
464 | - | } | |
458 | + | let cO = max([0, (ar(ap) - cd)]) | |
459 | + | if ((cO == cO)) | |
460 | + | then cf(ap, cO, cI, addressFromStringValue(cH), cg, addressFromStringValue(cJ)) | |
465 | 461 | else throw("Strict value is not equal to itself.") | |
466 | 462 | } | |
467 | 463 | else throw("Strict value is not equal to itself.") | |
468 | 464 | } | |
469 | - | else | |
465 | + | else throw("Strict value is not equal to itself.") | |
470 | 466 | } | |
471 | - | else | |
467 | + | else nil | |
472 | 468 | } | |
473 | 469 | ||
474 | 470 | ||
475 | 471 | func cP (cQ,cR,cS,cT) = { | |
476 | 472 | let cU = D(cS, cQ) | |
477 | 473 | let cV = D(cT, cR) | |
478 | 474 | bM(cV, cU) | |
479 | 475 | } | |
480 | 476 | ||
481 | 477 | ||
482 | 478 | func cW (cS,cT,cX) = { | |
483 | 479 | let cY = ba() | |
484 | 480 | let cZ = parseIntValue(cY[t]) | |
485 | 481 | let da = parseIntValue(cY[u]) | |
486 | 482 | let db = cP(cZ, da, cS, cT) | |
487 | 483 | let bO = D(cS, cZ) | |
488 | 484 | let bN = D(cT, da) | |
489 | 485 | let dc = D(cX, b) | |
490 | 486 | let dd = bM(bO, dc) | |
491 | 487 | let de = bM(bN, dc) | |
492 | 488 | [db, dd, de] | |
493 | 489 | } | |
494 | 490 | ||
495 | 491 | ||
496 | 492 | func df (cS,cT,cX) = { | |
497 | 493 | let dg = cW(cS, cT, cX) | |
498 | 494 | [H(dg[0], b), H(dg[1], b), H(dg[2], b)] | |
499 | 495 | } | |
500 | 496 | ||
501 | 497 | ||
502 | 498 | func dh (di,dj,dk,ab) = { | |
503 | 499 | let cY = ba() | |
504 | 500 | let dl = cY[q] | |
505 | 501 | let dm = cY[r] | |
506 | 502 | let dn = cY[s] | |
507 | 503 | let cQ = parseIntValue(cY[t]) | |
508 | 504 | let cR = parseIntValue(cY[u]) | |
509 | 505 | let do = cY[p] | |
510 | 506 | let dp = valueOrErrorMessage(assetInfo(fromBase58String(dl)), (("Asset " + dl) + " doesn't exist")).quantity | |
511 | 507 | if ((dl != dj)) | |
512 | 508 | then throw("Invalid asset passed.") | |
513 | 509 | else { | |
514 | 510 | let dq = bJ(dm) | |
515 | 511 | let dr = D(dq, cQ) | |
516 | 512 | let ds = bJ(dn) | |
517 | 513 | let dt = D(ds, cR) | |
518 | 514 | let du = bM(dt, dr) | |
519 | 515 | let dv = H(du, b) | |
520 | 516 | let dw = D(dk, b) | |
521 | 517 | let dx = D(dp, b) | |
522 | 518 | let dy = fraction(dr, dw, dx) | |
523 | 519 | let dz = fraction(dt, dw, dx) | |
524 | 520 | let dA = K(dy, cQ, FLOOR) | |
525 | 521 | let dB = K(dz, cR, FLOOR) | |
526 | 522 | let dC = cK(dm, dA) | |
527 | 523 | if ((dC == dC)) | |
528 | 524 | then { | |
529 | 525 | let dD = cK(dn, dB) | |
530 | 526 | if ((dD == dD)) | |
531 | 527 | then { | |
532 | 528 | let dE = if ((di == "")) | |
533 | 529 | then nil | |
534 | 530 | else ((dC ++ dD) ++ [ScriptTransfer(ab, dA, if ((dm == "WAVES")) | |
535 | 531 | then unit | |
536 | 532 | else fromBase58String(dm)), ScriptTransfer(ab, dB, if ((dn == "WAVES")) | |
537 | 533 | then unit | |
538 | 534 | else fromBase58String(dn)), StringEntry(ad(toString(ab), di), bF(dA, dB, dk, dv, height, lastBlock.timestamp)), IntegerEntry(W(), dv), IntegerEntry(X(height, lastBlock.timestamp), dv)]) | |
539 | 535 | $Tuple10(dA, dB, dm, dn, dq, ds, dp, du, do, dE) | |
540 | 536 | } | |
541 | 537 | else throw("Strict value is not equal to itself.") | |
542 | 538 | } | |
543 | 539 | else throw("Strict value is not equal to itself.") | |
544 | 540 | } | |
545 | 541 | } | |
546 | 542 | ||
547 | 543 | ||
548 | 544 | func dF (di,dG,dH,dI,dJ,dK,ab,dL,dM) = { | |
549 | 545 | let cY = ba() | |
550 | 546 | let dl = fromBase58String(cY[q]) | |
551 | 547 | let dN = cY[r] | |
552 | 548 | let dO = cY[s] | |
553 | 549 | let dP = cY[v] | |
554 | 550 | let dQ = cY[w] | |
555 | 551 | let cZ = parseIntValue(cY[t]) | |
556 | 552 | let da = parseIntValue(cY[u]) | |
557 | 553 | let do = cY[p] | |
558 | 554 | let dp = valueOrErrorMessage(assetInfo(dl), (("Asset " + toBase58String(dl)) + " doesn't exist")).quantity | |
559 | 555 | let dR = toBase58String(valueOrElse(dI, fromBase58String("WAVES"))) | |
560 | 556 | let dS = toBase58String(valueOrElse(dK, fromBase58String("WAVES"))) | |
561 | 557 | if (if ((dN != dR)) | |
562 | 558 | then true | |
563 | 559 | else (dO != dS)) | |
564 | 560 | then throw("Invalid amt or price asset passed.") | |
565 | 561 | else { | |
566 | 562 | let dq = if (dL) | |
567 | 563 | then bJ(dN) | |
568 | 564 | else (bJ(dN) - dH) | |
569 | 565 | let ds = if (dL) | |
570 | 566 | then bJ(dO) | |
571 | 567 | else (bJ(dO) - dJ) | |
572 | 568 | let dT = D(dH, cZ) | |
573 | 569 | let dU = D(dJ, da) | |
574 | 570 | let dV = bM(dU, dT) | |
575 | 571 | let dr = D(dq, cZ) | |
576 | 572 | let dt = D(ds, da) | |
577 | 573 | let dW = if ((dp == 0)) | |
578 | 574 | then { | |
579 | 575 | let du = e | |
580 | 576 | let dX = e | |
581 | 577 | let dc = pow((dT * dU), 0, toBigInt(5), 1, 0, DOWN) | |
582 | 578 | $Tuple5(H(dc, b), H(dT, cZ), H(dU, da), bM((dt + dU), (dr + dT)), dX) | |
583 | 579 | } | |
584 | 580 | else { | |
585 | 581 | let du = bM(dt, dr) | |
586 | 582 | let dX = fraction(R((du - dV)), d, du) | |
587 | 583 | let dY = D(dG, b) | |
588 | 584 | if (if ((du != e)) | |
589 | 585 | then (dX > dY) | |
590 | 586 | else false) | |
591 | 587 | then throw(((("Price slippage " + toString(dX)) + " exceeded the passed limit of ") + toString(dY))) | |
592 | 588 | else { | |
593 | 589 | let dx = D(dp, b) | |
594 | 590 | let dZ = fraction(dT, bP(dt, dr, CEILING), d, CEILING) | |
595 | 591 | let ea = fraction(dU, d, bP(dt, dr, FLOOR), CEILING) | |
596 | 592 | let eb = if ((dZ > dU)) | |
597 | 593 | then $Tuple2(ea, dU) | |
598 | 594 | else $Tuple2(dT, dZ) | |
599 | 595 | let ec = eb._1 | |
600 | 596 | let ed = eb._2 | |
601 | 597 | let dc = fraction(dx, ed, dt, FLOOR) | |
602 | 598 | $Tuple5(K(dc, b, FLOOR), K(ec, cZ, CEILING), K(ed, da, CEILING), du, dX) | |
603 | 599 | } | |
604 | 600 | } | |
605 | 601 | let ee = dW._1 | |
606 | 602 | let ef = dW._2 | |
607 | 603 | let eg = dW._3 | |
608 | 604 | let dv = H(dW._4, b) | |
609 | 605 | let eh = H(dW._5, b) | |
610 | 606 | if ((0 >= ee)) | |
611 | 607 | then throw("Invalid calculations. LP calculated is less than zero.") | |
612 | 608 | else { | |
613 | 609 | let ei = if (!(dM)) | |
614 | 610 | then 0 | |
615 | 611 | else ee | |
616 | 612 | let ej = (dH - ef) | |
617 | 613 | let ek = (dJ - eg) | |
618 | 614 | let el = [IntegerEntry(W(), dv), IntegerEntry(X(height, lastBlock.timestamp), dv), StringEntry(aa(ab, di), bu(ef, eg, ei, dv, dG, eh, height, lastBlock.timestamp, ej, ek))] | |
619 | 615 | $Tuple13(ee, ei, dv, dq, ds, dp, dl, do, el, ej, ek, dI, dK) | |
620 | 616 | } | |
621 | 617 | } | |
622 | 618 | } | |
623 | 619 | ||
624 | 620 | ||
625 | 621 | func em (en,eo,dp) = { | |
626 | 622 | let ep = G(en, toBigInt(bp)) | |
627 | 623 | let eq = G(eo, toBigInt(bq)) | |
628 | 624 | let er = fraction(pow((ep * eq), 0, toBigInt(5), 1, 18, DOWN), g, dp) | |
629 | 625 | if ((dp == f)) | |
630 | 626 | then f | |
631 | 627 | else er | |
632 | 628 | } | |
633 | 629 | ||
634 | 630 | ||
635 | 631 | func es (et,eu,ev) = { | |
636 | 632 | let ew = (toBigInt(bJ(bf(bn))) - et) | |
637 | 633 | let ex = (toBigInt(bJ(bf(bo))) - eu) | |
638 | 634 | let ey = (toBigInt(value(assetInfo(bm)).quantity) - ev) | |
639 | 635 | let ez = em(ew, ex, ey) | |
640 | 636 | ez | |
641 | 637 | } | |
642 | 638 | ||
643 | 639 | ||
644 | 640 | func eA (eB,eC,ev) = { | |
645 | 641 | let ew = (bJ(bf(bn)) + eB) | |
646 | 642 | let ex = (bJ(bf(bo)) + eC) | |
647 | 643 | let ey = (value(assetInfo(bm)).quantity + ev) | |
648 | 644 | let er = em(toBigInt(ew), toBigInt(ex), toBigInt(ey)) | |
649 | 645 | let eD = [IntegerEntry(ak, height), StringEntry(aj, toString(er))] | |
650 | 646 | $Tuple2(eD, er) | |
651 | 647 | } | |
652 | 648 | ||
653 | 649 | ||
654 | 650 | func eE (eF,er) = if ((er >= eF)) | |
655 | 651 | then true | |
656 | 652 | else aQ(makeString(["updated KLp lower than current KLp", toString(eF), toString(er)], " ")) | |
657 | 653 | ||
658 | 654 | ||
659 | 655 | func eG (eH) = { | |
660 | 656 | let ew = bJ(bf(bn)) | |
661 | 657 | let ex = bJ(bf(bo)) | |
662 | 658 | let eI = eH.amount | |
663 | 659 | let eJ = fraction(eH.amount, eH.price, b, FLOOR) | |
664 | 660 | let eK = if ((eH.orderType == Buy)) | |
665 | 661 | then $Tuple2(eI, -(eJ)) | |
666 | 662 | else $Tuple2(-(eI), eJ) | |
667 | 663 | let eB = eK._1 | |
668 | 664 | let eC = eK._2 | |
669 | 665 | if (if (if (aY()) | |
670 | 666 | then true | |
671 | 667 | else (bl == m)) | |
672 | 668 | then true | |
673 | 669 | else (bl == n)) | |
674 | 670 | then throw("Exchange operations disabled") | |
675 | 671 | else if (if ((eH.assetPair.amountAsset != bn)) | |
676 | 672 | then true | |
677 | 673 | else (eH.assetPair.priceAsset != bo)) | |
678 | 674 | then throw("Wrong order assets.") | |
679 | 675 | else { | |
680 | 676 | let eL = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), aS("invalid kLp")) | |
681 | 677 | let eM = eA(eB, eC, 0) | |
682 | 678 | let eN = eM._1 | |
683 | 679 | let eO = eM._2 | |
684 | 680 | let eP = (eO >= eL) | |
685 | 681 | let eQ = makeString(["kLp=", toString(eL), " kLpNew=", toString(eO), " amountAssetBalance=", toString(ew), " priceAssetBalance=", toString(ex), " amountAssetBalanceDelta=", toString(eB), " priceAssetBalanceDelta=", toString(eC), " height=", toString(height)], "") | |
686 | 682 | $Tuple2(eP, eQ) | |
687 | 683 | } | |
688 | 684 | } | |
689 | 685 | ||
690 | 686 | ||
691 | 687 | func eR (eS) = if ((size(eS.payments) != 1)) | |
692 | 688 | then throw("exactly 1 payment is expected") | |
693 | 689 | else { | |
694 | 690 | let eT = value(eS.payments[0]) | |
695 | 691 | let dj = value(eT.assetId) | |
696 | 692 | let eU = eT.amount | |
697 | 693 | let dW = dh(toBase58String(eS.transactionId), toBase58String(dj), eU, eS.caller) | |
698 | 694 | let dA = dW._1 | |
699 | 695 | let dB = dW._2 | |
700 | 696 | let do = parseIntValue(dW._9) | |
701 | 697 | let dE = dW._10 | |
702 | 698 | if (if (aY()) | |
703 | 699 | then true | |
704 | 700 | else (do == n)) | |
705 | 701 | then throw(("Get operation is blocked by admin. Status = " + toString(do))) | |
706 | 702 | else $Tuple5(dA, dB, eU, dj, dE) | |
707 | 703 | } | |
708 | 704 | ||
709 | 705 | ||
710 | 706 | func eV (eS,dG,dM) = if ((size(eS.payments) != 2)) | |
711 | 707 | then throw("exactly 2 payments are expected") | |
712 | 708 | else { | |
713 | 709 | let eW = value(eS.payments[0]) | |
714 | 710 | let eX = value(eS.payments[1]) | |
715 | 711 | let eY = dF(toBase58String(eS.transactionId), dG, eW.amount, eW.assetId, eX.amount, eX.assetId, toString(eS.caller), false, dM) | |
716 | 712 | let do = parseIntValue(eY._8) | |
717 | 713 | if (if (if (aY()) | |
718 | 714 | then true | |
719 | 715 | else (do == l)) | |
720 | 716 | then true | |
721 | 717 | else (do == n)) | |
722 | 718 | then throw(("Put operation is blocked by admin. Status = " + toString(do))) | |
723 | 719 | else eY | |
724 | 720 | } | |
725 | 721 | ||
726 | 722 | ||
727 | 723 | func eZ (bW) = { | |
728 | 724 | let fa = invoke(aT, "emit", [bW], nil) | |
729 | 725 | if ((fa == fa)) | |
730 | 726 | then { | |
731 | 727 | let fb = { | |
732 | 728 | let bT = fa | |
733 | 729 | if ($isInstanceOf(bT, "Address")) | |
734 | 730 | then { | |
735 | 731 | let fc = bT | |
736 | 732 | invoke(fc, "emit", [bW], nil) | |
737 | 733 | } | |
738 | 734 | else unit | |
739 | 735 | } | |
740 | 736 | if ((fb == fb)) | |
741 | 737 | then bW | |
742 | 738 | else throw("Strict value is not equal to itself.") | |
743 | 739 | } | |
744 | 740 | else throw("Strict value is not equal to itself.") | |
745 | 741 | } | |
746 | 742 | ||
747 | 743 | ||
748 | 744 | func fd (bW,ai) = { | |
749 | 745 | let fe = if ((ai == 0)) | |
750 | 746 | then 0 | |
751 | 747 | else fraction(bW, ai, b) | |
752 | 748 | $Tuple2((bW - fe), fe) | |
753 | 749 | } | |
754 | 750 | ||
755 | 751 | ||
756 | 752 | func ff (fg,fh,ab,ac) = { | |
757 | 753 | let fi = (ac == unit) | |
758 | 754 | let fj = bJ(bf(bn)) | |
759 | 755 | let fk = bJ(bf(bo)) | |
760 | 756 | let fl = if ((fh == bn)) | |
761 | 757 | then true | |
762 | 758 | else if ((fh == bo)) | |
763 | 759 | then false | |
764 | 760 | else aQ("invalid asset") | |
765 | 761 | let fm = if (fi) | |
766 | 762 | then $Tuple2(fj, fk) | |
767 | 763 | else if (fl) | |
768 | 764 | then $Tuple2((fj - fg), fk) | |
769 | 765 | else $Tuple2(fj, (fk - fg)) | |
770 | 766 | let fn = fm._1 | |
771 | 767 | let fo = fm._2 | |
772 | 768 | let fp = if (fl) | |
773 | 769 | then $Tuple2(fg, 0) | |
774 | 770 | else $Tuple2(0, fg) | |
775 | 771 | let fq = fp._1 | |
776 | 772 | let fr = fp._2 | |
777 | 773 | let eI = fd(fq, aV)._1 | |
778 | 774 | let eJ = fd(fr, aV)._1 | |
779 | 775 | let fs = fd(fg, aV) | |
780 | 776 | let ft = fs._1 | |
781 | 777 | let fe = fs._2 | |
782 | 778 | let fu = (fn + eI) | |
783 | 779 | let fv = (fo + eJ) | |
784 | 780 | let fw = bM(D(fv, bq), D(fu, bp)) | |
785 | 781 | let fx = H(fw, b) | |
786 | 782 | let fy = if (fl) | |
787 | 783 | then fn | |
788 | 784 | else fo | |
789 | 785 | let fz = toBigInt(fy) | |
790 | 786 | let fA = toBigInt(valueOrErrorMessage(assetInfo(bm), (("asset " + toBase58String(bm)) + " doesn't exist")).quantity) | |
791 | 787 | let fB = if ((fA > f)) | |
792 | 788 | then true | |
793 | 789 | else aQ("initial deposit requires all coins") | |
794 | 790 | if ((fB == fB)) | |
795 | 791 | then { | |
796 | 792 | let fC = toBigInt(ft) | |
797 | 793 | let fD = max([0, toInt(((fA * (sqrtBigInt((d + ((fC * d) / fz)), 18, 18, DOWN) - d)) / d))]) | |
798 | 794 | let el = if (fi) | |
799 | 795 | then nil | |
800 | 796 | else [IntegerEntry(W(), fx), IntegerEntry(X(height, lastBlock.timestamp), fx), StringEntry(aa(toString(value(ab)), toBase58String(value(ac))), bu(fq, fr, fD, fx, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
801 | 797 | let fE = bM(D(fo, bq), D(fn, bp)) | |
802 | 798 | let fF = H(fE, b) | |
803 | 799 | let fG = { | |
804 | 800 | let fH = if (fl) | |
805 | 801 | then $Tuple2(fq, fn) | |
806 | 802 | else $Tuple2(fr, fo) | |
807 | 803 | let bW = fH._1 | |
808 | 804 | let fI = fH._2 | |
809 | 805 | let fJ = toInt(fraction(fA, toBigInt((bW / 2)), toBigInt(fI))) | |
810 | 806 | fraction((fD - fJ), b, fJ) | |
811 | 807 | } | |
812 | 808 | $Tuple5(fD, el, fe, fG, fl) | |
813 | 809 | } | |
814 | 810 | else throw("Strict value is not equal to itself.") | |
815 | 811 | } | |
816 | 812 | ||
817 | 813 | ||
818 | 814 | func fK (fL,ft,fh,ab,ac) = { | |
819 | 815 | let fi = (ac == unit) | |
820 | 816 | let cY = ba() | |
821 | 817 | let cZ = parseIntValue(cY[t]) | |
822 | 818 | let da = parseIntValue(cY[u]) | |
823 | 819 | let fM = [if ((fh == bm)) | |
824 | 820 | then true | |
825 | 821 | else aQ("invalid lp asset")] | |
826 | 822 | if ((fM == fM)) | |
827 | 823 | then { | |
828 | 824 | let fN = if ((fL == bn)) | |
829 | 825 | then true | |
830 | 826 | else if ((fL == bo)) | |
831 | 827 | then false | |
832 | 828 | else aQ("invalid asset") | |
833 | 829 | let fO = if (fN) | |
834 | 830 | then toBigInt(bJ(bf(bn))) | |
835 | 831 | else toBigInt(bJ(bf(bo))) | |
836 | 832 | let fP = if (fN) | |
837 | 833 | then cZ | |
838 | 834 | else da | |
839 | 835 | let fQ = bJ(bf(bn)) | |
840 | 836 | let fR = bJ(bf(bo)) | |
841 | 837 | let fS = if (fN) | |
842 | 838 | then fQ | |
843 | 839 | else fR | |
844 | 840 | let fT = toBigInt(fS) | |
845 | 841 | let fA = toBigInt(valueOrErrorMessage(assetInfo(bm), (("asset " + toBase58String(bm)) + " doesn't exist")).quantity) | |
846 | 842 | let fU = toBigInt(ft) | |
847 | 843 | let fV = max([0, toInt(((fO * (d - pow((d - ((fU * d) / fA)), 18, h, 0, 18, DOWN))) / d))]) | |
848 | 844 | let fW = fd(fV, aX) | |
849 | 845 | let fX = fW._1 | |
850 | 846 | let fe = fW._2 | |
851 | 847 | let fY = if (fN) | |
852 | 848 | then $Tuple4(fX, 0, (fQ - fV), fR) | |
853 | 849 | else $Tuple4(0, fX, fQ, (fR - fV)) | |
854 | 850 | let fZ = fY._1 | |
855 | 851 | let ga = fY._2 | |
856 | 852 | let gb = fY._3 | |
857 | 853 | let gc = fY._4 | |
858 | 854 | let fw = bM(D(gc, bq), D(gb, bp)) | |
859 | 855 | let fx = H(fw, b) | |
860 | 856 | let el = if (fi) | |
861 | 857 | then nil | |
862 | 858 | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), bF(fZ, ga, ft, fx, height, lastBlock.timestamp)), IntegerEntry(W(), fx), IntegerEntry(X(height, lastBlock.timestamp), fx)] | |
863 | 859 | let fE = bM(D(fR, bq), D(fQ, bp)) | |
864 | 860 | let fF = H(fE, b) | |
865 | 861 | let fG = { | |
866 | 862 | let gd = (toInt(fraction(fO, fU, fA)) * 2) | |
867 | 863 | fraction((fX - gd), b, gd) | |
868 | 864 | } | |
869 | 865 | $Tuple5(fX, el, fe, fG, fN) | |
870 | 866 | } | |
871 | 867 | else throw("Strict value is not equal to itself.") | |
872 | 868 | } | |
873 | 869 | ||
874 | 870 | ||
875 | 871 | func ge () = { | |
876 | 872 | let bT = getString(U()) | |
877 | 873 | if ($isInstanceOf(bT, "String")) | |
878 | 874 | then { | |
879 | 875 | let gf = bT | |
880 | 876 | fromBase58String(gf) | |
881 | 877 | } | |
882 | 878 | else if ($isInstanceOf(bT, "Unit")) | |
883 | 879 | then unit | |
884 | 880 | else throw("Match error") | |
885 | 881 | } | |
886 | 882 | ||
887 | 883 | ||
888 | 884 | func gg () = { | |
889 | 885 | let bT = getString(V()) | |
890 | 886 | if ($isInstanceOf(bT, "String")) | |
891 | 887 | then { | |
892 | 888 | let gf = bT | |
893 | 889 | fromBase58String(gf) | |
894 | 890 | } | |
895 | 891 | else if ($isInstanceOf(bT, "Unit")) | |
896 | 892 | then unit | |
897 | 893 | else throw("Match error") | |
898 | 894 | } | |
899 | 895 | ||
900 | 896 | ||
901 | 897 | func gh (eS) = { | |
902 | 898 | let bT = ge() | |
903 | 899 | if ($isInstanceOf(bT, "ByteVector")) | |
904 | 900 | then { | |
905 | 901 | let gi = bT | |
906 | 902 | (eS.callerPublicKey == gi) | |
907 | 903 | } | |
908 | 904 | else if ($isInstanceOf(bT, "Unit")) | |
909 | 905 | then (eS.caller == this) | |
910 | 906 | else throw("Match error") | |
911 | 907 | } | |
912 | 908 | ||
913 | 909 | ||
914 | 910 | func gj (eS) = { | |
915 | 911 | let gk = throw("Permission denied") | |
916 | 912 | let bT = ge() | |
917 | 913 | if ($isInstanceOf(bT, "ByteVector")) | |
918 | 914 | then { | |
919 | 915 | let gi = bT | |
920 | 916 | if ((eS.callerPublicKey == gi)) | |
921 | 917 | then true | |
922 | 918 | else gk | |
923 | 919 | } | |
924 | 920 | else if ($isInstanceOf(bT, "Unit")) | |
925 | 921 | then if ((eS.caller == this)) | |
926 | 922 | then true | |
927 | 923 | else gk | |
928 | 924 | else throw("Match error") | |
929 | 925 | } | |
930 | 926 | ||
931 | 927 | ||
932 | 928 | @Callable(eS) | |
933 | - | func rebalance () = ( | |
929 | + | func rebalance () = (cD(aM(this, ae())) ++ cD(aM(this, af()))) | |
934 | 930 | ||
935 | 931 | ||
936 | 932 | ||
937 | 933 | @Callable(eS) | |
938 | 934 | func calculateAmountOutForSwapREADONLY (gl,gm,gn) = { | |
939 | 935 | let go = if ((gm == false)) | |
940 | 936 | then { | |
941 | 937 | let gp = aM(this, af()) | |
942 | 938 | let gq = aM(this, ae()) | |
943 | 939 | $Tuple2(gp, gq) | |
944 | 940 | } | |
945 | 941 | else { | |
946 | 942 | let gp = aM(this, ae()) | |
947 | 943 | let gq = aM(this, af()) | |
948 | 944 | $Tuple2(gp, gq) | |
949 | 945 | } | |
950 | 946 | let gp = go._1 | |
951 | 947 | let gq = go._2 | |
952 | 948 | let gr = bJ(gq) | |
953 | 949 | let gs = bJ(gp) | |
954 | 950 | let gt = fraction(gs, gl, (gr + gl)) | |
955 | 951 | let gu = (toBigInt(gr) * toBigInt(gs)) | |
956 | 952 | let gv = (((toBigInt(bJ(gq)) + toBigInt(gl)) + toBigInt(gn)) * (toBigInt(bJ(gp)) - toBigInt(gt))) | |
957 | 953 | let gw = if ((gv >= gu)) | |
958 | 954 | then true | |
959 | 955 | else throw("new K is fewer error") | |
960 | 956 | if ((gw == gw)) | |
961 | 957 | then $Tuple2(nil, gt) | |
962 | 958 | else throw("Strict value is not equal to itself.") | |
963 | 959 | } | |
964 | 960 | ||
965 | 961 | ||
966 | 962 | ||
967 | 963 | @Callable(eS) | |
968 | 964 | func calculateAmountOutForSwapAndSendTokens (gl,gm,gx,gy,gn) = { | |
969 | 965 | let gz = { | |
970 | 966 | let aW = invoke(aT, "getSwapContractREADONLY", nil, nil) | |
971 | 967 | if ($isInstanceOf(aW, "String")) | |
972 | 968 | then aW | |
973 | 969 | else throw(($getType(aW) + " couldn't be cast to String")) | |
974 | 970 | } | |
975 | 971 | let fM = [if ((value(eS.payments[0]).amount >= gl)) | |
976 | 972 | then true | |
977 | 973 | else aQ("Wrong amount"), if ((eS.caller == addressFromStringValue(gz))) | |
978 | 974 | then true | |
979 | 975 | else aQ("Permission denied")] | |
980 | 976 | if ((fM == fM)) | |
981 | 977 | then { | |
982 | 978 | let eT = value(eS.payments[0]) | |
983 | 979 | let gq = bf(eT.assetId) | |
984 | 980 | let gp = if ((gm == false)) | |
985 | 981 | then aM(this, af()) | |
986 | 982 | else aM(this, ae()) | |
987 | 983 | let gr = (bJ(gq) - value(eS.payments[0]).amount) | |
988 | 984 | let gs = bJ(gp) | |
989 | 985 | let gt = fraction(gs, gl, (gr + gl)) | |
990 | 986 | let gu = (toBigInt(gr) * toBigInt(gs)) | |
991 | 987 | let gv = ((toBigInt(bJ(gq)) + toBigInt(gn)) * (toBigInt(bJ(gp)) - toBigInt(gt))) | |
992 | 988 | let gw = if ((gv >= gu)) | |
993 | 989 | then true | |
994 | 990 | else throw("new K is fewer error") | |
995 | 991 | if ((gw == gw)) | |
996 | 992 | then { | |
997 | 993 | let gA = if ((gt >= gx)) | |
998 | 994 | then true | |
999 | 995 | else throw("Exchange result is fewer coins than expected") | |
1000 | 996 | if ((gA == gA)) | |
1001 | 997 | then { | |
1002 | - | let gB = | |
998 | + | let gB = cD(gq) | |
1003 | 999 | if ((gB == gB)) | |
1004 | 1000 | then { | |
1005 | 1001 | let gC = cK(gp, gt) | |
1006 | 1002 | if ((gC == gC)) | |
1007 | 1003 | then $Tuple2(((gC ++ gB) ++ [ScriptTransfer(addressFromStringValue(gy), gt, bd(gp))]), gt) | |
1008 | 1004 | else throw("Strict value is not equal to itself.") | |
1009 | 1005 | } | |
1010 | 1006 | else throw("Strict value is not equal to itself.") | |
1011 | 1007 | } | |
1012 | 1008 | else throw("Strict value is not equal to itself.") | |
1013 | 1009 | } | |
1014 | 1010 | else throw("Strict value is not equal to itself.") | |
1015 | 1011 | } | |
1016 | 1012 | else throw("Strict value is not equal to itself.") | |
1017 | 1013 | } | |
1018 | 1014 | ||
1019 | 1015 | ||
1020 | 1016 | ||
1021 | 1017 | @Callable(eS) | |
1022 | 1018 | func setManager (gD) = { | |
1023 | 1019 | let gE = gj(eS) | |
1024 | 1020 | if ((gE == gE)) | |
1025 | 1021 | then { | |
1026 | 1022 | let gF = fromBase58String(gD) | |
1027 | 1023 | if ((gF == gF)) | |
1028 | 1024 | then [StringEntry(V(), gD)] | |
1029 | 1025 | else throw("Strict value is not equal to itself.") | |
1030 | 1026 | } | |
1031 | 1027 | else throw("Strict value is not equal to itself.") | |
1032 | 1028 | } | |
1033 | 1029 | ||
1034 | 1030 | ||
1035 | 1031 | ||
1036 | 1032 | @Callable(eS) | |
1037 | 1033 | func confirmManager () = { | |
1038 | 1034 | let gG = gg() | |
1039 | 1035 | let gH = if (isDefined(gG)) | |
1040 | 1036 | then true | |
1041 | 1037 | else throw("No pending manager") | |
1042 | 1038 | if ((gH == gH)) | |
1043 | 1039 | then { | |
1044 | 1040 | let gI = if ((eS.callerPublicKey == value(gG))) | |
1045 | 1041 | then true | |
1046 | 1042 | else throw("You are not pending manager") | |
1047 | 1043 | if ((gI == gI)) | |
1048 | 1044 | then [StringEntry(U(), toBase58String(value(gG))), DeleteEntry(V())] | |
1049 | 1045 | else throw("Strict value is not equal to itself.") | |
1050 | 1046 | } | |
1051 | 1047 | else throw("Strict value is not equal to itself.") | |
1052 | 1048 | } | |
1053 | 1049 | ||
1054 | 1050 | ||
1055 | 1051 | ||
1056 | 1052 | @Callable(eS) | |
1057 | 1053 | func put (dG,gJ) = if ((0 > dG)) | |
1058 | 1054 | then throw("Invalid slippageTolerance passed") | |
1059 | 1055 | else { | |
1060 | 1056 | let eY = eV(eS, dG, true) | |
1061 | 1057 | let ei = eY._2 | |
1062 | 1058 | let dl = eY._7 | |
1063 | 1059 | let dE = eY._9 | |
1064 | 1060 | let ej = eY._10 | |
1065 | 1061 | let ek = eY._11 | |
1066 | 1062 | let gK = eY._12 | |
1067 | 1063 | let gL = eY._13 | |
1068 | 1064 | let eW = toBigInt(value(eS.payments[0]).amount) | |
1069 | 1065 | let eX = toBigInt(value(eS.payments[1]).amount) | |
1070 | 1066 | let ez = es(eW, eX, toBigInt(0)) | |
1071 | 1067 | if ((ez == ez)) | |
1072 | 1068 | then { | |
1073 | 1069 | let fa = invoke(aT, "emit", [ei], nil) | |
1074 | 1070 | if ((fa == fa)) | |
1075 | 1071 | then { | |
1076 | 1072 | let fb = { | |
1077 | 1073 | let bT = fa | |
1078 | 1074 | if ($isInstanceOf(bT, "Address")) | |
1079 | 1075 | then { | |
1080 | 1076 | let fc = bT | |
1081 | 1077 | invoke(fc, "emit", [ei], nil) | |
1082 | 1078 | } | |
1083 | 1079 | else unit | |
1084 | 1080 | } | |
1085 | 1081 | if ((fb == fb)) | |
1086 | 1082 | then { | |
1087 | 1083 | let gM = if ((ej > 0)) | |
1088 | 1084 | then invoke(bt, "put", nil, [AttachedPayment(gK, ej)]) | |
1089 | 1085 | else nil | |
1090 | 1086 | if ((gM == gM)) | |
1091 | 1087 | then { | |
1092 | 1088 | let gN = if ((ek > 0)) | |
1093 | 1089 | then invoke(bt, "put", nil, [AttachedPayment(gL, ek)]) | |
1094 | 1090 | else nil | |
1095 | 1091 | if ((gN == gN)) | |
1096 | 1092 | then { | |
1097 | 1093 | let gO = if (gJ) | |
1098 | 1094 | then { | |
1099 | 1095 | let gP = invoke(bs, "stake", nil, [AttachedPayment(dl, ei)]) | |
1100 | 1096 | if ((gP == gP)) | |
1101 | 1097 | then nil | |
1102 | 1098 | else throw("Strict value is not equal to itself.") | |
1103 | 1099 | } | |
1104 | 1100 | else [ScriptTransfer(eS.caller, ei, dl)] | |
1105 | 1101 | let gQ = eA(0, 0, 0) | |
1106 | 1102 | if ((gQ == gQ)) | |
1107 | 1103 | then { | |
1108 | 1104 | let er = gQ._2 | |
1109 | 1105 | let gR = gQ._1 | |
1110 | 1106 | let gS = eE(ez, er) | |
1111 | 1107 | if ((gS == gS)) | |
1112 | 1108 | then { | |
1113 | 1109 | let gT = invoke(this, "rebalance", nil, nil) | |
1114 | 1110 | if ((gT == gT)) | |
1115 | 1111 | then ((dE ++ gO) ++ gR) | |
1116 | 1112 | else throw("Strict value is not equal to itself.") | |
1117 | 1113 | } | |
1118 | 1114 | else throw("Strict value is not equal to itself.") | |
1119 | 1115 | } | |
1120 | 1116 | else throw("Strict value is not equal to itself.") | |
1121 | 1117 | } | |
1122 | 1118 | else throw("Strict value is not equal to itself.") | |
1123 | 1119 | } | |
1124 | 1120 | else throw("Strict value is not equal to itself.") | |
1125 | 1121 | } | |
1126 | 1122 | else throw("Strict value is not equal to itself.") | |
1127 | 1123 | } | |
1128 | 1124 | else throw("Strict value is not equal to itself.") | |
1129 | 1125 | } | |
1130 | 1126 | else throw("Strict value is not equal to itself.") | |
1131 | 1127 | } | |
1132 | 1128 | ||
1133 | 1129 | ||
1134 | 1130 | ||
1135 | 1131 | @Callable(eS) | |
1136 | 1132 | func putForFree (gU) = if ((0 > gU)) | |
1137 | 1133 | then throw("Invalid value passed") | |
1138 | 1134 | else { | |
1139 | 1135 | let eY = eV(eS, gU, false) | |
1140 | 1136 | let dE = eY._9 | |
1141 | 1137 | let eW = toBigInt(value(eS.payments[0]).amount) | |
1142 | 1138 | let eX = toBigInt(value(eS.payments[1]).amount) | |
1143 | 1139 | let ez = es(eW, eX, toBigInt(0)) | |
1144 | 1140 | if ((ez == ez)) | |
1145 | 1141 | then { | |
1146 | 1142 | let gV = eA(0, 0, 0) | |
1147 | 1143 | let gR = gV._1 | |
1148 | 1144 | let er = gV._2 | |
1149 | 1145 | let gS = eE(ez, er) | |
1150 | 1146 | if ((gS == gS)) | |
1151 | 1147 | then (dE ++ gR) | |
1152 | 1148 | else throw("Strict value is not equal to itself.") | |
1153 | 1149 | } | |
1154 | 1150 | else throw("Strict value is not equal to itself.") | |
1155 | 1151 | } | |
1156 | 1152 | ||
1157 | 1153 | ||
1158 | 1154 | ||
1159 | 1155 | @Callable(eS) | |
1160 | 1156 | func putOneTkn (gW,gX) = { | |
1161 | 1157 | let gY = { | |
1162 | 1158 | let aW = invoke(aT, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1163 | 1159 | if ($isInstanceOf(aW, "Boolean")) | |
1164 | 1160 | then aW | |
1165 | 1161 | else throw(($getType(aW) + " couldn't be cast to Boolean")) | |
1166 | 1162 | } | |
1167 | 1163 | let gZ = if (if (if (aY()) | |
1168 | 1164 | then true | |
1169 | 1165 | else (bl == l)) | |
1170 | 1166 | then true | |
1171 | 1167 | else (bl == n)) | |
1172 | 1168 | then true | |
1173 | 1169 | else gY | |
1174 | 1170 | let fM = [if (if (!(gZ)) | |
1175 | 1171 | then true | |
1176 | 1172 | else gh(eS)) | |
1177 | 1173 | then true | |
1178 | 1174 | else aQ("put operation is blocked by admin"), if ((size(eS.payments) == 1)) | |
1179 | 1175 | then true | |
1180 | 1176 | else aQ("exactly 1 payment are expected")] | |
1181 | 1177 | if ((fM == fM)) | |
1182 | 1178 | then { | |
1183 | 1179 | let ha = eS.payments[0] | |
1184 | 1180 | let fh = ha.assetId | |
1185 | 1181 | let fg = ha.amount | |
1186 | 1182 | let ez = if ((fh == bn)) | |
1187 | 1183 | then es(toBigInt(fg), toBigInt(0), toBigInt(0)) | |
1188 | 1184 | else if ((fh == bo)) | |
1189 | 1185 | then es(toBigInt(0), toBigInt(fg), toBigInt(0)) | |
1190 | 1186 | else aQ("payment asset is not supported") | |
1191 | 1187 | if ((ez == ez)) | |
1192 | 1188 | then { | |
1193 | 1189 | let ab = eS.caller | |
1194 | 1190 | let ac = eS.transactionId | |
1195 | 1191 | let hb = ff(fg, fh, ab, ac) | |
1196 | 1192 | if ((hb == hb)) | |
1197 | 1193 | then { | |
1198 | 1194 | let fl = hb._5 | |
1199 | 1195 | let hc = hb._4 | |
1200 | 1196 | let fe = hb._3 | |
1201 | 1197 | let el = hb._2 | |
1202 | 1198 | let hd = hb._1 | |
1203 | 1199 | let he = if (if ((gW > 0)) | |
1204 | 1200 | then (gW > hd) | |
1205 | 1201 | else false) | |
1206 | 1202 | then aQ(makeString(["amount to receive is less than ", toString(gW)], "")) | |
1207 | 1203 | else hd | |
1208 | 1204 | let fa = eZ(he) | |
1209 | 1205 | if ((fa == fa)) | |
1210 | 1206 | then { | |
1211 | 1207 | let gO = if (gX) | |
1212 | 1208 | then { | |
1213 | 1209 | let hf = invoke(bs, "stake", nil, [AttachedPayment(bm, he)]) | |
1214 | 1210 | if ((hf == hf)) | |
1215 | 1211 | then nil | |
1216 | 1212 | else throw("Strict value is not equal to itself.") | |
1217 | 1213 | } | |
1218 | 1214 | else [ScriptTransfer(eS.caller, he, bm)] | |
1219 | 1215 | let hg = if ((fe > 0)) | |
1220 | 1216 | then [ScriptTransfer(aU, fe, fh)] | |
1221 | 1217 | else nil | |
1222 | 1218 | let hh = if ((this == aU)) | |
1223 | 1219 | then $Tuple2(0, 0) | |
1224 | 1220 | else if (fl) | |
1225 | 1221 | then $Tuple2(-(fe), 0) | |
1226 | 1222 | else $Tuple2(0, -(fe)) | |
1227 | 1223 | let eB = hh._1 | |
1228 | 1224 | let eC = hh._2 | |
1229 | 1225 | let hi = eA(eB, eC, 0) | |
1230 | 1226 | let gR = hi._1 | |
1231 | 1227 | let er = hi._2 | |
1232 | 1228 | let eL = value(getString(aj)) | |
1233 | 1229 | let gS = eE(ez, er) | |
1234 | 1230 | if ((gS == gS)) | |
1235 | 1231 | then { | |
1236 | 1232 | let gT = invoke(this, "rebalance", nil, nil) | |
1237 | 1233 | if ((gT == gT)) | |
1238 | 1234 | then $Tuple2((((el ++ gO) ++ hg) ++ gR), he) | |
1239 | 1235 | else throw("Strict value is not equal to itself.") | |
1240 | 1236 | } | |
1241 | 1237 | else throw("Strict value is not equal to itself.") | |
1242 | 1238 | } | |
1243 | 1239 | else throw("Strict value is not equal to itself.") | |
1244 | 1240 | } | |
1245 | 1241 | else throw("Strict value is not equal to itself.") | |
1246 | 1242 | } | |
1247 | 1243 | else throw("Strict value is not equal to itself.") | |
1248 | 1244 | } | |
1249 | 1245 | else throw("Strict value is not equal to itself.") | |
1250 | 1246 | } | |
1251 | 1247 | ||
1252 | 1248 | ||
1253 | 1249 | ||
1254 | 1250 | @Callable(eS) | |
1255 | 1251 | func putOneTknREADONLY (fh,fg) = { | |
1256 | 1252 | let hj = ff(fg, bd(fh), unit, unit) | |
1257 | 1253 | let hd = hj._1 | |
1258 | 1254 | let el = hj._2 | |
1259 | 1255 | let fe = hj._3 | |
1260 | 1256 | let hc = hj._4 | |
1261 | 1257 | let fl = hj._5 | |
1262 | 1258 | $Tuple2(nil, $Tuple3(hd, fe, hc)) | |
1263 | 1259 | } | |
1264 | 1260 | ||
1265 | 1261 | ||
1266 | 1262 | ||
1267 | 1263 | @Callable(eS) | |
1268 | 1264 | func getOneTkn (hk,gW) = { | |
1269 | 1265 | let gY = { | |
1270 | 1266 | let aW = invoke(aT, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1271 | 1267 | if ($isInstanceOf(aW, "Boolean")) | |
1272 | 1268 | then aW | |
1273 | 1269 | else throw(($getType(aW) + " couldn't be cast to Boolean")) | |
1274 | 1270 | } | |
1275 | 1271 | let hl = if (if (aY()) | |
1276 | 1272 | then true | |
1277 | 1273 | else (bl == n)) | |
1278 | 1274 | then true | |
1279 | 1275 | else gY | |
1280 | 1276 | let fM = [if (if (!(hl)) | |
1281 | 1277 | then true | |
1282 | 1278 | else gh(eS)) | |
1283 | 1279 | then true | |
1284 | 1280 | else aQ("get operation is blocked by admin"), if ((size(eS.payments) == 1)) | |
1285 | 1281 | then true | |
1286 | 1282 | else aQ("exactly 1 payment are expected")] | |
1287 | 1283 | if ((fM == fM)) | |
1288 | 1284 | then { | |
1289 | 1285 | let fL = bd(hk) | |
1290 | 1286 | let ha = eS.payments[0] | |
1291 | 1287 | let fh = ha.assetId | |
1292 | 1288 | let ft = ha.amount | |
1293 | 1289 | let ez = es(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1294 | 1290 | if ((ez == ez)) | |
1295 | 1291 | then { | |
1296 | 1292 | let ab = eS.caller | |
1297 | 1293 | let ac = eS.transactionId | |
1298 | 1294 | let hm = fK(fL, ft, fh, ab, ac) | |
1299 | 1295 | if ((hm == hm)) | |
1300 | 1296 | then { | |
1301 | 1297 | let fN = hm._5 | |
1302 | 1298 | let hc = hm._4 | |
1303 | 1299 | let fe = hm._3 | |
1304 | 1300 | let el = hm._2 | |
1305 | 1301 | let hn = hm._1 | |
1306 | 1302 | let bW = if (if ((gW > 0)) | |
1307 | 1303 | then (gW > hn) | |
1308 | 1304 | else false) | |
1309 | 1305 | then aQ(makeString(["amount to receive is less than ", toString(gW)], "")) | |
1310 | 1306 | else hn | |
1311 | 1307 | let ho = invoke(aT, "burn", [ft], [AttachedPayment(fh, ft)]) | |
1312 | 1308 | if ((ho == ho)) | |
1313 | 1309 | then { | |
1314 | 1310 | let gC = cK(hk, bW) | |
1315 | 1311 | if ((gC == gC)) | |
1316 | 1312 | then { | |
1317 | 1313 | let hp = [ScriptTransfer(ab, bW, fL)] | |
1318 | 1314 | let hg = if ((fe > 0)) | |
1319 | 1315 | then [ScriptTransfer(aU, fe, fL)] | |
1320 | 1316 | else nil | |
1321 | 1317 | let hq = { | |
1322 | 1318 | let hr = if ((this == aU)) | |
1323 | 1319 | then 0 | |
1324 | 1320 | else fe | |
1325 | 1321 | if (fN) | |
1326 | 1322 | then $Tuple2(-((bW + hr)), 0) | |
1327 | 1323 | else $Tuple2(0, -((bW + hr))) | |
1328 | 1324 | } | |
1329 | 1325 | let eB = hq._1 | |
1330 | 1326 | let eC = hq._2 | |
1331 | 1327 | let hs = eA(eB, eC, 0) | |
1332 | 1328 | let gR = hs._1 | |
1333 | 1329 | let er = hs._2 | |
1334 | 1330 | let gS = eE(ez, er) | |
1335 | 1331 | if ((gS == gS)) | |
1336 | 1332 | then $Tuple2(((((el ++ gC) ++ hp) ++ hg) ++ gR), bW) | |
1337 | 1333 | else throw("Strict value is not equal to itself.") | |
1338 | 1334 | } | |
1339 | 1335 | else throw("Strict value is not equal to itself.") | |
1340 | 1336 | } | |
1341 | 1337 | else throw("Strict value is not equal to itself.") | |
1342 | 1338 | } | |
1343 | 1339 | else throw("Strict value is not equal to itself.") | |
1344 | 1340 | } | |
1345 | 1341 | else throw("Strict value is not equal to itself.") | |
1346 | 1342 | } | |
1347 | 1343 | else throw("Strict value is not equal to itself.") | |
1348 | 1344 | } | |
1349 | 1345 | ||
1350 | 1346 | ||
1351 | 1347 | ||
1352 | 1348 | @Callable(eS) | |
1353 | 1349 | func getOneTknREADONLY (fL,ft) = { | |
1354 | 1350 | let ht = fK(bd(fL), ft, bm, unit, unit) | |
1355 | 1351 | let hn = ht._1 | |
1356 | 1352 | let el = ht._2 | |
1357 | 1353 | let fe = ht._3 | |
1358 | 1354 | let hc = ht._4 | |
1359 | 1355 | let fN = ht._5 | |
1360 | 1356 | $Tuple2(nil, $Tuple3(hn, fe, hc)) | |
1361 | 1357 | } | |
1362 | 1358 | ||
1363 | 1359 | ||
1364 | 1360 | ||
1365 | 1361 | @Callable(eS) | |
1366 | 1362 | func unstakeAndGetOneTkn (hu,hk,gW) = { | |
1367 | 1363 | let gY = { | |
1368 | 1364 | let aW = invoke(aT, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1369 | 1365 | if ($isInstanceOf(aW, "Boolean")) | |
1370 | 1366 | then aW | |
1371 | 1367 | else throw(($getType(aW) + " couldn't be cast to Boolean")) | |
1372 | 1368 | } | |
1373 | 1369 | let hl = if (if (aY()) | |
1374 | 1370 | then true | |
1375 | 1371 | else (bl == n)) | |
1376 | 1372 | then true | |
1377 | 1373 | else gY | |
1378 | 1374 | let fM = [if (if (!(hl)) | |
1379 | 1375 | then true | |
1380 | 1376 | else gh(eS)) | |
1381 | 1377 | then true | |
1382 | 1378 | else aQ("get operation is blocked by admin"), if ((size(eS.payments) == 0)) | |
1383 | 1379 | then true | |
1384 | 1380 | else aQ("no payments are expected")] | |
1385 | 1381 | if ((fM == fM)) | |
1386 | 1382 | then { | |
1387 | 1383 | let fL = bd(hk) | |
1388 | 1384 | let ab = eS.caller | |
1389 | 1385 | let ac = eS.transactionId | |
1390 | 1386 | let ez = es(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1391 | 1387 | if ((ez == ez)) | |
1392 | 1388 | then { | |
1393 | 1389 | let hv = invoke(bs, "unstake", [toBase58String(bm), hu], nil) | |
1394 | 1390 | if ((hv == hv)) | |
1395 | 1391 | then { | |
1396 | 1392 | let hw = fK(fL, hu, bm, ab, ac) | |
1397 | 1393 | if ((hw == hw)) | |
1398 | 1394 | then { | |
1399 | 1395 | let fN = hw._5 | |
1400 | 1396 | let hc = hw._4 | |
1401 | 1397 | let fe = hw._3 | |
1402 | 1398 | let el = hw._2 | |
1403 | 1399 | let hn = hw._1 | |
1404 | 1400 | let bW = if (if ((gW > 0)) | |
1405 | 1401 | then (gW > hn) | |
1406 | 1402 | else false) | |
1407 | 1403 | then aQ(makeString(["amount to receive is less than ", toString(gW)], "")) | |
1408 | 1404 | else hn | |
1409 | 1405 | let ho = invoke(aT, "burn", [hu], [AttachedPayment(bm, hu)]) | |
1410 | 1406 | if ((ho == ho)) | |
1411 | 1407 | then { | |
1412 | 1408 | let gC = cK(hk, bW) | |
1413 | 1409 | if ((gC == gC)) | |
1414 | 1410 | then { | |
1415 | 1411 | let hp = [ScriptTransfer(eS.caller, bW, fL)] | |
1416 | 1412 | let hg = if ((fe > 0)) | |
1417 | 1413 | then [ScriptTransfer(aU, fe, fL)] | |
1418 | 1414 | else nil | |
1419 | 1415 | let hx = { | |
1420 | 1416 | let hr = if ((this == aU)) | |
1421 | 1417 | then 0 | |
1422 | 1418 | else fe | |
1423 | 1419 | if (fN) | |
1424 | 1420 | then $Tuple2(-((bW + hr)), 0) | |
1425 | 1421 | else $Tuple2(0, -((bW + hr))) | |
1426 | 1422 | } | |
1427 | 1423 | let eB = hx._1 | |
1428 | 1424 | let eC = hx._2 | |
1429 | 1425 | let hy = eA(eB, eC, 0) | |
1430 | 1426 | let gR = hy._1 | |
1431 | 1427 | let er = hy._2 | |
1432 | 1428 | let gS = eE(ez, er) | |
1433 | 1429 | if ((gS == gS)) | |
1434 | 1430 | then $Tuple2(((((el ++ gC) ++ hp) ++ hg) ++ gR), bW) | |
1435 | 1431 | else throw("Strict value is not equal to itself.") | |
1436 | 1432 | } | |
1437 | 1433 | else throw("Strict value is not equal to itself.") | |
1438 | 1434 | } | |
1439 | 1435 | else throw("Strict value is not equal to itself.") | |
1440 | 1436 | } | |
1441 | 1437 | else throw("Strict value is not equal to itself.") | |
1442 | 1438 | } | |
1443 | 1439 | else throw("Strict value is not equal to itself.") | |
1444 | 1440 | } | |
1445 | 1441 | else throw("Strict value is not equal to itself.") | |
1446 | 1442 | } | |
1447 | 1443 | else throw("Strict value is not equal to itself.") | |
1448 | 1444 | } | |
1449 | 1445 | ||
1450 | 1446 | ||
1451 | 1447 | ||
1452 | 1448 | @Callable(eS) | |
1453 | 1449 | func get () = { | |
1454 | 1450 | let dW = eR(eS) | |
1455 | 1451 | let hz = dW._1 | |
1456 | 1452 | let dB = dW._2 | |
1457 | 1453 | let eU = dW._3 | |
1458 | 1454 | let dj = dW._4 | |
1459 | 1455 | let dE = dW._5 | |
1460 | 1456 | let ez = es(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1461 | 1457 | if ((ez == ez)) | |
1462 | 1458 | then { | |
1463 | 1459 | let hA = invoke(aT, "burn", [eU], [AttachedPayment(dj, eU)]) | |
1464 | 1460 | if ((hA == hA)) | |
1465 | 1461 | then { | |
1466 | 1462 | let hB = eA(-(hz), -(dB), 0) | |
1467 | 1463 | let gR = hB._1 | |
1468 | 1464 | let er = hB._2 | |
1469 | 1465 | let gS = eE(ez, er) | |
1470 | 1466 | if ((gS == gS)) | |
1471 | 1467 | then (dE ++ gR) | |
1472 | 1468 | else throw("Strict value is not equal to itself.") | |
1473 | 1469 | } | |
1474 | 1470 | else throw("Strict value is not equal to itself.") | |
1475 | 1471 | } | |
1476 | 1472 | else throw("Strict value is not equal to itself.") | |
1477 | 1473 | } | |
1478 | 1474 | ||
1479 | 1475 | ||
1480 | 1476 | ||
1481 | 1477 | @Callable(eS) | |
1482 | 1478 | func getNoLess (hC,hD) = { | |
1483 | 1479 | let dW = eR(eS) | |
1484 | 1480 | let dA = dW._1 | |
1485 | 1481 | let dB = dW._2 | |
1486 | 1482 | let eU = dW._3 | |
1487 | 1483 | let dj = dW._4 | |
1488 | 1484 | let dE = dW._5 | |
1489 | 1485 | if ((hC > dA)) | |
1490 | 1486 | then throw(((("noLessThenAmtAsset failed: " + toString(dA)) + " < ") + toString(hC))) | |
1491 | 1487 | else if ((hD > dB)) | |
1492 | 1488 | then throw(((("noLessThenPriceAsset failed: " + toString(dB)) + " < ") + toString(hD))) | |
1493 | 1489 | else { | |
1494 | 1490 | let ez = es(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1495 | 1491 | if ((ez == ez)) | |
1496 | 1492 | then { | |
1497 | 1493 | let hA = invoke(aT, "burn", [eU], [AttachedPayment(dj, eU)]) | |
1498 | 1494 | if ((hA == hA)) | |
1499 | 1495 | then { | |
1500 | 1496 | let hE = eA(-(dA), -(dB), 0) | |
1501 | 1497 | let gR = hE._1 | |
1502 | 1498 | let er = hE._2 | |
1503 | 1499 | let gS = eE(ez, er) | |
1504 | 1500 | if ((gS == gS)) | |
1505 | 1501 | then (dE ++ gR) | |
1506 | 1502 | else throw("Strict value is not equal to itself.") | |
1507 | 1503 | } | |
1508 | 1504 | else throw("Strict value is not equal to itself.") | |
1509 | 1505 | } | |
1510 | 1506 | else throw("Strict value is not equal to itself.") | |
1511 | 1507 | } | |
1512 | 1508 | } | |
1513 | 1509 | ||
1514 | 1510 | ||
1515 | 1511 | ||
1516 | 1512 | @Callable(eS) | |
1517 | 1513 | func unstakeAndGet (bW) = { | |
1518 | 1514 | let hF = if ((size(eS.payments) != 0)) | |
1519 | 1515 | then throw("No payments are expected") | |
1520 | 1516 | else true | |
1521 | 1517 | if ((hF == hF)) | |
1522 | 1518 | then { | |
1523 | 1519 | let cY = ba() | |
1524 | 1520 | let dl = fromBase58String(cY[q]) | |
1525 | 1521 | let ez = es(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1526 | 1522 | if ((ez == ez)) | |
1527 | 1523 | then { | |
1528 | 1524 | let hv = invoke(bs, "unstake", [toBase58String(dl), bW], nil) | |
1529 | 1525 | if ((hv == hv)) | |
1530 | 1526 | then { | |
1531 | 1527 | let dW = dh(toBase58String(eS.transactionId), toBase58String(dl), bW, eS.caller) | |
1532 | 1528 | let dA = dW._1 | |
1533 | 1529 | let dB = dW._2 | |
1534 | 1530 | let do = parseIntValue(dW._9) | |
1535 | 1531 | let dE = dW._10 | |
1536 | 1532 | let hG = if (if (aY()) | |
1537 | 1533 | then true | |
1538 | 1534 | else (do == n)) | |
1539 | 1535 | then throw(("Get operation is blocked by admin. Status = " + toString(do))) | |
1540 | 1536 | else true | |
1541 | 1537 | if ((hG == hG)) | |
1542 | 1538 | then { | |
1543 | 1539 | let hA = invoke(aT, "burn", [bW], [AttachedPayment(dl, bW)]) | |
1544 | 1540 | if ((hA == hA)) | |
1545 | 1541 | then { | |
1546 | 1542 | let hH = eA(-(dA), -(dB), 0) | |
1547 | 1543 | let gR = hH._1 | |
1548 | 1544 | let er = hH._2 | |
1549 | 1545 | let gS = eE(ez, er) | |
1550 | 1546 | if ((gS == gS)) | |
1551 | 1547 | then (dE ++ gR) | |
1552 | 1548 | else throw("Strict value is not equal to itself.") | |
1553 | 1549 | } | |
1554 | 1550 | else throw("Strict value is not equal to itself.") | |
1555 | 1551 | } | |
1556 | 1552 | else throw("Strict value is not equal to itself.") | |
1557 | 1553 | } | |
1558 | 1554 | else throw("Strict value is not equal to itself.") | |
1559 | 1555 | } | |
1560 | 1556 | else throw("Strict value is not equal to itself.") | |
1561 | 1557 | } | |
1562 | 1558 | else throw("Strict value is not equal to itself.") | |
1563 | 1559 | } | |
1564 | 1560 | ||
1565 | 1561 | ||
1566 | 1562 | ||
1567 | 1563 | @Callable(eS) | |
1568 | 1564 | func unstakeAndGetNoLess (hu,hI,hD) = { | |
1569 | 1565 | let hl = if (aY()) | |
1570 | 1566 | then true | |
1571 | 1567 | else (bl == n) | |
1572 | 1568 | let fM = [if (!(hl)) | |
1573 | 1569 | then true | |
1574 | 1570 | else throw("get operation is blocked by admin"), if ((size(eS.payments) == 0)) | |
1575 | 1571 | then true | |
1576 | 1572 | else throw("no payments are expected")] | |
1577 | 1573 | if ((fM == fM)) | |
1578 | 1574 | then { | |
1579 | 1575 | let ez = es(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1580 | 1576 | if ((ez == ez)) | |
1581 | 1577 | then { | |
1582 | 1578 | let hv = invoke(bs, "unstake", [toBase58String(bm), hu], nil) | |
1583 | 1579 | if ((hv == hv)) | |
1584 | 1580 | then { | |
1585 | 1581 | let dW = dh(toBase58String(eS.transactionId), toBase58String(bm), hu, eS.caller) | |
1586 | 1582 | let dA = dW._1 | |
1587 | 1583 | let dB = dW._2 | |
1588 | 1584 | let dE = dW._10 | |
1589 | 1585 | let hJ = [if ((dA >= hI)) | |
1590 | 1586 | then true | |
1591 | 1587 | else throw(makeString(["amount asset amount to receive is less than ", toString(hI)], "")), if ((dB >= hD)) | |
1592 | 1588 | then true | |
1593 | 1589 | else throw(makeString(["price asset amount to receive is less than ", toString(hD)], ""))] | |
1594 | 1590 | if ((hJ == hJ)) | |
1595 | 1591 | then { | |
1596 | 1592 | let hA = invoke(aT, "burn", [hu], [AttachedPayment(bm, hu)]) | |
1597 | 1593 | if ((hA == hA)) | |
1598 | 1594 | then { | |
1599 | 1595 | let hK = eA(-(dA), -(dB), 0) | |
1600 | 1596 | let gR = hK._1 | |
1601 | 1597 | let er = hK._2 | |
1602 | 1598 | let gS = eE(ez, er) | |
1603 | 1599 | if ((gS == gS)) | |
1604 | 1600 | then (dE ++ gR) | |
1605 | 1601 | else throw("Strict value is not equal to itself.") | |
1606 | 1602 | } | |
1607 | 1603 | else throw("Strict value is not equal to itself.") | |
1608 | 1604 | } | |
1609 | 1605 | else throw("Strict value is not equal to itself.") | |
1610 | 1606 | } | |
1611 | 1607 | else throw("Strict value is not equal to itself.") | |
1612 | 1608 | } | |
1613 | 1609 | else throw("Strict value is not equal to itself.") | |
1614 | 1610 | } | |
1615 | 1611 | else throw("Strict value is not equal to itself.") | |
1616 | 1612 | } | |
1617 | 1613 | ||
1618 | 1614 | ||
1619 | 1615 | ||
1620 | 1616 | @Callable(eS) | |
1621 | 1617 | func activate (hL,hM) = if ((toString(eS.caller) != toString(aT))) | |
1622 | 1618 | then throw("permissions denied") | |
1623 | 1619 | else $Tuple2([StringEntry(ae(), hL), StringEntry(af(), hM)], "success") | |
1624 | 1620 | ||
1625 | 1621 | ||
1626 | 1622 | ||
1627 | 1623 | @Callable(eS) | |
1628 | 1624 | func refreshKLp () = { | |
1629 | 1625 | let hN = valueOrElse(getInteger(ak), 0) | |
1630 | 1626 | let hO = if (((height - hN) >= an)) | |
1631 | 1627 | then unit | |
1632 | 1628 | else aQ(makeString([toString(an), " blocks have not passed since the previous call"], "")) | |
1633 | 1629 | if ((hO == hO)) | |
1634 | 1630 | then { | |
1635 | 1631 | let eL = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), aS("invalid kLp")) | |
1636 | 1632 | let hP = eA(0, 0, 0) | |
1637 | 1633 | let hQ = hP._1 | |
1638 | 1634 | let er = hP._2 | |
1639 | 1635 | let eD = if ((eL != er)) | |
1640 | 1636 | then hQ | |
1641 | 1637 | else aQ("nothing to refresh") | |
1642 | 1638 | $Tuple2(eD, toString(er)) | |
1643 | 1639 | } | |
1644 | 1640 | else throw("Strict value is not equal to itself.") | |
1645 | 1641 | } | |
1646 | 1642 | ||
1647 | 1643 | ||
1648 | 1644 | ||
1649 | 1645 | @Callable(eS) | |
1650 | 1646 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, ba()) | |
1651 | 1647 | ||
1652 | 1648 | ||
1653 | 1649 | ||
1654 | 1650 | @Callable(eS) | |
1655 | 1651 | func getAccBalanceWrapperREADONLY (ap) = $Tuple2(nil, bJ(ap)) | |
1656 | 1652 | ||
1657 | 1653 | ||
1658 | 1654 | ||
1659 | 1655 | @Callable(eS) | |
1660 | 1656 | func calcPricesWrapperREADONLY (cS,cT,cX) = { | |
1661 | 1657 | let dg = cW(cS, cT, cX) | |
1662 | 1658 | $Tuple2(nil, [toString(dg[0]), toString(dg[1]), toString(dg[2])]) | |
1663 | 1659 | } | |
1664 | 1660 | ||
1665 | 1661 | ||
1666 | 1662 | ||
1667 | 1663 | @Callable(eS) | |
1668 | 1664 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1669 | 1665 | ||
1670 | 1666 | ||
1671 | 1667 | ||
1672 | 1668 | @Callable(eS) | |
1673 | 1669 | func fromX18WrapperREADONLY (I,J) = $Tuple2(nil, H(parseBigIntValue(I), J)) | |
1674 | 1670 | ||
1675 | 1671 | ||
1676 | 1672 | ||
1677 | 1673 | @Callable(eS) | |
1678 | 1674 | func calcPriceBigIntWrapperREADONLY (bN,bO) = $Tuple2(nil, toString(bM(parseBigIntValue(bN), parseBigIntValue(bO)))) | |
1679 | 1675 | ||
1680 | 1676 | ||
1681 | 1677 | ||
1682 | 1678 | @Callable(eS) | |
1683 | 1679 | func estimatePutOperationWrapperREADONLY (di,dG,dH,dI,dJ,dK,ab,dL,dM) = $Tuple2(nil, dF(di, dG, dH, dI, dJ, dK, ab, dL, dM)) | |
1684 | 1680 | ||
1685 | 1681 | ||
1686 | 1682 | ||
1687 | 1683 | @Callable(eS) | |
1688 | 1684 | func estimateGetOperationWrapperREADONLY (di,dj,dk,ab) = { | |
1689 | 1685 | let dW = dh(di, dj, dk, addressFromStringValue(ab)) | |
1690 | 1686 | $Tuple2(nil, $Tuple10(dW._1, dW._2, dW._3, dW._4, dW._5, dW._6, dW._7, toString(dW._8), dW._9, dW._10)) | |
1691 | 1687 | } | |
1692 | 1688 | ||
1693 | 1689 | ||
1694 | 1690 | ||
1695 | 1691 | @Callable(eS) | |
1696 | 1692 | func statsREADONLY () = { | |
1697 | 1693 | let cY = ba() | |
1698 | 1694 | let dl = fromBase58String(cY[q]) | |
1699 | 1695 | let hR = cY[r] | |
1700 | 1696 | let hS = cY[s] | |
1701 | 1697 | let dP = cY[v] | |
1702 | 1698 | let dQ = cY[w] | |
1703 | 1699 | let cZ = parseIntValue(cY[t]) | |
1704 | 1700 | let da = parseIntValue(cY[u]) | |
1705 | 1701 | let hT = valueOrErrorMessage(assetInfo(dl), (("Asset " + toBase58String(dl)) + " doesn't exist")).quantity | |
1706 | 1702 | let hU = bJ(hR) | |
1707 | 1703 | let hV = bJ(hS) | |
1708 | 1704 | let hW = if ((hT == 0)) | |
1709 | 1705 | then [e, e, e] | |
1710 | 1706 | else cW(hU, hV, hT) | |
1711 | 1707 | let dv = 0 | |
1712 | 1708 | let hX = H(hW[1], b) | |
1713 | 1709 | let hY = H(hW[2], b) | |
1714 | 1710 | let hZ = value(getInteger(aT, aD(toString(this)))) | |
1715 | 1711 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(hU), toString(hV), toString(hT), toString(dv), toString(hX), toString(hY), toString(hZ)], j)) | |
1716 | 1712 | } | |
1717 | 1713 | ||
1718 | 1714 | ||
1719 | 1715 | ||
1720 | 1716 | @Callable(eS) | |
1721 | 1717 | func evaluatePutByAmountAssetREADONLY (dH) = { | |
1722 | 1718 | let cY = ba() | |
1723 | 1719 | let dl = fromBase58String(cY[q]) | |
1724 | 1720 | let dN = cY[r] | |
1725 | 1721 | let dm = fromBase58String(dN) | |
1726 | 1722 | let dO = cY[s] | |
1727 | 1723 | let dn = fromBase58String(dO) | |
1728 | 1724 | let cZ = parseIntValue(cY[t]) | |
1729 | 1725 | let da = parseIntValue(cY[u]) | |
1730 | 1726 | let do = cY[p] | |
1731 | 1727 | let hT = valueOrErrorMessage(assetInfo(dl), (("Asset " + toBase58String(dl)) + " doesn't exist")).quantity | |
1732 | 1728 | let hU = bJ(dN) | |
1733 | 1729 | let hV = bJ(dO) | |
1734 | 1730 | let cU = D(hU, cZ) | |
1735 | 1731 | let cV = D(hV, da) | |
1736 | 1732 | let du = if ((hT == 0)) | |
1737 | 1733 | then e | |
1738 | 1734 | else bM(cV, cU) | |
1739 | 1735 | let dT = D(dH, cZ) | |
1740 | 1736 | let dU = fraction(dT, du, d) | |
1741 | 1737 | let dJ = H(dU, da) | |
1742 | 1738 | let eY = dF("", 500000, dH, dm, dJ, dn, "", true, false) | |
1743 | 1739 | let ee = eY._1 | |
1744 | 1740 | let ia = eY._3 | |
1745 | 1741 | let dq = eY._4 | |
1746 | 1742 | let ds = eY._5 | |
1747 | 1743 | let dp = eY._6 | |
1748 | 1744 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(ee), toString(H(du, b)), toString(dq), toString(ds), toString(dp), do, toString(dH), toString(dJ)], j)) | |
1749 | 1745 | } | |
1750 | 1746 | ||
1751 | 1747 | ||
1752 | 1748 | ||
1753 | 1749 | @Callable(eS) | |
1754 | 1750 | func evaluatePutByPriceAssetREADONLY (dJ) = { | |
1755 | 1751 | let cY = ba() | |
1756 | 1752 | let dl = fromBase58String(cY[q]) | |
1757 | 1753 | let dN = cY[r] | |
1758 | 1754 | let dm = fromBase58String(dN) | |
1759 | 1755 | let dO = cY[s] | |
1760 | 1756 | let dn = fromBase58String(dO) | |
1761 | 1757 | let cZ = parseIntValue(cY[t]) | |
1762 | 1758 | let da = parseIntValue(cY[u]) | |
1763 | 1759 | let do = cY[p] | |
1764 | 1760 | let hT = valueOrErrorMessage(assetInfo(dl), (("Asset " + toBase58String(dl)) + " doesn't exist")).quantity | |
1765 | 1761 | let ib = bJ(dN) | |
1766 | 1762 | let ic = bJ(dO) | |
1767 | 1763 | let id = D(ib, cZ) | |
1768 | 1764 | let ie = D(ic, da) | |
1769 | 1765 | let du = if ((hT == 0)) | |
1770 | 1766 | then e | |
1771 | 1767 | else bM(ie, id) | |
1772 | 1768 | let dU = D(dJ, da) | |
1773 | 1769 | let dT = fraction(dU, d, du) | |
1774 | 1770 | let dH = H(dT, cZ) | |
1775 | 1771 | let eY = dF("", 500000, dH, dm, dJ, dn, "", true, false) | |
1776 | 1772 | let ee = eY._1 | |
1777 | 1773 | let ia = eY._3 | |
1778 | 1774 | let dq = eY._4 | |
1779 | 1775 | let ds = eY._5 | |
1780 | 1776 | let dp = eY._6 | |
1781 | 1777 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(ee), toString(H(du, b)), toString(dq), toString(ds), toString(dp), do, toString(dH), toString(dJ)], j)) | |
1782 | 1778 | } | |
1783 | 1779 | ||
1784 | 1780 | ||
1785 | 1781 | ||
1786 | 1782 | @Callable(eS) | |
1787 | 1783 | func evaluateGetREADONLY (if,ig) = { | |
1788 | 1784 | let dW = dh("", if, ig, this) | |
1789 | 1785 | let dA = dW._1 | |
1790 | 1786 | let dB = dW._2 | |
1791 | 1787 | let dq = dW._5 | |
1792 | 1788 | let ds = dW._6 | |
1793 | 1789 | let dp = dW._7 | |
1794 | 1790 | let dv = dW._8 | |
1795 | 1791 | let do = parseIntValue(dW._9) | |
1796 | 1792 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dA), toString(dB), toString(dq), toString(ds), toString(dp), toString(dv), toString(do)], j)) | |
1797 | 1793 | } | |
1798 | 1794 | ||
1799 | 1795 | ||
1800 | 1796 | @Verifier(ih) | |
1801 | 1797 | func ii () = { | |
1802 | 1798 | let ij = { | |
1803 | 1799 | let bT = ge() | |
1804 | 1800 | if ($isInstanceOf(bT, "ByteVector")) | |
1805 | 1801 | then { | |
1806 | 1802 | let gi = bT | |
1807 | 1803 | gi | |
1808 | 1804 | } | |
1809 | 1805 | else if ($isInstanceOf(bT, "Unit")) | |
1810 | 1806 | then ih.senderPublicKey | |
1811 | 1807 | else throw("Match error") | |
1812 | 1808 | } | |
1813 | 1809 | let bT = ih | |
1814 | 1810 | if ($isInstanceOf(bT, "Order")) | |
1815 | 1811 | then { | |
1816 | 1812 | let eH = bT | |
1817 | 1813 | let ik = aZ() | |
1818 | 1814 | let il = eG(eH) | |
1819 | 1815 | let aI = il._1 | |
1820 | 1816 | let aJ = il._2 | |
1821 | 1817 | let aK = sigVerify(eH.bodyBytes, eH.proofs[0], eH.senderPublicKey) | |
1822 | 1818 | let aL = sigVerify(eH.bodyBytes, eH.proofs[1], ik) | |
1823 | 1819 | if (if (if (aI) | |
1824 | 1820 | then aK | |
1825 | 1821 | else false) | |
1826 | 1822 | then aL | |
1827 | 1823 | else false) | |
1828 | 1824 | then true | |
1829 | 1825 | else aH(aI, aJ, aK, aL) | |
1830 | 1826 | } | |
1831 | 1827 | else if ($isInstanceOf(bT, "SetScriptTransaction")) | |
1832 | 1828 | then { | |
1833 | 1829 | let gf = bT | |
1834 | 1830 | if (sigVerify(ih.bodyBytes, ih.proofs[0], ij)) | |
1835 | 1831 | then true | |
1836 | 1832 | else { | |
1837 | 1833 | let im = blake2b256(value(gf.script)) | |
1838 | 1834 | let in = fromBase64String(value(getString(aT, aF()))) | |
1839 | 1835 | let io = scriptHash(this) | |
1840 | 1836 | if ((in == im)) | |
1841 | 1837 | then (io != im) | |
1842 | 1838 | else false | |
1843 | 1839 | } | |
1844 | 1840 | } | |
1845 | 1841 | else sigVerify(ih.bodyBytes, ih.proofs[0], ij) | |
1846 | 1842 | } | |
1847 | 1843 |
github/deemru/w8io/169f3d6 218.47 ms ◑