tx · 8eUvo2sFT22UkxvQaP4LsHUY9oVfLV4kSFPfoyAkJGqD

3N8UaqrCTjypGPWXSvFJVSLv23bfuiPoJAh:  -0.01000000 Waves

2023.01.06 03:11 [2392358] smart account 3N8UaqrCTjypGPWXSvFJVSLv23bfuiPoJAh > SELF 0.00000000 Waves

{ "type": 13, "id": "8eUvo2sFT22UkxvQaP4LsHUY9oVfLV4kSFPfoyAkJGqD", "fee": 1000000, "feeAssetId": null, "timestamp": 1672963902083, "version": 2, "chainId": 84, "sender": "3N8UaqrCTjypGPWXSvFJVSLv23bfuiPoJAh", "senderPublicKey": "6Q6JdfeHgdjpVbDxjoVAbQhxeGaQXS7B4WYGzk2tYsGT", "proofs": [ "2AgkkVFz2y9s54cG2Ht4QFuWr6vBWVk3uFQbRRomqvk1ULYrzmDeVmTrALwL8NfqQSyeMYVgRF8hb8vAWZ7Bwok9" ], "script": "base64:BgI2CAISAwoBBBIHCgUEBAQEBBIECgIBARIDCgEEEgMKAQQSAwoBCBIDCgEBEgQKAggBEgQKAggBEwACYW8CCGFkZHJlc3NfAAJhYwIIYWN0aXZhdGUABnBvb2xBYwIOYWN0aXZhdGVfcG9vbHMABnN3YXBBYwINYWN0aXZhdGVfc3dhcAAGbmZldEFjAgxhY3RpdmF0ZV9uZnQAC2xpcXVpZGl0eUFjAhJhY3RpdmF0ZV9saXF1aWRpdHkAA2JjRAITYmxvY2tfZGlzdHJpYnVpdGlvbgAJYnJpZGdlc0FjAhBhY3RpdmF0ZV9icmlkZ2VzAANhQUQCBWFkbWluAAJvQwIHb3JhY2xlXwACb1QCDHRvdGFsX29yYWNsZQAFd2F2ZXMCBVdBVkVTAAZhV2F2ZXMCDGFjY2VwdF93YXZlcwAFV0FWRVMFBHVuaXQBEWFkbWluVmVyaWZpY2F0aW9uAQFpBAckbWF0Y2gwCQCdCAIFBHRoaXMCBWFkbWluAwkAAQIFByRtYXRjaDACBlN0cmluZwQBdAUHJG1hdGNoMAkAAAIJAQdBZGRyZXNzA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9yQWRtaW4Av5WpUA==", "height": 2392358, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AqRvNzuL98Npfvtecw7r6A5YkbV2EaKvCcGzymSyTwQt Next: EMtK1S8XUS4H9wVLNYcpSNMMe9EpMemYeJJjAWiXXNcD Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "activate"
4+let a = "address_"
55
6-let b = "activate_pools"
6+let b = "activate"
77
8-let c = "activate_swap"
8+let c = "activate_pools"
99
10-let d = "activate_liquidity"
10+let d = "activate_swap"
1111
12-let e = "block_distribuition"
12+let e = "activate_nft"
1313
14-let f = "activate_bridges"
14+let f = "activate_liquidity"
1515
16-let g = "admin"
16+let g = "block_distribuition"
1717
18-let h = "oracle_"
18+let h = "activate_bridges"
1919
20-let i = "total_oracle"
20+let i = "admin"
2121
22-let j = "accept_waves"
22+let j = "oracle_"
2323
24-func k () = {
25- let l = getString(this, "admin")
26- if ($isInstanceOf(l, "String"))
24+let k = "total_oracle"
25+
26+let l = "WAVES"
27+
28+let m = "accept_waves"
29+
30+let n = unit
31+
32+func o (p) = {
33+ let q = getString(this, "admin")
34+ if ($isInstanceOf(q, "String"))
2735 then {
28- let m = l
29- Address(fromBase58String(m))
36+ let r = q
37+ (Address(fromBase58String(r)) == p.caller)
3038 }
31- else this
39+ else (this == p.caller)
3240 }
3341
3442
35-let n = "percentage_rate_fee"
43+let s = "percentage_rate_fee_swap"
3644
37-let o = "Only the Admin itself can invoke this function"
45+let t = "rate_fee_limit"
46+
47+let u = "rate_fee_height"
48+
49+let v = "Only the Admin itself can invoke this function"
3850
3951 @Callable(p)
40-func activate (q) = if (if ((p.caller == this))
41- then true
42- else (p.caller == k()))
43- then [BooleanEntry(a, q)]
44- else throw(o)
52+func activate (w) = if (o(p))
53+ then [BooleanEntry(b, w)]
54+ else throw(v)
4555
4656
4757
4858 @Callable(p)
49-func maintenance (r,s,t,u) = if (if ((p.caller == this))
50- then true
51- else (p.caller == k()))
52- then [BooleanEntry(b, r), BooleanEntry(c, s), BooleanEntry(d, t), BooleanEntry(f, u)]
53- else throw(o)
59+func maintenance (x,y,z,A,B) = if (o(p))
60+ then [BooleanEntry(c, x), BooleanEntry(d, y), BooleanEntry(f, z), BooleanEntry(h, A), BooleanEntry(e, B)]
61+ else throw(v)
5462
5563
5664
5765 @Callable(p)
58-func percentualRateFeeSwapEdit (v) = if (if ((p.caller == this))
59- then true
60- else (p.caller == k()))
61- then [IntegerEntry(n, v)]
62- else throw(o)
66+func RateFee (C,D) = if (o(p))
67+ then [IntegerEntry(s, C), IntegerEntry(u, D), IntegerEntry(t, 100000000000000000)]
68+ else throw(v)
6369
6470
6571
6672 @Callable(p)
67-func acceptWaves (w) = if (if ((p.caller == this))
68- then true
69- else (p.caller == k()))
70- then [BooleanEntry(j, w)]
71- else throw(o)
73+func recommendation (E) = if (o(p))
74+ then [BooleanEntry("RECOMMENDATION", E)]
75+ else throw(v)
7276
7377
7478
7579 @Callable(p)
76-func addAdmin (x) = if (if ((p.caller == this))
77- then true
78- else (p.caller == k()))
79- then [StringEntry(g, x)]
80- else throw(o)
80+func acceptWaves (E) = if (o(p))
81+ then [BooleanEntry(m, E)]
82+ else throw(v)
8183
8284
8385
8486 @Callable(p)
85-func BlockDistribution (y) = if (if ((p.caller == this))
86- then true
87- else (p.caller == k()))
88- then [IntegerEntry(e, y)]
89- else throw(o)
87+func addAdmin (F) = if (o(p))
88+ then [StringEntry(i, F)]
89+ else throw(v)
9090
9191
9292
9393 @Callable(p)
94-func SetOracle (x,z) = if (if ((p.caller == this))
95- then true
96- else (p.caller == k()))
97- then [StringEntry((h + toString(z)), x), IntegerEntry(i, z)]
98- else throw(o)
94+func BlockDistribution (G) = if (o(p))
95+ then [IntegerEntry(g, G)]
96+ else throw(v)
97+
98+
99+
100+@Callable(p)
101+func SetOracle (F,H) = if (o(p))
102+ then [StringEntry((j + toString(H)), F), IntegerEntry(k, H)]
103+ else throw(v)
104+
105+
106+
107+@Callable(p)
108+func Set (F,I) = {
109+ let J = if ((I == 1))
110+ then (a + "IDO")
111+ else if ((I == 2))
112+ then (a + "BRIDGES")
113+ else if ((I == 3))
114+ then (a + "FARMS")
115+ else if ((I == 4))
116+ then (a + "POOLS")
117+ else (a + "NFT")
118+ if (o(p))
119+ then [StringEntry(J, F)]
120+ else throw(v)
121+ }
99122
100123

github/deemru/w8io/169f3d6 
32.26 ms