tx · 71eERG5QVr4UrbPXczR13XjCNQVJrbkLM8Hd2Ke29EE1

3N2HzcM61QM3LsUrsq4UBvi2btJMHyxvVMD:  -0.00100000 Waves

2022.07.16 17:27 [2142419] smart account 3N2HzcM61QM3LsUrsq4UBvi2btJMHyxvVMD > SELF 0.00000000 Waves

{ "type": 13, "id": "71eERG5QVr4UrbPXczR13XjCNQVJrbkLM8Hd2Ke29EE1", "fee": 100000, "feeAssetId": null, "timestamp": 1657981785493, "version": 2, "chainId": 84, "sender": "3N2HzcM61QM3LsUrsq4UBvi2btJMHyxvVMD", "senderPublicKey": "CU5wMqCBg4bC4Zgs8QGiqjjvmeMkSiKo3Ff6k5axJZwr", "proofs": [ "2m1NXWp1LhAtadNjUArm1XXgZDRcTVY3SZxmLVyxU1ffmxo5FLHnkioQwxCvf35Yt7FQhXR9o7schBtVzV2trsgv" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEBEgMKAQEAAAACAAAAAAVnd1VzZAEAAAAg1td3yV5SV/9sTRnPub7Z/8+5gW83ZtDAi9MIvEJ2JY0AAAAABHVzZG4BAAAAIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0AAAAAgAAAAFpAQAAAA9zd2FwR0d1c2RUb1VzZG4AAAABAAAABmFtb3VudAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAVnd1VzZAkAAAIAAAABAgAAAClPbmx5IGd3VXNkIHRva2VuIGlzIGFsbG93ZWQgZm9yIHN3YXBwaW5nLgQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAEdXNkbgUAAAADbmlsAAAAAWkBAAAAD3N3YXBVc2RuVG9HR3VzZAAAAAEAAAAGYW1vdW50BAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAABHVzZG4JAAACAAAAAQIAAAApT25seSBnd1VzZCB0b2tlbiBpcyBhbGxvd2VkIGZvciBzd2FwcGluZy4EAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAABWd3VXNkBQAAAANuaWwAAAAAXLGy8g==", "height": 2142419, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A2CC27i7kagL5XPhpvnUUDwFAEg9gk2kw9Vor2w4cNk8 Next: FEN1bvLwmpJ3LiRupWbMLXSeFsdWA4Cte2x1uXPSGxdp Diff:
OldNewDifferences
2929
3030 @Callable(c)
3131 func swapUsdnToGGusd (d) = {
32- let f = toBase58String(c.caller.bytes)
33- let g = {
34- let h = getInteger(this, f)
35- if ($isInstanceOf(h, "Int"))
36- then {
37- let i = h
38- i
32+ let e = value(c.payments[0])
33+ if ((e.assetId != b))
34+ then throw("Only gwUsd token is allowed for swapping.")
35+ else {
36+ let f = toBase58String(c.caller.bytes)
37+ let g = {
38+ let h = getInteger(this, f)
39+ if ($isInstanceOf(h, "Int"))
40+ then {
41+ let i = h
42+ i
43+ }
44+ else 0
3945 }
40- else 0
41- }
4246 [ScriptTransfer(c.caller, d, a)]
47+ }
4348 }
4449
4550
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'FTeosv2BmZED7kBcGnqDy9tba1VdkeodQveSAATMQusJ'
55
66 let b = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
77
88 @Callable(c)
99 func swapGGusdToUsdn (d) = {
1010 let e = value(c.payments[0])
1111 if ((e.assetId != a))
1212 then throw("Only gwUsd token is allowed for swapping.")
1313 else {
1414 let f = toBase58String(c.caller.bytes)
1515 let g = {
1616 let h = getInteger(this, f)
1717 if ($isInstanceOf(h, "Int"))
1818 then {
1919 let i = h
2020 i
2121 }
2222 else 0
2323 }
2424 [ScriptTransfer(c.caller, d, b)]
2525 }
2626 }
2727
2828
2929
3030 @Callable(c)
3131 func swapUsdnToGGusd (d) = {
32- let f = toBase58String(c.caller.bytes)
33- let g = {
34- let h = getInteger(this, f)
35- if ($isInstanceOf(h, "Int"))
36- then {
37- let i = h
38- i
32+ let e = value(c.payments[0])
33+ if ((e.assetId != b))
34+ then throw("Only gwUsd token is allowed for swapping.")
35+ else {
36+ let f = toBase58String(c.caller.bytes)
37+ let g = {
38+ let h = getInteger(this, f)
39+ if ($isInstanceOf(h, "Int"))
40+ then {
41+ let i = h
42+ i
43+ }
44+ else 0
3945 }
40- else 0
41- }
4246 [ScriptTransfer(c.caller, d, a)]
47+ }
4348 }
4449
4550

github/deemru/w8io/169f3d6 
93.34 ms