tx · GKcv2oYdn8wCF25xBedSsBRTsuUioj6NnBDzBdMNYQDy
3MxXA443AARoS3rQ9RNdPeBur74yBTCTyxJ: -0.03400000 Waves
2023.02.04 14:52 [2434846] smart account 3MxXA443AARoS3rQ9RNdPeBur74yBTCTyxJ > SELF 0.00000000 Waves
{
"type": 13,
"id": "GKcv2oYdn8wCF25xBedSsBRTsuUioj6NnBDzBdMNYQDy",
"fee": 3400000,
"feeAssetId": null,
"timestamp": 1675511550171,
"version": 2,
"chainId": 84,
"sender": "3MxXA443AARoS3rQ9RNdPeBur74yBTCTyxJ",
"senderPublicKey": "Dhf95pPhxwKtWsqgf6tyeDW2xpQA7TvM8nTwbwgqKjkd",
"proofs": [
"2GWxi5RwFrzxxBZDUaXdPUzXH46Y8h1jbikvkNdz6YHbQEKSSg3Bv8PRBGgYwT8ULor4MpnREW5Zw6ZrKMQkhVQM"
],
"script": "base64:BgJeCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBkAE2tfaW5zdXJhbmNlX2FkZHJlc3MCE2tfaW5zdXJhbmNlX2FkZHJlc3MAD2tfdmF1bHRfYWRkcmVzcwIPa192YXVsdF9hZGRyZXNzAA9rX2FkbWluX2FkZHJlc3MCD2tfYWRtaW5fYWRkcmVzcwANa19xdW90ZV9hc3NldAINa19xdW90ZV9hc3NldAAPa19xdW90ZV9zdGFraW5nAg9rX3F1b3RlX3N0YWtpbmcAEWtfc3Rha2luZ19hZGRyZXNzAhFrX3N0YWtpbmdfYWRkcmVzcwARa19mYXJtaW5nX2FkZHJlc3MCEWtfZmFybWluZ19hZGRyZXNzABBrX3ByaXplc19hZGRyZXNzAhBrX3ByaXplc19hZGRyZXNzABVrX2hvdXNla2VlcGVyX2FkZHJlc3MCFWtfaG91c2VrZWVwZXJfYWRkcmVzcwAFa19hbW0CBWtf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AMJAQIhPQIIBQVhc3NldAhkZWNpbWFscwAICQACAQIjSW52YWxpZCBhc3NldCBkZWNpbWFscywgc2hvdWxkIGJlIDgJAMwIAgkBC1N0cmluZ0VudHJ5AgUSa19nb3Zlcm5hbmNlX2Fzc2V0BQhfYXNzZXRJZAUDbmlsCQACAQIQQ2FuJ3QgZmluZCBhc3NldAECdHgBBnZlcmlmeQAEByRtYXRjaDAJAJ0IAgUEdGhpcwUPa19hZG1pbl9hZGRyZXNzAwkAAQIFByRtYXRjaDACBlN0cmluZwQIdmVyaWZpZXIFByRtYXRjaDAJAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQUIdmVyaWZpZXIJAKwCAgkArAICCQCsAgICB3N0YXR1c18JAKUIAQUEdGhpcwIBXwkA2AQBCAUCdHgCaWQHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V55dUkTQ==",
"height": 2434846,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: FR9hkoL5DYtMkN9PmCmvHF2wymRKksghPECaUoje9zQS
Next: Gq3wnqz1kuA29QcKk11eXYWU9X7NFgExjmPDNWj5ptTA
Diff:
Old | New | | Differences |
---|
7 | 7 | | |
---|
8 | 8 | | let c = "k_admin_address" |
---|
9 | 9 | | |
---|
10 | | - | let d = "k_admin_public_key" |
---|
| 10 | + | let d = "k_quote_asset" |
---|
11 | 11 | | |
---|
12 | | - | let e = "k_quote_asset" |
---|
| 12 | + | let e = "k_quote_staking" |
---|
13 | 13 | | |
---|
14 | | - | let f = "k_quote_staking" |
---|
| 14 | + | let f = "k_staking_address" |
---|
15 | 15 | | |
---|
16 | | - | let g = "k_staking_address" |
---|
| 16 | + | let g = "k_farming_address" |
---|
17 | 17 | | |
---|
18 | | - | let h = "k_farming_address" |
---|
| 18 | + | let h = "k_prizes_address" |
---|
19 | 19 | | |
---|
20 | | - | let i = "k_prizes_address" |
---|
| 20 | + | let i = "k_housekeeper_address" |
---|
21 | 21 | | |
---|
22 | | - | let j = "k_housekeeper_address" |
---|
| 22 | + | let j = "k_amm" |
---|
23 | 23 | | |
---|
24 | | - | let k = "k_amm" |
---|
| 24 | + | let k = "k_amm_data" |
---|
25 | 25 | | |
---|
26 | | - | let l = "k_amm_data" |
---|
| 26 | + | let l = "k_gov_asset" |
---|
27 | 27 | | |
---|
28 | | - | let m = "k_gov_asset" |
---|
| 28 | + | let m = "k_miner_address" |
---|
29 | 29 | | |
---|
30 | | - | let n = "k_miner_address" |
---|
| 30 | + | let n = "k_orders_address" |
---|
31 | 31 | | |
---|
32 | | - | let o = "k_orders_address" |
---|
| 32 | + | let o = "k_referral_address" |
---|
33 | 33 | | |
---|
34 | | - | let p = "k_referral_address" |
---|
| 34 | + | let p = "k_manager_address" |
---|
35 | 35 | | |
---|
36 | | - | let q = "k_manager_address" |
---|
| 36 | + | let q = "k_nft_manager_address" |
---|
37 | 37 | | |
---|
38 | | - | let r = "k_nft_manager_address" |
---|
| 38 | + | let r = "k_collateral_address" |
---|
39 | 39 | | |
---|
40 | | - | let s = "k_collateral_address" |
---|
| 40 | + | let s = "k_exchange_address" |
---|
41 | 41 | | |
---|
42 | | - | let t = "k_exchange_address" |
---|
43 | | - | |
---|
44 | | - | func u (v,w) = ((v + "_") + w) |
---|
| 42 | + | func t (u,v) = ((u + "_") + v) |
---|
45 | 43 | | |
---|
46 | 44 | | |
---|
47 | | - | func x (y) = toString(valueOrErrorMessage(addressFromString(y), (("Can't parse \"" + y) + "\" as address"))) |
---|
| 45 | + | func w (x) = toString(valueOrErrorMessage(addressFromString(x), (("Can't parse \"" + x) + "\" as address"))) |
---|
48 | 46 | | |
---|
49 | 47 | | |
---|
50 | | - | func z () = getStringValue(this, d) |
---|
| 48 | + | func y () = (getString(this, c) == unit) |
---|
51 | 49 | | |
---|
52 | 50 | | |
---|
53 | | - | func A () = (getString(this, c) == unit) |
---|
| 51 | + | func z () = addressFromStringValue(valueOrErrorMessage(getString(this, c), "Admin not defined")) |
---|
54 | 52 | | |
---|
55 | 53 | | |
---|
56 | | - | func B () = addressFromStringValue(valueOrErrorMessage(getString(this, c), "Admin not defined")) |
---|
57 | | - | |
---|
58 | | - | |
---|
59 | | - | func C (D) = if (if (A()) |
---|
| 54 | + | func A (B) = if (if (if (y()) |
---|
| 55 | + | then (B.caller == this) |
---|
| 56 | + | else false) |
---|
60 | 57 | | then true |
---|
61 | | - | else (D.caller == B())) |
---|
| 58 | + | else (B.caller == z())) |
---|
62 | 59 | | then unit |
---|
63 | 60 | | else throw("Only the Admin itself can invoke this function") |
---|
64 | 61 | | |
---|
65 | 62 | | |
---|
66 | | - | func E (D) = if ((D.caller == B())) |
---|
| 63 | + | func C (B) = if ((B.caller == z())) |
---|
67 | 64 | | then unit |
---|
68 | 65 | | else throw("Only the Admin itself can invoke this function") |
---|
69 | 66 | | |
---|
70 | 67 | | |
---|
71 | | - | @Callable(D) |
---|
72 | | - | func setAdmin (F) = valueOrElse(C(D), { |
---|
73 | | - | let G = fromBase58String(F) |
---|
74 | | - | let y = addressFromPublicKey(G) |
---|
75 | | - | [StringEntry(c, toString(y)), StringEntry(d, F)] |
---|
| 68 | + | @Callable(B) |
---|
| 69 | + | func setAdmin (D) = valueOrElse(A(B), { |
---|
| 70 | + | let x = addressFromStringValue(D) |
---|
| 71 | + | [StringEntry(c, toString(x))] |
---|
76 | 72 | | }) |
---|
77 | 73 | | |
---|
78 | 74 | | |
---|
79 | 75 | | |
---|
80 | | - | @Callable(D) |
---|
81 | | - | func setInsuranceFund (H) = valueOrElse(E(D), { |
---|
82 | | - | let y = x(H) |
---|
83 | | - | [StringEntry(a, y)] |
---|
| 76 | + | @Callable(B) |
---|
| 77 | + | func setInsuranceFund (E) = valueOrElse(C(B), { |
---|
| 78 | + | let x = w(E) |
---|
| 79 | + | [StringEntry(a, x)] |
---|
84 | 80 | | }) |
---|
85 | 81 | | |
---|
86 | 82 | | |
---|
87 | 83 | | |
---|
88 | | - | @Callable(D) |
---|
89 | | - | func setLiquidityMiner (I) = valueOrElse(E(D), { |
---|
90 | | - | let y = x(I) |
---|
91 | | - | [StringEntry(n, y)] |
---|
| 84 | + | @Callable(B) |
---|
| 85 | + | func setLiquidityMiner (F) = valueOrElse(C(B), { |
---|
| 86 | + | let x = w(F) |
---|
| 87 | + | [StringEntry(m, x)] |
---|
92 | 88 | | }) |
---|
93 | 89 | | |
---|
94 | 90 | | |
---|
95 | 91 | | |
---|
96 | | - | @Callable(D) |
---|
97 | | - | func setOrders (J) = valueOrElse(E(D), { |
---|
98 | | - | let y = x(J) |
---|
99 | | - | [StringEntry(o, y)] |
---|
| 92 | + | @Callable(B) |
---|
| 93 | + | func setOrders (G) = valueOrElse(C(B), { |
---|
| 94 | + | let x = w(G) |
---|
| 95 | + | [StringEntry(n, x)] |
---|
100 | 96 | | }) |
---|
101 | 97 | | |
---|
102 | 98 | | |
---|
103 | 99 | | |
---|
104 | | - | @Callable(D) |
---|
105 | | - | func setReferral (K) = valueOrElse(E(D), { |
---|
106 | | - | let y = x(K) |
---|
107 | | - | [StringEntry(p, y)] |
---|
| 100 | + | @Callable(B) |
---|
| 101 | + | func setReferral (H) = valueOrElse(C(B), { |
---|
| 102 | + | let x = w(H) |
---|
| 103 | + | [StringEntry(o, x)] |
---|
108 | 104 | | }) |
---|
109 | 105 | | |
---|
110 | 106 | | |
---|
111 | 107 | | |
---|
112 | | - | @Callable(D) |
---|
113 | | - | func setFarming (L) = valueOrElse(E(D), { |
---|
114 | | - | let y = x(L) |
---|
115 | | - | [StringEntry(h, y)] |
---|
| 108 | + | @Callable(B) |
---|
| 109 | + | func setFarming (I) = valueOrElse(C(B), { |
---|
| 110 | + | let x = w(I) |
---|
| 111 | + | [StringEntry(g, x)] |
---|
116 | 112 | | }) |
---|
117 | 113 | | |
---|
118 | 114 | | |
---|
119 | 115 | | |
---|
120 | | - | @Callable(D) |
---|
121 | | - | func setManager (M) = valueOrElse(E(D), { |
---|
122 | | - | let y = x(M) |
---|
123 | | - | [StringEntry(q, y)] |
---|
| 116 | + | @Callable(B) |
---|
| 117 | + | func setManager (J) = valueOrElse(C(B), { |
---|
| 118 | + | let x = w(J) |
---|
| 119 | + | [StringEntry(p, x)] |
---|
124 | 120 | | }) |
---|
125 | 121 | | |
---|
126 | 122 | | |
---|
127 | 123 | | |
---|
128 | | - | @Callable(D) |
---|
129 | | - | func setHousekeeper (N) = valueOrElse(E(D), { |
---|
130 | | - | let y = x(N) |
---|
131 | | - | [StringEntry(j, y)] |
---|
| 124 | + | @Callable(B) |
---|
| 125 | + | func setHousekeeper (K) = valueOrElse(C(B), { |
---|
| 126 | + | let x = w(K) |
---|
| 127 | + | [StringEntry(i, x)] |
---|
132 | 128 | | }) |
---|
133 | 129 | | |
---|
134 | 130 | | |
---|
135 | 131 | | |
---|
136 | | - | @Callable(D) |
---|
137 | | - | func setPrizes (O) = valueOrElse(E(D), { |
---|
138 | | - | let y = x(O) |
---|
139 | | - | [StringEntry(i, y)] |
---|
| 132 | + | @Callable(B) |
---|
| 133 | + | func setPrizes (L) = valueOrElse(C(B), { |
---|
| 134 | + | let x = w(L) |
---|
| 135 | + | [StringEntry(h, x)] |
---|
140 | 136 | | }) |
---|
141 | 137 | | |
---|
142 | 138 | | |
---|
143 | 139 | | |
---|
144 | | - | @Callable(D) |
---|
145 | | - | func setNftManager (P) = valueOrElse(E(D), { |
---|
146 | | - | let y = x(P) |
---|
147 | | - | [StringEntry(r, y)] |
---|
| 140 | + | @Callable(B) |
---|
| 141 | + | func setNftManager (M) = valueOrElse(C(B), { |
---|
| 142 | + | let x = w(M) |
---|
| 143 | + | [StringEntry(q, x)] |
---|
148 | 144 | | }) |
---|
149 | 145 | | |
---|
150 | 146 | | |
---|
151 | 147 | | |
---|
152 | | - | @Callable(D) |
---|
153 | | - | func setQuoteAsset (Q,R) = valueOrElse(E(D), { |
---|
154 | | - | let S = x(R) |
---|
155 | | - | [StringEntry(e, Q), StringEntry(f, R)] |
---|
| 148 | + | @Callable(B) |
---|
| 149 | + | func setQuoteAsset (N,O) = valueOrElse(C(B), { |
---|
| 150 | + | let P = w(O) |
---|
| 151 | + | [StringEntry(d, N), StringEntry(e, O)] |
---|
156 | 152 | | }) |
---|
157 | 153 | | |
---|
158 | 154 | | |
---|
159 | 155 | | |
---|
160 | | - | @Callable(D) |
---|
161 | | - | func setStakingAddress (R) = valueOrElse(E(D), { |
---|
162 | | - | let S = x(R) |
---|
163 | | - | [StringEntry(g, R)] |
---|
| 156 | + | @Callable(B) |
---|
| 157 | + | func setStakingAddress (O) = valueOrElse(C(B), { |
---|
| 158 | + | let P = w(O) |
---|
| 159 | + | [StringEntry(f, O)] |
---|
164 | 160 | | }) |
---|
165 | 161 | | |
---|
166 | 162 | | |
---|
167 | 163 | | |
---|
168 | | - | @Callable(D) |
---|
169 | | - | func setCollateralAddress (T) = valueOrElse(E(D), { |
---|
170 | | - | let U = x(T) |
---|
171 | | - | [StringEntry(s, T)] |
---|
| 164 | + | @Callable(B) |
---|
| 165 | + | func setCollateralAddress (Q) = valueOrElse(C(B), { |
---|
| 166 | + | let R = w(Q) |
---|
| 167 | + | [StringEntry(r, Q)] |
---|
172 | 168 | | }) |
---|
173 | 169 | | |
---|
174 | 170 | | |
---|
175 | 171 | | |
---|
176 | | - | @Callable(D) |
---|
177 | | - | func setExchangeAddress (V) = valueOrElse(E(D), { |
---|
178 | | - | let W = x(V) |
---|
179 | | - | [StringEntry(t, V)] |
---|
| 172 | + | @Callable(B) |
---|
| 173 | + | func setExchangeAddress (S) = valueOrElse(C(B), { |
---|
| 174 | + | let T = w(S) |
---|
| 175 | + | [StringEntry(s, S)] |
---|
180 | 176 | | }) |
---|
181 | 177 | | |
---|
182 | 178 | | |
---|
183 | 179 | | |
---|
184 | | - | @Callable(D) |
---|
185 | | - | func setVaultAddress (X) = valueOrElse(E(D), { |
---|
186 | | - | let W = x(X) |
---|
187 | | - | [StringEntry(b, X)] |
---|
| 180 | + | @Callable(B) |
---|
| 181 | + | func setVaultAddress (U) = valueOrElse(C(B), { |
---|
| 182 | + | let T = w(U) |
---|
| 183 | + | [StringEntry(b, U)] |
---|
188 | 184 | | }) |
---|
189 | 185 | | |
---|
190 | 186 | | |
---|
191 | 187 | | |
---|
192 | | - | @Callable(D) |
---|
193 | | - | func addAmm (Y,Z) = valueOrElse(E(D), { |
---|
194 | | - | let aa = x(Y) |
---|
195 | | - | [BooleanEntry(u(k, Y), true), StringEntry(u(l, Y), Z)] |
---|
| 188 | + | @Callable(B) |
---|
| 189 | + | func addAmm (V,W) = valueOrElse(C(B), { |
---|
| 190 | + | let X = w(V) |
---|
| 191 | + | [BooleanEntry(t(j, V), true), StringEntry(t(k, V), W)] |
---|
196 | 192 | | }) |
---|
197 | 193 | | |
---|
198 | 194 | | |
---|
199 | 195 | | |
---|
200 | | - | @Callable(D) |
---|
201 | | - | func removeAmm (Y) = valueOrElse(E(D), [DeleteEntry(u(k, Y))]) |
---|
| 196 | + | @Callable(B) |
---|
| 197 | + | func removeAmm (V) = valueOrElse(C(B), [DeleteEntry(t(j, V))]) |
---|
202 | 198 | | |
---|
203 | 199 | | |
---|
204 | 200 | | |
---|
205 | | - | @Callable(D) |
---|
206 | | - | func setGovernanceAsset (Q) = valueOrElse(E(D), { |
---|
207 | | - | let ab = fromBase58String(Q) |
---|
208 | | - | let ac = assetInfo(ab) |
---|
209 | | - | if ($isInstanceOf(ac, "Asset")) |
---|
| 201 | + | @Callable(B) |
---|
| 202 | + | func setGovernanceAsset (N) = valueOrElse(C(B), { |
---|
| 203 | + | let Y = fromBase58String(N) |
---|
| 204 | + | let Z = assetInfo(Y) |
---|
| 205 | + | if ($isInstanceOf(Z, "Asset")) |
---|
210 | 206 | | then { |
---|
211 | | - | let ad = ac |
---|
212 | | - | if ((ad.decimals != 8)) |
---|
| 207 | + | let aa = Z |
---|
| 208 | + | if ((aa.decimals != 8)) |
---|
213 | 209 | | then throw("Invalid asset decimals, should be 8") |
---|
214 | | - | else [StringEntry(m, Q)] |
---|
| 210 | + | else [StringEntry(l, N)] |
---|
215 | 211 | | } |
---|
216 | 212 | | else throw("Can't find asset") |
---|
217 | 213 | | }) |
---|
218 | 214 | | |
---|
219 | 215 | | |
---|
220 | | - | @Verifier(ae) |
---|
221 | | - | func af () = sigVerify(ae.bodyBytes, ae.proofs[0], fromBase58String(z())) |
---|
| 216 | + | @Verifier(ab) |
---|
| 217 | + | func ac () = { |
---|
| 218 | + | let Z = getString(this, c) |
---|
| 219 | + | if ($isInstanceOf(Z, "String")) |
---|
| 220 | + | then { |
---|
| 221 | + | let ad = Z |
---|
| 222 | + | valueOrElse(getBoolean(addressFromStringValue(ad), ((("status_" + toString(this)) + "_") + toBase58String(ab.id))), false) |
---|
| 223 | + | } |
---|
| 224 | + | else sigVerify(ab.bodyBytes, ab.proofs[0], ab.senderPublicKey) |
---|
| 225 | + | } |
---|
222 | 226 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "k_insurance_address" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "k_vault_address" |
---|
7 | 7 | | |
---|
8 | 8 | | let c = "k_admin_address" |
---|
9 | 9 | | |
---|
10 | | - | let d = "k_admin_public_key" |
---|
| 10 | + | let d = "k_quote_asset" |
---|
11 | 11 | | |
---|
12 | | - | let e = "k_quote_asset" |
---|
| 12 | + | let e = "k_quote_staking" |
---|
13 | 13 | | |
---|
14 | | - | let f = "k_quote_staking" |
---|
| 14 | + | let f = "k_staking_address" |
---|
15 | 15 | | |
---|
16 | | - | let g = "k_staking_address" |
---|
| 16 | + | let g = "k_farming_address" |
---|
17 | 17 | | |
---|
18 | | - | let h = "k_farming_address" |
---|
| 18 | + | let h = "k_prizes_address" |
---|
19 | 19 | | |
---|
20 | | - | let i = "k_prizes_address" |
---|
| 20 | + | let i = "k_housekeeper_address" |
---|
21 | 21 | | |
---|
22 | | - | let j = "k_housekeeper_address" |
---|
| 22 | + | let j = "k_amm" |
---|
23 | 23 | | |
---|
24 | | - | let k = "k_amm" |
---|
| 24 | + | let k = "k_amm_data" |
---|
25 | 25 | | |
---|
26 | | - | let l = "k_amm_data" |
---|
| 26 | + | let l = "k_gov_asset" |
---|
27 | 27 | | |
---|
28 | | - | let m = "k_gov_asset" |
---|
| 28 | + | let m = "k_miner_address" |
---|
29 | 29 | | |
---|
30 | | - | let n = "k_miner_address" |
---|
| 30 | + | let n = "k_orders_address" |
---|
31 | 31 | | |
---|
32 | | - | let o = "k_orders_address" |
---|
| 32 | + | let o = "k_referral_address" |
---|
33 | 33 | | |
---|
34 | | - | let p = "k_referral_address" |
---|
| 34 | + | let p = "k_manager_address" |
---|
35 | 35 | | |
---|
36 | | - | let q = "k_manager_address" |
---|
| 36 | + | let q = "k_nft_manager_address" |
---|
37 | 37 | | |
---|
38 | | - | let r = "k_nft_manager_address" |
---|
| 38 | + | let r = "k_collateral_address" |
---|
39 | 39 | | |
---|
40 | | - | let s = "k_collateral_address" |
---|
| 40 | + | let s = "k_exchange_address" |
---|
41 | 41 | | |
---|
42 | | - | let t = "k_exchange_address" |
---|
43 | | - | |
---|
44 | | - | func u (v,w) = ((v + "_") + w) |
---|
| 42 | + | func t (u,v) = ((u + "_") + v) |
---|
45 | 43 | | |
---|
46 | 44 | | |
---|
47 | | - | func x (y) = toString(valueOrErrorMessage(addressFromString(y), (("Can't parse \"" + y) + "\" as address"))) |
---|
| 45 | + | func w (x) = toString(valueOrErrorMessage(addressFromString(x), (("Can't parse \"" + x) + "\" as address"))) |
---|
48 | 46 | | |
---|
49 | 47 | | |
---|
50 | | - | func z () = getStringValue(this, d) |
---|
| 48 | + | func y () = (getString(this, c) == unit) |
---|
51 | 49 | | |
---|
52 | 50 | | |
---|
53 | | - | func A () = (getString(this, c) == unit) |
---|
| 51 | + | func z () = addressFromStringValue(valueOrErrorMessage(getString(this, c), "Admin not defined")) |
---|
54 | 52 | | |
---|
55 | 53 | | |
---|
56 | | - | func B () = addressFromStringValue(valueOrErrorMessage(getString(this, c), "Admin not defined")) |
---|
57 | | - | |
---|
58 | | - | |
---|
59 | | - | func C (D) = if (if (A()) |
---|
| 54 | + | func A (B) = if (if (if (y()) |
---|
| 55 | + | then (B.caller == this) |
---|
| 56 | + | else false) |
---|
60 | 57 | | then true |
---|
61 | | - | else (D.caller == B())) |
---|
| 58 | + | else (B.caller == z())) |
---|
62 | 59 | | then unit |
---|
63 | 60 | | else throw("Only the Admin itself can invoke this function") |
---|
64 | 61 | | |
---|
65 | 62 | | |
---|
66 | | - | func E (D) = if ((D.caller == B())) |
---|
| 63 | + | func C (B) = if ((B.caller == z())) |
---|
67 | 64 | | then unit |
---|
68 | 65 | | else throw("Only the Admin itself can invoke this function") |
---|
69 | 66 | | |
---|
70 | 67 | | |
---|
71 | | - | @Callable(D) |
---|
72 | | - | func setAdmin (F) = valueOrElse(C(D), { |
---|
73 | | - | let G = fromBase58String(F) |
---|
74 | | - | let y = addressFromPublicKey(G) |
---|
75 | | - | [StringEntry(c, toString(y)), StringEntry(d, F)] |
---|
| 68 | + | @Callable(B) |
---|
| 69 | + | func setAdmin (D) = valueOrElse(A(B), { |
---|
| 70 | + | let x = addressFromStringValue(D) |
---|
| 71 | + | [StringEntry(c, toString(x))] |
---|
76 | 72 | | }) |
---|
77 | 73 | | |
---|
78 | 74 | | |
---|
79 | 75 | | |
---|
80 | | - | @Callable(D) |
---|
81 | | - | func setInsuranceFund (H) = valueOrElse(E(D), { |
---|
82 | | - | let y = x(H) |
---|
83 | | - | [StringEntry(a, y)] |
---|
| 76 | + | @Callable(B) |
---|
| 77 | + | func setInsuranceFund (E) = valueOrElse(C(B), { |
---|
| 78 | + | let x = w(E) |
---|
| 79 | + | [StringEntry(a, x)] |
---|
84 | 80 | | }) |
---|
85 | 81 | | |
---|
86 | 82 | | |
---|
87 | 83 | | |
---|
88 | | - | @Callable(D) |
---|
89 | | - | func setLiquidityMiner (I) = valueOrElse(E(D), { |
---|
90 | | - | let y = x(I) |
---|
91 | | - | [StringEntry(n, y)] |
---|
| 84 | + | @Callable(B) |
---|
| 85 | + | func setLiquidityMiner (F) = valueOrElse(C(B), { |
---|
| 86 | + | let x = w(F) |
---|
| 87 | + | [StringEntry(m, x)] |
---|
92 | 88 | | }) |
---|
93 | 89 | | |
---|
94 | 90 | | |
---|
95 | 91 | | |
---|
96 | | - | @Callable(D) |
---|
97 | | - | func setOrders (J) = valueOrElse(E(D), { |
---|
98 | | - | let y = x(J) |
---|
99 | | - | [StringEntry(o, y)] |
---|
| 92 | + | @Callable(B) |
---|
| 93 | + | func setOrders (G) = valueOrElse(C(B), { |
---|
| 94 | + | let x = w(G) |
---|
| 95 | + | [StringEntry(n, x)] |
---|
100 | 96 | | }) |
---|
101 | 97 | | |
---|
102 | 98 | | |
---|
103 | 99 | | |
---|
104 | | - | @Callable(D) |
---|
105 | | - | func setReferral (K) = valueOrElse(E(D), { |
---|
106 | | - | let y = x(K) |
---|
107 | | - | [StringEntry(p, y)] |
---|
| 100 | + | @Callable(B) |
---|
| 101 | + | func setReferral (H) = valueOrElse(C(B), { |
---|
| 102 | + | let x = w(H) |
---|
| 103 | + | [StringEntry(o, x)] |
---|
108 | 104 | | }) |
---|
109 | 105 | | |
---|
110 | 106 | | |
---|
111 | 107 | | |
---|
112 | | - | @Callable(D) |
---|
113 | | - | func setFarming (L) = valueOrElse(E(D), { |
---|
114 | | - | let y = x(L) |
---|
115 | | - | [StringEntry(h, y)] |
---|
| 108 | + | @Callable(B) |
---|
| 109 | + | func setFarming (I) = valueOrElse(C(B), { |
---|
| 110 | + | let x = w(I) |
---|
| 111 | + | [StringEntry(g, x)] |
---|
116 | 112 | | }) |
---|
117 | 113 | | |
---|
118 | 114 | | |
---|
119 | 115 | | |
---|
120 | | - | @Callable(D) |
---|
121 | | - | func setManager (M) = valueOrElse(E(D), { |
---|
122 | | - | let y = x(M) |
---|
123 | | - | [StringEntry(q, y)] |
---|
| 116 | + | @Callable(B) |
---|
| 117 | + | func setManager (J) = valueOrElse(C(B), { |
---|
| 118 | + | let x = w(J) |
---|
| 119 | + | [StringEntry(p, x)] |
---|
124 | 120 | | }) |
---|
125 | 121 | | |
---|
126 | 122 | | |
---|
127 | 123 | | |
---|
128 | | - | @Callable(D) |
---|
129 | | - | func setHousekeeper (N) = valueOrElse(E(D), { |
---|
130 | | - | let y = x(N) |
---|
131 | | - | [StringEntry(j, y)] |
---|
| 124 | + | @Callable(B) |
---|
| 125 | + | func setHousekeeper (K) = valueOrElse(C(B), { |
---|
| 126 | + | let x = w(K) |
---|
| 127 | + | [StringEntry(i, x)] |
---|
132 | 128 | | }) |
---|
133 | 129 | | |
---|
134 | 130 | | |
---|
135 | 131 | | |
---|
136 | | - | @Callable(D) |
---|
137 | | - | func setPrizes (O) = valueOrElse(E(D), { |
---|
138 | | - | let y = x(O) |
---|
139 | | - | [StringEntry(i, y)] |
---|
| 132 | + | @Callable(B) |
---|
| 133 | + | func setPrizes (L) = valueOrElse(C(B), { |
---|
| 134 | + | let x = w(L) |
---|
| 135 | + | [StringEntry(h, x)] |
---|
140 | 136 | | }) |
---|
141 | 137 | | |
---|
142 | 138 | | |
---|
143 | 139 | | |
---|
144 | | - | @Callable(D) |
---|
145 | | - | func setNftManager (P) = valueOrElse(E(D), { |
---|
146 | | - | let y = x(P) |
---|
147 | | - | [StringEntry(r, y)] |
---|
| 140 | + | @Callable(B) |
---|
| 141 | + | func setNftManager (M) = valueOrElse(C(B), { |
---|
| 142 | + | let x = w(M) |
---|
| 143 | + | [StringEntry(q, x)] |
---|
148 | 144 | | }) |
---|
149 | 145 | | |
---|
150 | 146 | | |
---|
151 | 147 | | |
---|
152 | | - | @Callable(D) |
---|
153 | | - | func setQuoteAsset (Q,R) = valueOrElse(E(D), { |
---|
154 | | - | let S = x(R) |
---|
155 | | - | [StringEntry(e, Q), StringEntry(f, R)] |
---|
| 148 | + | @Callable(B) |
---|
| 149 | + | func setQuoteAsset (N,O) = valueOrElse(C(B), { |
---|
| 150 | + | let P = w(O) |
---|
| 151 | + | [StringEntry(d, N), StringEntry(e, O)] |
---|
156 | 152 | | }) |
---|
157 | 153 | | |
---|
158 | 154 | | |
---|
159 | 155 | | |
---|
160 | | - | @Callable(D) |
---|
161 | | - | func setStakingAddress (R) = valueOrElse(E(D), { |
---|
162 | | - | let S = x(R) |
---|
163 | | - | [StringEntry(g, R)] |
---|
| 156 | + | @Callable(B) |
---|
| 157 | + | func setStakingAddress (O) = valueOrElse(C(B), { |
---|
| 158 | + | let P = w(O) |
---|
| 159 | + | [StringEntry(f, O)] |
---|
164 | 160 | | }) |
---|
165 | 161 | | |
---|
166 | 162 | | |
---|
167 | 163 | | |
---|
168 | | - | @Callable(D) |
---|
169 | | - | func setCollateralAddress (T) = valueOrElse(E(D), { |
---|
170 | | - | let U = x(T) |
---|
171 | | - | [StringEntry(s, T)] |
---|
| 164 | + | @Callable(B) |
---|
| 165 | + | func setCollateralAddress (Q) = valueOrElse(C(B), { |
---|
| 166 | + | let R = w(Q) |
---|
| 167 | + | [StringEntry(r, Q)] |
---|
172 | 168 | | }) |
---|
173 | 169 | | |
---|
174 | 170 | | |
---|
175 | 171 | | |
---|
176 | | - | @Callable(D) |
---|
177 | | - | func setExchangeAddress (V) = valueOrElse(E(D), { |
---|
178 | | - | let W = x(V) |
---|
179 | | - | [StringEntry(t, V)] |
---|
| 172 | + | @Callable(B) |
---|
| 173 | + | func setExchangeAddress (S) = valueOrElse(C(B), { |
---|
| 174 | + | let T = w(S) |
---|
| 175 | + | [StringEntry(s, S)] |
---|
180 | 176 | | }) |
---|
181 | 177 | | |
---|
182 | 178 | | |
---|
183 | 179 | | |
---|
184 | | - | @Callable(D) |
---|
185 | | - | func setVaultAddress (X) = valueOrElse(E(D), { |
---|
186 | | - | let W = x(X) |
---|
187 | | - | [StringEntry(b, X)] |
---|
| 180 | + | @Callable(B) |
---|
| 181 | + | func setVaultAddress (U) = valueOrElse(C(B), { |
---|
| 182 | + | let T = w(U) |
---|
| 183 | + | [StringEntry(b, U)] |
---|
188 | 184 | | }) |
---|
189 | 185 | | |
---|
190 | 186 | | |
---|
191 | 187 | | |
---|
192 | | - | @Callable(D) |
---|
193 | | - | func addAmm (Y,Z) = valueOrElse(E(D), { |
---|
194 | | - | let aa = x(Y) |
---|
195 | | - | [BooleanEntry(u(k, Y), true), StringEntry(u(l, Y), Z)] |
---|
| 188 | + | @Callable(B) |
---|
| 189 | + | func addAmm (V,W) = valueOrElse(C(B), { |
---|
| 190 | + | let X = w(V) |
---|
| 191 | + | [BooleanEntry(t(j, V), true), StringEntry(t(k, V), W)] |
---|
196 | 192 | | }) |
---|
197 | 193 | | |
---|
198 | 194 | | |
---|
199 | 195 | | |
---|
200 | | - | @Callable(D) |
---|
201 | | - | func removeAmm (Y) = valueOrElse(E(D), [DeleteEntry(u(k, Y))]) |
---|
| 196 | + | @Callable(B) |
---|
| 197 | + | func removeAmm (V) = valueOrElse(C(B), [DeleteEntry(t(j, V))]) |
---|
202 | 198 | | |
---|
203 | 199 | | |
---|
204 | 200 | | |
---|
205 | | - | @Callable(D) |
---|
206 | | - | func setGovernanceAsset (Q) = valueOrElse(E(D), { |
---|
207 | | - | let ab = fromBase58String(Q) |
---|
208 | | - | let ac = assetInfo(ab) |
---|
209 | | - | if ($isInstanceOf(ac, "Asset")) |
---|
| 201 | + | @Callable(B) |
---|
| 202 | + | func setGovernanceAsset (N) = valueOrElse(C(B), { |
---|
| 203 | + | let Y = fromBase58String(N) |
---|
| 204 | + | let Z = assetInfo(Y) |
---|
| 205 | + | if ($isInstanceOf(Z, "Asset")) |
---|
210 | 206 | | then { |
---|
211 | | - | let ad = ac |
---|
212 | | - | if ((ad.decimals != 8)) |
---|
| 207 | + | let aa = Z |
---|
| 208 | + | if ((aa.decimals != 8)) |
---|
213 | 209 | | then throw("Invalid asset decimals, should be 8") |
---|
214 | | - | else [StringEntry(m, Q)] |
---|
| 210 | + | else [StringEntry(l, N)] |
---|
215 | 211 | | } |
---|
216 | 212 | | else throw("Can't find asset") |
---|
217 | 213 | | }) |
---|
218 | 214 | | |
---|
219 | 215 | | |
---|
220 | | - | @Verifier(ae) |
---|
221 | | - | func af () = sigVerify(ae.bodyBytes, ae.proofs[0], fromBase58String(z())) |
---|
| 216 | + | @Verifier(ab) |
---|
| 217 | + | func ac () = { |
---|
| 218 | + | let Z = getString(this, c) |
---|
| 219 | + | if ($isInstanceOf(Z, "String")) |
---|
| 220 | + | then { |
---|
| 221 | + | let ad = Z |
---|
| 222 | + | valueOrElse(getBoolean(addressFromStringValue(ad), ((("status_" + toString(this)) + "_") + toBase58String(ab.id))), false) |
---|
| 223 | + | } |
---|
| 224 | + | else sigVerify(ab.bodyBytes, ab.proofs[0], ab.senderPublicKey) |
---|
| 225 | + | } |
---|
222 | 226 | | |
---|