tx · 7ARQwdyGYDaNXapjwTEg4HcDqRuevs32Ji9rPTe9efei

3N58U7hA1kzMTCUqHiJGdcPdjxAKspMgGNp:  -0.01000000 Waves

2021.07.16 15:23 [1616154] smart account 3N58U7hA1kzMTCUqHiJGdcPdjxAKspMgGNp > SELF 0.00000000 Waves

{ "type": 13, "id": "7ARQwdyGYDaNXapjwTEg4HcDqRuevs32Ji9rPTe9efei", "fee": 1000000, "feeAssetId": null, "timestamp": 1626438195754, "version": 2, "chainId": 84, "sender": "3N58U7hA1kzMTCUqHiJGdcPdjxAKspMgGNp", "senderPublicKey": "85gydchvWB9gMPFCKM6kfLPWFSATbtGog2Y6rUjhtQKT", "proofs": [ "a4MSBfMjY5YGp5HvwYUEM5nM7S9sXGfmf9VG5ogQfoNatBTwf2CEMXdGGWkropTwfwufpYtTV9mkfQeQ6ksUp9b" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAJc3dhcFRva2VuAQAAACBvje/AxUXc2eIfb1BtN6afnbACpt3QImOf1zkflBhsKAAAAAAMZXhjaGFuZ2VSYXRlAAAAAAAAAAAFAAAAAAZzdGFrZXIJAQAAAAdBZGRyZXNzAAAAAQEAAAAAAAAAAQAAAAFpAQAAABRleGNoYW5nZVdhdmVzRm9yU3dhcAAAAAADCQEAAAACIT0AAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAAR1bml0CQAAAgAAAAECAAAAEHVuZXhwZWN0ZWQgYXNzZXQEAAAAAXIJAAP8AAAABAUAAAAGc3Rha2VyAgAAAAtjYW5jZWxTdGFrZQkABEwAAAACCQAAaAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAUAAAAMZXhjaGFuZ2VSYXRlBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAABcgUAAAABcgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABoAAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BQAAAAxleGNoYW5nZVJhdGUFAAAACXN3YXBUb2tlbgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAACfbwXg", "height": 1616154, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 9LqsZh3wVLX7fL8VGiomkxGTkFVK5LRwmeXZdG4F1L2b Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let swapToken = base58'8WTnTr8QxFYKhMo7tkjLigfw2zAFFQYzjpoNdSFruTL3'
5+
6+let exchangeRate = 5
7+
8+let staker = Address(base58'')
9+
10+@Callable(i)
11+func exchangeWavesForSwap () = if ((i.payments[0].assetId != unit))
12+ then throw("unexpected asset")
13+ else {
14+ let r = invoke(staker, "cancelStake", [(i.payments[0].amount * exchangeRate)], nil)
15+ if ((r == r))
16+ then [ScriptTransfer(i.caller, (i.payments[0].amount * exchangeRate), swapToken)]
17+ else throw("Strict value is not equal to itself.")
18+ }
19+
20+

github/deemru/w8io/026f985 
21.71 ms