tx · 5g144YvTrtCGfmFNi49BTLkVykjCmRy5gtYUnR2SUeiz

3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD:  -0.01400000 Waves

2021.08.19 20:21 [1665529] smart account 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD > SELF 0.00000000 Waves

{ "type": 13, "id": "5g144YvTrtCGfmFNi49BTLkVykjCmRy5gtYUnR2SUeiz", "fee": 1400000, "feeAssetId": null, "timestamp": 1629393698387, "version": 2, "chainId": 84, "sender": "3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD", "senderPublicKey": "9WSLkkzDD1adiGFyZbCjY47yzFtCW8U5DKWUqpiuaL3p", "proofs": [ "5qNh3XpHPr4hnwUuPwgt64Ho1MGEJPbzWNXSyLQaoL3jt9iFxeZK3JXthZYKi6aqKvARy9Tm6eeUDpXQKn2t9sxt" ], "script": "base64:AAIFAAAAAAAAARMIAhIECgIBARIECgIBARoICgJhMRICV1UaCAoCYTISAlNXGggKAmEzEgJTVRoHCgJhNBIBVxoHCgJhNRIBVRoHCgJhNhIBUxoLCgJhNxIFYWRtaW4aDAoCYTgSBnNjYWxlOBoHCgJhORIBaRoKCgJiMRIEYW1udBoJCgJiMhIDbWluGgkKAmIzEgNiYnUaCQoCYjQSA2JidxoJCgJiNRIDYmJzGgsKAmI2EgVzd2FwMRoLCgJiNxIFZGlmZnUaCwoCYjgSBXN3YXAyGgsKAmI5EgVkaWZmcxoLCgJjMRIFc3dhcDMaCwoCYzISBWRpZmZ3GggKAmMzEgJvaxoICgJjNBICdHgaDAoCYzUSBnZlcmlmeQAAAAgAAAAAAmExCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABAgAAACMzTkREM2lmQUMxN2NMenh1WXFzZ1hEUlk5RFRRNUJxbXZ3TAAAAAACYTIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAAAV2YWx1ZQAAAAECAAAAIzNOQXpFUzdwU2pmb0hzS051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bAMJAAAAAAAAAgUAAAACYzEFAAAAAmMxBAAAAAJjMgkAAGUAAAACCQAD8AAAAAIFAAAABHRoaXMFAAAAAmE0BQAAAAJiNAMJAAAAAAAAAgUAAAACYzIFAAAAAmMyAwkAAGYAAAACBQAAAAJjMgUAAAACYjIEAAAAAmMzAgAAAAJvawkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFZGVidWcFAAAAAmMyBQAAAANuaWwJAAACAAAAAQkAAaQAAAABBQAAAAJjMgkAAAIAAAABAgAAAAZzdHJpY3QJAAACAAAAAQIAAAAGc3RyaWN0CQAAAgAAAAECAAAABnN0cmljdAkAAAIAAAABAgAAAAZzdHJpY3QJAAACAAAAAQIAAAAGc3RyaWN0CQAAAgAAAAECAAAABnN0cmljdAkAAAIAAAABAgAAAAZTdHJpY3QAAAABAAAAAmM0AQAAAAJjNQAAAAAJAAH0AAAAAwgFAAAAAmM0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACYzQAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACYzQAAAAPc2VuZGVyUHVibGljS2V5+xjJbw==", "height": 1665529, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3Byyha4Beir9iiLqHTKtkhojsRXnhnZGj45U9BSs5v1p Next: none Diff:
OldNewDifferences
1616 let admin = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272")
1717
1818 let scale8 = 100000000
19-
20-let scale6 = 1000000
2119
2220 @Callable(i)
2321 func call1 (amnt,min) = if ((i.caller != admin))
5048 let diffw = (assetBalance(this, W) - bbw)
5149 if ((diffw == diffw))
5250 then if ((diffw > min))
53- then {
54- let ok = "ok"
55-[IntegerEntry("debug", diffw), ScriptTransfer(admin, diffw, W)]
56- }
51+ then [IntegerEntry("debug", diffw)]
5752 else throw(toString(diffw))
5853 else throw("strict value what the fuck")
5954 }
105100 then if ((diffw > min))
106101 then {
107102 let ok = "ok"
108-[IntegerEntry("debug", diffw), ScriptTransfer(admin, diffw, W)]
103+[IntegerEntry("debug", diffw)]
109104 }
110105 else throw(toString(diffw))
111106 else throw("strict")
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
19-
20-let scale6 = 1000000
2119
2220 @Callable(i)
2321 func call1 (amnt,min) = if ((i.caller != admin))
2422 then throw("only admin")
2523 else {
2624 let bbu = assetBalance(this, U)
2725 let bbw = assetBalance(this, W)
2826 let bbs = assetBalance(this, S)
2927 if (if (if ((bbu == bbu))
3028 then (bbw == bbw)
3129 else false)
3230 then (bbs == bbs)
3331 else false)
3432 then {
3533 let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (amnt * scale8))])
3634 if ((swap1 == swap1))
3735 then {
3836 let diffu = (assetBalance(this, U) - bbu)
3937 if ((diffu == diffu))
4038 then {
4139 let swap2 = invoke(SU, "exchange", [1], [AttachedPayment(U, diffu)])
4240 if ((swap2 == swap2))
4341 then {
4442 let diffs = (assetBalance(this, S) - bbs)
4543 if ((diffs == diffs))
4644 then {
4745 let swap3 = invoke(SW, "exchange", [1], [AttachedPayment(S, diffs)])
4846 if ((swap3 == swap3))
4947 then {
5048 let diffw = (assetBalance(this, W) - bbw)
5149 if ((diffw == diffw))
5250 then if ((diffw > min))
53- then {
54- let ok = "ok"
55-[IntegerEntry("debug", diffw), ScriptTransfer(admin, diffw, W)]
56- }
51+ then [IntegerEntry("debug", diffw)]
5752 else throw(toString(diffw))
5853 else throw("strict value what the fuck")
5954 }
6055 else throw("strict value what the fuck")
6156 }
6257 else throw("strict value what the fuck")
6358 }
6459 else throw("strict value what the fuck")
6560 }
6661 else throw("strict value what the fuck")
6762 }
6863 else throw("strict value what the fuck")
6964 }
7065 else throw("Strict value is not equal to itself")
7166 }
7267
7368
7469
7570 @Callable(i)
7671 func call2 (amnt,min) = if ((i.caller != admin))
7772 then throw("only admin")
7873 else {
7974 let bbu = assetBalance(this, U)
8075 let bbw = assetBalance(this, W)
8176 let bbs = assetBalance(this, S)
8277 if (if (if ((bbu == bbu))
8378 then (bbw == bbw)
8479 else false)
8580 then (bbs == bbs)
8681 else false)
8782 then {
8883 let swap1 = invoke(SW, "exchange", [1], [AttachedPayment(W, (amnt * scale8))])
8984 if ((swap1 == swap1))
9085 then {
9186 let diffs = (assetBalance(this, S) - bbs)
9287 if ((diffs == diffs))
9388 then {
9489 let swap2 = invoke(SU, "exchange", [1], [AttachedPayment(S, diffs)])
9590 if ((swap2 == swap2))
9691 then {
9792 let diffu = (assetBalance(this, U) - bbu)
9893 if ((diffu == diffu))
9994 then {
10095 let swap3 = invoke(WU, "exchange", [1], [AttachedPayment(U, diffu)])
10196 if ((swap3 == swap3))
10297 then {
10398 let diffw = (assetBalance(this, W) - bbw)
10499 if ((diffw == diffw))
105100 then if ((diffw > min))
106101 then {
107102 let ok = "ok"
108-[IntegerEntry("debug", diffw), ScriptTransfer(admin, diffw, W)]
103+[IntegerEntry("debug", diffw)]
109104 }
110105 else throw(toString(diffw))
111106 else throw("strict")
112107 }
113108 else throw("strict")
114109 }
115110 else throw("strict")
116111 }
117112 else throw("strict")
118113 }
119114 else throw("strict")
120115 }
121116 else throw("strict")
122117 }
123118 else throw("Strict")
124119 }
125120
126121
127122 @Verifier(tx)
128123 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
129124

github/deemru/w8io/169f3d6 
64.39 ms