tx · 41Ps4ev4LYacDPBs8YgeDUJsebiGkUARA6DkEk9jvMt8 3N49shcErzZepEy7HDR1fjAce8humpL7QiH: -0.01000000 Waves 2022.12.01 21:13 [2341621] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves
{ "type": 13, "id": "41Ps4ev4LYacDPBs8YgeDUJsebiGkUARA6DkEk9jvMt8", "fee": 1000000, "feeAssetId": null, "timestamp": 1669918440921, "version": 2, "chainId": 84, "sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH", "senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj", "proofs": [ "5xvDJyCMFCxubqxd7RAF3LtbwQ9JFHeUpzMnWsDiwGUjz3LKXzRwWd4dQ6hEw4HSCp1yL8YyjTHHRgA9ig9hPdB8" ], "script": "base64:BgIICAISBAoCBAQEAApVU0ROX0FTU0VUASC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QALdmVzdGluZ0RhcHAJAQdBZGRyZXNzAQEaAVd1Et2Tgg9b3iV2FTnLSdUfUygJxOhxXicADGFkbWluQWRkcmVzcwkBB0FkZHJlc3MBARoBVxKIOQ1Xdg411ANBy2CqJPBIKhf45KVAVwADZmVlAAoBAWkBAnZmAgV3aGFsZQdyZWd1bGFyAwkBAiE9AggFAWkGY2FsbGVyBQxhZG1pbkFkZHJlc3MJAAIBAhJvbmx5IGFkbWluIGFsbG93ZWQEEHdpdGhkcmF3YWxBbW91bnQJAPwHBAULdmVzdGluZ0RhcHACFXdpdGhkcmF3VmVzdGVkQWxsVVNETgkAzAgCBQV3aGFsZQkAzAgCBQdyZWd1bGFyBQNuaWwFA25pbAMJAAACBRB3aXRoZHJhd2FsQW1vdW50BRB3aXRoZHJhd2FsQW1vdW50BAckbWF0Y2gwBRB3aXRoZHJhd2FsQW1vdW50AwkAAQIFByRtYXRjaDACA0ludAQGYW1vdW50BQckbWF0Y2gwBAlmZWVBbW91bnQJAGsDBQZhbW91bnQFA2ZlZQBkCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFDGFkbWluQWRkcmVzcwUJZmVlQW1vdW50BQpVU0ROX0FTU0VUBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AFnkwog==", "height": 2341621, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 2Fw2Xye3SYiTC5X78YreLGxYfWoscK2SZf7sekigYML5 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
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 = 10 | |
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 | + |
github/deemru/w8io/169f3d6 37.08 ms ◑