tx · DifXZ6b2MDUn6WyHqYxqdMkksbc48yfbVj7MjS2zbXww
3N7KcuNZ2Pe7hakkyJhJqg63fTZdxPnSX4n: -0.01000000 Waves
2022.06.03 22:24 [2080578] smart account 3N7KcuNZ2Pe7hakkyJhJqg63fTZdxPnSX4n > SELF 0.00000000 Waves
{
"type": 13,
"id": "DifXZ6b2MDUn6WyHqYxqdMkksbc48yfbVj7MjS2zbXww",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1654284299715,
"version": 2,
"chainId": 84,
"sender": "3N7KcuNZ2Pe7hakkyJhJqg63fTZdxPnSX4n",
"senderPublicKey": "DohVVD3Qvdzb87xgN5f6HTwkopRNUzEXYmooZ7VqgAbP",
"proofs": [
"55dNv169qhthg34bSi8WmGYbsVVt6wBktcFm9ikuqw5omZPA5GVexgidifKVwrRy7aL1vkpemvepnBieBWcuPbGG"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAMAAAAAF0RFQ0lNQUxfUE9JTlRTX0lOX1RPS0VOAAAAAAAAD0JAAAAAAAdVU0ROX0lEAQAAACCMzUgMLnJkPY4/IB9ub3HYe/HmIkiLCcBrVjQQxAnUWgAAAAADV1ZTAAAAAAAF9eEAAAAAAQAAAAFpAQAAAARzd2FwAAAAAgAAAAlyb3V0ZXNTdHIAAAAMbWluVG9SZWNlaXZlBAAAAA1jYWxsZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAGYW1vdW50CQAAaAAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAAAKCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAADWNhbGxlckFkZHJlc3MCAAAADF9zd2FwQW1vdW50XwkAAGsAAAADBQAAAAZhbW91bnQFAAAAF0RFQ0lNQUxfUE9JTlRTX0lOX1RPS0VOBQAAAANXVlMJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAABXZhbHVlAAAAAQkABCYAAAABBQAAAA1jYWxsZXJBZGRyZXNzCQAAawAAAAMFAAAABmFtb3VudAUAAAAXREVDSU1BTF9QT0lOVFNfSU5fVE9LRU4FAAAAA1dWUwUAAAAHVVNETl9JRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlWTu2N",
"height": 2080578,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5MmQnKSoVnPuQL7P6rabxKihj6ZWK9T4jcAv9Uh9GCi7
Next: 2eQTS1ebThDxL2T4698NFj6TPzAApFpYUsQfD4kAtCPm
Diff:
Old | New | | Differences |
---|
11 | 11 | | func swap (routesStr,minToReceive) = { |
---|
12 | 12 | | let callerAddress = toBase58String(i.caller.bytes) |
---|
13 | 13 | | let pmt = value(i.payments[0]) |
---|
14 | | - | let amount = pmt.amount |
---|
| 14 | + | let amount = (pmt.amount * 10) |
---|
15 | 15 | | [IntegerEntry((callerAddress + "_swapAmount_"), fraction(amount, DECIMAL_POINTS_IN_TOKEN, WVS)), ScriptTransfer(value(addressFromString(callerAddress)), fraction(amount, DECIMAL_POINTS_IN_TOKEN, WVS), USDN_ID)] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let DECIMAL_POINTS_IN_TOKEN = 1000000 |
---|
5 | 5 | | |
---|
6 | 6 | | let USDN_ID = base58'AUddX5CKUwoa6G414ERDiV1kbUQzz8A7fCVuLhwVW7cD' |
---|
7 | 7 | | |
---|
8 | 8 | | let WVS = 100000000 |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | 11 | | func swap (routesStr,minToReceive) = { |
---|
12 | 12 | | let callerAddress = toBase58String(i.caller.bytes) |
---|
13 | 13 | | let pmt = value(i.payments[0]) |
---|
14 | | - | let amount = pmt.amount |
---|
| 14 | + | let amount = (pmt.amount * 10) |
---|
15 | 15 | | [IntegerEntry((callerAddress + "_swapAmount_"), fraction(amount, DECIMAL_POINTS_IN_TOKEN, WVS)), ScriptTransfer(value(addressFromString(callerAddress)), fraction(amount, DECIMAL_POINTS_IN_TOKEN, WVS), USDN_ID)] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Verifier(tx) |
---|
20 | 20 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
21 | 21 | | |
---|