tx · GFALYFuGboyMoycGiVqce7rsYBPHJWs1m5okTDKQyVFT

3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD:  -0.01400000 Waves

2021.08.19 19:42 [1665489] smart account 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD > SELF 0.00000000 Waves

{ "type": 13, "id": "GFALYFuGboyMoycGiVqce7rsYBPHJWs1m5okTDKQyVFT", "fee": 1400000, "feeAssetId": null, "timestamp": 1629391341308, "version": 2, "chainId": 84, "sender": "3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD", "senderPublicKey": "9WSLkkzDD1adiGFyZbCjY47yzFtCW8U5DKWUqpiuaL3p", "proofs": [ "32cQG72qtqN2dDJfSxEiXpgjtyrAyiRxbtzTCNx2HjEK7uD1igtrArhSaWzheehbJ9urxKzi4Uui17qQ7pZCPq7K" ], "script": "base64:AAIFAAAAAAAAAQIIAhIAEgAaCAoCYTESAldVGggKAmEyEgJTVxoICgJhMxICU1UaBwoCYTQSAVcaBwoCYTUSAVUaBwoCYTYSAVMaCwoCYTcSBWFkbWluGgwKAmE4EgZzY2FsZTgaDAoCYTkSBnNjYWxlNhoHCgJiMRIBaRoJCgJiMhIDYmJ1GgkKAmIzEgNiYncaCQoCYjQSA2JicxoLCgJiNRIFc3dhcDEaCwoCYjYSBWRpZmZ1GgsKAmI3EgVzd2FwMhoLCgJiOBIFZGlmZnMaCwoCYjkSBXN3YXAzGgsKAmMxEgVkaWZmdxoICgJjMhICb2saCAoCYzMSAnR4GgwKAmM0EgZ2ZXJpZnkAAAAJAAAAAAJhMQkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAABXZhbHVlAAAAAQIAAAAjM05ERDNpZkFDMTdjTHp4dVlxc2dYRFJZOURUUTVCcW12d0wAAAAAAmEyCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABAgAAACMzTkF6RVM3cFNqZm9Ic0tOdW1QNUhSdFN0M3FhZGJxbkh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AAANuaWwDCQAAAAAAAAIFAAAAAmI5BQAAAAJiOQQAAAACYzEJAABlAAAAAgkAA/AAAAACBQAAAAR0aGlzBQAAAAJhNAUAAAACYjMDCQAAAAAAAAIFAAAAAmMxBQAAAAJjMQMJAABmAAAAAgUAAAACYzEAAAAAAAAAAAAEAAAAAmMyAgAAAAJvawkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFZGVidWcFAAAAAmMxBQAAAANuaWwJAAACAAAAAQkAAaQAAAABBQAAAAJjMQkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAABpzdHJpY3QgdmFsdWUgd2hhdCB0aGUgZnVjawkAAAIAAAABAgAAACNTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZgAAAAEAAAACYzMBAAAAAmM0AAAAAAkAAfQAAAADCAUAAAACYzMAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJjMwAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJjMwAAAA9zZW5kZXJQdWJsaWNLZXkHmvMm", "height": 1665489, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DVqLENCpdkESXkVwpoWZy5s8xyPdYcmtLyKExBsmetBw Next: CY5rNBWccUSahazx1uRD1LHrjUuoxooitZJGKfDcUTQG Diff:
OldNewDifferences
2020 let scale6 = 1000000
2121
2222 @Callable(i)
23-func call () = if ((i.caller != admin))
23+func call1 () = if ((i.caller != admin))
2424 then throw("only admin")
2525 else {
2626 let bbu = assetBalance(this, U)
7171 }
7272
7373
74+
75+@Callable(i)
76+func call2 () = if ((i.caller != admin))
77+ then throw("only admin")
78+ else {
79+ let bbu = assetBalance(this, U)
80+ let bbw = assetBalance(this, W)
81+ let bbs = assetBalance(this, S)
82+ if (if (if ((bbu == bbu))
83+ then (bbw == bbw)
84+ else false)
85+ then (bbs == bbs)
86+ else false)
87+ then {
88+ let swap1 = invoke(SW, "exchange", [1], [AttachedPayment(W, (1 * scale8))])
89+ if ((swap1 == swap1))
90+ then {
91+ let diffs = (assetBalance(this, S) - bbs)
92+ if ((diffs == diffs))
93+ then {
94+ let swap2 = invoke(SU, "exchange", [1], [AttachedPayment(S, diffs)])
95+ if ((swap2 == swap2))
96+ then {
97+ let diffu = (assetBalance(this, U) - bbu)
98+ if ((diffu == diffu))
99+ then {
100+ let swap3 = invoke(WU, "exchange", [1], [AttachedPayment(S, diffu)])
101+ if ((swap3 == swap3))
102+ then {
103+ let diffw = (assetBalance(this, W) - bbw)
104+ if ((diffw == diffw))
105+ then if ((diffw > 0))
106+ then {
107+ let ok = "ok"
108+[IntegerEntry("debug", diffw)]
109+ }
110+ else throw(toString(diffw))
111+ else throw("strict value what the fuck")
112+ }
113+ else throw("strict value what the fuck")
114+ }
115+ else throw("strict value what the fuck")
116+ }
117+ else throw("strict value what the fuck")
118+ }
119+ else throw("strict value what the fuck")
120+ }
121+ else throw("strict value what the fuck")
122+ }
123+ else throw("Strict value is not equal to itself")
124+ }
125+
126+
74127 @Verifier(tx)
75128 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
76129
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 call () = if ((i.caller != admin))
23+func call1 () = 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 {
3535 let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (1 * 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))
5252 then if ((diffw > 0))
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
74+
75+@Callable(i)
76+func call2 () = if ((i.caller != admin))
77+ then throw("only admin")
78+ else {
79+ let bbu = assetBalance(this, U)
80+ let bbw = assetBalance(this, W)
81+ let bbs = assetBalance(this, S)
82+ if (if (if ((bbu == bbu))
83+ then (bbw == bbw)
84+ else false)
85+ then (bbs == bbs)
86+ else false)
87+ then {
88+ let swap1 = invoke(SW, "exchange", [1], [AttachedPayment(W, (1 * scale8))])
89+ if ((swap1 == swap1))
90+ then {
91+ let diffs = (assetBalance(this, S) - bbs)
92+ if ((diffs == diffs))
93+ then {
94+ let swap2 = invoke(SU, "exchange", [1], [AttachedPayment(S, diffs)])
95+ if ((swap2 == swap2))
96+ then {
97+ let diffu = (assetBalance(this, U) - bbu)
98+ if ((diffu == diffu))
99+ then {
100+ let swap3 = invoke(WU, "exchange", [1], [AttachedPayment(S, diffu)])
101+ if ((swap3 == swap3))
102+ then {
103+ let diffw = (assetBalance(this, W) - bbw)
104+ if ((diffw == diffw))
105+ then if ((diffw > 0))
106+ then {
107+ let ok = "ok"
108+[IntegerEntry("debug", diffw)]
109+ }
110+ else throw(toString(diffw))
111+ else throw("strict value what the fuck")
112+ }
113+ else throw("strict value what the fuck")
114+ }
115+ else throw("strict value what the fuck")
116+ }
117+ else throw("strict value what the fuck")
118+ }
119+ else throw("strict value what the fuck")
120+ }
121+ else throw("strict value what the fuck")
122+ }
123+ else throw("Strict value is not equal to itself")
124+ }
125+
126+
74127 @Verifier(tx)
75128 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
76129

github/deemru/w8io/169f3d6 
80.35 ms