tx · 2Fw2Xye3SYiTC5X78YreLGxYfWoscK2SZf7sekigYML5

3N49shcErzZepEy7HDR1fjAce8humpL7QiH:  -0.01000000 Waves

2022.12.14 14:06 [2359900] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves

{ "type": 13, "id": "2Fw2Xye3SYiTC5X78YreLGxYfWoscK2SZf7sekigYML5", "fee": 1000000, "feeAssetId": null, "timestamp": 1671015978162, "version": 2, "chainId": 84, "sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH", "senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj", "proofs": [ "5xGPEZma6RvzqBZKYNWgHHx3B9xVd3YzwZakAJb6iFFT1fT7d2uuCyGVGsFQGSWUuTbbARaUUYV8Xqv58bLWXNFB" ], "script": "base64:BgIMCAISAwoBCBIDCgEIAQEBdwIFYWNjdW0HYWRkcmVzcwkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBBQdhZGRyZXNzAgJ2ZgkAzAgCBwkAzAgCBgUDbmlsBQNuaWwCAWkBAXYBAWYDCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhJvbmx5IGFkbWluIGFsbG93ZWQEA2ludgkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBBQFmAgJ2ZgkAzAgCBwkAzAgCBgUDbmlsBQNuaWwDCQAAAgUDaW52BQNpbnYFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQRjYWxsAQlhZGRyZXNzZXMDCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhJvbmx5IGFkbWluIGFsbG93ZWQEBGxpc3QJALUJAgUJYWRkcmVzc2VzAgEsBARmb2xkCgACJGwFBGxpc3QKAAIkcwkAkAMBBQIkbAoABSRhY2MwAgAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBAXcCBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECE0xpc3Qgc2l6ZSBleGNlZWRzIDUJAQUkZjBfMgIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFBQNuaWwAZUdvoQ==", "height": 2359900, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 41Ps4ev4LYacDPBs8YgeDUJsebiGkUARA6DkEk9jvMt8 Next: 2qtmq3xVEcet3YMSovPsvv4eG42iDybvvzVpZuRUnaBF Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let USDN_ASSET = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
4+func w (accum,address) = invoke(addressFromStringValue(address), "vf", [false, true], nil)
55
6-let vestingDapp = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
7-
8-let adminAddress = Address(base58'3P3ct5dTqVmei17Y55rnC6rxqiZhtQmdc9U')
9-
10-let fee = 10
116
127 @Callable(i)
13-func vf (whale,regular) = if ((i.caller != adminAddress))
8+func v (f) = if ((i.caller != this))
149 then throw("only admin allowed")
1510 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.")
11+ let inv = invoke(addressFromStringValue(f), "vf", [false, true], nil)
12+ if ((inv == inv))
13+ then nil
14+ else throw("Strict value is not equal to itself.")
15+ }
16+
17+
18+
19+@Callable(i)
20+func call (addresses) = if ((i.caller != this))
21+ then throw("only admin allowed")
22+ else {
23+ let list = split(addresses, ",")
24+ let fold = {
25+ let $l = list
26+ let $s = size($l)
27+ let $acc0 = ""
28+ func $f0_1 ($a,$i) = if (($i >= $s))
29+ then $a
30+ else w($a, $l[$i])
31+
32+ func $f0_2 ($a,$i) = if (($i >= $s))
33+ then $a
34+ else throw("List size exceeds 5")
35+
36+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
2437 }
25- else throw("Strict value is not equal to itself.")
38+ nil
2639 }
2740
2841

github/deemru/w8io/026f985 
29.05 ms