tx · 2E8azPbNj3oj8ghYFVwog5BrLbCXc6hvj2UUNQkvGZtW

3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m:  -0.01000000 Waves

2022.12.10 02:12 [2353430] smart account 3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m > SELF 0.00000000 Waves

{ "type": 13, "id": "2E8azPbNj3oj8ghYFVwog5BrLbCXc6hvj2UUNQkvGZtW", "fee": 1000000, "feeAssetId": null, "timestamp": 1670627528226, "version": 2, "chainId": 84, "sender": "3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m", "senderPublicKey": "B1ZCSm1PmekLtzmVuF7NtSQjUagSEC6UjCuqi2AUW3Es", "proofs": [ "2gXqFcE4sL5BSvN2YQoHYo5bxfMtz27DM5B3KbL1hC7ykTTNY33oT36fHiZuL275a7M8JkX9deyd5SgjxhuHTmbM" ], "script": null, "height": 2353430, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GAqYWG3TmvQyF5xWzZDxhhFGRb6mzppgmBtn7gb2XsmF Next: 2jZxDz7EgWr6r6czxPrKpetirzSr1hxV2icRqT9geavf Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
2-{-# SCRIPT_TYPE ACCOUNT #-}
3-{-# CONTENT_TYPE DAPP #-}
4-let vestingDapp = Address(base58'3MxRHv5nYLmNnSPvqhdJuHooMahabtrCxf7')
5-
6-let userAddress = Address(base58'3MqVahPZ9c4DiRHMGvrrLqcbh5jWURaQh74')
7-
8-let myCallerAddress = Address(base58'3MpxwR2n5hTE3tQZdXJuGkmYkKFsgqMNZv7')
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, unit)]
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/169f3d6 
29.35 ms