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