tx · 285QSGfNdJsRLfaiDZjQxBAU4rpXhjCUD6d85f4ENpYW

3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m:  -0.01000000 Waves

2022.12.06 18:01 [2348640] smart account 3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m > SELF 0.00000000 Waves

{ "type": 13, "id": "285QSGfNdJsRLfaiDZjQxBAU4rpXhjCUD6d85f4ENpYW", "fee": 1000000, "feeAssetId": null, "timestamp": 1670338884575, "version": 2, "chainId": 84, "sender": "3Mv7KsgbnZc4SnweoZu7ZmPCWpUAiTryb6m", "senderPublicKey": "B1ZCSm1PmekLtzmVuF7NtSQjUagSEC6UjCuqi2AUW3Es", "proofs": [ "yxgcuryXPXSdnRNczfpDNypVtZTLxZ5p1C18dUtPnqPD5G1P6Q74pCong36mejC3Z2mncsXwsvGnGeZ8cY2BRFy" ], "script": null, "height": 2348640, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2RrMy5n3vLNtSkzvALjhQjgFLpLqYSFLC8jTohaKQJP1 Next: AhF4NwF6bGFShUuYKfY1mjyc4Rtc14WsUxSF2X6dSPiZ 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 adminAddress = Address(base58'3P3ct5dTqVmei17Y55rnC6rxqiZhtQmdc9U')
9-
10-let fee = 15
11-
12-@Callable(i)
13-func vf (whale,regular) = if ((i.caller != adminAddress))
14- then throw("only admin allowed")
15- else {
16- let withdrawalAmount = invoke(vestingDapp, "withdrawVestedAllUSDN", [whale, regular], nil)
17- if ((withdrawalAmount == withdrawalAmount))
18- then match withdrawalAmount {
19- case amount: Int =>
20- let feeAmount = fraction(amount, fee, 100)
21-[ScriptTransfer(adminAddress, feeAmount, USDN_ASSET)]
22- case _ =>
23- throw("Strict value is not equal to itself.")
24- }
25- else throw("Strict value is not equal to itself.")
26- }
27-
28-
1+# no script

github/deemru/w8io/026f985 
17.46 ms