tx · EgAS8dTc2yeZirNUj3Ad5EiEjW4zehN79tHNuWqtUseT
3N7y2TP4pmoteerwLYjqziJDTRUqQQGQuM9: -0.01000000 Waves
2022.05.21 01:16 [2060592] smart account 3N7y2TP4pmoteerwLYjqziJDTRUqQQGQuM9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "EgAS8dTc2yeZirNUj3Ad5EiEjW4zehN79tHNuWqtUseT",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1653085028213,
"version": 2,
"chainId": 84,
"sender": "3N7y2TP4pmoteerwLYjqziJDTRUqQQGQuM9",
"senderPublicKey": "8Wi8LHN4dTGjqNSQrUfmNXjBWMx1ryZZGkTNX5Hmisgx",
"proofs": [
"Km1KBga2Gh1zaVVM9MJE8Q2aLAGuphpfnfKCSLzFfB5AubUELL8ZpU3DTPQULEHQifGZVRPyaNputnYwWgKVoeA"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAIYVRvQlJhdGUAAAAAAAAAAGQAAAAABmFzc2V0QQEAAAAg0cKFmntUkAJzbvD4Ka+nq1x21XWyCqGRwRTO/+By2gYAAAAABmFzc2V0QgEAAAAgwzkhWcvAfIIFEnoK+0v/D4UvhRJvJa6nfVKIDS6ICYYAAAABAAAAAWkBAAAACmV4Y2hhbmdlQUIAAAAAAwkAAAAAAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAAZhc3NldEEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAUAAAAIYVRvQlJhdGUFAAAABmFzc2V0QgUAAAADbmlsCQAAAgAAAAECAAAAEHVuZXhwZWN0ZWQgdG9rZW4AAAAAnEUBjg==",
"height": 2060592,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GX3WvYdNHaWUahcERDfVbnkLJxMMp1JYyjuZDywBAufx
Next: 8xBfZpCVZjeYKHtuBLCDi7pM1MmsGmmEjzsPFwPQR3nt
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let aToBRate = 10 |
---|
| 4 | + | let aToBRate = 100 |
---|
5 | 5 | | |
---|
6 | 6 | | let assetA = base58'F7pFD6pwuLhnd3hsa5rKmmbGuVLvrkqTmzcrpUxRexZb' |
---|
7 | 7 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let aToBRate = 10 |
---|
| 4 | + | let aToBRate = 100 |
---|
5 | 5 | | |
---|
6 | 6 | | let assetA = base58'F7pFD6pwuLhnd3hsa5rKmmbGuVLvrkqTmzcrpUxRexZb' |
---|
7 | 7 | | |
---|
8 | 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 | | |
---|