tx · F25VfTRvDANdfXp45iPyRzp8rDXtEcXRErrspbXxPHMh 3PQk1v36J1AzP1PkzytzAbsrumnzLcj3G84: -0.01000000 Waves 2023.01.03 23:03 [3454720] smart account 3PQk1v36J1AzP1PkzytzAbsrumnzLcj3G84 > SELF 0.00000000 Waves
{ "type": 13, "id": "F25VfTRvDANdfXp45iPyRzp8rDXtEcXRErrspbXxPHMh", "fee": 1000000, "feeAssetId": null, "timestamp": 1672776204904, "version": 2, "chainId": 87, "sender": "3PQk1v36J1AzP1PkzytzAbsrumnzLcj3G84", "senderPublicKey": "Amax5gUSarCaeWYgK85asEG5FbBjwaPRiFXXgnsNovUg", "proofs": [ "38eLrKPFrRqA1DrDA3CYjPu3CEdJLBQEYqgW41PazV6ngsgjrVpwaFogd6Mm29tyMdRHBqk6jNUPKbqPDMw8nD5w" ], "script": null, "height": 3454720, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AAMejHCKUGiTXKrQr1rn3GMmmd9nWh3yUhZs6GPwtFbm Next: none Full:
Old | New | Differences | |
---|---|---|---|
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/3ef1775 16.53 ms ◑