tx · C8M62yJdHTsn1prLAaZUNL4nJRQEuojUWBuXhaQSgYPD

3N5trxFVymbfKRmVP5X4vDioRXzy9yB13vG:  -0.01000000 Waves

2022.01.28 16:02 [1898836] smart account 3N5trxFVymbfKRmVP5X4vDioRXzy9yB13vG > SELF 0.00000000 Waves

{ "type": 13, "id": "C8M62yJdHTsn1prLAaZUNL4nJRQEuojUWBuXhaQSgYPD", "fee": 1000000, "feeAssetId": null, "timestamp": 1643374998998, "version": 2, "chainId": 84, "sender": "3N5trxFVymbfKRmVP5X4vDioRXzy9yB13vG", "senderPublicKey": "FWkzeFb6FuiSERqay2EVde5pDKAA8TdsTqykuZoau9Ft", "proofs": [ "4kyUHnGFwr58VxvCLJUu9fS9G4hXMZrdCjgqry7p1yGTHmRUKMqamKRq3uK8jPJGuEpDfBb3EXq2E1MBmBsEQ7P5" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABQAAAAAMZXhjaGFuZ2VSYXRlAAAAAAAAAAAFAAAAABdleGNoYW5nZVJhdGVEaWZmUGVyY2VudAAAAAAAAAAAFAAAAAAPVVNETnRvV0FWRVNyYXRlCQAAawAAAAMFAAAADGV4Y2hhbmdlUmF0ZQkAAGUAAAACAAAAAAAAAABkBQAAABdleGNoYW5nZVJhdGVEaWZmUGVyY2VudAAAAAAAAAAAZAAAAAAEVVNETgEAAAAgImQ/Hr5gRukRahMT3KYz/hZ+B/l36bPyFfyZSSowCjcAAAAABVdBVkVTAQAAAAAAAAABAAAAAWkBAAAAE2V4Y2hhbmdlV0FWRVN0b1VTRE4AAAAAAwkAAAAAAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAAVXQVZFUwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABpAAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BQAAAA9VU0ROdG9XQVZFU3JhdGUFAAAABFVTRE4FAAAAA25pbAkAAAIAAAABAgAAABB1bmV4cGVjdGVkIHRva2VuAAAAAL/4JoQ=", "height": 1898836, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let exchangeRate = 5
5+
6+let exchangeRateDiffPercent = 20
7+
8+let USDNtoWAVESrate = fraction(exchangeRate, (100 - exchangeRateDiffPercent), 100)
9+
10+let USDN = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC'
11+
12+let WAVES = base58''
13+
14+@Callable(i)
15+func exchangeWAVEStoUSDN () = if ((i.payments[0].assetId == WAVES))
16+ then [ScriptTransfer(i.caller, (i.payments[0].amount / USDNtoWAVESrate), USDN)]
17+ else throw("unexpected token")
18+
19+

github/deemru/w8io/169f3d6 
22.73 ms