tx · 9xD73D3nDCNjpyVyeivn594mAjzggV6G2AaVRvbJ2jNC
3NCed7Sa796vCpoqBQNy7abWjxd6Njs6EuD: -0.01000000 Waves
2022.05.21 01:58 [2060631] smart account 3NCed7Sa796vCpoqBQNy7abWjxd6Njs6EuD > SELF 0.00000000 Waves
{
"type": 13,
"id": "9xD73D3nDCNjpyVyeivn594mAjzggV6G2AaVRvbJ2jNC",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1653087551443,
"version": 2,
"chainId": 84,
"sender": "3NCed7Sa796vCpoqBQNy7abWjxd6Njs6EuD",
"senderPublicKey": "8F4ZcsWSMR7Eu5DunBcTmqoL1d4mtprsCG5Ra67VKXNC",
"proofs": [
"W4XifVJitNghi8WePh3SVDjDPonvGYEz6NnPagKDzr6a1tNCczbdvTHo6SNKMBcniRH33bCRJKGio6bTJ474PNu"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAIYVRvQlJhdGUJAABpAAAAAgAAAAAAAAAAZAAAAAAAAAAAWgAAAAAGYXNzZXRBAQAAACDDOSFZy8B8ggUSegr7S/8PhS+FEm8lrqd9UogNLogJhgAAAAAGYXNzZXRCAQAAACDRwoWae1SQAnNu8Pgpr6erXHbVdbIKoZHBFM7/4HLaBgAAAAEAAAABaQEAAAAKZXhjaGFuZ2VBQgAAAAADCQAAAAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABmFzc2V0QQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABoAAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BQAAAAhhVG9CUmF0ZQUAAAAGYXNzZXRCBQAAAANuaWwJAAACAAAAAQIAAAAQdW5leHBlY3RlZCB0b2tlbgAAAACeEdbp",
"height": 2060631,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EGTXhTN22c9eYJiwvDf4idZRqoZ5oJJfnXmB8eEbY2Nb
Next: 5VmiZsFJRirqmDzHXZmGEnsaXQSbdWgLqXzzcqjQuzuK
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let aToBRate = (100 / 10) |
---|
| 4 | + | let aToBRate = (100 / 90) |
---|
5 | 5 | | |
---|
6 | 6 | | let assetA = base58'E952b58BUAU6VPQN8MwW9XHmgbQ4V1T9fgQoJqW8ii6h' |
---|
7 | 7 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let aToBRate = (100 / 10) |
---|
| 4 | + | let aToBRate = (100 / 90) |
---|
5 | 5 | | |
---|
6 | 6 | | let assetA = base58'E952b58BUAU6VPQN8MwW9XHmgbQ4V1T9fgQoJqW8ii6h' |
---|
7 | 7 | | |
---|
8 | 8 | | let assetB = base58'F7pFD6pwuLhnd3hsa5rKmmbGuVLvrkqTmzcrpUxRexZb' |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | 11 | | func exchangeAB () = if ((i.payments[0].assetId == assetA)) |
---|
12 | 12 | | then [ScriptTransfer(i.caller, (i.payments[0].amount * aToBRate), assetB)] |
---|
13 | 13 | | else throw("unexpected token") |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|