tx · 2eQTS1ebThDxL2T4698NFj6TPzAApFpYUsQfD4kAtCPm
3N7KcuNZ2Pe7hakkyJhJqg63fTZdxPnSX4n: -0.41000000 Waves
2022.06.07 18:32 [2086131] smart account 3N7KcuNZ2Pe7hakkyJhJqg63fTZdxPnSX4n > SELF 0.00000000 Waves
{
"type": 13,
"id": "2eQTS1ebThDxL2T4698NFj6TPzAApFpYUsQfD4kAtCPm",
"fee": 41000000,
"feeAssetId": null,
"timestamp": 1654616009735,
"version": 2,
"chainId": 84,
"sender": "3N7KcuNZ2Pe7hakkyJhJqg63fTZdxPnSX4n",
"senderPublicKey": "DohVVD3Qvdzb87xgN5f6HTwkopRNUzEXYmooZ7VqgAbP",
"proofs": [
"Kz7bNM2oVazATbXn1doC3CChpUyrdZsYwNoHHF5V8wCGZajrmTK5cRQaFbHCssM4R5eq9UXhJVx834kMf8M3t2w"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAMAAAAAFkRFQ0lNQUxfUE9JTlRTX0lOX1VTRE4AAAAAAAAPQkAAAAAAB1VTRE5fSUQBAAAAIIzNSAwucmQ9jj8gH25vcdh78eYiSIsJwGtWNBDECdRaAAAAAANXVlMAAAAAAAX14QAAAAABAAAAAWkBAAAABHN3YXAAAAACAAAACXJvdXRlc1N0cgAAAAxtaW5Ub1JlY2VpdmUEAAAADWNhbGxlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAZhbW91bnQJAABoAAAAAggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAAoJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAANY2FsbGVyQWRkcmVzcwIAAAAMX3N3YXBBbW91bnRfCQAAawAAAAMFAAAABmFtb3VudAUAAAAWREVDSU1BTF9QT0lOVFNfSU5fVVNETgUAAAADV1ZTCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAANY2FsbGVyQWRkcmVzcwkAAGsAAAADBQAAAAZhbW91bnQFAAAAFkRFQ0lNQUxfUE9JTlRTX0lOX1VTRE4FAAAAA1dWUwUAAAAHVVNETl9JRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmB694s",
"height": 2086131,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DifXZ6b2MDUn6WyHqYxqdMkksbc48yfbVj7MjS2zbXww
Next: none
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let DECIMAL_POINTS_IN_TOKEN = 1000000 |
---|
| 4 | + | let DECIMAL_POINTS_IN_USDN = 1000000 |
---|
5 | 5 | | |
---|
6 | 6 | | let USDN_ID = base58'AUddX5CKUwoa6G414ERDiV1kbUQzz8A7fCVuLhwVW7cD' |
---|
7 | 7 | | |
---|
|
12 | 12 | | let callerAddress = toBase58String(i.caller.bytes) |
---|
13 | 13 | | let pmt = value(i.payments[0]) |
---|
14 | 14 | | let amount = (pmt.amount * 10) |
---|
15 | | - | [IntegerEntry((callerAddress + "_swapAmount_"), fraction(amount, DECIMAL_POINTS_IN_TOKEN, WVS)), ScriptTransfer(value(addressFromString(callerAddress)), fraction(amount, DECIMAL_POINTS_IN_TOKEN, WVS), USDN_ID)] |
---|
| 15 | + | [IntegerEntry((callerAddress + "_swapAmount_"), fraction(amount, DECIMAL_POINTS_IN_USDN, WVS)), ScriptTransfer(value(addressFromString(callerAddress)), fraction(amount, DECIMAL_POINTS_IN_USDN, WVS), USDN_ID)] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let DECIMAL_POINTS_IN_TOKEN = 1000000 |
---|
| 4 | + | let DECIMAL_POINTS_IN_USDN = 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 | 14 | | let amount = (pmt.amount * 10) |
---|
15 | | - | [IntegerEntry((callerAddress + "_swapAmount_"), fraction(amount, DECIMAL_POINTS_IN_TOKEN, WVS)), ScriptTransfer(value(addressFromString(callerAddress)), fraction(amount, DECIMAL_POINTS_IN_TOKEN, WVS), USDN_ID)] |
---|
| 15 | + | [IntegerEntry((callerAddress + "_swapAmount_"), fraction(amount, DECIMAL_POINTS_IN_USDN, WVS)), ScriptTransfer(value(addressFromString(callerAddress)), fraction(amount, DECIMAL_POINTS_IN_USDN, 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 | | |
---|