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