tx · AwWkqBbUqcToRCoKbiHUvxqQK2Ej8TARad4qRVXyJy2g 3MrULQRLc52GWrJF1tMcAm4M78fPe57o9Kt: -0.03200000 Waves 2023.02.09 10:53 [2441822] smart account 3MrULQRLc52GWrJF1tMcAm4M78fPe57o9Kt > SELF 0.00000000 Waves
{ "type": 13, "id": "AwWkqBbUqcToRCoKbiHUvxqQK2Ej8TARad4qRVXyJy2g", "fee": 3200000, "feeAssetId": null, "timestamp": 1675929164636, "version": 1, "sender": "3MrULQRLc52GWrJF1tMcAm4M78fPe57o9Kt", "senderPublicKey": "Aig94J3pRT3J41eXw33rJrs67gTCECiMVRZrbtuoARit", "proofs": [ "2xxdhssjJZn3bDRpUaRdrfEVVAJ8jNpYJ3C4s9US4ai1xixBUgXMsVb7dV9TJbkgZTjDH2E8FJrBjskdbw5pBtBU" ], "script": "base64:BgKcKQgCEgQKAgEEEgYKBAEEAQgSAwoBCBIAEgQKAgEEEgMKAQESBAoCAQQSBAoCCAESBAoCCAESBAoCCAESBQoDAQgBEgASBAoCAQESAwoBARIFCgMBAQESBAoCCAgSABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQ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EPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IEAmR1BQJnYQMJAAECBQJkdQIFT3JkZXIEAmNWBQJkdQQCZ2QJAQJhSwAEAmF2CQECY1UBBQJjVgQCYXcJAPQDAwgFAmNWCWJvZHlCeXRlcwkAkQMCCAUCY1YGcHJvb2ZzAAAIBQJjVg9zZW5kZXJQdWJsaWNLZXkEAmF4CQD0AwMIBQJjVglib2R5Qnl0ZXMJAJEDAggFAmNWBnByb29mcwABBQJnZAMDAwUCYXYFAmF3BwUCYXgHBgkBAmF1AwUCYXYFAmF3BQJheAMJAAECBQJkdQIUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAmVBBQJkdQQCZ2UJAPYDAQkBBXZhbHVlAQgFAmVBBnNjcmlwdAQCZ2YJANsEAQkBBXZhbHVlAQkAnQgCBQJhRQkBAmFzAAQCZ2cJAPEHAQUEdGhpcwMDCQAAAgUCZ2YFAmdlCQECIT0CBQJnZwUCZ2UHBgkA9AMDCAUCZ2EJYm9keUJ5dGVzCQCRAwIIBQJnYQZwcm9vZnMAAAUCZ2MJAPQDAwgFAmdhCWJvZHlCeXRlcwkAkQMCCAUCZ2EGcHJvb2ZzAAAFAmdj+bnUOA==", "chainId": 84, "height": 2441822, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 43zJtiajVkbynkk8vbquUzekGY6r9cFZFjacVtcS91PK Next: H6KaSV79q6U8himNxYJkhm3ivk6H51theadhdYM9zcEY Diff:
Old | New | Differences | |
---|---|---|---|
674 | 674 | let eK = eI._2 | |
675 | 675 | let eL = bu(eK) | |
676 | 676 | let eM = bu(eJ) | |
677 | - | let eN = | |
677 | + | let eN = fraction(eM, eG, (eL + eG)) | |
678 | 678 | let eO = (toBigInt(eL) * toBigInt(eM)) | |
679 | 679 | let eP = ((toBigInt(bu(eK)) + toBigInt(eG)) * (toBigInt(bu(eJ)) - toBigInt(eN))) | |
680 | 680 | let eQ = if ((eP >= eO)) |
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 | func ag () = "%s__factoryConfig" | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ah () = "%s%s__matcher__publicKey" | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ai (aj) = (("%s%s%s__" + aj) + "__mappings__poolContract2LpAsset") | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ak (al,am) = (((("%d%d%s__" + al) + "__") + am) + "__config") | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func an (ao) = ("%s%s%s__mappings__baseAsset2internalId__" + ao) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ap () = "%s__shutdown" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func aq (ar) = ("%s%s__poolWeight__" + ar) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func as () = "%s__allowedLpScriptHash" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | let at = "%s__feeCollectorAddress" | |
142 | 142 | ||
143 | 143 | func au (av,aw,ax) = throw(((((("order validation failed: orderValid=" + toString(av)) + " senderValid=") + toString(aw)) + " matcherValid=") + toString(ax))) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ay (az,aA) = valueOrErrorMessage(getString(az, aA), makeString(["mandatory ", toString(az), ".", aA, " is not defined"], "")) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func aB (az,aA) = valueOrErrorMessage(getInteger(az, aA), makeString(["mandatory ", toString(az), ".", aA, " is not defined"], "")) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func aC (aD) = throw(makeString(["lp.ride:", aD], " ")) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | let aE = addressFromStringValue(ay(this, T())) | |
156 | 156 | ||
157 | 157 | let aF = addressFromStringValue(ay(aE, at)) | |
158 | 158 | ||
159 | 159 | let aG = { | |
160 | 160 | let aH = invoke(aE, "getInFeeREADONLY", [toString(this)], nil) | |
161 | 161 | if ($isInstanceOf(aH, "Int")) | |
162 | 162 | then aH | |
163 | 163 | else throw(($getType(aH) + " couldn't be cast to Int")) | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | let aI = { | |
167 | 167 | let aH = invoke(aE, "getOutFeeREADONLY", [toString(this)], nil) | |
168 | 168 | if ($isInstanceOf(aH, "Int")) | |
169 | 169 | then aH | |
170 | 170 | else throw(($getType(aH) + " couldn't be cast to Int")) | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | func aJ () = valueOrElse(getBoolean(aE, ap()), false) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func aK () = fromBase58String(ay(aE, ah())) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func aL () = { | |
180 | 180 | let aM = ay(this, ae()) | |
181 | 181 | let aN = ay(this, af()) | |
182 | 182 | let am = aB(aE, an(aN)) | |
183 | 183 | let al = aB(aE, an(aM)) | |
184 | 184 | split(ay(aE, ak(toString(al), toString(am))), j) | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func aO (aP) = if ((aP == i)) | |
189 | 189 | then unit | |
190 | 190 | else fromBase58String(aP) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func aQ (aP) = if ((aP == unit)) | |
194 | 194 | then i | |
195 | 195 | else toBase58String(value(aP)) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func aR (aS) = $Tuple7(addressFromStringValue(aS[o]), parseIntValue(aS[p]), fromBase58String(aS[q]), aO(aS[r]), aO(aS[s]), parseIntValue(aS[t]), parseIntValue(aS[u])) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | let aT = aR(aL()) | |
202 | 202 | ||
203 | 203 | let aU = aT | |
204 | 204 | ||
205 | 205 | let aV = aU._1 | |
206 | 206 | ||
207 | 207 | let aW = aU._2 | |
208 | 208 | ||
209 | 209 | let aX = aU._3 | |
210 | 210 | ||
211 | 211 | let aY = aU._4 | |
212 | 212 | ||
213 | 213 | let aZ = aU._5 | |
214 | 214 | ||
215 | 215 | let ba = aU._6 | |
216 | 216 | ||
217 | 217 | let bb = aU._7 | |
218 | 218 | ||
219 | 219 | func bc () = split(ay(aE, ag()), j) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | let bd = valueOrErrorMessage(addressFromString(bc()[B]), "incorrect staking address") | |
223 | 223 | ||
224 | 224 | let be = valueOrErrorMessage(addressFromString(bc()[C]), "incorrect staking address") | |
225 | 225 | ||
226 | 226 | func bf (bg,bh,bi,bj,bk,bl,bm,bn,bo,bp) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bg), toString(bh), toString(bi), toString(bj), toString(bk), toString(bl), toString(bm), toString(bn), toString(bo), toString(bp)], j) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func bq (br,bs,bt,bj,bm,bn) = makeString(["%d%d%d%d%d%d", toString(br), toString(bs), toString(bt), toString(bj), toString(bm), toString(bn)], j) | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func bu (bv) = if ((bv == "WAVES")) | |
233 | 233 | then wavesBalance(this).available | |
234 | 234 | else assetBalance(this, fromBase58String(bv)) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func bw (bx,by) = fraction(bx, d, by) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func bz (bA,bB,bC,bD) = { | |
241 | 241 | let bE = D(bC, bA) | |
242 | 242 | let bF = D(bD, bB) | |
243 | 243 | bw(bF, bE) | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | func bG (bC,bD,bH) = { | |
248 | 248 | let bI = aL() | |
249 | 249 | let bJ = parseIntValue(bI[t]) | |
250 | 250 | let bK = parseIntValue(bI[u]) | |
251 | 251 | let bL = bz(bJ, bK, bC, bD) | |
252 | 252 | let by = D(bC, bJ) | |
253 | 253 | let bx = D(bD, bK) | |
254 | 254 | let bM = D(bH, b) | |
255 | 255 | let bN = bw(by, bM) | |
256 | 256 | let bO = bw(bx, bM) | |
257 | 257 | [bL, bN, bO] | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func bP (bC,bD,bH) = { | |
262 | 262 | let bQ = bG(bC, bD, bH) | |
263 | 263 | [H(bQ[0], b), H(bQ[1], b), H(bQ[2], b)] | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | func bR (bS,bT,bU,ab) = { | |
268 | 268 | let bI = aL() | |
269 | 269 | let bV = bI[q] | |
270 | 270 | let bW = bI[r] | |
271 | 271 | let bX = bI[s] | |
272 | 272 | let bA = parseIntValue(bI[t]) | |
273 | 273 | let bB = parseIntValue(bI[u]) | |
274 | 274 | let bY = bI[p] | |
275 | 275 | let bZ = valueOrErrorMessage(assetInfo(fromBase58String(bV)), (("Asset " + bV) + " doesn't exist")).quantity | |
276 | 276 | if ((bV != bT)) | |
277 | 277 | then throw("Invalid asset passed.") | |
278 | 278 | else { | |
279 | 279 | let ca = bu(bW) | |
280 | 280 | let cb = D(ca, bA) | |
281 | 281 | let cc = bu(bX) | |
282 | 282 | let cd = D(cc, bB) | |
283 | 283 | let ce = bw(cd, cb) | |
284 | 284 | let cf = H(ce, b) | |
285 | 285 | let cg = D(bU, b) | |
286 | 286 | let ch = D(bZ, b) | |
287 | 287 | let ci = fraction(cb, cg, ch) | |
288 | 288 | let cj = fraction(cd, cg, ch) | |
289 | 289 | let ck = H(ci, bA) | |
290 | 290 | let cl = H(cj, bB) | |
291 | 291 | let cm = if ((bS == "")) | |
292 | 292 | then nil | |
293 | 293 | else [ScriptTransfer(ab, ck, if ((bW == "WAVES")) | |
294 | 294 | then unit | |
295 | 295 | else fromBase58String(bW)), ScriptTransfer(ab, cl, if ((bX == "WAVES")) | |
296 | 296 | then unit | |
297 | 297 | else fromBase58String(bX)), StringEntry(ad(toString(ab), bS), bq(ck, cl, bU, cf, height, lastBlock.timestamp)), IntegerEntry(W(), cf), IntegerEntry(X(height, lastBlock.timestamp), cf)] | |
298 | 298 | $Tuple10(ck, cl, bW, bX, ca, cc, bZ, ce, bY, cm) | |
299 | 299 | } | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func cn (bS,co,cp,cq,cr,cs,ab,ct,cu) = { | |
304 | 304 | let bI = aL() | |
305 | 305 | let bV = fromBase58String(bI[q]) | |
306 | 306 | let cv = bI[r] | |
307 | 307 | let cw = bI[s] | |
308 | 308 | let cx = bI[v] | |
309 | 309 | let cy = bI[w] | |
310 | 310 | let bJ = parseIntValue(bI[t]) | |
311 | 311 | let bK = parseIntValue(bI[u]) | |
312 | 312 | let bY = bI[p] | |
313 | 313 | let bZ = valueOrErrorMessage(assetInfo(bV), (("Asset " + toBase58String(bV)) + " doesn't exist")).quantity | |
314 | 314 | let cz = toBase58String(valueOrElse(cq, fromBase58String("WAVES"))) | |
315 | 315 | let cA = toBase58String(valueOrElse(cs, fromBase58String("WAVES"))) | |
316 | 316 | if (if ((cv != cz)) | |
317 | 317 | then true | |
318 | 318 | else (cw != cA)) | |
319 | 319 | then throw("Invalid amt or price asset passed.") | |
320 | 320 | else { | |
321 | 321 | let ca = if (ct) | |
322 | 322 | then bu(cv) | |
323 | 323 | else (bu(cv) - cp) | |
324 | 324 | let cc = if (ct) | |
325 | 325 | then bu(cw) | |
326 | 326 | else (bu(cw) - cr) | |
327 | 327 | let cB = D(cp, bJ) | |
328 | 328 | let cC = D(cr, bK) | |
329 | 329 | let cD = bw(cC, cB) | |
330 | 330 | let cb = D(ca, bJ) | |
331 | 331 | let cd = D(cc, bK) | |
332 | 332 | let cE = if ((bZ == 0)) | |
333 | 333 | then { | |
334 | 334 | let ce = e | |
335 | 335 | let cF = e | |
336 | 336 | let bM = pow((cB * cC), 0, toBigInt(5), 1, 0, DOWN) | |
337 | 337 | $Tuple5(H(bM, b), H(cB, bJ), H(cC, bK), bw((cd + cC), (cb + cB)), cF) | |
338 | 338 | } | |
339 | 339 | else { | |
340 | 340 | let ce = bw(cd, cb) | |
341 | 341 | let cF = fraction(R((ce - cD)), d, ce) | |
342 | 342 | let cG = D(co, b) | |
343 | 343 | if (if ((ce != e)) | |
344 | 344 | then (cF > cG) | |
345 | 345 | else false) | |
346 | 346 | then throw(((("Price slippage " + toString(cF)) + " exceeded the passed limit of ") + toString(cG))) | |
347 | 347 | else { | |
348 | 348 | let ch = D(bZ, b) | |
349 | 349 | let cH = fraction(cB, ce, d) | |
350 | 350 | let cI = fraction(cC, d, ce) | |
351 | 351 | let cJ = if ((cH > cC)) | |
352 | 352 | then $Tuple2(cI, cC) | |
353 | 353 | else $Tuple2(cB, cH) | |
354 | 354 | let cK = cJ._1 | |
355 | 355 | let cL = cJ._2 | |
356 | 356 | let bM = fraction(ch, cL, cd) | |
357 | 357 | $Tuple5(H(bM, b), H(cK, bJ), H(cL, bK), ce, cF) | |
358 | 358 | } | |
359 | 359 | } | |
360 | 360 | let cM = cE._1 | |
361 | 361 | let cN = cE._2 | |
362 | 362 | let cO = cE._3 | |
363 | 363 | let cf = H(cE._4, b) | |
364 | 364 | let cP = H(cE._5, b) | |
365 | 365 | if ((0 >= cM)) | |
366 | 366 | then throw("Invalid calculations. LP calculated is less than zero.") | |
367 | 367 | else { | |
368 | 368 | let cQ = if (!(cu)) | |
369 | 369 | then 0 | |
370 | 370 | else cM | |
371 | 371 | let cR = (cp - cN) | |
372 | 372 | let cS = (cr - cO) | |
373 | 373 | let cT = [IntegerEntry(W(), cf), IntegerEntry(X(height, lastBlock.timestamp), cf), StringEntry(aa(ab, bS), bf(cN, cO, cQ, cf, co, cP, height, lastBlock.timestamp, cR, cS))] | |
374 | 374 | $Tuple13(cM, cQ, cf, ca, cc, bZ, bV, bY, cT, cR, cS, cq, cs) | |
375 | 375 | } | |
376 | 376 | } | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | func cU (cV) = { | |
381 | 381 | let bI = aL() | |
382 | 382 | let cW = bI[r] | |
383 | 383 | let cX = bI[s] | |
384 | 384 | let bY = parseIntValue(bI[p]) | |
385 | 385 | let bJ = parseIntValue(bI[t]) | |
386 | 386 | let bK = parseIntValue(bI[u]) | |
387 | 387 | let cY = bu(cW) | |
388 | 388 | let cZ = bu(cX) | |
389 | 389 | let ce = if ((cV.orderType == Buy)) | |
390 | 390 | then bz(bJ, bK, (cY + cV.amount), cZ) | |
391 | 391 | else bz(bJ, bK, (cY - cV.amount), cZ) | |
392 | 392 | let cf = H(ce, b) | |
393 | 393 | if (if (if (aJ()) | |
394 | 394 | then true | |
395 | 395 | else (bY == m)) | |
396 | 396 | then true | |
397 | 397 | else (bY == n)) | |
398 | 398 | then throw("Exchange operations disabled") | |
399 | 399 | else { | |
400 | 400 | let da = cV.assetPair.amountAsset | |
401 | 401 | let db = if ((da == unit)) | |
402 | 402 | then "WAVES" | |
403 | 403 | else toBase58String(value(da)) | |
404 | 404 | let dc = cV.assetPair.priceAsset | |
405 | 405 | let dd = if ((dc == unit)) | |
406 | 406 | then "WAVES" | |
407 | 407 | else toBase58String(value(dc)) | |
408 | 408 | if (if ((db != cW)) | |
409 | 409 | then true | |
410 | 410 | else (dd != cX)) | |
411 | 411 | then throw("Wrong order assets.") | |
412 | 412 | else { | |
413 | 413 | let de = cV.price | |
414 | 414 | let df = fraction(b, bK, bJ) | |
415 | 415 | let dg = M(de, b, df) | |
416 | 416 | let dh = if ((cV.orderType == Buy)) | |
417 | 417 | then (cf >= dg) | |
418 | 418 | else (dg >= cf) | |
419 | 419 | true | |
420 | 420 | } | |
421 | 421 | } | |
422 | 422 | } | |
423 | 423 | ||
424 | 424 | ||
425 | 425 | func di (dj) = if ((size(dj.payments) != 1)) | |
426 | 426 | then throw("exactly 1 payment is expected") | |
427 | 427 | else { | |
428 | 428 | let dk = value(dj.payments[0]) | |
429 | 429 | let bT = value(dk.assetId) | |
430 | 430 | let dl = dk.amount | |
431 | 431 | let cE = bR(toBase58String(dj.transactionId), toBase58String(bT), dl, dj.caller) | |
432 | 432 | let ck = cE._1 | |
433 | 433 | let cl = cE._2 | |
434 | 434 | let bY = parseIntValue(cE._9) | |
435 | 435 | let cm = cE._10 | |
436 | 436 | if (if (aJ()) | |
437 | 437 | then true | |
438 | 438 | else (bY == n)) | |
439 | 439 | then throw(("Get operation is blocked by admin. Status = " + toString(bY))) | |
440 | 440 | else $Tuple5(ck, cl, dl, bT, cm) | |
441 | 441 | } | |
442 | 442 | ||
443 | 443 | ||
444 | 444 | func dm (dj,co,cu) = if ((size(dj.payments) != 2)) | |
445 | 445 | then throw("exactly 2 payments are expected") | |
446 | 446 | else { | |
447 | 447 | let dn = value(dj.payments[0]) | |
448 | 448 | let do = value(dj.payments[1]) | |
449 | 449 | let dp = cn(toBase58String(dj.transactionId), co, dn.amount, dn.assetId, do.amount, do.assetId, toString(dj.caller), false, cu) | |
450 | 450 | let bY = parseIntValue(dp._8) | |
451 | 451 | if (if (if (aJ()) | |
452 | 452 | then true | |
453 | 453 | else (bY == l)) | |
454 | 454 | then true | |
455 | 455 | else (bY == n)) | |
456 | 456 | then throw(("Put operation is blocked by admin. Status = " + toString(bY))) | |
457 | 457 | else dp | |
458 | 458 | } | |
459 | 459 | ||
460 | 460 | ||
461 | 461 | func dq (dr) = { | |
462 | 462 | let ds = invoke(aE, "emit", [dr], nil) | |
463 | 463 | if ((ds == ds)) | |
464 | 464 | then { | |
465 | 465 | let dt = { | |
466 | 466 | let du = ds | |
467 | 467 | if ($isInstanceOf(du, "Address")) | |
468 | 468 | then { | |
469 | 469 | let dv = du | |
470 | 470 | invoke(dv, "emit", [dr], nil) | |
471 | 471 | } | |
472 | 472 | else unit | |
473 | 473 | } | |
474 | 474 | if ((dt == dt)) | |
475 | 475 | then dr | |
476 | 476 | else throw("Strict value is not equal to itself.") | |
477 | 477 | } | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | ||
481 | 481 | ||
482 | 482 | func dw (dr,dx) = { | |
483 | 483 | let dy = if ((dx == 0)) | |
484 | 484 | then 0 | |
485 | 485 | else fraction(dr, dx, b) | |
486 | 486 | $Tuple2((dr - dy), dy) | |
487 | 487 | } | |
488 | 488 | ||
489 | 489 | ||
490 | 490 | func dz (dA,dB,ab,ac) = { | |
491 | 491 | let dC = (ac == unit) | |
492 | 492 | let dD = bu(aQ(aY)) | |
493 | 493 | let dE = bu(aQ(aZ)) | |
494 | 494 | let dF = if ((dB == aY)) | |
495 | 495 | then true | |
496 | 496 | else if ((dB == aZ)) | |
497 | 497 | then false | |
498 | 498 | else aC("invalid asset") | |
499 | 499 | let dG = if (dC) | |
500 | 500 | then $Tuple2(dD, dE) | |
501 | 501 | else if (dF) | |
502 | 502 | then $Tuple2((dD - dA), dE) | |
503 | 503 | else $Tuple2(dD, (dE - dA)) | |
504 | 504 | let dH = dG._1 | |
505 | 505 | let dI = dG._2 | |
506 | 506 | let dJ = if (dF) | |
507 | 507 | then $Tuple2(dA, 0) | |
508 | 508 | else $Tuple2(0, dA) | |
509 | 509 | let dK = dJ._1 | |
510 | 510 | let dL = dJ._2 | |
511 | 511 | let dM = dw(dK, aG)._1 | |
512 | 512 | let dN = dw(dL, aG)._1 | |
513 | 513 | let dO = dw(dA, aG) | |
514 | 514 | let dP = dO._1 | |
515 | 515 | let dy = dO._2 | |
516 | 516 | let dQ = (dH + dM) | |
517 | 517 | let dR = (dI + dN) | |
518 | 518 | let dS = bw(D(dR, bb), D(dQ, ba)) | |
519 | 519 | let dT = H(dS, b) | |
520 | 520 | let dU = if (dF) | |
521 | 521 | then dH | |
522 | 522 | else dI | |
523 | 523 | let dV = toBigInt(dU) | |
524 | 524 | let dW = toBigInt(valueOrErrorMessage(assetInfo(aX), (("asset " + toBase58String(aX)) + " doesn't exist")).quantity) | |
525 | 525 | let dX = if ((dW > f)) | |
526 | 526 | then true | |
527 | 527 | else aC("initial deposit requires all coins") | |
528 | 528 | if ((dX == dX)) | |
529 | 529 | then { | |
530 | 530 | let dY = toBigInt(dP) | |
531 | 531 | let dZ = max([0, toInt(((dW * (sqrtBigInt((d + ((dY * d) / dV)), 18, 18, DOWN) - d)) / d))]) | |
532 | 532 | let cT = if (dC) | |
533 | 533 | then nil | |
534 | 534 | else [IntegerEntry(W(), dT), IntegerEntry(X(height, lastBlock.timestamp), dT), StringEntry(aa(toString(value(ab)), toBase58String(value(ac))), bf(dK, dL, dZ, dT, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
535 | 535 | let ea = bw(D(dI, bb), D(dH, ba)) | |
536 | 536 | let eb = H(ea, b) | |
537 | 537 | let ec = { | |
538 | 538 | let ed = if (dF) | |
539 | 539 | then $Tuple2(dK, dH) | |
540 | 540 | else $Tuple2(dL, dI) | |
541 | 541 | let dr = ed._1 | |
542 | 542 | let ee = ed._2 | |
543 | 543 | let ef = toInt(fraction(dW, toBigInt((dr / 2)), toBigInt(ee))) | |
544 | 544 | fraction((dZ - ef), b, ef) | |
545 | 545 | } | |
546 | 546 | $Tuple4(dZ, cT, dy, ec) | |
547 | 547 | } | |
548 | 548 | else throw("Strict value is not equal to itself.") | |
549 | 549 | } | |
550 | 550 | ||
551 | 551 | ||
552 | 552 | func eg (eh,dP,dB,ab,ac) = { | |
553 | 553 | let dC = (ac == unit) | |
554 | 554 | let ei = [if ((dB == aX)) | |
555 | 555 | then true | |
556 | 556 | else aC("invalid lp asset")] | |
557 | 557 | if ((ei == ei)) | |
558 | 558 | then { | |
559 | 559 | let ej = if ((eh == aY)) | |
560 | 560 | then true | |
561 | 561 | else if ((eh == aZ)) | |
562 | 562 | then false | |
563 | 563 | else aC("invalid asset") | |
564 | 564 | let ek = if (ej) | |
565 | 565 | then toBigInt(bu(aQ(aY))) | |
566 | 566 | else toBigInt(bu(aQ(aZ))) | |
567 | 567 | let el = bu(aQ(aY)) | |
568 | 568 | let em = bu(aQ(aZ)) | |
569 | 569 | let en = if (ej) | |
570 | 570 | then el | |
571 | 571 | else em | |
572 | 572 | let eo = toBigInt(en) | |
573 | 573 | let dW = toBigInt(valueOrErrorMessage(assetInfo(aX), (("asset " + toBase58String(aX)) + " doesn't exist")).quantity) | |
574 | 574 | let ep = toBigInt(dP) | |
575 | 575 | let eq = max([0, toInt(((ek * (d - pow((d - ((ep * d) / dW)), 18, h, 0, 18, DOWN))) / d))]) | |
576 | 576 | let er = dw(eq, aI) | |
577 | 577 | let es = er._1 | |
578 | 578 | let dy = er._2 | |
579 | 579 | let et = if (ej) | |
580 | 580 | then $Tuple4(es, 0, (el - eq), em) | |
581 | 581 | else $Tuple4(0, es, el, (em - eq)) | |
582 | 582 | let eu = et._1 | |
583 | 583 | let ev = et._2 | |
584 | 584 | let ew = et._3 | |
585 | 585 | let ex = et._4 | |
586 | 586 | let dS = bw(D(ex, bb), D(ew, ba)) | |
587 | 587 | let dT = H(dS, b) | |
588 | 588 | let cT = if (dC) | |
589 | 589 | then nil | |
590 | 590 | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), bq(eu, ev, dP, dT, height, lastBlock.timestamp)), IntegerEntry(W(), dT), IntegerEntry(X(height, lastBlock.timestamp), dT)] | |
591 | 591 | let ea = bw(D(em, bb), D(el, ba)) | |
592 | 592 | let eb = H(ea, b) | |
593 | 593 | let ec = { | |
594 | 594 | let ey = (toInt(fraction(ek, ep, dW)) * 2) | |
595 | 595 | fraction((es - ey), b, ey) | |
596 | 596 | } | |
597 | 597 | $Tuple4(es, cT, dy, ec) | |
598 | 598 | } | |
599 | 599 | else throw("Strict value is not equal to itself.") | |
600 | 600 | } | |
601 | 601 | ||
602 | 602 | ||
603 | 603 | func ez () = { | |
604 | 604 | let du = getString(U()) | |
605 | 605 | if ($isInstanceOf(du, "String")) | |
606 | 606 | then { | |
607 | 607 | let eA = du | |
608 | 608 | fromBase58String(eA) | |
609 | 609 | } | |
610 | 610 | else if ($isInstanceOf(du, "Unit")) | |
611 | 611 | then unit | |
612 | 612 | else throw("Match error") | |
613 | 613 | } | |
614 | 614 | ||
615 | 615 | ||
616 | 616 | func eB () = { | |
617 | 617 | let du = getString(V()) | |
618 | 618 | if ($isInstanceOf(du, "String")) | |
619 | 619 | then { | |
620 | 620 | let eA = du | |
621 | 621 | fromBase58String(eA) | |
622 | 622 | } | |
623 | 623 | else if ($isInstanceOf(du, "Unit")) | |
624 | 624 | then unit | |
625 | 625 | else throw("Match error") | |
626 | 626 | } | |
627 | 627 | ||
628 | 628 | ||
629 | 629 | func eC (dj) = { | |
630 | 630 | let du = ez() | |
631 | 631 | if ($isInstanceOf(du, "ByteVector")) | |
632 | 632 | then { | |
633 | 633 | let eD = du | |
634 | 634 | (dj.callerPublicKey == eD) | |
635 | 635 | } | |
636 | 636 | else if ($isInstanceOf(du, "Unit")) | |
637 | 637 | then (dj.caller == this) | |
638 | 638 | else throw("Match error") | |
639 | 639 | } | |
640 | 640 | ||
641 | 641 | ||
642 | 642 | func eE (dj) = { | |
643 | 643 | let eF = throw("Permission denied") | |
644 | 644 | let du = ez() | |
645 | 645 | if ($isInstanceOf(du, "ByteVector")) | |
646 | 646 | then { | |
647 | 647 | let eD = du | |
648 | 648 | if ((dj.callerPublicKey == eD)) | |
649 | 649 | then true | |
650 | 650 | else eF | |
651 | 651 | } | |
652 | 652 | else if ($isInstanceOf(du, "Unit")) | |
653 | 653 | then if ((dj.caller == this)) | |
654 | 654 | then true | |
655 | 655 | else eF | |
656 | 656 | else throw("Match error") | |
657 | 657 | } | |
658 | 658 | ||
659 | 659 | ||
660 | 660 | @Callable(dj) | |
661 | 661 | func calculateAmountOutForSwapREADONLY (eG,eH) = { | |
662 | 662 | let eI = if ((eH == false)) | |
663 | 663 | then { | |
664 | 664 | let eJ = ay(this, af()) | |
665 | 665 | let eK = ay(this, ae()) | |
666 | 666 | $Tuple2(eJ, eK) | |
667 | 667 | } | |
668 | 668 | else { | |
669 | 669 | let eJ = ay(this, ae()) | |
670 | 670 | let eK = ay(this, af()) | |
671 | 671 | $Tuple2(eJ, eK) | |
672 | 672 | } | |
673 | 673 | let eJ = eI._1 | |
674 | 674 | let eK = eI._2 | |
675 | 675 | let eL = bu(eK) | |
676 | 676 | let eM = bu(eJ) | |
677 | - | let eN = | |
677 | + | let eN = fraction(eM, eG, (eL + eG)) | |
678 | 678 | let eO = (toBigInt(eL) * toBigInt(eM)) | |
679 | 679 | let eP = ((toBigInt(bu(eK)) + toBigInt(eG)) * (toBigInt(bu(eJ)) - toBigInt(eN))) | |
680 | 680 | let eQ = if ((eP >= eO)) | |
681 | 681 | then true | |
682 | 682 | else throw("new K is fewer error") | |
683 | 683 | if ((eQ == eQ)) | |
684 | 684 | then $Tuple2(nil, eN) | |
685 | 685 | else throw("Strict value is not equal to itself.") | |
686 | 686 | } | |
687 | 687 | ||
688 | 688 | ||
689 | 689 | ||
690 | 690 | @Callable(dj) | |
691 | 691 | func calculateAmountOutForSwapAndSendTokens (eG,eH,eR,eS) = { | |
692 | 692 | let ei = [if ((value(dj.payments[0]).amount >= eG)) | |
693 | 693 | then true | |
694 | 694 | else aC("Wrong amount"), if ((dj.caller == addressFromStringValue(ay(this, S())))) | |
695 | 695 | then true | |
696 | 696 | else aC("Permission denied")] | |
697 | 697 | if ((ei == ei)) | |
698 | 698 | then { | |
699 | 699 | let dk = value(dj.payments[0]) | |
700 | 700 | let eK = if ((dk.assetId == unit)) | |
701 | 701 | then toBase58String(toBytes("WAVES")) | |
702 | 702 | else toBase58String(value(dk.assetId)) | |
703 | 703 | let eJ = if ((eH == false)) | |
704 | 704 | then ay(this, af()) | |
705 | 705 | else ay(this, ae()) | |
706 | 706 | let eL = (bu(eK) - value(dj.payments[0]).amount) | |
707 | 707 | let eM = bu(eJ) | |
708 | 708 | let eN = ((eM * eG) / (eL + eG)) | |
709 | 709 | let eO = (eL * eM) | |
710 | 710 | let eP = (bu(eK) * (bu(eJ) - eN)) | |
711 | 711 | let eQ = if ((eP >= eO)) | |
712 | 712 | then true | |
713 | 713 | else throw("new K is fewer error") | |
714 | 714 | if ((eQ == eQ)) | |
715 | 715 | then { | |
716 | 716 | let eT = if ((eN >= eR)) | |
717 | 717 | then true | |
718 | 718 | else throw("Exchange result is fewer coins than expected") | |
719 | 719 | if ((eT == eT)) | |
720 | 720 | then [ScriptTransfer(addressFromStringValue(eS), eN, if ((eK == "WAVES")) | |
721 | 721 | then unit | |
722 | 722 | else fromBase58String(eJ))] | |
723 | 723 | else throw("Strict value is not equal to itself.") | |
724 | 724 | } | |
725 | 725 | else throw("Strict value is not equal to itself.") | |
726 | 726 | } | |
727 | 727 | else throw("Strict value is not equal to itself.") | |
728 | 728 | } | |
729 | 729 | ||
730 | 730 | ||
731 | 731 | ||
732 | 732 | @Callable(dj) | |
733 | 733 | func setManager (eU) = { | |
734 | 734 | let eV = eE(dj) | |
735 | 735 | if ((eV == eV)) | |
736 | 736 | then { | |
737 | 737 | let eW = fromBase58String(eU) | |
738 | 738 | if ((eW == eW)) | |
739 | 739 | then [StringEntry(V(), eU)] | |
740 | 740 | else throw("Strict value is not equal to itself.") | |
741 | 741 | } | |
742 | 742 | else throw("Strict value is not equal to itself.") | |
743 | 743 | } | |
744 | 744 | ||
745 | 745 | ||
746 | 746 | ||
747 | 747 | @Callable(dj) | |
748 | 748 | func confirmManager () = { | |
749 | 749 | let eX = eB() | |
750 | 750 | let eY = if (isDefined(eX)) | |
751 | 751 | then true | |
752 | 752 | else throw("No pending manager") | |
753 | 753 | if ((eY == eY)) | |
754 | 754 | then { | |
755 | 755 | let eZ = if ((dj.callerPublicKey == value(eX))) | |
756 | 756 | then true | |
757 | 757 | else throw("You are not pending manager") | |
758 | 758 | if ((eZ == eZ)) | |
759 | 759 | then [StringEntry(U(), toBase58String(value(eX))), DeleteEntry(V())] | |
760 | 760 | else throw("Strict value is not equal to itself.") | |
761 | 761 | } | |
762 | 762 | else throw("Strict value is not equal to itself.") | |
763 | 763 | } | |
764 | 764 | ||
765 | 765 | ||
766 | 766 | ||
767 | 767 | @Callable(dj) | |
768 | 768 | func put (co,fa) = if ((0 > co)) | |
769 | 769 | then throw("Invalid slippageTolerance passed") | |
770 | 770 | else { | |
771 | 771 | let dp = dm(dj, co, true) | |
772 | 772 | let cQ = dp._2 | |
773 | 773 | let bV = dp._7 | |
774 | 774 | let cm = dp._9 | |
775 | 775 | let cR = dp._10 | |
776 | 776 | let cS = dp._11 | |
777 | 777 | let fb = dp._12 | |
778 | 778 | let fc = dp._13 | |
779 | 779 | let ds = invoke(aE, "emit", [cQ], nil) | |
780 | 780 | if ((ds == ds)) | |
781 | 781 | then { | |
782 | 782 | let dt = { | |
783 | 783 | let du = ds | |
784 | 784 | if ($isInstanceOf(du, "Address")) | |
785 | 785 | then { | |
786 | 786 | let dv = du | |
787 | 787 | invoke(dv, "emit", [cQ], nil) | |
788 | 788 | } | |
789 | 789 | else unit | |
790 | 790 | } | |
791 | 791 | if ((dt == dt)) | |
792 | 792 | then { | |
793 | 793 | let fd = if ((cR > 0)) | |
794 | 794 | then invoke(be, "put", nil, [AttachedPayment(fb, cR)]) | |
795 | 795 | else nil | |
796 | 796 | if ((fd == fd)) | |
797 | 797 | then { | |
798 | 798 | let fe = if ((cS > 0)) | |
799 | 799 | then invoke(be, "put", nil, [AttachedPayment(fc, cS)]) | |
800 | 800 | else nil | |
801 | 801 | if ((fe == fe)) | |
802 | 802 | then { | |
803 | 803 | let ff = if (fa) | |
804 | 804 | then { | |
805 | 805 | let fg = invoke(bd, "stake", nil, [AttachedPayment(bV, cQ)]) | |
806 | 806 | if ((fg == fg)) | |
807 | 807 | then nil | |
808 | 808 | else throw("Strict value is not equal to itself.") | |
809 | 809 | } | |
810 | 810 | else [ScriptTransfer(dj.caller, cQ, bV)] | |
811 | 811 | (cm ++ ff) | |
812 | 812 | } | |
813 | 813 | else throw("Strict value is not equal to itself.") | |
814 | 814 | } | |
815 | 815 | else throw("Strict value is not equal to itself.") | |
816 | 816 | } | |
817 | 817 | else throw("Strict value is not equal to itself.") | |
818 | 818 | } | |
819 | 819 | else throw("Strict value is not equal to itself.") | |
820 | 820 | } | |
821 | 821 | ||
822 | 822 | ||
823 | 823 | ||
824 | 824 | @Callable(dj) | |
825 | 825 | func putForFree (fh) = if ((0 > fh)) | |
826 | 826 | then throw("Invalid value passed") | |
827 | 827 | else { | |
828 | 828 | let dp = dm(dj, fh, false) | |
829 | 829 | dp._9 | |
830 | 830 | } | |
831 | 831 | ||
832 | 832 | ||
833 | 833 | ||
834 | 834 | @Callable(dj) | |
835 | 835 | func putOneTkn (fi,fj) = { | |
836 | 836 | let fk = { | |
837 | 837 | let aH = invoke(aE, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
838 | 838 | if ($isInstanceOf(aH, "Boolean")) | |
839 | 839 | then aH | |
840 | 840 | else throw(($getType(aH) + " couldn't be cast to Boolean")) | |
841 | 841 | } | |
842 | 842 | let fl = if (if (if (aJ()) | |
843 | 843 | then true | |
844 | 844 | else (aW == l)) | |
845 | 845 | then true | |
846 | 846 | else (aW == n)) | |
847 | 847 | then true | |
848 | 848 | else fk | |
849 | 849 | let ei = [if (if (!(fl)) | |
850 | 850 | then true | |
851 | 851 | else eC(dj)) | |
852 | 852 | then true | |
853 | 853 | else aC("put operation is blocked by admin"), if ((size(dj.payments) == 1)) | |
854 | 854 | then true | |
855 | 855 | else aC("exactly 1 payment are expected")] | |
856 | 856 | if ((ei == ei)) | |
857 | 857 | then { | |
858 | 858 | let fm = dj.payments[0] | |
859 | 859 | let dB = fm.assetId | |
860 | 860 | let dA = fm.amount | |
861 | 861 | let ab = dj.caller | |
862 | 862 | let ac = dj.transactionId | |
863 | 863 | let fn = dz(dA, dB, ab, ac) | |
864 | 864 | if ((fn == fn)) | |
865 | 865 | then { | |
866 | 866 | let fo = fn._4 | |
867 | 867 | let dy = fn._3 | |
868 | 868 | let cT = fn._2 | |
869 | 869 | let fp = fn._1 | |
870 | 870 | let fq = if (if ((fi > 0)) | |
871 | 871 | then (fi > fp) | |
872 | 872 | else false) | |
873 | 873 | then aC(makeString(["amount to receive is less than ", toString(fi)], "")) | |
874 | 874 | else fp | |
875 | 875 | let ds = dq(fq) | |
876 | 876 | if ((ds == ds)) | |
877 | 877 | then { | |
878 | 878 | let ff = if (fj) | |
879 | 879 | then { | |
880 | 880 | let fr = invoke(bd, "stake", nil, [AttachedPayment(aX, fq)]) | |
881 | 881 | if ((fr == fr)) | |
882 | 882 | then nil | |
883 | 883 | else throw("Strict value is not equal to itself.") | |
884 | 884 | } | |
885 | 885 | else [ScriptTransfer(dj.caller, fq, aX)] | |
886 | 886 | let fs = if ((dy > 0)) | |
887 | 887 | then [ScriptTransfer(aF, dy, dB)] | |
888 | 888 | else nil | |
889 | 889 | $Tuple2(((cT ++ ff) ++ fs), fq) | |
890 | 890 | } | |
891 | 891 | else throw("Strict value is not equal to itself.") | |
892 | 892 | } | |
893 | 893 | else throw("Strict value is not equal to itself.") | |
894 | 894 | } | |
895 | 895 | else throw("Strict value is not equal to itself.") | |
896 | 896 | } | |
897 | 897 | ||
898 | 898 | ||
899 | 899 | ||
900 | 900 | @Callable(dj) | |
901 | 901 | func putOneTknREADONLY (dB,dA) = { | |
902 | 902 | let ft = dz(dA, aO(dB), unit, unit) | |
903 | 903 | let fp = ft._1 | |
904 | 904 | let cT = ft._2 | |
905 | 905 | let dy = ft._3 | |
906 | 906 | let fo = ft._4 | |
907 | 907 | $Tuple2(nil, $Tuple3(fp, dy, fo)) | |
908 | 908 | } | |
909 | 909 | ||
910 | 910 | ||
911 | 911 | ||
912 | 912 | @Callable(dj) | |
913 | 913 | func getOneTkn (fu,fi) = { | |
914 | 914 | let fk = { | |
915 | 915 | let aH = invoke(aE, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
916 | 916 | if ($isInstanceOf(aH, "Boolean")) | |
917 | 917 | then aH | |
918 | 918 | else throw(($getType(aH) + " couldn't be cast to Boolean")) | |
919 | 919 | } | |
920 | 920 | let fv = if (if (aJ()) | |
921 | 921 | then true | |
922 | 922 | else (aW == n)) | |
923 | 923 | then true | |
924 | 924 | else fk | |
925 | 925 | let ei = [if (if (!(fv)) | |
926 | 926 | then true | |
927 | 927 | else eC(dj)) | |
928 | 928 | then true | |
929 | 929 | else aC("get operation is blocked by admin"), if ((size(dj.payments) == 1)) | |
930 | 930 | then true | |
931 | 931 | else aC("exactly 1 payment are expected")] | |
932 | 932 | if ((ei == ei)) | |
933 | 933 | then { | |
934 | 934 | let eh = aO(fu) | |
935 | 935 | let fm = dj.payments[0] | |
936 | 936 | let dB = fm.assetId | |
937 | 937 | let dP = fm.amount | |
938 | 938 | let ab = dj.caller | |
939 | 939 | let ac = dj.transactionId | |
940 | 940 | let fw = eg(eh, dP, dB, ab, ac) | |
941 | 941 | if ((fw == fw)) | |
942 | 942 | then { | |
943 | 943 | let fo = fw._4 | |
944 | 944 | let dy = fw._3 | |
945 | 945 | let cT = fw._2 | |
946 | 946 | let fx = fw._1 | |
947 | 947 | let dr = if (if ((fi > 0)) | |
948 | 948 | then (fi > fx) | |
949 | 949 | else false) | |
950 | 950 | then aC(makeString(["amount to receive is less than ", toString(fi)], "")) | |
951 | 951 | else fx | |
952 | 952 | let fy = invoke(aE, "burn", [dP], [AttachedPayment(dB, dP)]) | |
953 | 953 | if ((fy == fy)) | |
954 | 954 | then { | |
955 | 955 | let fz = [ScriptTransfer(ab, dr, eh)] | |
956 | 956 | let fs = if ((dy > 0)) | |
957 | 957 | then [ScriptTransfer(aF, dy, eh)] | |
958 | 958 | else nil | |
959 | 959 | $Tuple2(((cT ++ fz) ++ fs), dr) | |
960 | 960 | } | |
961 | 961 | else throw("Strict value is not equal to itself.") | |
962 | 962 | } | |
963 | 963 | else throw("Strict value is not equal to itself.") | |
964 | 964 | } | |
965 | 965 | else throw("Strict value is not equal to itself.") | |
966 | 966 | } | |
967 | 967 | ||
968 | 968 | ||
969 | 969 | ||
970 | 970 | @Callable(dj) | |
971 | 971 | func getOneTknREADONLY (eh,dP) = { | |
972 | 972 | let fA = eg(aO(eh), dP, aX, unit, unit) | |
973 | 973 | let fx = fA._1 | |
974 | 974 | let cT = fA._2 | |
975 | 975 | let dy = fA._3 | |
976 | 976 | let fo = fA._4 | |
977 | 977 | $Tuple2(nil, $Tuple3(fx, dy, fo)) | |
978 | 978 | } | |
979 | 979 | ||
980 | 980 | ||
981 | 981 | ||
982 | 982 | @Callable(dj) | |
983 | 983 | func unstakeAndGetOneTkn (fB,fu,fi) = { | |
984 | 984 | let fk = { | |
985 | 985 | let aH = invoke(aE, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
986 | 986 | if ($isInstanceOf(aH, "Boolean")) | |
987 | 987 | then aH | |
988 | 988 | else throw(($getType(aH) + " couldn't be cast to Boolean")) | |
989 | 989 | } | |
990 | 990 | let fv = if (if (aJ()) | |
991 | 991 | then true | |
992 | 992 | else (aW == n)) | |
993 | 993 | then true | |
994 | 994 | else fk | |
995 | 995 | let ei = [if (if (!(fv)) | |
996 | 996 | then true | |
997 | 997 | else eC(dj)) | |
998 | 998 | then true | |
999 | 999 | else aC("get operation is blocked by admin"), if ((size(dj.payments) == 0)) | |
1000 | 1000 | then true | |
1001 | 1001 | else aC("no payments are expected")] | |
1002 | 1002 | if ((ei == ei)) | |
1003 | 1003 | then { | |
1004 | 1004 | let eh = aO(fu) | |
1005 | 1005 | let ab = dj.caller | |
1006 | 1006 | let ac = dj.transactionId | |
1007 | 1007 | let fC = invoke(bd, "unstake", [toBase58String(aX), fB], nil) | |
1008 | 1008 | if ((fC == fC)) | |
1009 | 1009 | then { | |
1010 | 1010 | let fD = eg(eh, fB, aX, ab, ac) | |
1011 | 1011 | if ((fD == fD)) | |
1012 | 1012 | then { | |
1013 | 1013 | let fo = fD._4 | |
1014 | 1014 | let dy = fD._3 | |
1015 | 1015 | let cT = fD._2 | |
1016 | 1016 | let fx = fD._1 | |
1017 | 1017 | let dr = if (if ((fi > 0)) | |
1018 | 1018 | then (fi > fx) | |
1019 | 1019 | else false) | |
1020 | 1020 | then aC(makeString(["amount to receive is less than ", toString(fi)], "")) | |
1021 | 1021 | else fx | |
1022 | 1022 | let fy = invoke(aE, "burn", [fB], [AttachedPayment(aX, fB)]) | |
1023 | 1023 | if ((fy == fy)) | |
1024 | 1024 | then { | |
1025 | 1025 | let fz = [ScriptTransfer(dj.caller, dr, eh)] | |
1026 | 1026 | let fs = if ((dy > 0)) | |
1027 | 1027 | then [ScriptTransfer(aF, dy, eh)] | |
1028 | 1028 | else nil | |
1029 | 1029 | $Tuple2(((cT ++ fz) ++ fs), dr) | |
1030 | 1030 | } | |
1031 | 1031 | else throw("Strict value is not equal to itself.") | |
1032 | 1032 | } | |
1033 | 1033 | else throw("Strict value is not equal to itself.") | |
1034 | 1034 | } | |
1035 | 1035 | else throw("Strict value is not equal to itself.") | |
1036 | 1036 | } | |
1037 | 1037 | else throw("Strict value is not equal to itself.") | |
1038 | 1038 | } | |
1039 | 1039 | ||
1040 | 1040 | ||
1041 | 1041 | ||
1042 | 1042 | @Callable(dj) | |
1043 | 1043 | func get () = { | |
1044 | 1044 | let cE = di(dj) | |
1045 | 1045 | let fE = cE._1 | |
1046 | 1046 | let cl = cE._2 | |
1047 | 1047 | let dl = cE._3 | |
1048 | 1048 | let bT = cE._4 | |
1049 | 1049 | let cm = cE._5 | |
1050 | 1050 | let fF = invoke(aE, "burn", [dl], [AttachedPayment(bT, dl)]) | |
1051 | 1051 | if ((fF == fF)) | |
1052 | 1052 | then cm | |
1053 | 1053 | else throw("Strict value is not equal to itself.") | |
1054 | 1054 | } | |
1055 | 1055 | ||
1056 | 1056 | ||
1057 | 1057 | ||
1058 | 1058 | @Callable(dj) | |
1059 | 1059 | func getNoLess (fG,fH) = { | |
1060 | 1060 | let cE = di(dj) | |
1061 | 1061 | let ck = cE._1 | |
1062 | 1062 | let cl = cE._2 | |
1063 | 1063 | let dl = cE._3 | |
1064 | 1064 | let bT = cE._4 | |
1065 | 1065 | let cm = cE._5 | |
1066 | 1066 | if ((fG > ck)) | |
1067 | 1067 | then throw(((("noLessThenAmtAsset failed: " + toString(ck)) + " < ") + toString(fG))) | |
1068 | 1068 | else if ((fH > cl)) | |
1069 | 1069 | then throw(((("noLessThenPriceAsset failed: " + toString(cl)) + " < ") + toString(fH))) | |
1070 | 1070 | else { | |
1071 | 1071 | let fF = invoke(aE, "burn", [dl], [AttachedPayment(bT, dl)]) | |
1072 | 1072 | if ((fF == fF)) | |
1073 | 1073 | then cm | |
1074 | 1074 | else throw("Strict value is not equal to itself.") | |
1075 | 1075 | } | |
1076 | 1076 | } | |
1077 | 1077 | ||
1078 | 1078 | ||
1079 | 1079 | ||
1080 | 1080 | @Callable(dj) | |
1081 | 1081 | func unstakeAndGet (dr) = { | |
1082 | 1082 | let fI = if ((size(dj.payments) != 0)) | |
1083 | 1083 | then throw("No payments are expected") | |
1084 | 1084 | else true | |
1085 | 1085 | if ((fI == fI)) | |
1086 | 1086 | then { | |
1087 | 1087 | let bI = aL() | |
1088 | 1088 | let bV = fromBase58String(bI[q]) | |
1089 | 1089 | let fC = invoke(bd, "unstake", [toBase58String(bV), dr], nil) | |
1090 | 1090 | if ((fC == fC)) | |
1091 | 1091 | then { | |
1092 | 1092 | let cE = bR(toBase58String(dj.transactionId), toBase58String(bV), dr, dj.caller) | |
1093 | 1093 | let bY = parseIntValue(cE._9) | |
1094 | 1094 | let cm = cE._10 | |
1095 | 1095 | let fJ = if (if (aJ()) | |
1096 | 1096 | then true | |
1097 | 1097 | else (bY == n)) | |
1098 | 1098 | then throw(("Get operation is blocked by admin. Status = " + toString(bY))) | |
1099 | 1099 | else true | |
1100 | 1100 | if ((fJ == fJ)) | |
1101 | 1101 | then { | |
1102 | 1102 | let fF = invoke(aE, "burn", [dr], [AttachedPayment(bV, dr)]) | |
1103 | 1103 | if ((fF == fF)) | |
1104 | 1104 | then cm | |
1105 | 1105 | else throw("Strict value is not equal to itself.") | |
1106 | 1106 | } | |
1107 | 1107 | else throw("Strict value is not equal to itself.") | |
1108 | 1108 | } | |
1109 | 1109 | else throw("Strict value is not equal to itself.") | |
1110 | 1110 | } | |
1111 | 1111 | else throw("Strict value is not equal to itself.") | |
1112 | 1112 | } | |
1113 | 1113 | ||
1114 | 1114 | ||
1115 | 1115 | ||
1116 | 1116 | @Callable(dj) | |
1117 | 1117 | func unstakeAndGetNoLess (fB,fK,fH) = { | |
1118 | 1118 | let fv = if (aJ()) | |
1119 | 1119 | then true | |
1120 | 1120 | else (aW == n) | |
1121 | 1121 | let ei = [if (!(fv)) | |
1122 | 1122 | then true | |
1123 | 1123 | else throw("get operation is blocked by admin"), if ((size(dj.payments) == 0)) | |
1124 | 1124 | then true | |
1125 | 1125 | else throw("no payments are expected")] | |
1126 | 1126 | if ((ei == ei)) | |
1127 | 1127 | then { | |
1128 | 1128 | let fC = invoke(bd, "unstake", [toBase58String(aX), fB], nil) | |
1129 | 1129 | if ((fC == fC)) | |
1130 | 1130 | then { | |
1131 | 1131 | let cE = bR(toBase58String(dj.transactionId), toBase58String(aX), fB, dj.caller) | |
1132 | 1132 | let ck = cE._1 | |
1133 | 1133 | let cl = cE._2 | |
1134 | 1134 | let cm = cE._10 | |
1135 | 1135 | let fL = [if ((ck >= fK)) | |
1136 | 1136 | then true | |
1137 | 1137 | else throw(makeString(["amount asset amount to receive is less than ", toString(fK)], "")), if ((cl >= fH)) | |
1138 | 1138 | then true | |
1139 | 1139 | else throw(makeString(["price asset amount to receive is less than ", toString(fH)], ""))] | |
1140 | 1140 | if ((fL == fL)) | |
1141 | 1141 | then { | |
1142 | 1142 | let fF = invoke(aE, "burn", [fB], [AttachedPayment(aX, fB)]) | |
1143 | 1143 | if ((fF == fF)) | |
1144 | 1144 | then cm | |
1145 | 1145 | else throw("Strict value is not equal to itself.") | |
1146 | 1146 | } | |
1147 | 1147 | else throw("Strict value is not equal to itself.") | |
1148 | 1148 | } | |
1149 | 1149 | else throw("Strict value is not equal to itself.") | |
1150 | 1150 | } | |
1151 | 1151 | else throw("Strict value is not equal to itself.") | |
1152 | 1152 | } | |
1153 | 1153 | ||
1154 | 1154 | ||
1155 | 1155 | ||
1156 | 1156 | @Callable(dj) | |
1157 | 1157 | func activate (fM,fN) = if ((toString(dj.caller) != toString(aE))) | |
1158 | 1158 | then throw("permissions denied") | |
1159 | 1159 | else $Tuple2([StringEntry(ae(), fM), StringEntry(af(), fN)], "success") | |
1160 | 1160 | ||
1161 | 1161 | ||
1162 | 1162 | ||
1163 | 1163 | @Callable(dj) | |
1164 | 1164 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aL()) | |
1165 | 1165 | ||
1166 | 1166 | ||
1167 | 1167 | ||
1168 | 1168 | @Callable(dj) | |
1169 | 1169 | func getAccBalanceWrapperREADONLY (bv) = $Tuple2(nil, bu(bv)) | |
1170 | 1170 | ||
1171 | 1171 | ||
1172 | 1172 | ||
1173 | 1173 | @Callable(dj) | |
1174 | 1174 | func calcPricesWrapperREADONLY (bC,bD,bH) = { | |
1175 | 1175 | let bQ = bG(bC, bD, bH) | |
1176 | 1176 | $Tuple2(nil, [toString(bQ[0]), toString(bQ[1]), toString(bQ[2])]) | |
1177 | 1177 | } | |
1178 | 1178 | ||
1179 | 1179 | ||
1180 | 1180 | ||
1181 | 1181 | @Callable(dj) | |
1182 | 1182 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1183 | 1183 | ||
1184 | 1184 | ||
1185 | 1185 | ||
1186 | 1186 | @Callable(dj) | |
1187 | 1187 | func fromX18WrapperREADONLY (I,J) = $Tuple2(nil, H(parseBigIntValue(I), J)) | |
1188 | 1188 | ||
1189 | 1189 | ||
1190 | 1190 | ||
1191 | 1191 | @Callable(dj) | |
1192 | 1192 | func calcPriceBigIntWrapperREADONLY (bx,by) = $Tuple2(nil, toString(bw(parseBigIntValue(bx), parseBigIntValue(by)))) | |
1193 | 1193 | ||
1194 | 1194 | ||
1195 | 1195 | ||
1196 | 1196 | @Callable(dj) | |
1197 | 1197 | func estimatePutOperationWrapperREADONLY (bS,co,cp,cq,cr,cs,ab,ct,cu) = $Tuple2(nil, cn(bS, co, cp, cq, cr, cs, ab, ct, cu)) | |
1198 | 1198 | ||
1199 | 1199 | ||
1200 | 1200 | ||
1201 | 1201 | @Callable(dj) | |
1202 | 1202 | func estimateGetOperationWrapperREADONLY (bS,bT,bU,ab) = { | |
1203 | 1203 | let cE = bR(bS, bT, bU, addressFromStringValue(ab)) | |
1204 | 1204 | $Tuple2(nil, $Tuple10(cE._1, cE._2, cE._3, cE._4, cE._5, cE._6, cE._7, toString(cE._8), cE._9, cE._10)) | |
1205 | 1205 | } | |
1206 | 1206 | ||
1207 | 1207 | ||
1208 | 1208 | ||
1209 | 1209 | @Callable(dj) | |
1210 | 1210 | func statsREADONLY () = { | |
1211 | 1211 | let bI = aL() | |
1212 | 1212 | let bV = fromBase58String(bI[q]) | |
1213 | 1213 | let cW = bI[r] | |
1214 | 1214 | let cX = bI[s] | |
1215 | 1215 | let cx = bI[v] | |
1216 | 1216 | let cy = bI[w] | |
1217 | 1217 | let bJ = parseIntValue(bI[t]) | |
1218 | 1218 | let bK = parseIntValue(bI[u]) | |
1219 | 1219 | let fO = valueOrErrorMessage(assetInfo(bV), (("Asset " + toBase58String(bV)) + " doesn't exist")).quantity | |
1220 | 1220 | let cY = bu(cW) | |
1221 | 1221 | let cZ = bu(cX) | |
1222 | 1222 | let fP = if ((fO == 0)) | |
1223 | 1223 | then [e, e, e] | |
1224 | 1224 | else bG(cY, cZ, fO) | |
1225 | 1225 | let cf = 0 | |
1226 | 1226 | let fQ = H(fP[1], b) | |
1227 | 1227 | let fR = H(fP[2], b) | |
1228 | 1228 | let fS = value(getInteger(aE, aq(toString(this)))) | |
1229 | 1229 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cY), toString(cZ), toString(fO), toString(cf), toString(fQ), toString(fR), toString(fS)], j)) | |
1230 | 1230 | } | |
1231 | 1231 | ||
1232 | 1232 | ||
1233 | 1233 | ||
1234 | 1234 | @Callable(dj) | |
1235 | 1235 | func evaluatePutByAmountAssetREADONLY (cp) = { | |
1236 | 1236 | let bI = aL() | |
1237 | 1237 | let bV = fromBase58String(bI[q]) | |
1238 | 1238 | let cv = bI[r] | |
1239 | 1239 | let bW = fromBase58String(cv) | |
1240 | 1240 | let cw = bI[s] | |
1241 | 1241 | let bX = fromBase58String(cw) | |
1242 | 1242 | let bJ = parseIntValue(bI[t]) | |
1243 | 1243 | let bK = parseIntValue(bI[u]) | |
1244 | 1244 | let bY = bI[p] | |
1245 | 1245 | let fO = valueOrErrorMessage(assetInfo(bV), (("Asset " + toBase58String(bV)) + " doesn't exist")).quantity | |
1246 | 1246 | let cY = bu(cv) | |
1247 | 1247 | let cZ = bu(cw) | |
1248 | 1248 | let bE = D(cY, bJ) | |
1249 | 1249 | let bF = D(cZ, bK) | |
1250 | 1250 | let ce = if ((fO == 0)) | |
1251 | 1251 | then e | |
1252 | 1252 | else bw(bF, bE) | |
1253 | 1253 | let cB = D(cp, bJ) | |
1254 | 1254 | let cC = fraction(cB, ce, d) | |
1255 | 1255 | let cr = H(cC, bK) | |
1256 | 1256 | let dp = cn("", 500000, cp, bW, cr, bX, "", true, false) | |
1257 | 1257 | let cM = dp._1 | |
1258 | 1258 | let fT = dp._3 | |
1259 | 1259 | let ca = dp._4 | |
1260 | 1260 | let cc = dp._5 | |
1261 | 1261 | let bZ = dp._6 | |
1262 | 1262 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cM), toString(H(ce, b)), toString(ca), toString(cc), toString(bZ), bY, toString(cp), toString(cr)], j)) | |
1263 | 1263 | } | |
1264 | 1264 | ||
1265 | 1265 | ||
1266 | 1266 | ||
1267 | 1267 | @Callable(dj) | |
1268 | 1268 | func evaluatePutByPriceAssetREADONLY (cr) = { | |
1269 | 1269 | let bI = aL() | |
1270 | 1270 | let bV = fromBase58String(bI[q]) | |
1271 | 1271 | let cv = bI[r] | |
1272 | 1272 | let bW = fromBase58String(cv) | |
1273 | 1273 | let cw = bI[s] | |
1274 | 1274 | let bX = fromBase58String(cw) | |
1275 | 1275 | let bJ = parseIntValue(bI[t]) | |
1276 | 1276 | let bK = parseIntValue(bI[u]) | |
1277 | 1277 | let bY = bI[p] | |
1278 | 1278 | let fO = valueOrErrorMessage(assetInfo(bV), (("Asset " + toBase58String(bV)) + " doesn't exist")).quantity | |
1279 | 1279 | let fU = bu(cv) | |
1280 | 1280 | let fV = bu(cw) | |
1281 | 1281 | let fW = D(fU, bJ) | |
1282 | 1282 | let fX = D(fV, bK) | |
1283 | 1283 | let ce = if ((fO == 0)) | |
1284 | 1284 | then e | |
1285 | 1285 | else bw(fX, fW) | |
1286 | 1286 | let cC = D(cr, bK) | |
1287 | 1287 | let cB = fraction(cC, d, ce) | |
1288 | 1288 | let cp = H(cB, bJ) | |
1289 | 1289 | let dp = cn("", 500000, cp, bW, cr, bX, "", true, false) | |
1290 | 1290 | let cM = dp._1 | |
1291 | 1291 | let fT = dp._3 | |
1292 | 1292 | let ca = dp._4 | |
1293 | 1293 | let cc = dp._5 | |
1294 | 1294 | let bZ = dp._6 | |
1295 | 1295 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cM), toString(H(ce, b)), toString(ca), toString(cc), toString(bZ), bY, toString(cp), toString(cr)], j)) | |
1296 | 1296 | } | |
1297 | 1297 | ||
1298 | 1298 | ||
1299 | 1299 | ||
1300 | 1300 | @Callable(dj) | |
1301 | 1301 | func evaluateGetREADONLY (fY,fZ) = { | |
1302 | 1302 | let cE = bR("", fY, fZ, this) | |
1303 | 1303 | let ck = cE._1 | |
1304 | 1304 | let cl = cE._2 | |
1305 | 1305 | let ca = cE._5 | |
1306 | 1306 | let cc = cE._6 | |
1307 | 1307 | let bZ = cE._7 | |
1308 | 1308 | let cf = cE._8 | |
1309 | 1309 | let bY = parseIntValue(cE._9) | |
1310 | 1310 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(ck), toString(cl), toString(ca), toString(cc), toString(bZ), toString(cf), toString(bY)], j)) | |
1311 | 1311 | } | |
1312 | 1312 | ||
1313 | 1313 | ||
1314 | 1314 | @Verifier(ga) | |
1315 | 1315 | func gb () = { | |
1316 | 1316 | let gc = { | |
1317 | 1317 | let du = ez() | |
1318 | 1318 | if ($isInstanceOf(du, "ByteVector")) | |
1319 | 1319 | then { | |
1320 | 1320 | let eD = du | |
1321 | 1321 | eD | |
1322 | 1322 | } | |
1323 | 1323 | else if ($isInstanceOf(du, "Unit")) | |
1324 | 1324 | then ga.senderPublicKey | |
1325 | 1325 | else throw("Match error") | |
1326 | 1326 | } | |
1327 | 1327 | let du = ga | |
1328 | 1328 | if ($isInstanceOf(du, "Order")) | |
1329 | 1329 | then { | |
1330 | 1330 | let cV = du | |
1331 | 1331 | let gd = aK() | |
1332 | 1332 | let av = cU(cV) | |
1333 | 1333 | let aw = sigVerify(cV.bodyBytes, cV.proofs[0], cV.senderPublicKey) | |
1334 | 1334 | let ax = sigVerify(cV.bodyBytes, cV.proofs[1], gd) | |
1335 | 1335 | if (if (if (av) | |
1336 | 1336 | then aw | |
1337 | 1337 | else false) | |
1338 | 1338 | then ax | |
1339 | 1339 | else false) | |
1340 | 1340 | then true | |
1341 | 1341 | else au(av, aw, ax) | |
1342 | 1342 | } | |
1343 | 1343 | else if ($isInstanceOf(du, "SetScriptTransaction")) | |
1344 | 1344 | then { | |
1345 | 1345 | let eA = du | |
1346 | 1346 | let ge = blake2b256(value(eA.script)) | |
1347 | 1347 | let gf = fromBase64String(value(getString(aE, as()))) | |
1348 | 1348 | let gg = scriptHash(this) | |
1349 | 1349 | if (if ((gf == ge)) | |
1350 | 1350 | then (gg != ge) | |
1351 | 1351 | else false) | |
1352 | 1352 | then true | |
1353 | 1353 | else sigVerify(ga.bodyBytes, ga.proofs[0], gc) | |
1354 | 1354 | } | |
1355 | 1355 | else sigVerify(ga.bodyBytes, ga.proofs[0], gc) | |
1356 | 1356 | } | |
1357 | 1357 |
github/deemru/w8io/169f3d6 135.57 ms ◑