tx · 2mYwm2HrdcSBAERgcTJRVpkJQy9iDa58sRsPUtyhuMyU

3N58U7hA1kzMTCUqHiJGdcPdjxAKspMgGNp:  -0.01000000 Waves

2021.07.16 17:47 [1616301] smart account 3N58U7hA1kzMTCUqHiJGdcPdjxAKspMgGNp > SELF 0.00000000 Waves

{ "type": 13, "id": "2mYwm2HrdcSBAERgcTJRVpkJQy9iDa58sRsPUtyhuMyU", "fee": 1000000, "feeAssetId": null, "timestamp": 1626446917261, "version": 2, "chainId": 84, "sender": "3N58U7hA1kzMTCUqHiJGdcPdjxAKspMgGNp", "senderPublicKey": "85gydchvWB9gMPFCKM6kfLPWFSATbtGog2Y6rUjhtQKT", "proofs": [ "56dz6kP2RCGSikxFyiQMS37AdHxZzNjkNyNtvu8aqfVs28WZqQG5A6wBPQt6zPLTq8YfPvybvLvjF15X3THyHas9" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAAAAAAAgAAAAFpAQAAABFidXlUb2tlbldpdGhXYXZlcwAAAAAEAAAACXN3YXBUb2tlbgEAAAAgb43vwMVF3NniH29QbTemn52wAqbd0CJjn9c5H5QYbCgEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAABmFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAACXN3YXBUb2tlbgUAAAADbmlsAAAAAWkBAAAAEXNlbGxUb2tlbkZvcldhdmVzAAAAAAQAAAAJc3dhcFRva2VuAQAAACBvje/AxUXc2eIfb1BtN6afnbACpt3QImOf1zkflBhsKAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAACXN3YXBUb2tlbgkAAAIAAAABAgAAABljYW4gaG9kbCBTd2FwIFRva2VuIG9ubHkuBAAAAAZhbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAAlzd2FwVG9rZW4FAAAAA25pbAAAAAA1e8yq", "height": 1616301, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E5KdkibjJL43e5yndhL8a1D1H5DxjMtiwr9rYtthRyMF Next: D5NVaF36NCs9vv7115Wtr8RyDDJ8tG5gGVyvCDQ8Z41n Diff:
OldNewDifferences
2121 func sellTokenForWaves () = {
2222 let b = base58'8WTnTr8QxFYKhMo7tkjLigfw2zAFFQYzjpoNdSFruTL3'
2323 let c = extract(a.payment)
24- if ((c.assetId == b))
24+ if ((c.assetId != b))
2525 then throw("can hodl Swap Token only.")
2626 else {
2727 let d = c.amount
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func buyTokenWithWaves () = {
88 let b = base58'8WTnTr8QxFYKhMo7tkjLigfw2zAFFQYzjpoNdSFruTL3'
99 let c = extract(a.payment)
1010 if (isDefined(c.assetId))
1111 then throw("can hodl waves only at the moment")
1212 else {
1313 let d = c.amount
1414 TransferSet([ScriptTransfer(a.caller, d, b)])
1515 }
1616 }
1717
1818
1919
2020 @Callable(a)
2121 func sellTokenForWaves () = {
2222 let b = base58'8WTnTr8QxFYKhMo7tkjLigfw2zAFFQYzjpoNdSFruTL3'
2323 let c = extract(a.payment)
24- if ((c.assetId == b))
24+ if ((c.assetId != b))
2525 then throw("can hodl Swap Token only.")
2626 else {
2727 let d = c.amount
2828 TransferSet([ScriptTransfer(a.caller, d, b)])
2929 }
3030 }
3131
3232

github/deemru/w8io/026f985 
22.32 ms