tx · 9n6u2qcU3G1mZFMTRT1rn3wSv45cnBmRz4nRw1aDgo2t

3N7ZQDNskguAikFYpHDs3nSLEqZ1kcawW2w:  -0.01400000 Waves

2020.08.02 19:38 [1114977] smart account 3N7ZQDNskguAikFYpHDs3nSLEqZ1kcawW2w > SELF 0.00000000 Waves

{ "type": 13, "id": "9n6u2qcU3G1mZFMTRT1rn3wSv45cnBmRz4nRw1aDgo2t", "fee": 1400000, "feeAssetId": null, "timestamp": 1596386334363, "version": 1, "sender": "3N7ZQDNskguAikFYpHDs3nSLEqZ1kcawW2w", "senderPublicKey": "9Q2WA38S5hRejUw8CCQ7qorks92Bg8C8Mbfqwj6mQZgV", "proofs": [ "366QE9YQTuZDF5qUMje21L5iP1j5Toam8h38VP5hifjFBvrWiTJdVWpcHHCfwzvCzDWY2aX2bQMYuyZn35KVC12N" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAABXN3YXBwAAAAAgAAAAxzd2FwcEFzc2V0SWQAAAACaWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAlwbXRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50BAAAAAdhc3NldGlkCQACWQAAAAEFAAAAAmlkBAAAAAxzd2FwcGFzc2V0aWQJAAJZAAAAAQUAAAAMc3dhcHBBc3NldElkBAAAAA1hc3NldFF1YW50aXR5BAAAAAckbWF0Y2gwCQAD7AAAAAEFAAAAB2Fzc2V0aWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABUFzc2V0BAAAAAVhc3NldAUAAAAHJG1hdGNoMAgFAAAABWFzc2V0AAAACHF1YW50aXR5CQAAAgAAAAECAAAAEENhbid0IGZpbmQgYXNzZXQEAAAADHdhcHBRdWFudGl0eQQAAAAHJG1hdGNoMAkAA+wAAAABBQAAAAxzd2FwcGFzc2V0aWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABUFzc2V0BAAAAAVh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FAJAAACAAAAAQIAAAAJTm90IFNXQVBQAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAADZHR4BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAANkdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAANkdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAADZHR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAA3N0eAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAADc3R4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAADc3R4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAA3N0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3R0eAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAADdHR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAADdHR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAA3R0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAANtdHgFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAA210eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAA210eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAANtdHgAAAAPc2VuZGVyUHVibGljS2V5B/lcEgw=", "chainId": 84, "height": 1114977, "spentComplexity": 0 } View: original | compacted Prev: 93Suy4uY89dQApWJsPJtCag9kuaPkHv7633rR1ZouqjY Next: none Diff:
OldNewDifferences
2828 else throw("Can't find asset")
2929 }
3030 let l = (k / h)
31- if ((l > 1))
32- then {
33- let m = (e * 1)
34- if ((m > 100000000000))
31+ let m = (e * 1)
32+ let n = (e * l)
33+ if (if ((l > 1))
34+ then (1000 >= m)
35+ else false)
36+ then TransferSet([ScriptTransfer(a.caller, m, g)])
37+ else if (if ((1 >= l))
38+ then (1000 >= n)
39+ else false)
40+ then TransferSet([ScriptTransfer(a.caller, n, g)])
41+ else if (if ((l > 1))
42+ then (m > 1000)
43+ else false)
3544 then throw("Not SWAPP over 1000 WAPP")
36- else TransferSet([ScriptTransfer(a.caller, m, g)])
37- }
38- else if ((1 > l))
39- then {
40- let m = (e * l)
41- if ((m > 100000000000))
45+ else if (if ((1 >= l))
46+ then (n > 1000)
47+ else false)
4248 then throw("Not SWAPP over 1000 WAPP")
43- else TransferSet([ScriptTransfer(a.caller, m, g)])
44- }
45- else throw("Not SWAPP")
49+ else throw("Not SWAPP")
4650 }
4751
4852
49-@Verifier(n)
50-func o () = {
51- let i = n
53+@Verifier(o)
54+func p () = {
55+ let i = o
5256 if ($isInstanceOf(i, "DataTransaction"))
5357 then {
54- let p = i
55- sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
58+ let q = i
59+ sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
5660 }
5761 else if ($isInstanceOf(i, "SetScriptTransaction"))
5862 then {
59- let q = i
60- sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
63+ let r = i
64+ sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
6165 }
6266 else if ($isInstanceOf(i, "TransferTransaction"))
6367 then {
64- let r = i
65- sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
68+ let s = i
69+ sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
6670 }
6771 else if ($isInstanceOf(i, "MassTransferTransaction"))
6872 then {
69- let s = i
70- sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
73+ let t = i
74+ sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
7175 }
7276 else false
7377 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func swapp (b,c) = {
88 let d = extract(a.payment)
99 let e = d.amount
1010 let f = fromBase58String(c)
1111 let g = fromBase58String(b)
1212 let h = {
1313 let i = assetInfo(f)
1414 if ($isInstanceOf(i, "Asset"))
1515 then {
1616 let j = i
1717 j.quantity
1818 }
1919 else throw("Can't find asset")
2020 }
2121 let k = {
2222 let i = assetInfo(g)
2323 if ($isInstanceOf(i, "Asset"))
2424 then {
2525 let j = i
2626 j.quantity
2727 }
2828 else throw("Can't find asset")
2929 }
3030 let l = (k / h)
31- if ((l > 1))
32- then {
33- let m = (e * 1)
34- if ((m > 100000000000))
31+ let m = (e * 1)
32+ let n = (e * l)
33+ if (if ((l > 1))
34+ then (1000 >= m)
35+ else false)
36+ then TransferSet([ScriptTransfer(a.caller, m, g)])
37+ else if (if ((1 >= l))
38+ then (1000 >= n)
39+ else false)
40+ then TransferSet([ScriptTransfer(a.caller, n, g)])
41+ else if (if ((l > 1))
42+ then (m > 1000)
43+ else false)
3544 then throw("Not SWAPP over 1000 WAPP")
36- else TransferSet([ScriptTransfer(a.caller, m, g)])
37- }
38- else if ((1 > l))
39- then {
40- let m = (e * l)
41- if ((m > 100000000000))
45+ else if (if ((1 >= l))
46+ then (n > 1000)
47+ else false)
4248 then throw("Not SWAPP over 1000 WAPP")
43- else TransferSet([ScriptTransfer(a.caller, m, g)])
44- }
45- else throw("Not SWAPP")
49+ else throw("Not SWAPP")
4650 }
4751
4852
49-@Verifier(n)
50-func o () = {
51- let i = n
53+@Verifier(o)
54+func p () = {
55+ let i = o
5256 if ($isInstanceOf(i, "DataTransaction"))
5357 then {
54- let p = i
55- sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
58+ let q = i
59+ sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
5660 }
5761 else if ($isInstanceOf(i, "SetScriptTransaction"))
5862 then {
59- let q = i
60- sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
63+ let r = i
64+ sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
6165 }
6266 else if ($isInstanceOf(i, "TransferTransaction"))
6367 then {
64- let r = i
65- sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
68+ let s = i
69+ sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
6670 }
6771 else if ($isInstanceOf(i, "MassTransferTransaction"))
6872 then {
69- let s = i
70- sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
73+ let t = i
74+ sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
7175 }
7276 else false
7377 }
7478

github/deemru/w8io/026f985 
34.73 ms