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:
OldNewDifferences
1212 then throw("You should to provide payment")
1313 else if ((i.payments[0].assetId != usdtAssetId))
1414 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)))
1616 then throw("Invalid payment amount")
1717 else [Reissue(coalAssetId, amount, true), ScriptTransfer(i.caller, amount, coalAssetId)]
1818 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let usdtAssetId = base58'AchyiWrhJWfy4hiLrHyxZ8abUqS8fKz5hefDCtZ7yfbW'
55
66 let coalAssetId = base58'4MhpjsP1MPpC49v6zBr7eAAEPZdmHWcrSqcSv8tZcpjo'
77
88 @Callable(i)
99 func mintNazi (amount) = {
1010 let caller = toBase58String(i.caller.bytes)
1111 if ((size(i.payments) != 1))
1212 then throw("You should to provide payment")
1313 else if ((i.payments[0].assetId != usdtAssetId))
1414 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)))
1616 then throw("Invalid payment amount")
1717 else [Reissue(coalAssetId, amount, true), ScriptTransfer(i.caller, amount, coalAssetId)]
1818 }
1919
2020
2121 @Verifier(tx)
2222 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2323

github/deemru/w8io/169f3d6 
21.36 ms