tx · CS9FErp42C7ddnA39eUq31bmwEPi6SHB9y15fP5mQGVv
3NCed7Sa796vCpoqBQNy7abWjxd6Njs6EuD: -0.01000000 Waves
2022.05.28 21:35 [2071875] smart account 3NCed7Sa796vCpoqBQNy7abWjxd6Njs6EuD > SELF 0.00000000 Waves
{
"type": 13,
"id": "CS9FErp42C7ddnA39eUq31bmwEPi6SHB9y15fP5mQGVv",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1653762923396,
"version": 2,
"chainId": 84,
"sender": "3NCed7Sa796vCpoqBQNy7abWjxd6Njs6EuD",
"senderPublicKey": "8F4ZcsWSMR7Eu5DunBcTmqoL1d4mtprsCG5Ra67VKXNC",
"proofs": [
"4G4FC26Jruu1ArH1fqfLeKJ4YvLUGeRK7hMjWQeThXcTAJk9v4rH192VEydqj14tRRf2R8T9w9YWtDVFE7aa6Cgm"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAIYVRvQlJhdGUAAAAAAAAAAAoAAAAABmFzc2V0QQEAAAAg0cKFmntUkAJzbvD4Ka+nq1x21XWyCqGRwRTO/+By2gYAAAAABmFzc2V0QgEAAAAgkenz1hIUx/19HzJl9VG283DrzteJ0+Bx/SlWe1jc68IAAAABAAAAAWkBAAAACmV4Y2hhbmdlQUIAAAAAAwkAAAAAAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAAZhc3NldEEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAUAAAAIYVRvQlJhdGUFAAAABmFzc2V0QgUAAAADbmlsCQAAAgAAAAECAAAAEHVuZXhwZWN0ZWQgdG9rZW4AAAAAFYCIpg==",
"height": 2071875,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 93p9e9XKZSiTU9jf3s2rq1s8MNhEaBMzJhxDSosUgB72
Next: 4CtZBs9S5aaCxjwrsR33hd3aDTCzk8E3TnDNM5M5JeqH
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let aToBRate = 10 |
---|
5 | 5 | | |
---|
6 | | - | let assetA = base58'E952b58BUAU6VPQN8MwW9XHmgbQ4V1T9fgQoJqW8ii6h' |
---|
| 6 | + | let assetA = base58'F7pFD6pwuLhnd3hsa5rKmmbGuVLvrkqTmzcrpUxRexZb' |
---|
7 | 7 | | |
---|
8 | | - | let assetB = base58'F7pFD6pwuLhnd3hsa5rKmmbGuVLvrkqTmzcrpUxRexZb' |
---|
| 8 | + | let assetB = base58'Apb2StxR4u6aTx4irCyuDZiiHMFrvNhR8X9JsTBc3zeV' |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | 11 | | func exchangeAB () = if ((i.payments[0].assetId == assetA)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let aToBRate = 10 |
---|
5 | 5 | | |
---|
6 | | - | let assetA = base58'E952b58BUAU6VPQN8MwW9XHmgbQ4V1T9fgQoJqW8ii6h' |
---|
| 6 | + | let assetA = base58'F7pFD6pwuLhnd3hsa5rKmmbGuVLvrkqTmzcrpUxRexZb' |
---|
7 | 7 | | |
---|
8 | | - | let assetB = base58'F7pFD6pwuLhnd3hsa5rKmmbGuVLvrkqTmzcrpUxRexZb' |
---|
| 8 | + | let assetB = base58'Apb2StxR4u6aTx4irCyuDZiiHMFrvNhR8X9JsTBc3zeV' |
---|
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 | | |
---|