tx · BVAe37HSxc11EUp8y57zxdunB5c1Z38mxspDaHPESgNs

3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7:  -0.00100000 Waves

2024.04.22 10:12 [3073700] smart account 3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7 > SELF 0.00000000 Waves

{ "type": 13, "id": "BVAe37HSxc11EUp8y57zxdunB5c1Z38mxspDaHPESgNs", "fee": 100000, "feeAssetId": null, "timestamp": 1713770006459, "version": 1, "sender": "3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7", "senderPublicKey": "2M25DqL2W4rGFLCFadgATboS8EPqyWAN3DjH12AH5Kdr", "proofs": [ "2E5WypVfaY17dZDuJ8DiMaWpnoZraqpZBDxi2eBZKPjZ9zP4KL6M2fJmGJjX4wAE4PatCCT86bKdD3jDfrtqVvqo" ], "script": null, "chainId": 84, "height": 3073700, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BrEbnjsX3cxyDyFZqijgRdEFsuAgJQjuzJPqCM6Zsg6s Next: none Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
2-{-# SCRIPT_TYPE ACCOUNT #-}
3-{-# CONTENT_TYPE DAPP #-}
4-let usdN = base58''
5-
6-let exchangeRate = 5
7-
8-let staker = Address(base58'')
9-
10-@Callable(i)
11-func exchangeWavesUsdN () = 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), usdN)]
17- else throw("Strict value is not equal to itself.")
18- }
19-
20-
1+# no script

github/deemru/w8io/169f3d6 
18.10 ms