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