tx · GX3WvYdNHaWUahcERDfVbnkLJxMMp1JYyjuZDywBAufx
3N7y2TP4pmoteerwLYjqziJDTRUqQQGQuM9: -0.01000000 Waves
2022.05.19 03:13 [2057813] smart account 3N7y2TP4pmoteerwLYjqziJDTRUqQQGQuM9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "GX3WvYdNHaWUahcERDfVbnkLJxMMp1JYyjuZDywBAufx",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1652919175227,
"version": 2,
"chainId": 84,
"sender": "3N7y2TP4pmoteerwLYjqziJDTRUqQQGQuM9",
"senderPublicKey": "8Wi8LHN4dTGjqNSQrUfmNXjBWMx1ryZZGkTNX5Hmisgx",
"proofs": [
"39jTFuzGjnWE2NFeesPLGcqYwa92Qby89C7bAnpJJXKP7YeL561zitPK6uwoY6HhkquqDPQvabdpTkkKAAZbSrQe"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAIYVRvQlJhdGUAAAAAAAAAAAoAAAAABmFzc2V0QQEAAAAg0cKFmntUkAJzbvD4Ka+nq1x21XWyCqGRwRTO/+By2gYAAAAABmFzc2V0QgEAAAAgwzkhWcvAfIIFEnoK+0v/D4UvhRJvJa6nfVKIDS6ICYYAAAABAAAAAWkBAAAACmV4Y2hhbmdlQUIAAAAAAwkAAAAAAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAAZhc3NldEEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAUAAAAIYVRvQlJhdGUFAAAABmFzc2V0QgUAAAADbmlsCQAAAgAAAAECAAAAEHVuZXhwZWN0ZWQgdG9rZW4AAAAA1uGC5w==",
"height": 2057813,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4KNkU5CYPv4UVTTokV3RNTtDpGkRadv27TAk3xiYHU9c
Next: EgAS8dTc2yeZirNUj3Ad5EiEjW4zehN79tHNuWqtUseT
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | let assetA = base58'F7pFD6pwuLhnd3hsa5rKmmbGuVLvrkqTmzcrpUxRexZb' |
---|
7 | 7 | | |
---|
8 | | - | let assetB = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
| 8 | + | let assetB = base58'E952b58BUAU6VPQN8MwW9XHmgbQ4V1T9fgQoJqW8ii6h' |
---|
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 | 6 | | let assetA = base58'F7pFD6pwuLhnd3hsa5rKmmbGuVLvrkqTmzcrpUxRexZb' |
---|
7 | 7 | | |
---|
8 | | - | let assetB = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
| 8 | + | let assetB = base58'E952b58BUAU6VPQN8MwW9XHmgbQ4V1T9fgQoJqW8ii6h' |
---|
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 | | |
---|