tx · 4HfTk4tcknpqz2zqNW15VZmTtYEHxvxcuVqrGHGWGwVG 3N19jxhEYkphA6vga9hXTPsU5YfRMR27YoE: -0.04000000 Waves 2022.05.04 08:57 [2036551] smart account 3N19jxhEYkphA6vga9hXTPsU5YfRMR27YoE > SELF 0.00000000 Waves
{ "type": 13, "id": "4HfTk4tcknpqz2zqNW15VZmTtYEHxvxcuVqrGHGWGwVG", "fee": 4000000, "feeAssetId": null, "timestamp": 1651643832068, "version": 2, "chainId": 84, "sender": "3N19jxhEYkphA6vga9hXTPsU5YfRMR27YoE", "senderPublicKey": "B3JNxLE1zmVDjs6MqSA1d3N7V6dS5Rq2wvxZqqVHo1fK", "proofs": [ "doWN85AiS6ZurUiEnKX7QejXtgd4kDFxc1oPxjNmTYVA7cm6v7ib3r5cBZvJc821RQd4zD7PFmQqsSsjRH5Caq9" ], "script": "base64:AAIFAAAAAAAAACQIAhIDCgEIEggKBggICAgICBIDCgEEEgcKBQgICAgIEgMKAQgAAAALAAAAAARtYWluAgAAAAptYWluX2Fzc2V0AAAAAAFsAgAAAAlscF9hc3NldF8AAAAAAmExAgAAAAxzd2FwX2Fzc2V0MV8AAAAAAnN0AgAAAA9hZGRyZXNzX3N0YWtlcl8AAAAAA3NzdAIAAAANYWRkcmVzc19wb29sXwAAAAADc3dwAgAAAA1hZGRyZXNzX3N3YXBfAAAAAAJhMgIAAAAMc3dhcF9hc3NldDJfAAAAAANhYTECAAAAB3Bvb2xfMV8AAAAAA2FhMgIAAAAHcG9vbF8yXwAAAAADc3QxAgAAAA5zdGFrZXJfYWRkcmVzcwAAAAAEdHlwZQIAAAAFdHlwZV8AAAAFAAAAAWkBAAAADGFkZE1haW5Bc3NldAAAAAEAAAACaWQEAAAABFBNQUEJAAQdAAAAAgUAAAAEdGhpcwUAAAAEbWFpbgMJAAAAAAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAR0aGlzAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAABFBNQUEJAAACAAAAA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ZUVudHJ5AAAAAQkAASwAAAACBQAAAAFsBQAAAARwcmFpCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAAJzdAUAAAAEUE1BQQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAAA2FhMQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAAA2FhMgUAAAAHYWRkcmVzcwUAAAADbmlsBQAAAAdiYmVudHJ5CQAAAgAAAAECAAAALk9ubHkgdGhlIEFkbWluIGl0c2VsZiBjYW4gaW52b2tlIHRoaXMgZnVuY3Rpb24AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXntvw28", "height": 2036551, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GmkDBn7DxE7aDqatThpZp7RBY9oazHAT5aqf8ofLtbp4 Next: 8WTqCoRZA8wuP9ib7s8ygMLWnvcp5zNMmCmxJ1fk15uq Diff:
Old | New | Differences | |
---|---|---|---|
72 | 72 | let n = getStringValue(this, o) | |
73 | 73 | if ((l.caller == this)) | |
74 | 74 | then if ((v == "swap")) | |
75 | - | then [DeleteEntry((c + o)), DeleteEntry((g + o)), DeleteEntry(o), DeleteEntry((d + n))] | |
75 | + | then [DeleteEntry((k + o)), DeleteEntry((c + o)), DeleteEntry((g + o)), DeleteEntry(o), DeleteEntry((d + n))] | |
76 | 76 | else { | |
77 | 77 | let w = getStringValue((e + o)) | |
78 | - | let x = [DeleteEntry((e + o)), DeleteEntry((b + w)), DeleteEntry(o), DeleteEntry((d + n)), DeleteEntry((h + o)), DeleteEntry((i + o))] | |
78 | + | let x = [DeleteEntry((k + o)), DeleteEntry((e + o)), DeleteEntry((b + w)), DeleteEntry(o), DeleteEntry((d + n)), DeleteEntry((h + o)), DeleteEntry((i + o))] | |
79 | 79 | x | |
80 | 80 | } | |
81 | 81 | else throw("Only the Admin itself can invoke this function") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "main_asset" | |
5 | 5 | ||
6 | 6 | let b = "lp_asset_" | |
7 | 7 | ||
8 | 8 | let c = "swap_asset1_" | |
9 | 9 | ||
10 | 10 | let d = "address_staker_" | |
11 | 11 | ||
12 | 12 | let e = "address_pool_" | |
13 | 13 | ||
14 | 14 | let f = "address_swap_" | |
15 | 15 | ||
16 | 16 | let g = "swap_asset2_" | |
17 | 17 | ||
18 | 18 | let h = "pool_1_" | |
19 | 19 | ||
20 | 20 | let i = "pool_2_" | |
21 | 21 | ||
22 | 22 | let j = "staker_address" | |
23 | 23 | ||
24 | 24 | let k = "type_" | |
25 | 25 | ||
26 | 26 | @Callable(l) | |
27 | 27 | func addMainAsset (m) = { | |
28 | 28 | let n = getString(this, a) | |
29 | 29 | if ((l.caller == this)) | |
30 | 30 | then if (isDefined(n)) | |
31 | 31 | then throw("Main asset has been previously added.") | |
32 | 32 | else [StringEntry(a, m)] | |
33 | 33 | else throw("Only the Admin itself can invoke this function") | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | ||
38 | 38 | @Callable(l) | |
39 | 39 | func addPool (o,p,q,r,s,t) = { | |
40 | 40 | let n = getString(this, o) | |
41 | 41 | if ((l.caller == this)) | |
42 | 42 | then if (isDefined(n)) | |
43 | 43 | then throw("The pool has been previously added.") | |
44 | 44 | else [StringEntry((e + o), p), StringEntry((b + p), q), StringEntry(o, r), StringEntry((d + r), o), StringEntry((h + o), s), StringEntry((i + o), t), StringEntry((k + o), "pools")] | |
45 | 45 | else throw("Only the Admin itself can invoke this function") | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | ||
50 | 50 | @Callable(l) | |
51 | 51 | func activate (u) = if ((l.caller == this)) | |
52 | 52 | then [BooleanEntry("activate", u)] | |
53 | 53 | else throw("Only the Admin itself can invoke this function") | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | ||
57 | 57 | @Callable(l) | |
58 | 58 | func addSwap (o,p,s,t,r) = { | |
59 | 59 | let n = getString(this, o) | |
60 | 60 | if ((l.caller == this)) | |
61 | 61 | then if (isDefined(n)) | |
62 | 62 | then throw("The address for this swap has been previously added.") | |
63 | 63 | else [StringEntry((c + o), s), StringEntry((g + o), t), StringEntry(o, r), StringEntry((d + r), o), StringEntry((k + o), "swap")] | |
64 | 64 | else throw("Only the Admin itself can invoke this function") | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Callable(l) | |
70 | 70 | func removeSwapOrPool (o) = { | |
71 | 71 | let v = getStringValue(this, (k + o)) | |
72 | 72 | let n = getStringValue(this, o) | |
73 | 73 | if ((l.caller == this)) | |
74 | 74 | then if ((v == "swap")) | |
75 | - | then [DeleteEntry((c + o)), DeleteEntry((g + o)), DeleteEntry(o), DeleteEntry((d + n))] | |
75 | + | then [DeleteEntry((k + o)), DeleteEntry((c + o)), DeleteEntry((g + o)), DeleteEntry(o), DeleteEntry((d + n))] | |
76 | 76 | else { | |
77 | 77 | let w = getStringValue((e + o)) | |
78 | - | let x = [DeleteEntry((e + o)), DeleteEntry((b + w)), DeleteEntry(o), DeleteEntry((d + n)), DeleteEntry((h + o)), DeleteEntry((i + o))] | |
78 | + | let x = [DeleteEntry((k + o)), DeleteEntry((e + o)), DeleteEntry((b + w)), DeleteEntry(o), DeleteEntry((d + n)), DeleteEntry((h + o)), DeleteEntry((i + o))] | |
79 | 79 | x | |
80 | 80 | } | |
81 | 81 | else throw("Only the Admin itself can invoke this function") | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | @Verifier(y) | |
86 | 86 | func z () = { | |
87 | 87 | let A = y | |
88 | 88 | sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey) | |
89 | 89 | } | |
90 | 90 |
github/deemru/w8io/169f3d6 43.56 ms ◑