tx · 3qq2sXCZydXCfDPnxtANiF6TjUWefMS8xqzYqwouki68

3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD:  -0.01400000 Waves

2021.08.19 19:49 [1665497] smart account 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD > SELF 0.00000000 Waves

{ "type": 13, "id": "3qq2sXCZydXCfDPnxtANiF6TjUWefMS8xqzYqwouki68", "fee": 1400000, "feeAssetId": null, "timestamp": 1629391748924, "version": 2, "chainId": 84, "sender": "3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD", "senderPublicKey": "9WSLkkzDD1adiGFyZbCjY47yzFtCW8U5DKWUqpiuaL3p", "proofs": [ "4mPfaqNwELBtDnGfeZq2t3FeLXSocFu8Si1Tr3bzaB55563VhLLYXrfKnR4JefQnWiAxPfWaLWACfuwHK3HHug4z" ], "script": "base64:AAIFAAAAAAAAASEIAhIECgIBARIECgIBARoICgJhMRICV1UaCAoCYTISAlNXGggKAmEzEgJTVRoHCgJhNBIBVxoHCgJhNRIBVRoHCgJhNhIBUxoLCgJhNxIFYWRtaW4aDAoCYTgSBnNjYWxlOBoMCgJhORIGc2NhbGU2GgcKAmIxEgFpGgoKAmIyEgRhbW50GgkKAmIzEgNtaW4aCQoCYjQSA2JidRoJCgJiNRIDYmJ3GgkKAmI2EgNiYnMaCwoCYjcSBXN3YXAxGgsKAmI4EgVkaWZmdRoLCgJiORIFc3dhcDIaCwoCYzESBWRpZmZzGgsKAmMyEgVzd2FwMxoLCgJjMxIFZGlmZncaCAoCYzQSAm9rGggKAmM1EgJ0eBoMCgJjNhIGdmVyaWZ5AAAACQAAAAACYTEJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAAAV2YWx1ZQAAAAECAAAAIzNOREQzaWZBQzE3Y0x6eHVZcXNnWERSWTlEVFE1QnFtdndMAAAAAAJhMgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAABXZhbHVlAAAAAQIAAAAjM05BekVTN3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0dGFjaGVkUGF5bWVudAAAAAIFAAAAAmE1BQAAAAJiOAUAAAADbmlsAwkAAAAAAAACBQAAAAJjMgUAAAACYzIEAAAAAmMzCQAAZQAAAAIJAAPwAAAAAgUAAAAEdGhpcwUAAAACYTQFAAAAAmI1AwkAAAAAAAACBQAAAAJjMwUAAAACYzMDCQAAZgAAAAIFAAAAAmMzBQAAAAJiMwQAAAACYzQCAAAAAm9rCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAVkZWJ1ZwUAAAACYzMFAAAAA25pbAkAAAIAAAABCQABpAAAAAEFAAAAAmMzCQAAAgAAAAECAAAAGnN0cmljdCB2YWx1ZSB3aGF0IHRoZSBmdWNrCQAAAgAAAAECAAAAGnN0cmljdCB2YWx1ZSB3aGF0IHRoZSBmdWNrCQAAAgAAAAECAAAAGnN0cmljdCB2YWx1ZSB3aGF0IHRoZSBmdWNrCQAAAgAAAAECAAAAGnN0cmljdCB2YWx1ZSB3aGF0IHRoZSBmdWNrCQAAAgAAAAECAAAAGnN0cmljdCB2YWx1ZSB3aGF0IHRoZSBmdWNrCQAAAgAAAAECAAAAGnN0cmljdCB2YWx1ZSB3aGF0IHRoZSBmdWNrCQAAAgAAAAECAAAAI1N0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmAAAAAQAAAAJjNQEAAAACYzYAAAAACQAB9AAAAAMIBQAAAAJjNQAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmM1AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAmM1AAAAD3NlbmRlclB1YmxpY0tleb27Q24=", "height": 1665497, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CY5rNBWccUSahazx1uRD1LHrjUuoxooitZJGKfDcUTQG Next: 3Byyha4Beir9iiLqHTKtkhojsRXnhnZGj45U9BSs5v1p Diff:
OldNewDifferences
2020 let scale6 = 1000000
2121
2222 @Callable(i)
23-func call1 () = if ((i.caller != admin))
23+func call1 (amnt,min) = if ((i.caller != admin))
2424 then throw("only admin")
2525 else {
2626 let bbu = assetBalance(this, U)
3232 then (bbs == bbs)
3333 else false)
3434 then {
35- let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (1 * scale8))])
35+ let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (amnt * scale8))])
3636 if ((swap1 == swap1))
3737 then {
3838 let diffu = (assetBalance(this, U) - bbu)
4949 then {
5050 let diffw = (assetBalance(this, W) - bbw)
5151 if ((diffw == diffw))
52- then if ((diffw > 0))
52+ then if ((diffw > min))
5353 then {
5454 let ok = "ok"
5555 [IntegerEntry("debug", diffw)]
7373
7474
7575 @Callable(i)
76-func call2 () = if ((i.caller != admin))
76+func call2 (amnt,min) = if ((i.caller != admin))
7777 then throw("only admin")
7878 else {
7979 let bbu = assetBalance(this, U)
8585 then (bbs == bbs)
8686 else false)
8787 then {
88- let swap1 = invoke(SW, "exchange", [1], [AttachedPayment(W, (1 * scale8))])
88+ let swap1 = invoke(SW, "exchange", [1], [AttachedPayment(W, (amnt * scale8))])
8989 if ((swap1 == swap1))
9090 then {
9191 let diffs = (assetBalance(this, S) - bbs)
102102 then {
103103 let diffw = (assetBalance(this, W) - bbw)
104104 if ((diffw == diffw))
105- then if ((diffw > 0))
105+ then if ((diffw > min))
106106 then {
107107 let ok = "ok"
108108 [IntegerEntry("debug", diffw)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let WU = addressFromStringValue(value("3NDD3ifAC17cLzxuYqsgXDRY9DTQ5BqmvwL"))
55
66 let SW = addressFromStringValue(value("3NAzES7pSjfoHsKNumP5HRtSt3qadbqnHip"))
77
88 let SU = addressFromStringValue(value("3MrBtdped4oUFs1BvLNu53Dm1AMGiTHkT9B"))
99
1010 let W = base58'3Tg4GRpKeek5wWAQRJKH1ucjMuKNom3f2h67WNNu6xVS'
1111
1212 let U = base58'gAAmMoquySsX6q5EmzciFfB8RecAhZR9W1HKNntNekL'
1313
1414 let S = base58'89G3XEYzMSztS6RPN5h2da7j43r4zgKufReZWn1MqX7g'
1515
1616 let admin = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272")
1717
1818 let scale8 = 100000000
1919
2020 let scale6 = 1000000
2121
2222 @Callable(i)
23-func call1 () = if ((i.caller != admin))
23+func call1 (amnt,min) = if ((i.caller != admin))
2424 then throw("only admin")
2525 else {
2626 let bbu = assetBalance(this, U)
2727 let bbw = assetBalance(this, W)
2828 let bbs = assetBalance(this, S)
2929 if (if (if ((bbu == bbu))
3030 then (bbw == bbw)
3131 else false)
3232 then (bbs == bbs)
3333 else false)
3434 then {
35- let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (1 * scale8))])
35+ let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (amnt * scale8))])
3636 if ((swap1 == swap1))
3737 then {
3838 let diffu = (assetBalance(this, U) - bbu)
3939 if ((diffu == diffu))
4040 then {
4141 let swap2 = invoke(SU, "exchange", [1], [AttachedPayment(U, diffu)])
4242 if ((swap2 == swap2))
4343 then {
4444 let diffs = (assetBalance(this, S) - bbs)
4545 if ((diffs == diffs))
4646 then {
4747 let swap3 = invoke(SW, "exchange", [1], [AttachedPayment(S, diffs)])
4848 if ((swap3 == swap3))
4949 then {
5050 let diffw = (assetBalance(this, W) - bbw)
5151 if ((diffw == diffw))
52- then if ((diffw > 0))
52+ then if ((diffw > min))
5353 then {
5454 let ok = "ok"
5555 [IntegerEntry("debug", diffw)]
5656 }
5757 else throw(toString(diffw))
5858 else throw("strict value what the fuck")
5959 }
6060 else throw("strict value what the fuck")
6161 }
6262 else throw("strict value what the fuck")
6363 }
6464 else throw("strict value what the fuck")
6565 }
6666 else throw("strict value what the fuck")
6767 }
6868 else throw("strict value what the fuck")
6969 }
7070 else throw("Strict value is not equal to itself")
7171 }
7272
7373
7474
7575 @Callable(i)
76-func call2 () = if ((i.caller != admin))
76+func call2 (amnt,min) = if ((i.caller != admin))
7777 then throw("only admin")
7878 else {
7979 let bbu = assetBalance(this, U)
8080 let bbw = assetBalance(this, W)
8181 let bbs = assetBalance(this, S)
8282 if (if (if ((bbu == bbu))
8383 then (bbw == bbw)
8484 else false)
8585 then (bbs == bbs)
8686 else false)
8787 then {
88- let swap1 = invoke(SW, "exchange", [1], [AttachedPayment(W, (1 * scale8))])
88+ let swap1 = invoke(SW, "exchange", [1], [AttachedPayment(W, (amnt * scale8))])
8989 if ((swap1 == swap1))
9090 then {
9191 let diffs = (assetBalance(this, S) - bbs)
9292 if ((diffs == diffs))
9393 then {
9494 let swap2 = invoke(SU, "exchange", [1], [AttachedPayment(S, diffs)])
9595 if ((swap2 == swap2))
9696 then {
9797 let diffu = (assetBalance(this, U) - bbu)
9898 if ((diffu == diffu))
9999 then {
100100 let swap3 = invoke(WU, "exchange", [1], [AttachedPayment(U, diffu)])
101101 if ((swap3 == swap3))
102102 then {
103103 let diffw = (assetBalance(this, W) - bbw)
104104 if ((diffw == diffw))
105- then if ((diffw > 0))
105+ then if ((diffw > min))
106106 then {
107107 let ok = "ok"
108108 [IntegerEntry("debug", diffw)]
109109 }
110110 else throw(toString(diffw))
111111 else throw("strict value what the fuck")
112112 }
113113 else throw("strict value what the fuck")
114114 }
115115 else throw("strict value what the fuck")
116116 }
117117 else throw("strict value what the fuck")
118118 }
119119 else throw("strict value what the fuck")
120120 }
121121 else throw("strict value what the fuck")
122122 }
123123 else throw("Strict value is not equal to itself")
124124 }
125125
126126
127127 @Verifier(tx)
128128 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
129129

github/deemru/w8io/169f3d6 
36.81 ms