tx · BXFL8854fvy8N4oEn6NQRPYsaF2Y8w3E8LHxYESzZBwh
3MuRQgSyRkxAwfGpDpLugY1J4UgfzNNSMc3: -0.01000000 Waves
2022.01.28 16:01 [1898835] smart account 3MuRQgSyRkxAwfGpDpLugY1J4UgfzNNSMc3 > SELF 0.00000000 Waves
{
"type": 13,
"id": "BXFL8854fvy8N4oEn6NQRPYsaF2Y8w3E8LHxYESzZBwh",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1643374881209,
"version": 2,
"chainId": 84,
"sender": "3MuRQgSyRkxAwfGpDpLugY1J4UgfzNNSMc3",
"senderPublicKey": "3SdgVGBDabYCEXiQYqSLuA4ZUPLM96uWHEt6DV7JjY8d",
"proofs": [
"4WFLahVu1xuZxegj3AfnqthwngyBWaBQBwe5g4NBaNiczSvKvcQpG6b5mqe18nFxVs53XkoQdHEPVDdwMPKyiBJU"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAPVVNETnRvV0FWRVNSYXRlAAAAAAAAAAAFAAAAAARVU0ROAQAAACAiZD8evmBG6RFqExPcpjP+Fn4H+Xfps/IV/JlJKjAKNwAAAAAFV0FWRVMBAAAAAAAAAAEAAAABaQEAAAATZXhjaGFuZ2VVU0ROdG9XQVZFUwAAAAADCQAAAAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABFVTRE4JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAUAAAAPVVNETnRvV0FWRVNSYXRlBQAAAAVXQVZFUwUAAAADbmlsCQAAAgAAAAECAAAAEHVuZXhwZWN0ZWQgdG9rZW4AAAAA+C0iXw==",
"height": 1898835,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: C3fKW7g8QTY2KMu4b5b6umuW1RzoaZ2ex48wJG3SNXnG
Next: none
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let USDNtoWAVESRate = 5 |
---|
5 | 5 | | |
---|
6 | 6 | | let USDN = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC' |
---|
7 | 7 | | |
---|
8 | 8 | | let WAVES = base58'' |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(i) |
---|
11 | 11 | | func exchangeUSDNtoWAVES () = if ((i.payments[0].assetId == USDN)) |
---|
12 | 12 | | then [ScriptTransfer(i.caller, (i.payments[0].amount * USDNtoWAVESRate), WAVES)] |
---|
13 | 13 | | else throw("unexpected token") |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|