tx · AqB2bx5VUq3witrdYZjtXbuny7ZDNtwFBfMs6zsrbmHp

3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m:  -0.01000000 Waves

2022.12.06 18:40 [2348677] smart account 3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m > SELF 0.00000000 Waves

{ "type": 13, "id": "AqB2bx5VUq3witrdYZjtXbuny7ZDNtwFBfMs6zsrbmHp", "fee": 1000000, "feeAssetId": null, "timestamp": 1670341305791, "version": 2, "chainId": 84, "sender": "3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m", "senderPublicKey": "B1ZCSm1PmekLtzmVuF7NtSQjUagSEC6UjCuqi2AUW3Es", "proofs": [ "2AeLk1gFK6aFsmv12PU3kaCKZv8dxJ65uTESuozvnPWoJ6vziBuBboNGCreA9dJAAaA2cqmV7eMBAGAD5omHfjrK" ], "script": null, "height": 2348677, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E1CcCK1jK2o4mBmBL54aUiuFpuNoKy3LVyg3JEADkPvt Next: H16j2v2CcaBmoAgUQBc6BfiVUNP8ZqEpwuUYwkEYSZ4m Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
2-{-# SCRIPT_TYPE ACCOUNT #-}
3-{-# CONTENT_TYPE DAPP #-}
4-let USDN_ASSET = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
5-
6-let vestingDapp = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
7-
8-let userAddress = Address(base58'3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m')
9-
10-@Callable(i)
11-func withdraw (whale,regular) = if ((i.caller != userAddress))
12- then throw("only the specified user is allowed to call this DAPP")
13- else {
14- let withdrawalAmount = invoke(vestingDapp, "withdrawVestedAllUSDN", [whale, regular], nil)
15- if ((withdrawalAmount == withdrawalAmount))
16- then match withdrawalAmount {
17- case amount: Int =>
18-[ScriptTransfer(userAddress, amount, USDN_ASSET)]
19- case _ =>
20- throw("Strict value is not equal to itself.")
21- }
22- else throw("Strict value is not equal to itself.")
23- }
24-
25-
1+# no script

github/deemru/w8io/873ac7e 
13.03 ms