tx · 5MYEEfKcGpupdM5LZGudDHYm6N4hDF7QUo1ZaFTfDHMi
3MxZPzVdHQYNjp99N7VRuR4RLmJUqnDg9ok: -0.00500000 Waves
2022.08.18 21:26 [2190277] smart account 3MxZPzVdHQYNjp99N7VRuR4RLmJUqnDg9ok > SELF 0.00000000 Waves
{
"type": 13,
"id": "5MYEEfKcGpupdM5LZGudDHYm6N4hDF7QUo1ZaFTfDHMi",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1660847268145,
"version": 2,
"chainId": 84,
"sender": "3MxZPzVdHQYNjp99N7VRuR4RLmJUqnDg9ok",
"senderPublicKey": "A1pjoNRKAzNoU5LENmSXCwNcK2rfa9xvd3fzjagNw7ft",
"proofs": [
"2gohEU2B1gsnjBxkymVwcuUsKCMx2Vwbg9pXgZJBDUJdkrQhd7BhzDsU8eFvXwa34k86awQ8bgRcWDRqTj94Yf69"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAgAAAAALdXNkdEFzc2V0SWQBAAAAII7e2C74XKyveq5VW4zqnYfgv+LMufU1mGwmP9aMfGSJAAAAAAtjb2FsQXNzZXRJZAEAAAAgMeDV9UC3cemF7HoOb7evUrojvKZCHJ2aO5kl6ImGjuYAAAABAAAAAWkBAAAACG1pbnROYXppAAAAAQAAAAZhbW91bnQEAAAABmNhbGxlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAAIAAAABAgAAAB1Zb3Ugc2hvdWxkIHRvIHByb3ZpZGUgcGF5bWVudAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAAC3VzZHRBc3NldElkCQAAAgAAAAECAAAAFllvdSBzaG91bGQgdG8gdXNlIFVTRFQDCQEAAAACIT0AAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQJAABoAAAAAgkAAGgAAAACBQAAAAZhbW91bnQAAAAAAAAAAAUAAAAAAAAPQkAJAAACAAAAAQIAAAAWSW52YWxpZCBwYXltZW50IGFtb3VudAkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAC2NvYWxBc3NldElkBQAAAAZhbW91bnQGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGYW1vdW50BQAAAAtjb2FsQXNzZXRJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnhdrzu",
"height": 2190277,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2jC4c1qpaSAq8h8CfAnBoWgCqRvohgT7VopFCTPt1j3G
Next: none
Diff:
Old | New | | Differences |
---|
12 | 12 | | then throw("You should to provide payment") |
---|
13 | 13 | | else if ((i.payments[0].assetId != usdtAssetId)) |
---|
14 | 14 | | then throw("You should to use USDT") |
---|
15 | | - | else if ((i.payments[0].amount != (amount * 5))) |
---|
| 15 | + | else if ((i.payments[0].amount != ((amount * 5) * 1000000))) |
---|
16 | 16 | | then throw("Invalid payment amount") |
---|
17 | 17 | | else [Reissue(coalAssetId, amount, true), ScriptTransfer(i.caller, amount, coalAssetId)] |
---|
18 | 18 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let usdtAssetId = base58'AchyiWrhJWfy4hiLrHyxZ8abUqS8fKz5hefDCtZ7yfbW' |
---|
5 | 5 | | |
---|
6 | 6 | | let coalAssetId = base58'4MhpjsP1MPpC49v6zBr7eAAEPZdmHWcrSqcSv8tZcpjo' |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func mintNazi (amount) = { |
---|
10 | 10 | | let caller = toBase58String(i.caller.bytes) |
---|
11 | 11 | | if ((size(i.payments) != 1)) |
---|
12 | 12 | | then throw("You should to provide payment") |
---|
13 | 13 | | else if ((i.payments[0].assetId != usdtAssetId)) |
---|
14 | 14 | | then throw("You should to use USDT") |
---|
15 | | - | else if ((i.payments[0].amount != (amount * 5))) |
---|
| 15 | + | else if ((i.payments[0].amount != ((amount * 5) * 1000000))) |
---|
16 | 16 | | then throw("Invalid payment amount") |
---|
17 | 17 | | else [Reissue(coalAssetId, amount, true), ScriptTransfer(i.caller, amount, coalAssetId)] |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Verifier(tx) |
---|
22 | 22 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
23 | 23 | | |
---|