tx · 7p9xqf7UL9Dx82D4GBN3Vr7TtyQTuKLLsEUcrfD6BmW9
3NAVJcqMw8AsPecAtd74CeNtAG2qRV2V1so: -0.04000000 Waves
2022.05.20 18:48 [2060202] smart account 3NAVJcqMw8AsPecAtd74CeNtAG2qRV2V1so > SELF 0.00000000 Waves
{
"type": 13,
"id": "7p9xqf7UL9Dx82D4GBN3Vr7TtyQTuKLLsEUcrfD6BmW9",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1653061774635,
"version": 2,
"chainId": 84,
"sender": "3NAVJcqMw8AsPecAtd74CeNtAG2qRV2V1so",
"senderPublicKey": "EpvN8tsbEWeeqZSLaEVCda8PZfKa1JAF3ZFp7hRq1gWj",
"proofs": [
"f9ejiqug4vLt5qkzWSgWkih5Gg93b8jLQkoQkN5AfaczzQee77snkpu3hxucVVj928Bd6iVLNf2SHaGxaZKBVvh"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAGdXNkbklEAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAGZXRVU0ROAQAAACAK4G3B+vJa1mRJTBFVzWlpaRuAr4r9KwHwm717XF9N5QAAAAAIaXNTdG9wZWQHAAAAAQAAAAFpAQAAAAdkZXBvc2l0AAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAJhbQgFAAAAA3BtdAAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAABnVzZG5JRAkAAAIAAAABAgAAAA1JbnZhbGlkIHRva2VuAwUAAAAIaXNTdG9wZWQJAAACAAAAAQIAAAAPZEFwcCBpcyBzdG9wcGVkBAAAAAFyCQEAAAAHUmVpc3N1ZQAAAAMFAAAABmV0VVNETgUAAAACYW0GBAAAAAN0cngJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAACYW0FAAAABmV0VVNETgkABEwAAAACBQAAAAFyCQAETAAAAAIFAAAAA3RyeAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkS+9ZL",
"height": 2060202,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2tcM3tV1nz8ixjNfATMS2mCqFbcDhYymnnwEcVrD8SrM
Next: 6B8QFnCL348VduWo7eiKkf5PZL7M12ousJxg9xZ1DQpz
Diff:
Old | New | | Differences |
---|
11 | 11 | | func deposit () = { |
---|
12 | 12 | | let pmt = value(i.payments[0]) |
---|
13 | 13 | | let am = pmt.amount |
---|
14 | | - | let toIss = (am / 100) |
---|
15 | 14 | | if ((pmt.assetId != usdnID)) |
---|
16 | 15 | | then throw("Invalid token") |
---|
17 | 16 | | else if (isStoped) |
---|
18 | 17 | | then throw("dApp is stopped") |
---|
19 | 18 | | else { |
---|
20 | 19 | | let r = Reissue(etUSDN, am, true) |
---|
21 | | - | let trx = ScriptTransfer(i.caller, toIss, etUSDN) |
---|
| 20 | + | let trx = ScriptTransfer(i.caller, am, etUSDN) |
---|
22 | 21 | | [r, trx] |
---|
23 | 22 | | } |
---|
24 | 23 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let usdnID = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' |
---|
5 | 5 | | |
---|
6 | 6 | | let etUSDN = base58'jTZeaNjsi7iJK5mTo42VgYjRBHdHawAdhYykMQUnx7v' |
---|
7 | 7 | | |
---|
8 | 8 | | let isStoped = false |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | 11 | | func deposit () = { |
---|
12 | 12 | | let pmt = value(i.payments[0]) |
---|
13 | 13 | | let am = pmt.amount |
---|
14 | | - | let toIss = (am / 100) |
---|
15 | 14 | | if ((pmt.assetId != usdnID)) |
---|
16 | 15 | | then throw("Invalid token") |
---|
17 | 16 | | else if (isStoped) |
---|
18 | 17 | | then throw("dApp is stopped") |
---|
19 | 18 | | else { |
---|
20 | 19 | | let r = Reissue(etUSDN, am, true) |
---|
21 | | - | let trx = ScriptTransfer(i.caller, toIss, etUSDN) |
---|
| 20 | + | let trx = ScriptTransfer(i.caller, am, etUSDN) |
---|
22 | 21 | | [r, trx] |
---|
23 | 22 | | } |
---|
24 | 23 | | } |
---|
25 | 24 | | |
---|
26 | 25 | | |
---|
27 | 26 | | @Verifier(tx) |
---|
28 | 27 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
29 | 28 | | |
---|