tx · GYffL1ZfVL6Lwz5DfunscQ3hkzUvnyFiBCKMMKSYkZD5 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj: -0.01400000 Waves 2022.03.22 12:31 [1974953] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves
{ "type": 13, "id": "GYffL1ZfVL6Lwz5DfunscQ3hkzUvnyFiBCKMMKSYkZD5", "fee": 1400000, "feeAssetId": null, "timestamp": 1647941480646, "version": 1, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "3XnRvhDtTNNaf4YcDzzb64gNEThVMqhy72bXYE8dXujb7cDoxRQQpWywSHPDees8Z1Sfw1HB2Jgzs18iojkTKDxS", "2s19jRMMNvCq3huFxaA6ijtbCzVcmanX1SHaKEcQsbGjJfmb9qqwtZdD4oN4tX2EMm61fTvHYQTuxdyNoH2Xbrrt", "aDTQftkjHwpz5s3BYwEH1buNRKFLN2SbLYR1Y68kantAKxSSB6HdcS2Lg3U7VpfUuQkmGLyTiiQ4u99v8mjYpCy" ], "script": "base64:AAIFAAAAAAAAADwIAhIGCgQIAQgIEg4KDAgICAgICAEBAQEBARIFCgMICAESABIAEgUKAwgBCBIAEgQKAgEIEgASBAoCCAEAAAB0AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkCAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5BwEAAAAYZ2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AAAAAADCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAwAAAAAAAAAAAgAAAAAAAAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFVNwb25zb3JGZWVUcmFuc2FjdGlvbgQAAAAJc3BvbnNvclR4BQAAAAckbWF0Y2gwAwkBAAAAG2NoZWNrSXNWYWxpZE1pblNwb25zb3JlZEZlZQAAAAEFAAAACXNwb25zb3JUeAkAAGcAAAACBQAAAAVjb3VudAAAAAAAAAAAAwcJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAAO6sqdi", "chainId": 84, "height": 1974953, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BzHtZBJmtJt9EmiZF2JjcbMFmXhkZRHnSZJYGRRmTpqc Next: HrYmWNzyHft45jNm2oSb2azkTdfvvAQAeqHWKtjwUW8k Diff:
Old | New | Differences | |
---|---|---|---|
416 | 416 | func commonWithdraw (cR,X,bZ,bR) = { | |
417 | 417 | let cS = cq(cr) | |
418 | 418 | if ((cS == cS)) | |
419 | - | then { | |
420 | - | let aw = addressFromStringValue(cR) | |
421 | - | let cT = ay() | |
422 | - | let bX = bY(cR, bZ) | |
423 | - | let bP = parseIntValue(bX[by]) | |
424 | - | let ai = bX[bo] | |
425 | - | let bI = parseIntValue(bX[bq]) | |
426 | - | let cU = bX[bp] | |
427 | - | let bL = parseIntValue(bX[bu]) | |
428 | - | let cV = valueOrElse(getInteger(this, an(ai)), x) | |
429 | - | let cJ = ar(ai) | |
430 | - | let cK = as(ai, cR) | |
431 | - | let aM = (bL + getIntegerValue(this, al(ai))) | |
432 | - | let aL = bm(X) | |
433 | - | let aN = bm((X - 1)) | |
434 | - | let cM = bl(aL) | |
435 | - | let cW = if ((ai == "waves")) | |
436 | - | then $Tuple2(aC(bI, cM), aQ) | |
437 | - | else if ((ai == "neutrino")) | |
438 | - | then $Tuple2(az(bI, cM), unit) | |
439 | - | else throw(("Unsupported swap type " + ai)) | |
440 | - | let cX = cb(cW._1, cV) | |
441 | - | let bJ = cX[y] | |
442 | - | let bK = cX[z] | |
443 | - | if (aV) | |
444 | - | then aI() | |
445 | - | else if ((cU != "PENDING")) | |
446 | - | then throw("swap has been already processed") | |
447 | - | else if ((aM > height)) | |
448 | - | then throw((("please wait for: " + toString(aM)) + " block height to withdraw funds")) | |
449 | - | else if (if (if ((X > aK)) | |
450 | - | then true | |
451 | - | else (aM > aL)) | |
452 | - | then true | |
453 | - | else if ((aN != 0)) | |
454 | - | then (aN >= aM) | |
455 | - | else false) | |
456 | - | then aJ(X, aK, aL, aM, aN) | |
457 | - | else if ((0 >= cX[A])) | |
458 | - | then throw("balance equals zero") | |
459 | - | else if (if ((0 > cV)) | |
460 | - | then true | |
461 | - | else (cV >= v)) | |
462 | - | then throw(((("invalid outFeePart config for " + ai) + " swap: outFeePart=") + toString(cV))) | |
463 | - | else { | |
464 | - | let cQ = if (if ((ai == "neutrino")) | |
465 | - | then (cW._1 > 0) | |
466 | - | else false) | |
467 | - | then cs(cW._1) | |
468 | - | else nil | |
469 | - | let cY = invoke(bb, "deposit", nil, [AttachedPayment(cW._2, bK)]) | |
470 | - | if ((cY == cY)) | |
471 | - | then $Tuple2((cQ ++ [IntegerEntry(ak(ai, cR), (cK - bI)), IntegerEntry(aj(ai), (cJ - bI)), ScriptTransfer(aw, bJ, cW._2), StringEntry(bE(cR, bZ), bW(bX, cM, bJ, bK, aM, X, toBase58String(cr.transactionId)))]), unit) | |
472 | - | else throw("Strict value is not equal to itself.") | |
473 | - | } | |
474 | - | } | |
419 | + | then if ((size(cr.payments) != 0)) | |
420 | + | then throw("no payments allowed") | |
421 | + | else { | |
422 | + | let aw = addressFromStringValue(cR) | |
423 | + | let cT = ay() | |
424 | + | let bX = bY(cR, bZ) | |
425 | + | let bP = parseIntValue(bX[by]) | |
426 | + | let ai = bX[bo] | |
427 | + | let bI = parseIntValue(bX[bq]) | |
428 | + | let cU = bX[bp] | |
429 | + | let bL = parseIntValue(bX[bu]) | |
430 | + | let cV = valueOrElse(getInteger(this, an(ai)), x) | |
431 | + | let cJ = ar(ai) | |
432 | + | let cK = as(ai, cR) | |
433 | + | let aM = (bL + getIntegerValue(this, al(ai))) | |
434 | + | let aL = bm(X) | |
435 | + | let aN = bm((X - 1)) | |
436 | + | let cM = bl(aL) | |
437 | + | let cW = if ((ai == "waves")) | |
438 | + | then $Tuple2(aC(bI, cM), aQ) | |
439 | + | else if ((ai == "neutrino")) | |
440 | + | then $Tuple2(az(bI, cM), unit) | |
441 | + | else throw(("Unsupported swap type " + ai)) | |
442 | + | let cX = cb(cW._1, cV) | |
443 | + | let bJ = cX[y] | |
444 | + | let bK = cX[z] | |
445 | + | if (aV) | |
446 | + | then aI() | |
447 | + | else if ((cU != "PENDING")) | |
448 | + | then throw("swap has been already processed") | |
449 | + | else if ((aM > height)) | |
450 | + | then throw((("please wait for: " + toString(aM)) + " block height to withdraw funds")) | |
451 | + | else if (if (if ((X > aK)) | |
452 | + | then true | |
453 | + | else (aM > aL)) | |
454 | + | then true | |
455 | + | else if ((aN != 0)) | |
456 | + | then (aN >= aM) | |
457 | + | else false) | |
458 | + | then aJ(X, aK, aL, aM, aN) | |
459 | + | else if ((0 >= cX[A])) | |
460 | + | then throw("balance equals zero") | |
461 | + | else if (if ((0 > cV)) | |
462 | + | then true | |
463 | + | else (cV >= v)) | |
464 | + | then throw(((("invalid outFeePart config for " + ai) + " swap: outFeePart=") + toString(cV))) | |
465 | + | else { | |
466 | + | let cQ = if (if ((ai == "neutrino")) | |
467 | + | then (cW._1 > 0) | |
468 | + | else false) | |
469 | + | then cs(cW._1) | |
470 | + | else nil | |
471 | + | let cY = invoke(bb, "deposit", nil, [AttachedPayment(cW._2, bK)]) | |
472 | + | if ((cY == cY)) | |
473 | + | then $Tuple2((cQ ++ [IntegerEntry(ak(ai, cR), (cK - bI)), IntegerEntry(aj(ai), (cJ - bI)), ScriptTransfer(aw, bJ, cW._2), StringEntry(bE(cR, bZ), bW(bX, cM, bJ, bK, aM, X, toBase58String(cr.transactionId)))]), unit) | |
474 | + | else throw("Strict value is not equal to itself.") | |
475 | + | } | |
476 | + | } | |
475 | 477 | else throw("Strict value is not equal to itself.") | |
476 | 478 | } | |
477 | 479 | ||
481 | 483 | func constructor (cZ,da,db,dc,dd,de,df,dg,dh,di,dj,dk) = { | |
482 | 484 | let cS = cq(cr) | |
483 | 485 | if ((cS == cS)) | |
484 | - | then [StringEntry(B, cZ), StringEntry(C, da), StringEntry(D, db), StringEntry(F, dc), StringEntry(G, dd), StringEntry(N, de), IntegerEntry(J, df), IntegerEntry(K, dg), IntegerEntry(L, dh), IntegerEntry(M, di), IntegerEntry(O, dj), IntegerEntry(P, dk)] | |
486 | + | then if ((size(cr.payments) != 0)) | |
487 | + | then throw("no payments allowed") | |
488 | + | else [StringEntry(B, cZ), StringEntry(C, da), StringEntry(D, db), StringEntry(F, dc), StringEntry(G, dd), StringEntry(N, de), IntegerEntry(J, df), IntegerEntry(K, dg), IntegerEntry(L, dh), IntegerEntry(M, di), IntegerEntry(O, dj), IntegerEntry(P, dk)] | |
485 | 489 | else throw("Strict value is not equal to itself.") | |
486 | 490 | } | |
487 | 491 | ||
491 | 495 | func constructorV2 (ba,bb,dl) = { | |
492 | 496 | let cS = cq(cr) | |
493 | 497 | if ((cS == cS)) | |
494 | - | then [StringEntry(I, ba), StringEntry(E, bb), IntegerEntry(ao(), dl)] | |
498 | + | then if ((size(cr.payments) != 0)) | |
499 | + | then throw("no payments allowed") | |
500 | + | else [StringEntry(I, ba), StringEntry(E, bb), IntegerEntry(ao(), dl)] | |
495 | 501 | else throw("Strict value is not equal to itself.") | |
496 | 502 | } | |
497 | 503 | ||
502 | 508 | let dm = value(cr.payments[0]) | |
503 | 509 | if (isDefined(dm.assetId)) | |
504 | 510 | then throw("Only Waves token is allowed for swapping.") | |
505 | - | else { | |
506 | - | let aw = toString(cr.caller) | |
507 | - | let cD = toBase58String(cr.transactionId) | |
508 | - | let dn = q(invoke(this, "swapParamsByUserSYSREADONLY", [aw, 0], nil)) | |
509 | - | let do = cA("waves", dm.amount, aw, cD, dn) | |
510 | - | do | |
511 | - | } | |
511 | + | else if ((size(cr.payments) > 1)) | |
512 | + | then throw("swapWavesToNeutrino require only one payment") | |
513 | + | else { | |
514 | + | let aw = toString(cr.caller) | |
515 | + | let cD = toBase58String(cr.transactionId) | |
516 | + | let dn = q(invoke(this, "swapParamsByUserSYSREADONLY", [aw, 0], nil)) | |
517 | + | let do = cA("waves", dm.amount, aw, cD, dn) | |
518 | + | do | |
519 | + | } | |
512 | 520 | } | |
513 | 521 | ||
514 | 522 | ||
518 | 526 | let dm = value(cr.payments[0]) | |
519 | 527 | if ((dm.assetId != aQ)) | |
520 | 528 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
521 | - | else { | |
522 | - | let aw = toString(cr.caller) | |
523 | - | let cD = toBase58String(cr.transactionId) | |
524 | - | let dn = q(invoke(this, "swapParamsByUserSYSREADONLY", [aw, 0], nil)) | |
525 | - | let do = cA("neutrino", dm.amount, aw, cD, dn) | |
526 | - | do | |
527 | - | } | |
529 | + | else if ((size(cr.payments) > 1)) | |
530 | + | then throw("swapNeutrinoToWaves require only one payment") | |
531 | + | else { | |
532 | + | let aw = toString(cr.caller) | |
533 | + | let cD = toBase58String(cr.transactionId) | |
534 | + | let dn = q(invoke(this, "swapParamsByUserSYSREADONLY", [aw, 0], nil)) | |
535 | + | let do = cA("neutrino", dm.amount, aw, cD, dn) | |
536 | + | do | |
537 | + | } | |
528 | 538 | } | |
529 | 539 | ||
530 | 540 | ||
531 | 541 | ||
532 | 542 | @Callable(cr) | |
533 | - | func withdraw (cR,X,bZ) = { | |
534 | - | let dp = invoke(this, "commonWithdraw", [cR, X, bZ, toBase58String(cr.transactionId)], nil) | |
535 | - | if ((dp == dp)) | |
536 | - | then nil | |
537 | - | else throw("Strict value is not equal to itself.") | |
538 | - | } | |
543 | + | func withdraw (cR,X,bZ) = if ((size(cr.payments) != 0)) | |
544 | + | then throw("no payments allowed") | |
545 | + | else { | |
546 | + | let dp = invoke(this, "commonWithdraw", [cR, X, bZ, toBase58String(cr.transactionId)], nil) | |
547 | + | if ((dp == dp)) | |
548 | + | then nil | |
549 | + | else throw("Strict value is not equal to itself.") | |
550 | + | } | |
539 | 551 | ||
540 | 552 | ||
541 | 553 | ||
542 | 554 | @Callable(cr) | |
543 | - | func transferToAuction () = { | |
544 | - | let dq = i(invoke(ba, "calcNeutinoMetricsREADONLY", nil, nil)) | |
545 | - | let dr = o(dq[3]) | |
546 | - | let ds = o(dq[5]) | |
547 | - | let dt = o(dq[6]) | |
548 | - | let du = o(dq[9]) | |
549 | - | let dv = (ds - assetBalance(addressFromStringValue(aR), aX)) | |
550 | - | let dw = (dt - assetBalance(addressFromStringValue(aO), aQ)) | |
551 | - | if (aV) | |
552 | - | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
553 | - | else if ((dv > (1 * v))) | |
554 | - | then [ScriptTransfer(addressFromStringValue(aR), dv, aX)] | |
555 | - | else if ((dw >= (1 * v))) | |
556 | - | then [ScriptTransfer(addressFromStringValue(aO), dw, aQ)] | |
557 | - | else throw(((((((("bond were generated or do not need it. Deficit:" + toString(dv)) + "|") + toString(0)) + ". Surplus:") + toString(dw)) + "|") + toString(dt))) | |
558 | - | } | |
555 | + | func transferToAuction () = if ((size(cr.payments) != 0)) | |
556 | + | then throw("no payments allowed") | |
557 | + | else { | |
558 | + | let dq = i(invoke(ba, "calcNeutinoMetricsREADONLY", nil, nil)) | |
559 | + | let dr = o(dq[3]) | |
560 | + | let ds = o(dq[5]) | |
561 | + | let dt = o(dq[6]) | |
562 | + | let du = o(dq[9]) | |
563 | + | let dv = (ds - assetBalance(addressFromStringValue(aR), aX)) | |
564 | + | let dw = (dt - assetBalance(addressFromStringValue(aO), aQ)) | |
565 | + | if (aV) | |
566 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
567 | + | else if ((dv > (1 * v))) | |
568 | + | then [ScriptTransfer(addressFromStringValue(aR), dv, aX)] | |
569 | + | else if ((dw >= (1 * v))) | |
570 | + | then [ScriptTransfer(addressFromStringValue(aO), dw, aQ)] | |
571 | + | else throw(((((((("bond were generated or do not need it. Deficit:" + toString(dv)) + "|") + toString(0)) + ". Surplus:") + toString(dw)) + "|") + toString(dt))) | |
572 | + | } | |
559 | 573 | ||
560 | 574 | ||
561 | 575 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrElse(getInteger(this, b), 0) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func c (b) = valueOrElse(getString(this, b), "") | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func d (b) = valueOrElse(getBoolean(this, b), false) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func e (f,b) = valueOrElse(getInteger(addressFromStringValue(f), b), 0) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (f,b) = valueOrElse(getString(addressFromStringValue(f), b), "") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func h (f,b) = valueOrElse(getBoolean(addressFromStringValue(f), b), false) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func i (j) = { | |
23 | 23 | let k = j | |
24 | 24 | if ($isInstanceOf(k, "List[Any]")) | |
25 | 25 | then { | |
26 | 26 | let l = k | |
27 | 27 | l | |
28 | 28 | } | |
29 | 29 | else throw("fail to cast into List[Any]") | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func m (j) = { | |
34 | 34 | let k = j | |
35 | 35 | if ($isInstanceOf(k, "String")) | |
36 | 36 | then { | |
37 | 37 | let n = k | |
38 | 38 | n | |
39 | 39 | } | |
40 | 40 | else throw("fail to cast into String") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func o (j) = { | |
45 | 45 | let k = j | |
46 | 46 | if ($isInstanceOf(k, "Int")) | |
47 | 47 | then { | |
48 | 48 | let p = k | |
49 | 49 | p | |
50 | 50 | } | |
51 | 51 | else throw("fail to cast into Int") | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func q (j) = { | |
56 | 56 | let k = j | |
57 | 57 | if ($isInstanceOf(k, "(Int, Int, Int, Int, Int)")) | |
58 | 58 | then { | |
59 | 59 | let r = k | |
60 | 60 | r | |
61 | 61 | } | |
62 | 62 | else throw("fail to cast into Int") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | let s = ["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
67 | 67 | ||
68 | 68 | let t = "__" | |
69 | 69 | ||
70 | 70 | let u = 100000000 | |
71 | 71 | ||
72 | 72 | let v = 1000000 | |
73 | 73 | ||
74 | 74 | let w = 1000000 | |
75 | 75 | ||
76 | 76 | let x = 20000 | |
77 | 77 | ||
78 | 78 | let y = 0 | |
79 | 79 | ||
80 | 80 | let z = 1 | |
81 | 81 | ||
82 | 82 | let A = 2 | |
83 | 83 | ||
84 | 84 | let B = "neutrino_asset_id" | |
85 | 85 | ||
86 | 86 | let C = "bond_asset_id" | |
87 | 87 | ||
88 | 88 | let D = "auction_contract" | |
89 | 89 | ||
90 | 90 | let E = "nsbtStakingContract" | |
91 | 91 | ||
92 | 92 | let F = "liquidation_contract" | |
93 | 93 | ||
94 | 94 | let G = "rpd_contract" | |
95 | 95 | ||
96 | 96 | let H = "control_contract" | |
97 | 97 | ||
98 | 98 | let I = "math_contract" | |
99 | 99 | ||
100 | 100 | let J = "balance_waves_lock_interval" | |
101 | 101 | ||
102 | 102 | let K = "balance_neutrino_lock_interval" | |
103 | 103 | ||
104 | 104 | let L = "min_waves_swap_amount" | |
105 | 105 | ||
106 | 106 | let M = "min_neutrino_swap_amount" | |
107 | 107 | ||
108 | 108 | let N = "node_oracle_provider" | |
109 | 109 | ||
110 | 110 | let O = "neutrinoOut_swap_feePart" | |
111 | 111 | ||
112 | 112 | let P = "wavesOut_swap_feePart" | |
113 | 113 | ||
114 | 114 | let Q = "fees_manager_address" | |
115 | 115 | ||
116 | 116 | let R = "price" | |
117 | 117 | ||
118 | 118 | let S = "price_index" | |
119 | 119 | ||
120 | 120 | let T = "is_blocked" | |
121 | 121 | ||
122 | 122 | func U (V) = ((R + "_") + toString(V)) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func W (X) = ((S + "_") + toString(X)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func Y (Z) = c(makeString(["%s%d%s", "lease", toString(Z), "nodeAddress"], t)) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func aa (Z) = addressFromStringValue(Y(Z)) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func ab () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], t)), (1000 * u)) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func ac (ad) = ("balance_unlock_block_" + ad) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func ae (af) = makeString(["%s%d%s", "lease", toString(af), "id"], t) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ag (af) = makeString(["%s%d%s", "lease", toString(af), "amount"], t) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ah (ai) = (("min_" + ai) + "_swap_amount") | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func aj (ai) = ("balance_lock_" + ai) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func ak (ai,ad) = makeString(["balance_lock", ai, ad], "_") | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func al (ai) = (("balance_" + ai) + "_lock_interval") | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func am () = "balance_node_lock_interval" | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func an (ai) = (ai + "Out_swap_feePart") | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ao () = "swaps_timeframe" | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func ap (ai) = valueOrElse(getInteger(this, ah(ai)), 0) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func aq () = valueOrElse(getInteger(this, ao()), 1440) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func ar (ai) = valueOrElse(getInteger(this, aj(ai)), 0) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func as (ai,ad) = valueOrElse(getInteger(this, ak(ai, ad)), 0) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func at (ai) = valueOrElse(getInteger(this, al(ai)), 1440) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func au () = valueOrElse(getInteger(this, am()), 1) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func av (aw) = makeString(["%s%s", "swapUserSpentInPeriod", aw], t) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func ax (aw) = makeString(["%s%s", "userLastSwapHeight", aw], t) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func ay () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, Q), (Q + " is not specified"))), (Q + " invalid address format")) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func az (aA,aB) = fraction(fraction(aA, w, aB), u, v) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func aC (aA,aB) = fraction(fraction(aA, aB, w), v, u) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func aD (aA,aB) = aC(aA, aB) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func aE (aF) = split(aF, ",") | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func aG (ai,aH) = throw(((("The specified amount in " + ai) + " swap is less than the required minimum of ") + toString(aH))) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func aI () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func aJ (X,aK,aL,aM,aN) = throw(((((((((("invalid price history index: index=" + toString(X)) + " priceIndex=") + toString(aK)) + " indexHeight=") + toString(aL)) + " unlockHeight=") + toString(aM)) + " prevIndexHeight=") + toString(aN))) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | let aO = c(F) | |
216 | 216 | ||
217 | 217 | let aP = c(E) | |
218 | 218 | ||
219 | 219 | let aQ = fromBase58String(c(B)) | |
220 | 220 | ||
221 | 221 | let aR = c(D) | |
222 | 222 | ||
223 | 223 | let aS = c(G) | |
224 | 224 | ||
225 | 225 | let aT = c(H) | |
226 | 226 | ||
227 | 227 | let aU = c(I) | |
228 | 228 | ||
229 | 229 | let aK = e(aT, S) | |
230 | 230 | ||
231 | 231 | let aV = h(aT, T) | |
232 | 232 | ||
233 | 233 | let aW = fromBase58String(c(N)) | |
234 | 234 | ||
235 | 235 | let aX = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z") | |
236 | 236 | ||
237 | 237 | let aY = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
238 | 238 | ||
239 | 239 | let aZ = this | |
240 | 240 | ||
241 | 241 | let ba = addressFromStringValue(aU) | |
242 | 242 | ||
243 | 243 | let bb = addressFromStringValue(aP) | |
244 | 244 | ||
245 | 245 | let bc = e(aT, R) | |
246 | 246 | ||
247 | 247 | func bd (be) = { | |
248 | 248 | let bf = 100000 | |
249 | 249 | let bg = 1000 | |
250 | 250 | let bh = aC(bf, bc) | |
251 | 251 | let bi = (bh * 2) | |
252 | 252 | let bj = fraction(bh, bg, 100) | |
253 | 253 | let bk = value(be.minSponsoredAssetFee) | |
254 | 254 | if (if ((bk >= bi)) | |
255 | 255 | then (bj >= bk) | |
256 | 256 | else false) | |
257 | 257 | then (be.assetId == aQ) | |
258 | 258 | else false | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func bl (V) = e(aT, U(V)) | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func bm (X) = e(aT, W(X)) | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func bn (aw) = makeString(["%s%s%s", "paramByUser", aw, "amount"], t) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | let bo = 1 | |
272 | 272 | ||
273 | 273 | let bp = 2 | |
274 | 274 | ||
275 | 275 | let bq = 3 | |
276 | 276 | ||
277 | 277 | let br = 4 | |
278 | 278 | ||
279 | 279 | let bs = 5 | |
280 | 280 | ||
281 | 281 | let bt = 6 | |
282 | 282 | ||
283 | 283 | let bu = 7 | |
284 | 284 | ||
285 | 285 | let bv = 8 | |
286 | 286 | ||
287 | 287 | let bw = 9 | |
288 | 288 | ||
289 | 289 | let bx = 10 | |
290 | 290 | ||
291 | 291 | let by = 11 | |
292 | 292 | ||
293 | 293 | let bz = 12 | |
294 | 294 | ||
295 | 295 | let bA = 13 | |
296 | 296 | ||
297 | 297 | let bB = 14 | |
298 | 298 | ||
299 | 299 | let bC = 15 | |
300 | 300 | ||
301 | 301 | let bD = 16 | |
302 | 302 | ||
303 | 303 | func bE (aw,bF) = makeString(["%s%s", aw, bF], t) | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | func bG (ai,bH,bI,aB,bJ,bK,bL,bM,bN,bO,bP,bQ,X,bR,bS,bT) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s", ai, bH, bI, aB, bJ, bK, bL, bM, bN, bO, bP, bQ, X, bR, bS, bT], t) | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | func bU (ai,bV,bP) = bG(ai, "PENDING", toString(bV), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(bP), "0", "0", "NULL", "0", "0") | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | func bW (bX,aB,bJ,bK,bQ,X,bR) = bG(bX[bo], "FINISHED", bX[bq], toString(aB), toString(bJ), toString(bK), bX[bu], bX[bv], toString(height), toString(lastBlock.timestamp), bX[by], toString(bQ), toString(X), bR, bX[bC], bX[bD]) | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | func bY (aw,bZ) = { | |
316 | 316 | let ca = bE(aw, bZ) | |
317 | 317 | split(valueOrErrorMessage(getString(this, ca), ("no swap data for " + ca)), t) | |
318 | 318 | } | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | func cb (cc,cd) = { | |
322 | 322 | let ce = fraction(cc, cd, v) | |
323 | 323 | [(cc - ce), ce, cc] | |
324 | 324 | } | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | func cf (cg) = if ((0 > cg)) | |
328 | 328 | then -(cg) | |
329 | 329 | else cg | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func ch (ci) = { | |
333 | 333 | let cj = ((wavesBalance(aZ).available - ci) - ab()) | |
334 | 334 | let ck = a(ag(0)) | |
335 | 335 | let cl = a(ag(1)) | |
336 | 336 | let cm = (cj + ck) | |
337 | 337 | let cn = (cj + cl) | |
338 | 338 | if (if ((cm > 0)) | |
339 | 339 | then true | |
340 | 340 | else (cn > 0)) | |
341 | 341 | then { | |
342 | 342 | let co = cf((cm - cl)) | |
343 | 343 | let cp = cf((cn - ck)) | |
344 | 344 | if ((cp >= co)) | |
345 | 345 | then $Tuple2(0, cm) | |
346 | 346 | else $Tuple2(1, cn) | |
347 | 347 | } | |
348 | 348 | else $Tuple2(-1, 0) | |
349 | 349 | } | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | func cq (cr) = if ((cr.caller != this)) | |
353 | 353 | then throw("Permission denied: this contract only allowed") | |
354 | 354 | else true | |
355 | 355 | ||
356 | 356 | ||
357 | 357 | func cs (ci) = { | |
358 | 358 | let ct = ch(ci) | |
359 | 359 | let af = ct._1 | |
360 | 360 | let cu = ct._2 | |
361 | 361 | if ((cu > 0)) | |
362 | 362 | then { | |
363 | 363 | let cv = ae(af) | |
364 | 364 | let cw = getBinary(this, cv) | |
365 | 365 | let cx = if (isDefined(cw)) | |
366 | 366 | then [LeaseCancel(value(cw))] | |
367 | 367 | else nil | |
368 | 368 | let cy = ag(af) | |
369 | 369 | let cz = Lease(aa(af), cu) | |
370 | 370 | (cx ++ [cz, BinaryEntry(cv, calculateLeaseId(cz)), IntegerEntry(ag(af), cu)]) | |
371 | 371 | } | |
372 | 372 | else nil | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func cA (ai,cB,cC,cD,cE) = { | |
377 | 377 | let cF = cE | |
378 | 378 | let cG = cF._1 | |
379 | 379 | let cH = cF._2 | |
380 | 380 | let cI = cF._3 | |
381 | 381 | let aH = ap(ai) | |
382 | 382 | let cJ = ar(ai) | |
383 | 383 | let cK = as(ai, cC) | |
384 | 384 | let cL = Y(0) | |
385 | 385 | let cM = bl(bm(aK)) | |
386 | 386 | let cN = (cL == cC) | |
387 | 387 | let cO = if (cN) | |
388 | 388 | then au() | |
389 | 389 | else at(ai) | |
390 | 390 | let bP = (height + cO) | |
391 | 391 | let cP = if ((ai == "neutrino")) | |
392 | 392 | then cB | |
393 | 393 | else aC(cB, cM) | |
394 | 394 | if ((aH > cB)) | |
395 | 395 | then aG(ai, aH) | |
396 | 396 | else if (if (!(cN)) | |
397 | 397 | then (cH > 0) | |
398 | 398 | else false) | |
399 | 399 | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + cI)))) | |
400 | 400 | else if (if (!(cN)) | |
401 | 401 | then (cP > cG) | |
402 | 402 | else false) | |
403 | 403 | then throw(((("You have exceeded your swap limit! Requested: " + toString(cP)) + ", available: ") + toString(cG))) | |
404 | 404 | else if (aV) | |
405 | 405 | then aI() | |
406 | 406 | else { | |
407 | 407 | let cQ = if ((ai == "waves")) | |
408 | 408 | then cs(0) | |
409 | 409 | else nil | |
410 | 410 | $Tuple2(([IntegerEntry(av(cC), cP), IntegerEntry(ax(cC), height), IntegerEntry(ak(ai, cC), (cK + cB)), IntegerEntry(ac(cC), bP), IntegerEntry(aj(ai), (cJ + cB)), StringEntry(bE(cC, cD), bU(ai, cB, bP))] ++ cQ), unit) | |
411 | 411 | } | |
412 | 412 | } | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | @Callable(cr) | |
416 | 416 | func commonWithdraw (cR,X,bZ,bR) = { | |
417 | 417 | let cS = cq(cr) | |
418 | 418 | if ((cS == cS)) | |
419 | - | then { | |
420 | - | let aw = addressFromStringValue(cR) | |
421 | - | let cT = ay() | |
422 | - | let bX = bY(cR, bZ) | |
423 | - | let bP = parseIntValue(bX[by]) | |
424 | - | let ai = bX[bo] | |
425 | - | let bI = parseIntValue(bX[bq]) | |
426 | - | let cU = bX[bp] | |
427 | - | let bL = parseIntValue(bX[bu]) | |
428 | - | let cV = valueOrElse(getInteger(this, an(ai)), x) | |
429 | - | let cJ = ar(ai) | |
430 | - | let cK = as(ai, cR) | |
431 | - | let aM = (bL + getIntegerValue(this, al(ai))) | |
432 | - | let aL = bm(X) | |
433 | - | let aN = bm((X - 1)) | |
434 | - | let cM = bl(aL) | |
435 | - | let cW = if ((ai == "waves")) | |
436 | - | then $Tuple2(aC(bI, cM), aQ) | |
437 | - | else if ((ai == "neutrino")) | |
438 | - | then $Tuple2(az(bI, cM), unit) | |
439 | - | else throw(("Unsupported swap type " + ai)) | |
440 | - | let cX = cb(cW._1, cV) | |
441 | - | let bJ = cX[y] | |
442 | - | let bK = cX[z] | |
443 | - | if (aV) | |
444 | - | then aI() | |
445 | - | else if ((cU != "PENDING")) | |
446 | - | then throw("swap has been already processed") | |
447 | - | else if ((aM > height)) | |
448 | - | then throw((("please wait for: " + toString(aM)) + " block height to withdraw funds")) | |
449 | - | else if (if (if ((X > aK)) | |
450 | - | then true | |
451 | - | else (aM > aL)) | |
452 | - | then true | |
453 | - | else if ((aN != 0)) | |
454 | - | then (aN >= aM) | |
455 | - | else false) | |
456 | - | then aJ(X, aK, aL, aM, aN) | |
457 | - | else if ((0 >= cX[A])) | |
458 | - | then throw("balance equals zero") | |
459 | - | else if (if ((0 > cV)) | |
460 | - | then true | |
461 | - | else (cV >= v)) | |
462 | - | then throw(((("invalid outFeePart config for " + ai) + " swap: outFeePart=") + toString(cV))) | |
463 | - | else { | |
464 | - | let cQ = if (if ((ai == "neutrino")) | |
465 | - | then (cW._1 > 0) | |
466 | - | else false) | |
467 | - | then cs(cW._1) | |
468 | - | else nil | |
469 | - | let cY = invoke(bb, "deposit", nil, [AttachedPayment(cW._2, bK)]) | |
470 | - | if ((cY == cY)) | |
471 | - | then $Tuple2((cQ ++ [IntegerEntry(ak(ai, cR), (cK - bI)), IntegerEntry(aj(ai), (cJ - bI)), ScriptTransfer(aw, bJ, cW._2), StringEntry(bE(cR, bZ), bW(bX, cM, bJ, bK, aM, X, toBase58String(cr.transactionId)))]), unit) | |
472 | - | else throw("Strict value is not equal to itself.") | |
473 | - | } | |
474 | - | } | |
419 | + | then if ((size(cr.payments) != 0)) | |
420 | + | then throw("no payments allowed") | |
421 | + | else { | |
422 | + | let aw = addressFromStringValue(cR) | |
423 | + | let cT = ay() | |
424 | + | let bX = bY(cR, bZ) | |
425 | + | let bP = parseIntValue(bX[by]) | |
426 | + | let ai = bX[bo] | |
427 | + | let bI = parseIntValue(bX[bq]) | |
428 | + | let cU = bX[bp] | |
429 | + | let bL = parseIntValue(bX[bu]) | |
430 | + | let cV = valueOrElse(getInteger(this, an(ai)), x) | |
431 | + | let cJ = ar(ai) | |
432 | + | let cK = as(ai, cR) | |
433 | + | let aM = (bL + getIntegerValue(this, al(ai))) | |
434 | + | let aL = bm(X) | |
435 | + | let aN = bm((X - 1)) | |
436 | + | let cM = bl(aL) | |
437 | + | let cW = if ((ai == "waves")) | |
438 | + | then $Tuple2(aC(bI, cM), aQ) | |
439 | + | else if ((ai == "neutrino")) | |
440 | + | then $Tuple2(az(bI, cM), unit) | |
441 | + | else throw(("Unsupported swap type " + ai)) | |
442 | + | let cX = cb(cW._1, cV) | |
443 | + | let bJ = cX[y] | |
444 | + | let bK = cX[z] | |
445 | + | if (aV) | |
446 | + | then aI() | |
447 | + | else if ((cU != "PENDING")) | |
448 | + | then throw("swap has been already processed") | |
449 | + | else if ((aM > height)) | |
450 | + | then throw((("please wait for: " + toString(aM)) + " block height to withdraw funds")) | |
451 | + | else if (if (if ((X > aK)) | |
452 | + | then true | |
453 | + | else (aM > aL)) | |
454 | + | then true | |
455 | + | else if ((aN != 0)) | |
456 | + | then (aN >= aM) | |
457 | + | else false) | |
458 | + | then aJ(X, aK, aL, aM, aN) | |
459 | + | else if ((0 >= cX[A])) | |
460 | + | then throw("balance equals zero") | |
461 | + | else if (if ((0 > cV)) | |
462 | + | then true | |
463 | + | else (cV >= v)) | |
464 | + | then throw(((("invalid outFeePart config for " + ai) + " swap: outFeePart=") + toString(cV))) | |
465 | + | else { | |
466 | + | let cQ = if (if ((ai == "neutrino")) | |
467 | + | then (cW._1 > 0) | |
468 | + | else false) | |
469 | + | then cs(cW._1) | |
470 | + | else nil | |
471 | + | let cY = invoke(bb, "deposit", nil, [AttachedPayment(cW._2, bK)]) | |
472 | + | if ((cY == cY)) | |
473 | + | then $Tuple2((cQ ++ [IntegerEntry(ak(ai, cR), (cK - bI)), IntegerEntry(aj(ai), (cJ - bI)), ScriptTransfer(aw, bJ, cW._2), StringEntry(bE(cR, bZ), bW(bX, cM, bJ, bK, aM, X, toBase58String(cr.transactionId)))]), unit) | |
474 | + | else throw("Strict value is not equal to itself.") | |
475 | + | } | |
476 | + | } | |
475 | 477 | else throw("Strict value is not equal to itself.") | |
476 | 478 | } | |
477 | 479 | ||
478 | 480 | ||
479 | 481 | ||
480 | 482 | @Callable(cr) | |
481 | 483 | func constructor (cZ,da,db,dc,dd,de,df,dg,dh,di,dj,dk) = { | |
482 | 484 | let cS = cq(cr) | |
483 | 485 | if ((cS == cS)) | |
484 | - | then [StringEntry(B, cZ), StringEntry(C, da), StringEntry(D, db), StringEntry(F, dc), StringEntry(G, dd), StringEntry(N, de), IntegerEntry(J, df), IntegerEntry(K, dg), IntegerEntry(L, dh), IntegerEntry(M, di), IntegerEntry(O, dj), IntegerEntry(P, dk)] | |
486 | + | then if ((size(cr.payments) != 0)) | |
487 | + | then throw("no payments allowed") | |
488 | + | else [StringEntry(B, cZ), StringEntry(C, da), StringEntry(D, db), StringEntry(F, dc), StringEntry(G, dd), StringEntry(N, de), IntegerEntry(J, df), IntegerEntry(K, dg), IntegerEntry(L, dh), IntegerEntry(M, di), IntegerEntry(O, dj), IntegerEntry(P, dk)] | |
485 | 489 | else throw("Strict value is not equal to itself.") | |
486 | 490 | } | |
487 | 491 | ||
488 | 492 | ||
489 | 493 | ||
490 | 494 | @Callable(cr) | |
491 | 495 | func constructorV2 (ba,bb,dl) = { | |
492 | 496 | let cS = cq(cr) | |
493 | 497 | if ((cS == cS)) | |
494 | - | then [StringEntry(I, ba), StringEntry(E, bb), IntegerEntry(ao(), dl)] | |
498 | + | then if ((size(cr.payments) != 0)) | |
499 | + | then throw("no payments allowed") | |
500 | + | else [StringEntry(I, ba), StringEntry(E, bb), IntegerEntry(ao(), dl)] | |
495 | 501 | else throw("Strict value is not equal to itself.") | |
496 | 502 | } | |
497 | 503 | ||
498 | 504 | ||
499 | 505 | ||
500 | 506 | @Callable(cr) | |
501 | 507 | func swapWavesToNeutrino () = { | |
502 | 508 | let dm = value(cr.payments[0]) | |
503 | 509 | if (isDefined(dm.assetId)) | |
504 | 510 | then throw("Only Waves token is allowed for swapping.") | |
505 | - | else { | |
506 | - | let aw = toString(cr.caller) | |
507 | - | let cD = toBase58String(cr.transactionId) | |
508 | - | let dn = q(invoke(this, "swapParamsByUserSYSREADONLY", [aw, 0], nil)) | |
509 | - | let do = cA("waves", dm.amount, aw, cD, dn) | |
510 | - | do | |
511 | - | } | |
511 | + | else if ((size(cr.payments) > 1)) | |
512 | + | then throw("swapWavesToNeutrino require only one payment") | |
513 | + | else { | |
514 | + | let aw = toString(cr.caller) | |
515 | + | let cD = toBase58String(cr.transactionId) | |
516 | + | let dn = q(invoke(this, "swapParamsByUserSYSREADONLY", [aw, 0], nil)) | |
517 | + | let do = cA("waves", dm.amount, aw, cD, dn) | |
518 | + | do | |
519 | + | } | |
512 | 520 | } | |
513 | 521 | ||
514 | 522 | ||
515 | 523 | ||
516 | 524 | @Callable(cr) | |
517 | 525 | func swapNeutrinoToWaves () = { | |
518 | 526 | let dm = value(cr.payments[0]) | |
519 | 527 | if ((dm.assetId != aQ)) | |
520 | 528 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
521 | - | else { | |
522 | - | let aw = toString(cr.caller) | |
523 | - | let cD = toBase58String(cr.transactionId) | |
524 | - | let dn = q(invoke(this, "swapParamsByUserSYSREADONLY", [aw, 0], nil)) | |
525 | - | let do = cA("neutrino", dm.amount, aw, cD, dn) | |
526 | - | do | |
527 | - | } | |
529 | + | else if ((size(cr.payments) > 1)) | |
530 | + | then throw("swapNeutrinoToWaves require only one payment") | |
531 | + | else { | |
532 | + | let aw = toString(cr.caller) | |
533 | + | let cD = toBase58String(cr.transactionId) | |
534 | + | let dn = q(invoke(this, "swapParamsByUserSYSREADONLY", [aw, 0], nil)) | |
535 | + | let do = cA("neutrino", dm.amount, aw, cD, dn) | |
536 | + | do | |
537 | + | } | |
528 | 538 | } | |
529 | 539 | ||
530 | 540 | ||
531 | 541 | ||
532 | 542 | @Callable(cr) | |
533 | - | func withdraw (cR,X,bZ) = { | |
534 | - | let dp = invoke(this, "commonWithdraw", [cR, X, bZ, toBase58String(cr.transactionId)], nil) | |
535 | - | if ((dp == dp)) | |
536 | - | then nil | |
537 | - | else throw("Strict value is not equal to itself.") | |
538 | - | } | |
543 | + | func withdraw (cR,X,bZ) = if ((size(cr.payments) != 0)) | |
544 | + | then throw("no payments allowed") | |
545 | + | else { | |
546 | + | let dp = invoke(this, "commonWithdraw", [cR, X, bZ, toBase58String(cr.transactionId)], nil) | |
547 | + | if ((dp == dp)) | |
548 | + | then nil | |
549 | + | else throw("Strict value is not equal to itself.") | |
550 | + | } | |
539 | 551 | ||
540 | 552 | ||
541 | 553 | ||
542 | 554 | @Callable(cr) | |
543 | - | func transferToAuction () = { | |
544 | - | let dq = i(invoke(ba, "calcNeutinoMetricsREADONLY", nil, nil)) | |
545 | - | let dr = o(dq[3]) | |
546 | - | let ds = o(dq[5]) | |
547 | - | let dt = o(dq[6]) | |
548 | - | let du = o(dq[9]) | |
549 | - | let dv = (ds - assetBalance(addressFromStringValue(aR), aX)) | |
550 | - | let dw = (dt - assetBalance(addressFromStringValue(aO), aQ)) | |
551 | - | if (aV) | |
552 | - | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
553 | - | else if ((dv > (1 * v))) | |
554 | - | then [ScriptTransfer(addressFromStringValue(aR), dv, aX)] | |
555 | - | else if ((dw >= (1 * v))) | |
556 | - | then [ScriptTransfer(addressFromStringValue(aO), dw, aQ)] | |
557 | - | else throw(((((((("bond were generated or do not need it. Deficit:" + toString(dv)) + "|") + toString(0)) + ". Surplus:") + toString(dw)) + "|") + toString(dt))) | |
558 | - | } | |
555 | + | func transferToAuction () = if ((size(cr.payments) != 0)) | |
556 | + | then throw("no payments allowed") | |
557 | + | else { | |
558 | + | let dq = i(invoke(ba, "calcNeutinoMetricsREADONLY", nil, nil)) | |
559 | + | let dr = o(dq[3]) | |
560 | + | let ds = o(dq[5]) | |
561 | + | let dt = o(dq[6]) | |
562 | + | let du = o(dq[9]) | |
563 | + | let dv = (ds - assetBalance(addressFromStringValue(aR), aX)) | |
564 | + | let dw = (dt - assetBalance(addressFromStringValue(aO), aQ)) | |
565 | + | if (aV) | |
566 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
567 | + | else if ((dv > (1 * v))) | |
568 | + | then [ScriptTransfer(addressFromStringValue(aR), dv, aX)] | |
569 | + | else if ((dw >= (1 * v))) | |
570 | + | then [ScriptTransfer(addressFromStringValue(aO), dw, aQ)] | |
571 | + | else throw(((((((("bond were generated or do not need it. Deficit:" + toString(dv)) + "|") + toString(0)) + ". Surplus:") + toString(dw)) + "|") + toString(dt))) | |
572 | + | } | |
559 | 573 | ||
560 | 574 | ||
561 | 575 | ||
562 | 576 | @Callable(cr) | |
563 | 577 | func transferUsdnToUser (aA,dx) = if ((cr.caller != addressFromStringValue(aR))) | |
564 | 578 | then throw("Only auction contract is authorized") | |
565 | 579 | else [ScriptTransfer(addressFromStringValue(dx), aA, aQ)] | |
566 | 580 | ||
567 | 581 | ||
568 | 582 | ||
569 | 583 | @Callable(cr) | |
570 | 584 | func acceptWaves () = if ((cr.caller != addressFromStringValue(aR))) | |
571 | 585 | then throw("Currently only auction contract is allowed to call") | |
572 | 586 | else $Tuple2(cs(0), "success") | |
573 | 587 | ||
574 | 588 | ||
575 | 589 | ||
576 | 590 | @Callable(cr) | |
577 | 591 | func swapParamsByUserSYSREADONLY (cC,dy) = { | |
578 | 592 | let dz = i(invoke(bb, "nsbtStakingSYSREADONLY", [cC], nil)) | |
579 | 593 | if ((dz == dz)) | |
580 | 594 | then { | |
581 | 595 | let dA = (o(dz[0]) + dy) | |
582 | 596 | let dB = (o(dz[1]) + dy) | |
583 | 597 | let cG = o(invoke(ba, "calcSwapLimitREADONLY", [dA], nil)) | |
584 | 598 | let dC = valueOrElse(getInteger(this, ax(cC)), 0) | |
585 | 599 | let dD = aq() | |
586 | 600 | let dE = (height - dC) | |
587 | 601 | let dF = (dE >= dD) | |
588 | 602 | let cH = if (dF) | |
589 | 603 | then 0 | |
590 | 604 | else valueOrElse(getInteger(this, av(cC)), 0) | |
591 | 605 | let cI = if (dF) | |
592 | 606 | then 0 | |
593 | 607 | else (dD - dE) | |
594 | 608 | $Tuple2(nil, $Tuple5(cG, cH, cI, dA, dB)) | |
595 | 609 | } | |
596 | 610 | else throw("Strict value is not equal to itself.") | |
597 | 611 | } | |
598 | 612 | ||
599 | 613 | ||
600 | 614 | @Verifier(be) | |
601 | 615 | func dG () = { | |
602 | 616 | let dH = toBase58String(be.id) | |
603 | 617 | let dI = ((((if (sigVerify(be.bodyBytes, be.proofs[0], fromBase58String(s[0]))) | |
604 | 618 | then 1 | |
605 | 619 | else 0) + (if (sigVerify(be.bodyBytes, be.proofs[1], fromBase58String(s[1]))) | |
606 | 620 | then 1 | |
607 | 621 | else 0)) + (if (sigVerify(be.bodyBytes, be.proofs[2], fromBase58String(s[2]))) | |
608 | 622 | then 1 | |
609 | 623 | else 0)) + (if (sigVerify(be.bodyBytes, be.proofs[3], fromBase58String(s[3]))) | |
610 | 624 | then 2 | |
611 | 625 | else 0)) | |
612 | 626 | let k = be | |
613 | 627 | if ($isInstanceOf(k, "SponsorFeeTransaction")) | |
614 | 628 | then { | |
615 | 629 | let dJ = k | |
616 | 630 | if (bd(dJ)) | |
617 | 631 | then (dI >= 3) | |
618 | 632 | else false | |
619 | 633 | } | |
620 | 634 | else (dI >= 3) | |
621 | 635 | } | |
622 | 636 |
github/deemru/w8io/026f985 65.54 ms ◑