tx · Bv27KjRGKg6UwdbhkCxUexdFdKzN4kNG8spnteoL2seu

3MrmGzcV66AnwcVLXqEBY5n9c3bWhkqXhEU:  -0.01400000 Waves

2022.04.01 19:46 [1989780] smart account 3MrmGzcV66AnwcVLXqEBY5n9c3bWhkqXhEU > SELF 0.00000000 Waves

{ "type": 13, "id": "Bv27KjRGKg6UwdbhkCxUexdFdKzN4kNG8spnteoL2seu", "fee": 1400000, "feeAssetId": null, "timestamp": 1648831602694, "version": 2, "chainId": 84, "sender": "3MrmGzcV66AnwcVLXqEBY5n9c3bWhkqXhEU", "senderPublicKey": "2B9TEww3r5DnQBtU4cuHLA6jiWtrzvLFwKTAhGfRhKf2", "proofs": [ "4sx6VCeTsbsBHDuY2mjSUY5gE3CthmsD3DNsX5NXmQT5NREqYK2sex986fA1rnaccp919uAMu1n3crwXzFnUhyTn" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABgAAAAAFYXhhaXACAAAABGF4YWkAAAAAD3N0YWtlcldhdmVzQXhhaQIAAAAad2F2ZXNheGFpX2FkZHJlc3NfY29udHJhY3QAAAAADGV4Y2hhbmdlUmF0ZQAAAAAAAAAABQAAAAAMYWRpbWluT3JhY2xlCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUDsdtEk6F5tGxA0UcblzCTpEG+4oMPelAAAAAAARheGFpAQAAACAupaFKeRVSncUgrvmuFwheLwyjBPMrU8dCt5b8udYrsQAAAAAGc3Rha2VyCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAADGFkaW1pbk9yYWNsZQUAAAAPc3Rha2VyV2F2ZXNBeGFpAgAAADBhZGRyZXNzIGZvciBzdGFrZXIgZm9yIEF4QWkvV2F2ZXMgaXMgbm90IGRlZmluZWQAAAABAAAAAWkBAAAAEWV4Y2hhbmdlV2F2ZXNBeEFpAAAAAAMJAQAAAAIhPQAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAABHVuaXQJAAACAAAAAQIAAAAQdW5leHBlY3RlZCBhc3NldAQAAAABcgkAA/wAAAAEBQAAAAZzdGFrZXICAAAAC2NhbmNlbFN0YWtlCQAETAAAAAIJAABoAAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BQAAAAxleGNoYW5nZVJhdGUFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAFyBQAAAAFyCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQFAAAADGV4Y2hhbmdlUmF0ZQUAAAAEYXhhaQUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAADs7jGU", "height": 1989780, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 9ANzN8Ncytm7UKzfUAi5B3xPPnfY6Ag7ZwJvJ8LjDJmf Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let axaip = "axai"
5+
6+let stakerWavesAxai = "wavesaxai_address_contract"
7+
8+let exchangeRate = 5
9+
10+let adiminOracle = Address(base58'3MqGE8yKJmPuwn7sXFLo56rhW9tnMapDDRq')
11+
12+let axai = base58'496Ep8DDZwru81HjT5YAj7vUvYUi4zxyrHCgkD9GXmwe'
13+
14+let staker = Address(fromBase58String(valueOrErrorMessage(getString(adiminOracle, stakerWavesAxai), "address for staker for AxAi/Waves is not defined")))
15+
16+@Callable(i)
17+func exchangeWavesAxAi () = if ((i.payments[0].assetId != unit))
18+ then throw("unexpected asset")
19+ else {
20+ let r = invoke(staker, "cancelStake", [(i.payments[0].amount * exchangeRate)], nil)
21+ if ((r == r))
22+ then [ScriptTransfer(i.caller, (i.payments[0].amount * exchangeRate), axai)]
23+ else throw("Strict value is not equal to itself.")
24+ }
25+
26+

github/deemru/w8io/169f3d6 
26.65 ms