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:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
| 4 | + | func a (b,c) = invoke(addressFromStringValue(c), "vf", [false, true], nil) |
---|
5 | 5 | | |
---|
6 | | - | let b = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk') |
---|
7 | 6 | | |
---|
8 | | - | let c = Address(base58'3P3ct5dTqVmei17Y55rnC6rxqiZhtQmdc9U') |
---|
9 | | - | |
---|
10 | | - | let d = 10 |
---|
11 | | - | |
---|
12 | | - | @Callable(e) |
---|
13 | | - | func vf (f,g) = if ((e.caller != c)) |
---|
| 7 | + | @Callable(d) |
---|
| 8 | + | func v (e) = if ((d.caller != this)) |
---|
14 | 9 | | then throw("only admin allowed") |
---|
15 | 10 | | else { |
---|
16 | | - | let h = invoke(b, "withdrawVestedAllUSDN", [f, g], nil) |
---|
17 | | - | if ((h == h)) |
---|
18 | | - | then { |
---|
19 | | - | let i = h |
---|
20 | | - | if ($isInstanceOf(i, "Int")) |
---|
21 | | - | then { |
---|
22 | | - | let j = i |
---|
23 | | - | let k = fraction(j, d, 100) |
---|
24 | | - | [ScriptTransfer(c, k, a)] |
---|
25 | | - | } |
---|
26 | | - | else throw("Strict value is not equal to itself.") |
---|
27 | | - | } |
---|
| 11 | + | let f = invoke(addressFromStringValue(e), "vf", [false, true], nil) |
---|
| 12 | + | if ((f == f)) |
---|
| 13 | + | then nil |
---|
28 | 14 | | else throw("Strict value is not equal to itself.") |
---|
| 15 | + | } |
---|
| 16 | + | |
---|
| 17 | + | |
---|
| 18 | + | |
---|
| 19 | + | @Callable(d) |
---|
| 20 | + | func call (g) = if ((d.caller != this)) |
---|
| 21 | + | then throw("only admin allowed") |
---|
| 22 | + | else { |
---|
| 23 | + | let h = split(g, ",") |
---|
| 24 | + | let i = { |
---|
| 25 | + | let j = h |
---|
| 26 | + | let k = size(j) |
---|
| 27 | + | let l = "" |
---|
| 28 | + | func m (n,o) = if ((o >= k)) |
---|
| 29 | + | then n |
---|
| 30 | + | else a(n, j[o]) |
---|
| 31 | + | |
---|
| 32 | + | func p (n,o) = if ((o >= k)) |
---|
| 33 | + | then n |
---|
| 34 | + | else throw("List size exceeds 5") |
---|
| 35 | + | |
---|
| 36 | + | p(m(m(m(m(m(l, 0), 1), 2), 3), 4), 5) |
---|
| 37 | + | } |
---|
| 38 | + | nil |
---|
29 | 39 | | } |
---|
30 | 40 | | |
---|
31 | 41 | | |
---|