tx · 4fWM54WYkpxTqqU9exCDi1vmopKHmrE6wWACzXW8kbn9
3NCed7Sa796vCpoqBQNy7abWjxd6Njs6EuD: -0.01000000 Waves
2022.05.21 02:15 [2060646] smart account 3NCed7Sa796vCpoqBQNy7abWjxd6Njs6EuD > SELF 0.00000000 Waves
{
"type": 13,
"id": "4fWM54WYkpxTqqU9exCDi1vmopKHmrE6wWACzXW8kbn9",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1653088607509,
"version": 2,
"chainId": 84,
"sender": "3NCed7Sa796vCpoqBQNy7abWjxd6Njs6EuD",
"senderPublicKey": "8F4ZcsWSMR7Eu5DunBcTmqoL1d4mtprsCG5Ra67VKXNC",
"proofs": [
"3r8gGpNQ19aM6CuS1kmSAGbcg6ddP3SiYKXpx7tsioQSeJRdmXRhTwkbidB5kVGbM5LHoWsbcdNqpo7WMYRmrKsB"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAIYVRvQlJhdGUA/////////6YAAAAABmFzc2V0QQEAAAAgwzkhWcvAfIIFEnoK+0v/D4UvhRJvJa6nfVKIDS6ICYYAAAAABmFzc2V0QgEAAAAg0cKFmntUkAJzbvD4Ka+nq1x21XWyCqGRwRTO/+By2gYAAAABAAAAAWkBAAAACmV4Y2hhbmdlQUIAAAAAAwkAAAAAAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAAZhc3NldEEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAUAAAAIYVRvQlJhdGUFAAAABmFzc2V0QgUAAAADbmlsCQAAAgAAAAECAAAAEHVuZXhwZWN0ZWQgdG9rZW4AAAAAg6cvuQ==",
"height": 2060646,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: dsRMV4dghXJyEy1DmhQxT8JKp1gse2TARJFC7QeQCg9
Next: BQhnmGRi5dauJ9NrZLBs54Cn292VvLhv45A8fmStWr15
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let aToBRate = (-10 / -1) |
---|
| 4 | + | let aToBRate = -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 = (-10 / -1) |
---|
| 4 | + | let aToBRate = -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 | | |
---|