tx · 8G4BieYZdFxiCA9e2v1Jxfqmk2JBvpQVpcXzyQbY5U9k
3NAVJcqMw8AsPecAtd74CeNtAG2qRV2V1so: -0.04000000 Waves
2022.05.20 18:52 [2060205] smart account 3NAVJcqMw8AsPecAtd74CeNtAG2qRV2V1so > SELF 0.00000000 Waves
{
"type": 13,
"id": "8G4BieYZdFxiCA9e2v1Jxfqmk2JBvpQVpcXzyQbY5U9k",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1653062021526,
"version": 2,
"chainId": 84,
"sender": "3NAVJcqMw8AsPecAtd74CeNtAG2qRV2V1so",
"senderPublicKey": "EpvN8tsbEWeeqZSLaEVCda8PZfKa1JAF3ZFp7hRq1gWj",
"proofs": [
"2E5UfoMiRMjbkZ3wTNJ9fAcwNPiD68b8aE3hKUPHfbsiT2B9BLeQVwftog9YsutRQUeoeL1wxvHem9orC2QqQJie"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAGdXNkbklEAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAGZXRVU0ROAQAAACAK4G3B+vJa1mRJTBFVzWlpaRuAr4r9KwHwm717XF9N5QAAAAAIaXNTdG9wZWQHAAAAAQAAAAFpAQAAAAdkZXBvc2l0AAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAJhbQgFAAAAA3BtdAAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAABnVzZG5JRAkAAAIAAAABAgAAAA1JbnZhbGlkIHRva2VuAwUAAAAIaXNTdG9wZWQJAAACAAAAAQIAAAAPZEFwcCBpcyBzdG9wcGVkBAAAAAV0b0lzcwkAAGgAAAACBQAAAAJhbQAAAAAAAAAAZAQAAAABcgkBAAAAB1JlaXNzdWUAAAADBQAAAAZldFVTRE4FAAAABXRvSXNzBgQAAAADdHJ4CQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABXRvSXNzBQAAAAZldFVTRE4JAARMAAAAAgUAAAABcgkABEwAAAACBQAAAAN0cngFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Cwwm3A==",
"height": 2060205,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4QZfiEKCSLSZyAsTS72kYGg8ix5c3xAKapW4VGjnts9V
Next: 4XFRAG4MaRmnwppDEvSiy2tnTryiMgHG5a81cNpGfCGS
Diff:
Old | New | | Differences |
---|
16 | 16 | | else if (isStoped) |
---|
17 | 17 | | then throw("dApp is stopped") |
---|
18 | 18 | | else { |
---|
19 | | - | let toIss = (am * 100000000) |
---|
| 19 | + | let toIss = (am * 100) |
---|
20 | 20 | | let r = Reissue(etUSDN, toIss, true) |
---|
21 | 21 | | let trx = ScriptTransfer(i.caller, toIss, etUSDN) |
---|
22 | 22 | | [r, trx] |
---|
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 | 14 | | if ((pmt.assetId != usdnID)) |
---|
15 | 15 | | then throw("Invalid token") |
---|
16 | 16 | | else if (isStoped) |
---|
17 | 17 | | then throw("dApp is stopped") |
---|
18 | 18 | | else { |
---|
19 | | - | let toIss = (am * 100000000) |
---|
| 19 | + | let toIss = (am * 100) |
---|
20 | 20 | | let r = Reissue(etUSDN, toIss, true) |
---|
21 | 21 | | let trx = ScriptTransfer(i.caller, toIss, etUSDN) |
---|
22 | 22 | | [r, trx] |
---|
23 | 23 | | } |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | @Verifier(tx) |
---|
28 | 28 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
29 | 29 | | |
---|