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