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