tx · 3HE6EamkqXWtDduxXiCyxhgDGeTeuyfPjS6czpfftNph 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.02300000 Waves 2022.11.21 15:05 [2326854] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "3HE6EamkqXWtDduxXiCyxhgDGeTeuyfPjS6czpfftNph", "fee": 2300000, "feeAssetId": null, "timestamp": 1669032419740, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "2CwWQnmAYUQy8AcQU5T1U1HJE9T4j4Dqo14KSHHPtumtcSFMaCQUGAAToAQsh7hLV3Fa3mfCmLHVz35ZWRdDeN7u" ], "script": "base64:BgKOIggCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgYKBAgBCAESBQoDARgYEgMKARgSAwoBCBIAIgZTQ0FMRTgiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNzZXRJZCIQaWR4SVByaWNlQXNzZXRJZCINaWR4TFBBc3NldERjbSIPZ2V0U3RyaW5nT3JGYWlsIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIHYWRkcmVzcyIMZ2V0SW50T3JaZXJvIgxnZXRJbnRPckZhaWwiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0I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UcACQDYBAEJAQV2YWx1ZQEFAmRaCQDMCAIJAQtEZWxldGVFbnRyeQEJAQFIAAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJlYwECZWQABAJlZQQBegkBAmJ4AAMJAAECBQF6AgpCeXRlVmVjdG9yBAJiRAUBegUCYkQDCQABAgUBegIEVW5pdAgFAmVjD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJlYwlib2R5Qnl0ZXMJAJEDAggFAmVjBnByb29mcwAABQJlZTHlVzA=", "chainId": 84, "height": 2326854, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5wSC8Gnfhet32BySVqdcrRAWmZcKS93kdyP6FzqZRgzh Next: rXkCHa6zK64TENEHziNPgCohWTm29PnyMF2ua7251nq Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = 8 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 100000000 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 18 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = "__" | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = b | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = toBigInt(0) | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 1 | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = 2 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 3 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 4 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 5 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 6 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 7 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 8 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 9 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 10 | |
37 | 37 | ||
38 | - | let r = 10 | |
39 | - | ||
40 | - | func s (t) = valueOrErrorMessage(getString(t), (("mandatory this." + t) + " is not defined")) | |
38 | + | func r (s) = valueOrErrorMessage(getString(s), (("mandatory this." + s) + " is not defined")) | |
41 | 39 | ||
42 | 40 | ||
43 | - | func | |
41 | + | func t (u,s) = valueOrErrorMessage(getString(u, s), (((("mandatory " + toString(u)) + ".") + s) + " is not defined")) | |
44 | 42 | ||
45 | 43 | ||
46 | - | func | |
44 | + | func v (u,s) = valueOrElse(getInteger(u, s), 0) | |
47 | 45 | ||
48 | 46 | ||
49 | - | func | |
47 | + | func w (u,s) = valueOrErrorMessage(getInteger(u, s), (("mandatory this." + s) + " is not defined")) | |
50 | 48 | ||
51 | 49 | ||
52 | - | func | |
53 | - | let | |
54 | - | if ($isInstanceOf( | |
50 | + | func x (y) = { | |
51 | + | let z = y | |
52 | + | if ($isInstanceOf(z, "List[Any]")) | |
55 | 53 | then { | |
56 | - | let | |
57 | - | | |
54 | + | let A = z | |
55 | + | A | |
58 | 56 | } | |
59 | 57 | else throw("fail to cast into List[Any]") | |
60 | 58 | } | |
61 | 59 | ||
62 | 60 | ||
63 | - | func | |
64 | - | let | |
65 | - | if ($isInstanceOf( | |
61 | + | func B (y) = { | |
62 | + | let z = y | |
63 | + | if ($isInstanceOf(z, "Int")) | |
66 | 64 | then { | |
67 | - | let | |
68 | - | | |
65 | + | let C = z | |
66 | + | C | |
69 | 67 | } | |
70 | 68 | else throw("fail to cast into Int") | |
71 | 69 | } | |
72 | 70 | ||
73 | 71 | ||
74 | - | func | |
75 | - | let | |
76 | - | if ($isInstanceOf( | |
72 | + | func D (y) = { | |
73 | + | let z = y | |
74 | + | if ($isInstanceOf(z, "String")) | |
77 | 75 | then { | |
78 | - | let | |
79 | - | | |
76 | + | let E = z | |
77 | + | E | |
80 | 78 | } | |
81 | 79 | else throw("fail to cast into String") | |
82 | 80 | } | |
83 | 81 | ||
84 | 82 | ||
85 | - | func | |
83 | + | func F () = "%s%s__config__factoryAddress" | |
86 | 84 | ||
87 | 85 | ||
88 | - | func | |
86 | + | func G () = "%s__managerPublicKey" | |
89 | 87 | ||
90 | 88 | ||
91 | - | func | |
89 | + | func H () = "%s__pendingManagerPublicKey" | |
92 | 90 | ||
93 | 91 | ||
94 | - | let | |
92 | + | let I = 1 | |
95 | 93 | ||
96 | - | let | |
94 | + | let J = 2 | |
97 | 95 | ||
98 | - | let | |
96 | + | let K = 3 | |
99 | 97 | ||
100 | - | let | |
98 | + | let L = 4 | |
101 | 99 | ||
102 | - | let | |
100 | + | let M = 5 | |
103 | 101 | ||
104 | - | let | |
102 | + | let N = 6 | |
105 | 103 | ||
106 | - | let | |
104 | + | let O = 7 | |
107 | 105 | ||
108 | - | let | |
106 | + | let P = 8 | |
109 | 107 | ||
110 | - | func | |
108 | + | func Q () = "%s__factoryConfig" | |
111 | 109 | ||
112 | 110 | ||
113 | - | func | |
111 | + | func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
114 | 112 | ||
115 | 113 | ||
116 | - | func | |
114 | + | func T () = "%s__lpTokensList" | |
117 | 115 | ||
118 | 116 | ||
119 | - | func | |
117 | + | func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
120 | 118 | ||
121 | 119 | ||
122 | - | func | |
120 | + | func V (W) = makeString(["%s%s", "poolWeight", W], e) | |
123 | 121 | ||
124 | 122 | ||
125 | - | func | |
123 | + | func X () = addressFromStringValue(r(F())) | |
126 | 124 | ||
127 | 125 | ||
128 | - | func | |
126 | + | func Y () = split(valueOrElse(getString(X(), T()), ""), e) | |
129 | 127 | ||
130 | 128 | ||
131 | - | func | |
129 | + | func Z (aa) = split(t(aa, Q()), e) | |
132 | 130 | ||
133 | 131 | ||
134 | - | func | |
132 | + | func ab (ac) = addressFromStringValue(ac[J]) | |
135 | 133 | ||
136 | 134 | ||
137 | - | func | |
135 | + | func ad (ac) = addressFromStringValue(ac[M]) | |
138 | 136 | ||
139 | 137 | ||
140 | - | func | |
138 | + | func ae (ac) = addressFromStringValue(ac[I]) | |
141 | 139 | ||
142 | 140 | ||
143 | - | func | |
141 | + | func af (ac) = addressFromStringValue(ac[P]) | |
144 | 142 | ||
145 | 143 | ||
146 | - | func | |
144 | + | func ag () = "%s__config" | |
147 | 145 | ||
148 | 146 | ||
149 | - | func | |
147 | + | func ah () = "%s%s__stats__activeTotalLocked" | |
150 | 148 | ||
151 | 149 | ||
152 | - | func | |
150 | + | func ai () = "%s%s__stats__locksDurationSumInBlocks" | |
153 | 151 | ||
154 | 152 | ||
155 | - | func | |
153 | + | func aj () = "%s%s__stats__locksCount" | |
156 | 154 | ||
157 | 155 | ||
158 | - | func | |
156 | + | func ak () = "%s%s__stats__activeUsersCount" | |
159 | 157 | ||
160 | 158 | ||
161 | - | func | |
159 | + | func al (am) = makeString(["%s%s%s__mapping__user2num", am], e) | |
162 | 160 | ||
163 | 161 | ||
164 | - | func | |
162 | + | func an (ao) = makeString(["%s%s%s__mapping__num2user", ao], e) | |
165 | 163 | ||
166 | 164 | ||
167 | - | func | |
165 | + | func ap (aq) = makeString(["%s%d%s__paramByUserNum", aq, "amount"], e) | |
168 | 166 | ||
169 | 167 | ||
170 | - | func | |
168 | + | func ar (aq) = makeString(["%s%d%s__paramByUserNum", aq, "start"], e) | |
171 | 169 | ||
172 | 170 | ||
173 | - | func | |
171 | + | func as (aq) = makeString(["%s%d%s__paramByUserNum", aq, "duration"], e) | |
174 | 172 | ||
175 | 173 | ||
176 | - | func | |
174 | + | func at (aq) = makeString(["%s%d%s__paramByUserNum", aq, "k"], e) | |
177 | 175 | ||
178 | 176 | ||
179 | - | func | |
177 | + | func au (aq) = makeString(["%s%d%s__paramByUserNum", aq, "b"], e) | |
180 | 178 | ||
181 | 179 | ||
182 | - | func | |
180 | + | func av (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "k", aw], e) | |
183 | 181 | ||
184 | 182 | ||
185 | - | func | |
183 | + | func ax (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "b", aw], e) | |
186 | 184 | ||
187 | 185 | ||
188 | - | func | |
186 | + | func ay (aq) = makeString(["%s%d__userBoostEmissionLastInt", aq], e) | |
189 | 187 | ||
190 | 188 | ||
191 | - | func | |
189 | + | func az (aq) = makeString(["%s%d__maxBoostInt", aq], e) | |
192 | 190 | ||
193 | 191 | ||
194 | - | func | |
192 | + | func aA () = "%s%s__maxBoostInt__total" | |
195 | 193 | ||
196 | 194 | ||
197 | - | func | |
195 | + | func aB (aq) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aq], e) | |
198 | 196 | ||
199 | 197 | ||
200 | - | func | |
198 | + | func aC (aq) = makeString(["%s%d__userBoostClaimed", aq], e) | |
201 | 199 | ||
202 | 200 | ||
203 | - | func | |
201 | + | func aD () = "%s%s__gwxCached__total" | |
204 | 202 | ||
205 | 203 | ||
206 | - | func | |
204 | + | func aE (aF,aG) = makeString(["%s%s%s__staked", aF, aG], e) | |
207 | 205 | ||
208 | 206 | ||
209 | - | func | |
207 | + | func aH (aG) = ("%s%s%s__staked__total__" + aG) | |
210 | 208 | ||
211 | 209 | ||
212 | - | func | |
210 | + | func aI (aG,aF) = makeString(["%s%s%s__claimed", aF, aG], e) | |
213 | 211 | ||
214 | 212 | ||
215 | - | func | |
213 | + | func aJ (aG,aF) = makeString(["%s%s%s__claimedMinReward", aF, aG], e) | |
216 | 214 | ||
217 | 215 | ||
218 | - | func | |
216 | + | func aK (aG,aF) = makeString(["%s%s%s__claimedBoostReward", aF, aG], e) | |
219 | 217 | ||
220 | 218 | ||
221 | - | func | |
219 | + | func aL (aM,s) = valueOrElse(getInteger(aM, s), 0) | |
222 | 220 | ||
223 | 221 | ||
224 | - | func | |
222 | + | func aN () = "%s%s__ratePerBlock__current" | |
225 | 223 | ||
226 | 224 | ||
227 | - | func | |
225 | + | func aO () = "%s%s__ratePerBlockMax__current" | |
228 | 226 | ||
229 | 227 | ||
230 | - | func | |
228 | + | func aP () = "%s%s__emission__startBlock" | |
231 | 229 | ||
232 | 230 | ||
233 | - | func | |
231 | + | func aQ () = "%s%s__emission__duration" | |
234 | 232 | ||
235 | 233 | ||
236 | - | func | |
234 | + | func aR () = "%s%s__emission__endBlock" | |
237 | 235 | ||
238 | 236 | ||
239 | - | func | |
237 | + | func aS () = "%s__addonAddr" | |
240 | 238 | ||
241 | 239 | ||
242 | - | func | |
243 | - | let | |
244 | - | let | |
245 | - | valueOrElse(getInteger( | |
240 | + | func aT (aU) = { | |
241 | + | let aV = fraction(10, b, 10000) | |
242 | + | let aW = "%s__fee" | |
243 | + | valueOrElse(getInteger(aU, aW), aV) | |
246 | 244 | } | |
247 | 245 | ||
248 | 246 | ||
249 | - | let | |
247 | + | let aX = X() | |
250 | 248 | ||
251 | - | let | |
249 | + | let aY = Z(aX) | |
252 | 250 | ||
253 | - | let | |
251 | + | let aZ = ad(aY) | |
254 | 252 | ||
255 | - | let | |
253 | + | let aM = ae(aY) | |
256 | 254 | ||
257 | - | let | |
255 | + | let ba = af(aY) | |
258 | 256 | ||
259 | - | let | |
257 | + | let bb = ab(aY) | |
260 | 258 | ||
261 | - | func | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | [ | |
259 | + | func bc (bd) = { | |
260 | + | let be = t(aX, U(bd)) | |
261 | + | let bf = b | |
262 | + | let bg = getIntegerValue(aX, V(be)) | |
263 | + | let bh = w(aZ, aN()) | |
264 | + | let bi = w(aZ, aO()) | |
265 | + | let bj = 3 | |
266 | + | let bk = (fraction(bh, bg, bf) / bj) | |
267 | + | let bl = fraction(bi, bg, bf) | |
268 | + | let bm = (bj * b) | |
269 | + | let bn = v(aM, aH(bd)) | |
270 | + | [bk, bm, bn] | |
273 | 271 | } | |
274 | 272 | ||
275 | 273 | ||
276 | - | func | |
277 | - | let | |
278 | - | let | |
279 | - | [ | |
274 | + | func bo (bp,bq,br) = { | |
275 | + | let bs = fraction(bq, b, br) | |
276 | + | let bt = fraction(bp, bs, b) | |
277 | + | [bt] | |
280 | 278 | } | |
281 | 279 | ||
282 | 280 | ||
283 | - | func | |
284 | - | then getStringValue( | |
285 | - | else if (( | |
286 | - | then toString(getIntegerValue( | |
287 | - | else if (( | |
288 | - | then toString(getBooleanValue( | |
281 | + | func bu (bv,s,bw) = if ((bw == "string")) | |
282 | + | then getStringValue(bv, s) | |
283 | + | else if ((bw == "integer")) | |
284 | + | then toString(getIntegerValue(bv, s)) | |
285 | + | else if ((bw == "boolean")) | |
286 | + | then toString(getBooleanValue(bv, s)) | |
289 | 287 | else throw("unknown type. expected string/integer/boolean") | |
290 | 288 | ||
291 | 289 | ||
292 | - | func | |
293 | - | let | |
294 | - | if ($isInstanceOf( | |
290 | + | func bx () = { | |
291 | + | let z = getString(G()) | |
292 | + | if ($isInstanceOf(z, "String")) | |
295 | 293 | then { | |
296 | - | let | |
297 | - | fromBase58String( | |
294 | + | let by = z | |
295 | + | fromBase58String(by) | |
298 | 296 | } | |
299 | - | else if ($isInstanceOf( | |
297 | + | else if ($isInstanceOf(z, "Unit")) | |
300 | 298 | then unit | |
301 | 299 | else throw("Match error") | |
302 | 300 | } | |
303 | 301 | ||
304 | 302 | ||
305 | - | func | |
306 | - | let | |
307 | - | if ($isInstanceOf( | |
303 | + | func bz () = { | |
304 | + | let z = getString(H()) | |
305 | + | if ($isInstanceOf(z, "String")) | |
308 | 306 | then { | |
309 | - | let | |
310 | - | fromBase58String( | |
307 | + | let by = z | |
308 | + | fromBase58String(by) | |
311 | 309 | } | |
312 | - | else if ($isInstanceOf( | |
310 | + | else if ($isInstanceOf(z, "Unit")) | |
313 | 311 | then unit | |
314 | 312 | else throw("Match error") | |
315 | 313 | } | |
316 | 314 | ||
317 | 315 | ||
318 | - | func | |
319 | - | let | |
320 | - | let | |
321 | - | if ($isInstanceOf( | |
316 | + | func bA (bB) = { | |
317 | + | let bC = throw("Permission denied") | |
318 | + | let z = bx() | |
319 | + | if ($isInstanceOf(z, "ByteVector")) | |
322 | 320 | then { | |
323 | - | let | |
324 | - | if (( | |
321 | + | let bD = z | |
322 | + | if ((bB.callerPublicKey == bD)) | |
325 | 323 | then true | |
326 | - | else | |
324 | + | else bC | |
327 | 325 | } | |
328 | - | else if ($isInstanceOf( | |
329 | - | then if (( | |
326 | + | else if ($isInstanceOf(z, "Unit")) | |
327 | + | then if ((bB.caller == this)) | |
330 | 328 | then true | |
331 | - | else | |
329 | + | else bC | |
332 | 330 | else throw("Match error") | |
333 | 331 | } | |
334 | 332 | ||
335 | 333 | ||
336 | - | @Callable( | |
337 | - | func constructor ( | |
338 | - | let | |
339 | - | if (( | |
340 | - | then [StringEntry( | |
334 | + | @Callable(bB) | |
335 | + | func constructor (bE) = { | |
336 | + | let bF = bA(bB) | |
337 | + | if ((bF == bF)) | |
338 | + | then [StringEntry(F(), bE)] | |
341 | 339 | else throw("Strict value is not equal to itself.") | |
342 | 340 | } | |
343 | 341 | ||
344 | 342 | ||
345 | 343 | ||
346 | - | @Callable( | |
347 | - | func currentRewardRateREADONLY ( | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | $Tuple2(nil, makeString(["%d%d%d", toString( | |
344 | + | @Callable(bB) | |
345 | + | func currentRewardRateREADONLY (bd) = { | |
346 | + | let bG = bc(bd) | |
347 | + | let bh = bG[0] | |
348 | + | let bm = bG[1] | |
349 | + | let bn = bG[2] | |
350 | + | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
353 | 351 | } | |
354 | 352 | ||
355 | 353 | ||
356 | 354 | ||
357 | - | @Callable( | |
358 | - | func currentUserRewardRateREADONLY ( | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | then (1 * | |
370 | - | else fraction(( | |
371 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString( | |
355 | + | @Callable(bB) | |
356 | + | func currentUserRewardRateREADONLY (bd,am) = { | |
357 | + | let bG = bc(bd) | |
358 | + | let bh = bG[0] | |
359 | + | let bm = bG[1] | |
360 | + | let bn = bG[2] | |
361 | + | let bH = v(aM, aE(am, bd)) | |
362 | + | let bI = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
363 | + | let bJ = valueOrErrorMessage(parseInt(bI[5]), "couldn't parse minRewardPart") | |
364 | + | let bK = valueOrErrorMessage(parseInt(bI[6]), "couldn't parse boostRewardPart") | |
365 | + | let bL = bI[7] | |
366 | + | let bM = if ((bK == 0)) | |
367 | + | then (1 * b) | |
368 | + | else fraction((bJ + bK), b, bJ) | |
369 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bH), toString(bM), bL], e)) | |
372 | 370 | } | |
373 | 371 | ||
374 | 372 | ||
375 | 373 | ||
376 | - | @Callable( | |
377 | - | func calcBoostBulkInternalREADONLY (bO,bP,bQ,bR,bS,bT | |
378 | - | then $Tuple2(nil, | |
374 | + | @Callable(bB) | |
375 | + | func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO))) | |
376 | + | then $Tuple2(nil, bT) | |
379 | 377 | else { | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | if ($isInstanceOf( | |
387 | - | then | |
388 | - | else throw(($getType( | |
378 | + | let bU = bO[bN] | |
379 | + | let bV = bP[bN] | |
380 | + | let bW = bQ[bN] | |
381 | + | let bX = bR[bN] | |
382 | + | let bY = { | |
383 | + | let bZ = invoke(this, "calcBoostREADONLY", [bU, bV, bW, bX, bS], nil) | |
384 | + | if ($isInstanceOf(bZ, "String")) | |
385 | + | then bZ | |
386 | + | else throw(($getType(bZ) + " couldn't be cast to String")) | |
389 | 387 | } | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | if ($isInstanceOf( | |
394 | - | then | |
395 | - | else throw(($getType( | |
388 | + | let ca = (bT :+ bY) | |
389 | + | let cb = { | |
390 | + | let bZ = invoke(this, "calcBoostBulkInternalREADONLY", [(bN + 1), bO, bP, bQ, bR, bS, ca], nil) | |
391 | + | if ($isInstanceOf(bZ, "List[Any]")) | |
392 | + | then bZ | |
393 | + | else throw(($getType(bZ) + " couldn't be cast to List[Any]")) | |
396 | 394 | } | |
397 | - | if (( | |
398 | - | then $Tuple2(nil, | |
395 | + | if ((cb == cb)) | |
396 | + | then $Tuple2(nil, cb) | |
399 | 397 | else throw("Strict value is not equal to itself.") | |
400 | 398 | } | |
401 | 399 | ||
402 | 400 | ||
403 | 401 | ||
404 | - | @Callable( | |
405 | - | func calcBoostBulkREADONLY (bV,bW,bX, | |
406 | - | let | |
407 | - | $Tuple2(nil, | |
402 | + | @Callable(bB) | |
403 | + | func calcBoostBulkREADONLY (bU,bV,bW,bX,bS) = { | |
404 | + | let ca = invoke(this, "calcBoostBulkInternalREADONLY", [0, bU, bV, bW, bX, bS, nil], nil) | |
405 | + | $Tuple2(nil, ca) | |
408 | 406 | } | |
409 | 407 | ||
410 | 408 | ||
411 | 409 | ||
412 | - | @Callable( | |
413 | - | func calcBoostREADONLY (bV,bW,bX, | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | then | |
419 | - | else | |
420 | - | let | |
421 | - | then | |
422 | - | else | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
410 | + | @Callable(bB) | |
411 | + | func calcBoostREADONLY (bU,bV,bW,bX,bS) = { | |
412 | + | let cc = ba | |
413 | + | let cd = "empty" | |
414 | + | let ce = parseIntValue(split(t(bb, ag()), e)[4]) | |
415 | + | let aG = if ((bX == "")) | |
416 | + | then cd | |
417 | + | else bX | |
418 | + | let aF = if ((bS == "")) | |
419 | + | then cd | |
420 | + | else bS | |
421 | + | let cf = valueOrElse(getString(bb, al(bS)), cd) | |
422 | + | let cg = valueOrElse(getInteger(bb, ap(cf)), 0) | |
423 | + | let ch = valueOrElse(getInteger(bb, ar(cf)), height) | |
424 | + | let bq = valueOrElse(getInteger(bb, as(cf)), 0) | |
425 | + | let ci = (ch + bq) | |
426 | + | let cj = max([(ci - height), 0]) | |
427 | + | let ck = (cg + bU) | |
428 | + | let cl = min([(cj + bV), ce]) | |
429 | + | let cm = B(x(invoke(bb, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
430 | + | let cn = bo(ck, cl, ce)[0] | |
431 | + | let co = x(invoke(cc, "calcGwxParamsREADONLY", [cn, height, cl], nil)) | |
432 | + | let cp = (cn - cm) | |
433 | + | let cq = B(co[0]) | |
434 | + | let cr = B(co[1]) | |
435 | + | let aw = toString(B(co[2])) | |
436 | + | let cs = aA() | |
437 | + | let ct = aD() | |
438 | + | let cu = ((cn * cl) / 2) | |
439 | + | let cv = v(bb, cs) | |
440 | + | let cw = valueOrElse(getInteger(bb, ct), 0) | |
441 | + | let cx = 1000 | |
442 | + | let cy = (w(aZ, aN()) * cx) | |
443 | + | let cz = aE(aF, aG) | |
444 | + | let cA = aH(aG) | |
445 | + | let cB = aL(aM, cz) | |
446 | + | let cC = aL(aM, cA) | |
447 | + | let cD = (cB + bW) | |
448 | + | let cE = (cC + bW) | |
449 | + | let bg = if ((aG != cd)) | |
452 | 450 | then { | |
453 | - | let | |
454 | - | getIntegerValue( | |
451 | + | let be = valueOrErrorMessage(getString(aX, R(aG)), ("unsupported lp asset " + aG)) | |
452 | + | getIntegerValue(aX, V(be)) | |
455 | 453 | } | |
456 | 454 | else 0 | |
457 | - | let | |
458 | - | let | |
459 | - | then fraction( | |
455 | + | let cF = fraction(cy, bg, (f * 3)) | |
456 | + | let cG = if ((cE != 0)) | |
457 | + | then fraction(cF, b, cE) | |
460 | 458 | else 0 | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | then (1 * | |
467 | - | else fraction(( | |
468 | - | $Tuple2(nil, makeString(["%d%d%s", toString( | |
459 | + | let cH = fraction(cG, cD, b) | |
460 | + | let cI = (cF * 2) | |
461 | + | let cJ = fraction(cn, cI, (cw + cp)) | |
462 | + | let cK = min([cJ, (cH * 2)]) | |
463 | + | let cL = if ((cH == 0)) | |
464 | + | then (1 * b) | |
465 | + | else fraction((cK + cH), b, cH) | |
466 | + | $Tuple2(nil, makeString(["%d%d%s", toString(cn), toString(cL), "d"], e)) | |
469 | 467 | } | |
470 | 468 | ||
471 | 469 | ||
472 | 470 | ||
473 | - | @Callable( | |
471 | + | @Callable(bB) | |
474 | 472 | func wxEmissionStatsREADONLY () = { | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
473 | + | let cM = toString(b) | |
474 | + | let cN = "1" | |
475 | + | let bh = w(aZ, aN()) | |
476 | + | let cO = w(aZ, aP()) | |
477 | + | let cP = if ((cO > height)) | |
480 | 478 | then 0 | |
481 | - | else (height - | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | then | |
486 | - | else fraction( | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString(cU), toString(cV), toString(cW) | |
479 | + | else (height - cO) | |
480 | + | let cQ = (1440 * 365) | |
481 | + | let cR = (201000000 * b) | |
482 | + | let cS = if ((cP > cQ)) | |
483 | + | then cR | |
484 | + | else fraction(cR, cP, cQ) | |
485 | + | let cT = ((bh * cP) + cS) | |
486 | + | let cU = v(bb, ah()) | |
487 | + | let cV = v(bb, ai()) | |
488 | + | let cW = v(bb, aj()) | |
489 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cT), toString(cU), toString(cV), toString(cW)], e)) | |
492 | 490 | } | |
493 | 491 | ||
494 | 492 | ||
495 | 493 | ||
496 | - | @Callable( | |
497 | - | func poolStatsREADONLY ( | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | then [toString( | |
512 | - | else | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | if ($isInstanceOf( | |
521 | - | then | |
522 | - | else throw(($getType( | |
494 | + | @Callable(bB) | |
495 | + | func poolStatsREADONLY (cX) = { | |
496 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
497 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
498 | + | let bd = fromBase58String(D(cY[j])) | |
499 | + | let cZ = D(cY[k]) | |
500 | + | let da = D(cY[l]) | |
501 | + | let db = D(cY[o]) | |
502 | + | let dc = D(cY[p]) | |
503 | + | let dd = parseIntValue(D(cY[m])) | |
504 | + | let de = parseIntValue(D(cY[n])) | |
505 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
506 | + | let dg = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cZ], nil)) | |
507 | + | let dh = B(invoke(aU, "getAccBalanceWrapperREADONLY", [da], nil)) | |
508 | + | let di = if ((df == 0)) | |
509 | + | then [toString(g), toString(g), toString(g)] | |
510 | + | else x(invoke(aU, "calcPricesWrapperREADONLY", [dg, dh, df], nil)) | |
511 | + | let dj = 0 | |
512 | + | let dk = B(invoke(aU, "fromX18WrapperREADONLY", [di[1], b], nil)) | |
513 | + | let dl = B(invoke(aU, "fromX18WrapperREADONLY", [di[2], b], nil)) | |
514 | + | let bg = getIntegerValue(aX, V(toString(aU))) | |
515 | + | let dm = aT(aU) | |
516 | + | let dn = { | |
517 | + | let bZ = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil) | |
518 | + | if ($isInstanceOf(bZ, "Boolean")) | |
519 | + | then bZ | |
520 | + | else throw(($getType(bZ) + " couldn't be cast to Boolean")) | |
523 | 521 | } | |
524 | - | let | |
525 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dh), toString( | |
522 | + | let do = !(dn) | |
523 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dg), toString(dh), toString(df), toString(dj), toString(dk), toString(dl), toString(bg), toString(dm), toString(do)], e)) | |
526 | 524 | } | |
527 | 525 | ||
528 | 526 | ||
529 | 527 | ||
530 | - | @Callable( | |
531 | - | func poolEvaluatePutByAmountAssetREADONLY ( | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | then | |
549 | - | else parseBigIntValue( | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | if (if (if ($isInstanceOf( | |
558 | - | then if ($isInstanceOf( | |
559 | - | then if ($isInstanceOf( | |
560 | - | then if ($isInstanceOf( | |
561 | - | then $isInstanceOf( | |
528 | + | @Callable(bB) | |
529 | + | func poolEvaluatePutByAmountAssetREADONLY (cX,dp) = { | |
530 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
531 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
532 | + | let bd = fromBase58String(D(cY[j])) | |
533 | + | let dq = D(cY[k]) | |
534 | + | let dr = fromBase58String(dq) | |
535 | + | let ds = D(cY[l]) | |
536 | + | let dt = fromBase58String(ds) | |
537 | + | let dd = parseIntValue(D(cY[m])) | |
538 | + | let de = parseIntValue(D(cY[n])) | |
539 | + | let du = D(cY[i]) | |
540 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
541 | + | let dg = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dq], nil)) | |
542 | + | let dh = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ds], nil)) | |
543 | + | let dv = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dg, dd], nil))) | |
544 | + | let dw = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dh, de], nil))) | |
545 | + | let dx = if ((df == 0)) | |
546 | + | then g | |
547 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dw), toString(dv)], nil))) | |
548 | + | let dj = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dx), b], nil)) | |
549 | + | let dy = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dp, dd], nil))) | |
550 | + | let dz = fraction(dy, dx, d) | |
551 | + | let dA = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dz), de], nil)) | |
552 | + | let ca = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dp, dr, dA, dt, "", true, false], nil) | |
553 | + | let dB = { | |
554 | + | let z = ca | |
555 | + | if (if (if ($isInstanceOf(z._1, "Int")) | |
556 | + | then if ($isInstanceOf(z._3, "Int")) | |
557 | + | then if ($isInstanceOf(z._4, "Int")) | |
558 | + | then if ($isInstanceOf(z._5, "Int")) | |
559 | + | then $isInstanceOf(z._6, "Int") | |
562 | 560 | else false | |
563 | 561 | else false | |
564 | 562 | else false | |
565 | 563 | else false) | |
566 | - | then (size( | |
564 | + | then (size(z) == 13) | |
567 | 565 | else false) | |
568 | 566 | then { | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | $Tuple5(dD, dE, dF, dG | |
567 | + | let dC = z._1 | |
568 | + | let dD = z._3 | |
569 | + | let dE = z._4 | |
570 | + | let dF = z._5 | |
571 | + | let dG = z._6 | |
572 | + | $Tuple5(dC, dD, dE, dF, dG) | |
575 | 573 | } | |
576 | 574 | else throw("Couldn't cast types") | |
577 | 575 | } | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
576 | + | let dC = dB._1 | |
577 | + | let dD = dB._2 | |
578 | + | let dE = dB._3 | |
579 | + | let dF = dB._4 | |
580 | + | let dG = dB._5 | |
581 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dC), toString(dj), toString(dE), toString(dF), toString(dG), du, toString(dp), toString(dA)], e)) | |
584 | 582 | } | |
585 | 583 | ||
586 | 584 | ||
587 | 585 | ||
588 | - | @Callable( | |
589 | - | func poolEvaluatePutByPriceAssetREADONLY ( | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | then | |
607 | - | else parseBigIntValue( | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | if (if (if ($isInstanceOf( | |
616 | - | then if ($isInstanceOf( | |
617 | - | then if ($isInstanceOf( | |
618 | - | then if ($isInstanceOf( | |
619 | - | then $isInstanceOf( | |
586 | + | @Callable(bB) | |
587 | + | func poolEvaluatePutByPriceAssetREADONLY (cX,dA) = { | |
588 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
589 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
590 | + | let bd = fromBase58String(D(cY[j])) | |
591 | + | let dq = D(cY[k]) | |
592 | + | let dr = fromBase58String(dq) | |
593 | + | let ds = D(cY[l]) | |
594 | + | let dt = fromBase58String(ds) | |
595 | + | let dd = parseIntValue(D(cY[m])) | |
596 | + | let de = parseIntValue(D(cY[n])) | |
597 | + | let du = D(cY[i]) | |
598 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
599 | + | let dH = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dq], nil)) | |
600 | + | let dI = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ds], nil)) | |
601 | + | let dJ = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dH, dd], nil))) | |
602 | + | let dK = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dI, de], nil))) | |
603 | + | let dx = if ((df == 0)) | |
604 | + | then g | |
605 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dK), toString(dJ)], nil))) | |
606 | + | let dj = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dx), b], nil)) | |
607 | + | let dz = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dA, de], nil))) | |
608 | + | let dy = fraction(dz, d, dx) | |
609 | + | let dp = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dy), dd], nil)) | |
610 | + | let ca = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dp, dr, dA, dt, "", true, false], nil) | |
611 | + | let dL = { | |
612 | + | let z = ca | |
613 | + | if (if (if ($isInstanceOf(z._1, "Int")) | |
614 | + | then if ($isInstanceOf(z._3, "Int")) | |
615 | + | then if ($isInstanceOf(z._4, "Int")) | |
616 | + | then if ($isInstanceOf(z._5, "Int")) | |
617 | + | then $isInstanceOf(z._6, "Int") | |
620 | 618 | else false | |
621 | 619 | else false | |
622 | 620 | else false | |
623 | 621 | else false) | |
624 | - | then (size( | |
622 | + | then (size(z) == 13) | |
625 | 623 | else false) | |
626 | 624 | then { | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | $Tuple5(dD, dE, dF, dG | |
625 | + | let dC = z._1 | |
626 | + | let dD = z._3 | |
627 | + | let dE = z._4 | |
628 | + | let dF = z._5 | |
629 | + | let dG = z._6 | |
630 | + | $Tuple5(dC, dD, dE, dF, dG) | |
633 | 631 | } | |
634 | 632 | else throw("Couldn't cast types") | |
635 | 633 | } | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
634 | + | let dC = dL._1 | |
635 | + | let dD = dL._2 | |
636 | + | let dE = dL._3 | |
637 | + | let dF = dL._4 | |
638 | + | let dG = dL._5 | |
639 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dC), toString(dj), toString(dE), toString(dF), toString(dG), du, toString(dp), toString(dA)], e)) | |
642 | 640 | } | |
643 | 641 | ||
644 | 642 | ||
645 | 643 | ||
646 | - | @Callable( | |
647 | - | func poolEvaluateGetREADONLY (dN | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | if (if (if ($isInstanceOf( | |
653 | - | then if ($isInstanceOf( | |
654 | - | then if ($isInstanceOf( | |
655 | - | then if ($isInstanceOf( | |
656 | - | then if ($isInstanceOf( | |
657 | - | then if ($isInstanceOf( | |
658 | - | then $isInstanceOf( | |
644 | + | @Callable(bB) | |
645 | + | func poolEvaluateGetREADONLY (dM,dN) = { | |
646 | + | let aU = addressFromStringValue(t(aX, U(dM))) | |
647 | + | let ca = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dM, dN, toString(aU)], nil) | |
648 | + | let dO = { | |
649 | + | let z = ca | |
650 | + | if (if (if ($isInstanceOf(z._1, "Int")) | |
651 | + | then if ($isInstanceOf(z._2, "Int")) | |
652 | + | then if ($isInstanceOf(z._5, "Int")) | |
653 | + | then if ($isInstanceOf(z._6, "Int")) | |
654 | + | then if ($isInstanceOf(z._7, "Int")) | |
655 | + | then if ($isInstanceOf(z._8, "String")) | |
656 | + | then $isInstanceOf(z._9, "String") | |
659 | 657 | else false | |
660 | 658 | else false | |
661 | 659 | else false | |
662 | 660 | else false | |
663 | 661 | else false | |
664 | 662 | else false) | |
665 | - | then (size( | |
663 | + | then (size(z) == 10) | |
666 | 664 | else false) | |
667 | 665 | then { | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | $Tuple7(dQ, | |
666 | + | let dP = z._1 | |
667 | + | let dQ = z._2 | |
668 | + | let dE = z._5 | |
669 | + | let dF = z._6 | |
670 | + | let dG = z._7 | |
671 | + | let dj = z._8 | |
672 | + | let du = z._9 | |
673 | + | $Tuple7(dP, dQ, dE, dF, dG, dj, du) | |
676 | 674 | } | |
677 | 675 | else throw("Couldn't cast types") | |
678 | 676 | } | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
686 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dQ), toString( | |
677 | + | let dP = dO._1 | |
678 | + | let dQ = dO._2 | |
679 | + | let dE = dO._3 | |
680 | + | let dF = dO._4 | |
681 | + | let dG = dO._5 | |
682 | + | let dj = dO._6 | |
683 | + | let du = dO._7 | |
684 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dP), toString(dQ), toString(dE), toString(dF), toString(dG), dj, du], e)) | |
687 | 685 | } | |
688 | 686 | ||
689 | 687 | ||
690 | 688 | ||
691 | - | @Callable( | |
692 | - | func gwxUserInfoREADONLY ( | |
693 | - | let | |
694 | - | let | |
695 | - | $Tuple2(nil, makeString(["%d", toString( | |
689 | + | @Callable(bB) | |
690 | + | func gwxUserInfoREADONLY (am) = { | |
691 | + | let dR = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil)) | |
692 | + | let dS = B(dR[0]) | |
693 | + | $Tuple2(nil, makeString(["%d", toString(dS)], e)) | |
696 | 694 | } | |
697 | 695 | ||
698 | 696 | ||
699 | 697 | ||
700 | - | @Callable( | |
701 | - | func unstakeAndGetOneTknV2 ( | |
702 | - | let | |
703 | - | if (( | |
698 | + | @Callable(bB) | |
699 | + | func unstakeAndGetOneTknV2 (aU,dT,dU,dV) = { | |
700 | + | let cb = invoke(addressFromStringValue(aU), "unstakeAndGetOneTknV2", [dT, dU, dV], nil) | |
701 | + | if ((cb == cb)) | |
704 | 702 | then $Tuple2(nil, unit) | |
705 | 703 | else throw("Strict value is not equal to itself.") | |
706 | 704 | } | |
707 | 705 | ||
708 | 706 | ||
709 | 707 | ||
710 | - | @Callable( | |
711 | - | func getKeysBulkInternal ( | |
712 | - | then $Tuple2(nil, | |
708 | + | @Callable(bB) | |
709 | + | func getKeysBulkInternal (bN,dW,bT) = if ((bN == size(dW))) | |
710 | + | then $Tuple2(nil, bT) | |
713 | 711 | else { | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | if (( | |
722 | - | then $Tuple2(nil, | |
712 | + | let cq = split(dW[bN], "++") | |
713 | + | let bv = addressFromStringValue(cq[0]) | |
714 | + | let s = cq[1] | |
715 | + | let bw = cq[2] | |
716 | + | let y = bu(bv, s, bw) | |
717 | + | let ca = (bT :+ y) | |
718 | + | let cb = invoke(this, "getKeysBulkInternal", [(bN + 1), dW, ca], nil) | |
719 | + | if ((cb == cb)) | |
720 | + | then $Tuple2(nil, cb) | |
723 | 721 | else throw("Strict value is not equal to itself.") | |
724 | 722 | } | |
725 | 723 | ||
726 | 724 | ||
727 | 725 | ||
728 | - | @Callable( | |
729 | - | func getKeysBulk ( | |
730 | - | let | |
731 | - | $Tuple2(nil, | |
726 | + | @Callable(bB) | |
727 | + | func getKeysBulk (dW) = { | |
728 | + | let ca = invoke(this, "getKeysBulkInternal", [0, dW, nil], nil) | |
729 | + | $Tuple2(nil, ca) | |
732 | 730 | } | |
733 | 731 | ||
734 | 732 | ||
735 | 733 | ||
736 | - | @Callable( | |
737 | - | func setManager ( | |
738 | - | let | |
739 | - | if (( | |
734 | + | @Callable(bB) | |
735 | + | func setManager (dX) = { | |
736 | + | let bF = bA(bB) | |
737 | + | if ((bF == bF)) | |
740 | 738 | then { | |
741 | - | let | |
742 | - | if (( | |
743 | - | then [StringEntry( | |
739 | + | let dY = fromBase58String(dX) | |
740 | + | if ((dY == dY)) | |
741 | + | then [StringEntry(H(), dX)] | |
744 | 742 | else throw("Strict value is not equal to itself.") | |
745 | 743 | } | |
746 | 744 | else throw("Strict value is not equal to itself.") | |
748 | 746 | ||
749 | 747 | ||
750 | 748 | ||
751 | - | @Callable( | |
749 | + | @Callable(bB) | |
752 | 750 | func confirmManager () = { | |
753 | - | let | |
754 | - | let | |
751 | + | let dZ = bz() | |
752 | + | let ea = if (isDefined(dZ)) | |
755 | 753 | then true | |
756 | 754 | else throw("No pending manager") | |
757 | - | if (( | |
755 | + | if ((ea == ea)) | |
758 | 756 | then { | |
759 | - | let | |
757 | + | let eb = if ((bB.callerPublicKey == value(dZ))) | |
760 | 758 | then true | |
761 | 759 | else throw("You are not pending manager") | |
762 | - | if (( | |
763 | - | then [StringEntry( | |
760 | + | if ((eb == eb)) | |
761 | + | then [StringEntry(G(), toBase58String(value(dZ))), DeleteEntry(H())] | |
764 | 762 | else throw("Strict value is not equal to itself.") | |
765 | 763 | } | |
766 | 764 | else throw("Strict value is not equal to itself.") | |
767 | 765 | } | |
768 | 766 | ||
769 | 767 | ||
770 | - | @Verifier( | |
771 | - | func | |
772 | - | let | |
773 | - | let | |
774 | - | if ($isInstanceOf( | |
768 | + | @Verifier(ec) | |
769 | + | func ed () = { | |
770 | + | let ee = { | |
771 | + | let z = bx() | |
772 | + | if ($isInstanceOf(z, "ByteVector")) | |
775 | 773 | then { | |
776 | - | let | |
777 | - | | |
774 | + | let bD = z | |
775 | + | bD | |
778 | 776 | } | |
779 | - | else if ($isInstanceOf( | |
780 | - | then | |
777 | + | else if ($isInstanceOf(z, "Unit")) | |
778 | + | then ec.senderPublicKey | |
781 | 779 | else throw("Match error") | |
782 | 780 | } | |
783 | - | sigVerify( | |
781 | + | sigVerify(ec.bodyBytes, ec.proofs[0], ee) | |
784 | 782 | } | |
785 | 783 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = 8 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 100000000 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 18 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = "__" | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = b | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = toBigInt(0) | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 1 | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = 2 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 3 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 4 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 5 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 6 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 7 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 8 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 9 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 10 | |
37 | 37 | ||
38 | - | let r = 10 | |
39 | - | ||
40 | - | func s (t) = valueOrErrorMessage(getString(t), (("mandatory this." + t) + " is not defined")) | |
38 | + | func r (s) = valueOrErrorMessage(getString(s), (("mandatory this." + s) + " is not defined")) | |
41 | 39 | ||
42 | 40 | ||
43 | - | func | |
41 | + | func t (u,s) = valueOrErrorMessage(getString(u, s), (((("mandatory " + toString(u)) + ".") + s) + " is not defined")) | |
44 | 42 | ||
45 | 43 | ||
46 | - | func | |
44 | + | func v (u,s) = valueOrElse(getInteger(u, s), 0) | |
47 | 45 | ||
48 | 46 | ||
49 | - | func | |
47 | + | func w (u,s) = valueOrErrorMessage(getInteger(u, s), (("mandatory this." + s) + " is not defined")) | |
50 | 48 | ||
51 | 49 | ||
52 | - | func | |
53 | - | let | |
54 | - | if ($isInstanceOf( | |
50 | + | func x (y) = { | |
51 | + | let z = y | |
52 | + | if ($isInstanceOf(z, "List[Any]")) | |
55 | 53 | then { | |
56 | - | let | |
57 | - | | |
54 | + | let A = z | |
55 | + | A | |
58 | 56 | } | |
59 | 57 | else throw("fail to cast into List[Any]") | |
60 | 58 | } | |
61 | 59 | ||
62 | 60 | ||
63 | - | func | |
64 | - | let | |
65 | - | if ($isInstanceOf( | |
61 | + | func B (y) = { | |
62 | + | let z = y | |
63 | + | if ($isInstanceOf(z, "Int")) | |
66 | 64 | then { | |
67 | - | let | |
68 | - | | |
65 | + | let C = z | |
66 | + | C | |
69 | 67 | } | |
70 | 68 | else throw("fail to cast into Int") | |
71 | 69 | } | |
72 | 70 | ||
73 | 71 | ||
74 | - | func | |
75 | - | let | |
76 | - | if ($isInstanceOf( | |
72 | + | func D (y) = { | |
73 | + | let z = y | |
74 | + | if ($isInstanceOf(z, "String")) | |
77 | 75 | then { | |
78 | - | let | |
79 | - | | |
76 | + | let E = z | |
77 | + | E | |
80 | 78 | } | |
81 | 79 | else throw("fail to cast into String") | |
82 | 80 | } | |
83 | 81 | ||
84 | 82 | ||
85 | - | func | |
83 | + | func F () = "%s%s__config__factoryAddress" | |
86 | 84 | ||
87 | 85 | ||
88 | - | func | |
86 | + | func G () = "%s__managerPublicKey" | |
89 | 87 | ||
90 | 88 | ||
91 | - | func | |
89 | + | func H () = "%s__pendingManagerPublicKey" | |
92 | 90 | ||
93 | 91 | ||
94 | - | let | |
92 | + | let I = 1 | |
95 | 93 | ||
96 | - | let | |
94 | + | let J = 2 | |
97 | 95 | ||
98 | - | let | |
96 | + | let K = 3 | |
99 | 97 | ||
100 | - | let | |
98 | + | let L = 4 | |
101 | 99 | ||
102 | - | let | |
100 | + | let M = 5 | |
103 | 101 | ||
104 | - | let | |
102 | + | let N = 6 | |
105 | 103 | ||
106 | - | let | |
104 | + | let O = 7 | |
107 | 105 | ||
108 | - | let | |
106 | + | let P = 8 | |
109 | 107 | ||
110 | - | func | |
108 | + | func Q () = "%s__factoryConfig" | |
111 | 109 | ||
112 | 110 | ||
113 | - | func | |
111 | + | func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
114 | 112 | ||
115 | 113 | ||
116 | - | func | |
114 | + | func T () = "%s__lpTokensList" | |
117 | 115 | ||
118 | 116 | ||
119 | - | func | |
117 | + | func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
120 | 118 | ||
121 | 119 | ||
122 | - | func | |
120 | + | func V (W) = makeString(["%s%s", "poolWeight", W], e) | |
123 | 121 | ||
124 | 122 | ||
125 | - | func | |
123 | + | func X () = addressFromStringValue(r(F())) | |
126 | 124 | ||
127 | 125 | ||
128 | - | func | |
126 | + | func Y () = split(valueOrElse(getString(X(), T()), ""), e) | |
129 | 127 | ||
130 | 128 | ||
131 | - | func | |
129 | + | func Z (aa) = split(t(aa, Q()), e) | |
132 | 130 | ||
133 | 131 | ||
134 | - | func | |
132 | + | func ab (ac) = addressFromStringValue(ac[J]) | |
135 | 133 | ||
136 | 134 | ||
137 | - | func | |
135 | + | func ad (ac) = addressFromStringValue(ac[M]) | |
138 | 136 | ||
139 | 137 | ||
140 | - | func | |
138 | + | func ae (ac) = addressFromStringValue(ac[I]) | |
141 | 139 | ||
142 | 140 | ||
143 | - | func | |
141 | + | func af (ac) = addressFromStringValue(ac[P]) | |
144 | 142 | ||
145 | 143 | ||
146 | - | func | |
144 | + | func ag () = "%s__config" | |
147 | 145 | ||
148 | 146 | ||
149 | - | func | |
147 | + | func ah () = "%s%s__stats__activeTotalLocked" | |
150 | 148 | ||
151 | 149 | ||
152 | - | func | |
150 | + | func ai () = "%s%s__stats__locksDurationSumInBlocks" | |
153 | 151 | ||
154 | 152 | ||
155 | - | func | |
153 | + | func aj () = "%s%s__stats__locksCount" | |
156 | 154 | ||
157 | 155 | ||
158 | - | func | |
156 | + | func ak () = "%s%s__stats__activeUsersCount" | |
159 | 157 | ||
160 | 158 | ||
161 | - | func | |
159 | + | func al (am) = makeString(["%s%s%s__mapping__user2num", am], e) | |
162 | 160 | ||
163 | 161 | ||
164 | - | func | |
162 | + | func an (ao) = makeString(["%s%s%s__mapping__num2user", ao], e) | |
165 | 163 | ||
166 | 164 | ||
167 | - | func | |
165 | + | func ap (aq) = makeString(["%s%d%s__paramByUserNum", aq, "amount"], e) | |
168 | 166 | ||
169 | 167 | ||
170 | - | func | |
168 | + | func ar (aq) = makeString(["%s%d%s__paramByUserNum", aq, "start"], e) | |
171 | 169 | ||
172 | 170 | ||
173 | - | func | |
171 | + | func as (aq) = makeString(["%s%d%s__paramByUserNum", aq, "duration"], e) | |
174 | 172 | ||
175 | 173 | ||
176 | - | func | |
174 | + | func at (aq) = makeString(["%s%d%s__paramByUserNum", aq, "k"], e) | |
177 | 175 | ||
178 | 176 | ||
179 | - | func | |
177 | + | func au (aq) = makeString(["%s%d%s__paramByUserNum", aq, "b"], e) | |
180 | 178 | ||
181 | 179 | ||
182 | - | func | |
180 | + | func av (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "k", aw], e) | |
183 | 181 | ||
184 | 182 | ||
185 | - | func | |
183 | + | func ax (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "b", aw], e) | |
186 | 184 | ||
187 | 185 | ||
188 | - | func | |
186 | + | func ay (aq) = makeString(["%s%d__userBoostEmissionLastInt", aq], e) | |
189 | 187 | ||
190 | 188 | ||
191 | - | func | |
189 | + | func az (aq) = makeString(["%s%d__maxBoostInt", aq], e) | |
192 | 190 | ||
193 | 191 | ||
194 | - | func | |
192 | + | func aA () = "%s%s__maxBoostInt__total" | |
195 | 193 | ||
196 | 194 | ||
197 | - | func | |
195 | + | func aB (aq) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aq], e) | |
198 | 196 | ||
199 | 197 | ||
200 | - | func | |
198 | + | func aC (aq) = makeString(["%s%d__userBoostClaimed", aq], e) | |
201 | 199 | ||
202 | 200 | ||
203 | - | func | |
201 | + | func aD () = "%s%s__gwxCached__total" | |
204 | 202 | ||
205 | 203 | ||
206 | - | func | |
204 | + | func aE (aF,aG) = makeString(["%s%s%s__staked", aF, aG], e) | |
207 | 205 | ||
208 | 206 | ||
209 | - | func | |
207 | + | func aH (aG) = ("%s%s%s__staked__total__" + aG) | |
210 | 208 | ||
211 | 209 | ||
212 | - | func | |
210 | + | func aI (aG,aF) = makeString(["%s%s%s__claimed", aF, aG], e) | |
213 | 211 | ||
214 | 212 | ||
215 | - | func | |
213 | + | func aJ (aG,aF) = makeString(["%s%s%s__claimedMinReward", aF, aG], e) | |
216 | 214 | ||
217 | 215 | ||
218 | - | func | |
216 | + | func aK (aG,aF) = makeString(["%s%s%s__claimedBoostReward", aF, aG], e) | |
219 | 217 | ||
220 | 218 | ||
221 | - | func | |
219 | + | func aL (aM,s) = valueOrElse(getInteger(aM, s), 0) | |
222 | 220 | ||
223 | 221 | ||
224 | - | func | |
222 | + | func aN () = "%s%s__ratePerBlock__current" | |
225 | 223 | ||
226 | 224 | ||
227 | - | func | |
225 | + | func aO () = "%s%s__ratePerBlockMax__current" | |
228 | 226 | ||
229 | 227 | ||
230 | - | func | |
228 | + | func aP () = "%s%s__emission__startBlock" | |
231 | 229 | ||
232 | 230 | ||
233 | - | func | |
231 | + | func aQ () = "%s%s__emission__duration" | |
234 | 232 | ||
235 | 233 | ||
236 | - | func | |
234 | + | func aR () = "%s%s__emission__endBlock" | |
237 | 235 | ||
238 | 236 | ||
239 | - | func | |
237 | + | func aS () = "%s__addonAddr" | |
240 | 238 | ||
241 | 239 | ||
242 | - | func | |
243 | - | let | |
244 | - | let | |
245 | - | valueOrElse(getInteger( | |
240 | + | func aT (aU) = { | |
241 | + | let aV = fraction(10, b, 10000) | |
242 | + | let aW = "%s__fee" | |
243 | + | valueOrElse(getInteger(aU, aW), aV) | |
246 | 244 | } | |
247 | 245 | ||
248 | 246 | ||
249 | - | let | |
247 | + | let aX = X() | |
250 | 248 | ||
251 | - | let | |
249 | + | let aY = Z(aX) | |
252 | 250 | ||
253 | - | let | |
251 | + | let aZ = ad(aY) | |
254 | 252 | ||
255 | - | let | |
253 | + | let aM = ae(aY) | |
256 | 254 | ||
257 | - | let | |
255 | + | let ba = af(aY) | |
258 | 256 | ||
259 | - | let | |
257 | + | let bb = ab(aY) | |
260 | 258 | ||
261 | - | func | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | [ | |
259 | + | func bc (bd) = { | |
260 | + | let be = t(aX, U(bd)) | |
261 | + | let bf = b | |
262 | + | let bg = getIntegerValue(aX, V(be)) | |
263 | + | let bh = w(aZ, aN()) | |
264 | + | let bi = w(aZ, aO()) | |
265 | + | let bj = 3 | |
266 | + | let bk = (fraction(bh, bg, bf) / bj) | |
267 | + | let bl = fraction(bi, bg, bf) | |
268 | + | let bm = (bj * b) | |
269 | + | let bn = v(aM, aH(bd)) | |
270 | + | [bk, bm, bn] | |
273 | 271 | } | |
274 | 272 | ||
275 | 273 | ||
276 | - | func | |
277 | - | let | |
278 | - | let | |
279 | - | [ | |
274 | + | func bo (bp,bq,br) = { | |
275 | + | let bs = fraction(bq, b, br) | |
276 | + | let bt = fraction(bp, bs, b) | |
277 | + | [bt] | |
280 | 278 | } | |
281 | 279 | ||
282 | 280 | ||
283 | - | func | |
284 | - | then getStringValue( | |
285 | - | else if (( | |
286 | - | then toString(getIntegerValue( | |
287 | - | else if (( | |
288 | - | then toString(getBooleanValue( | |
281 | + | func bu (bv,s,bw) = if ((bw == "string")) | |
282 | + | then getStringValue(bv, s) | |
283 | + | else if ((bw == "integer")) | |
284 | + | then toString(getIntegerValue(bv, s)) | |
285 | + | else if ((bw == "boolean")) | |
286 | + | then toString(getBooleanValue(bv, s)) | |
289 | 287 | else throw("unknown type. expected string/integer/boolean") | |
290 | 288 | ||
291 | 289 | ||
292 | - | func | |
293 | - | let | |
294 | - | if ($isInstanceOf( | |
290 | + | func bx () = { | |
291 | + | let z = getString(G()) | |
292 | + | if ($isInstanceOf(z, "String")) | |
295 | 293 | then { | |
296 | - | let | |
297 | - | fromBase58String( | |
294 | + | let by = z | |
295 | + | fromBase58String(by) | |
298 | 296 | } | |
299 | - | else if ($isInstanceOf( | |
297 | + | else if ($isInstanceOf(z, "Unit")) | |
300 | 298 | then unit | |
301 | 299 | else throw("Match error") | |
302 | 300 | } | |
303 | 301 | ||
304 | 302 | ||
305 | - | func | |
306 | - | let | |
307 | - | if ($isInstanceOf( | |
303 | + | func bz () = { | |
304 | + | let z = getString(H()) | |
305 | + | if ($isInstanceOf(z, "String")) | |
308 | 306 | then { | |
309 | - | let | |
310 | - | fromBase58String( | |
307 | + | let by = z | |
308 | + | fromBase58String(by) | |
311 | 309 | } | |
312 | - | else if ($isInstanceOf( | |
310 | + | else if ($isInstanceOf(z, "Unit")) | |
313 | 311 | then unit | |
314 | 312 | else throw("Match error") | |
315 | 313 | } | |
316 | 314 | ||
317 | 315 | ||
318 | - | func | |
319 | - | let | |
320 | - | let | |
321 | - | if ($isInstanceOf( | |
316 | + | func bA (bB) = { | |
317 | + | let bC = throw("Permission denied") | |
318 | + | let z = bx() | |
319 | + | if ($isInstanceOf(z, "ByteVector")) | |
322 | 320 | then { | |
323 | - | let | |
324 | - | if (( | |
321 | + | let bD = z | |
322 | + | if ((bB.callerPublicKey == bD)) | |
325 | 323 | then true | |
326 | - | else | |
324 | + | else bC | |
327 | 325 | } | |
328 | - | else if ($isInstanceOf( | |
329 | - | then if (( | |
326 | + | else if ($isInstanceOf(z, "Unit")) | |
327 | + | then if ((bB.caller == this)) | |
330 | 328 | then true | |
331 | - | else | |
329 | + | else bC | |
332 | 330 | else throw("Match error") | |
333 | 331 | } | |
334 | 332 | ||
335 | 333 | ||
336 | - | @Callable( | |
337 | - | func constructor ( | |
338 | - | let | |
339 | - | if (( | |
340 | - | then [StringEntry( | |
334 | + | @Callable(bB) | |
335 | + | func constructor (bE) = { | |
336 | + | let bF = bA(bB) | |
337 | + | if ((bF == bF)) | |
338 | + | then [StringEntry(F(), bE)] | |
341 | 339 | else throw("Strict value is not equal to itself.") | |
342 | 340 | } | |
343 | 341 | ||
344 | 342 | ||
345 | 343 | ||
346 | - | @Callable( | |
347 | - | func currentRewardRateREADONLY ( | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | $Tuple2(nil, makeString(["%d%d%d", toString( | |
344 | + | @Callable(bB) | |
345 | + | func currentRewardRateREADONLY (bd) = { | |
346 | + | let bG = bc(bd) | |
347 | + | let bh = bG[0] | |
348 | + | let bm = bG[1] | |
349 | + | let bn = bG[2] | |
350 | + | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
353 | 351 | } | |
354 | 352 | ||
355 | 353 | ||
356 | 354 | ||
357 | - | @Callable( | |
358 | - | func currentUserRewardRateREADONLY ( | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | then (1 * | |
370 | - | else fraction(( | |
371 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString( | |
355 | + | @Callable(bB) | |
356 | + | func currentUserRewardRateREADONLY (bd,am) = { | |
357 | + | let bG = bc(bd) | |
358 | + | let bh = bG[0] | |
359 | + | let bm = bG[1] | |
360 | + | let bn = bG[2] | |
361 | + | let bH = v(aM, aE(am, bd)) | |
362 | + | let bI = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
363 | + | let bJ = valueOrErrorMessage(parseInt(bI[5]), "couldn't parse minRewardPart") | |
364 | + | let bK = valueOrErrorMessage(parseInt(bI[6]), "couldn't parse boostRewardPart") | |
365 | + | let bL = bI[7] | |
366 | + | let bM = if ((bK == 0)) | |
367 | + | then (1 * b) | |
368 | + | else fraction((bJ + bK), b, bJ) | |
369 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bH), toString(bM), bL], e)) | |
372 | 370 | } | |
373 | 371 | ||
374 | 372 | ||
375 | 373 | ||
376 | - | @Callable( | |
377 | - | func calcBoostBulkInternalREADONLY (bO,bP,bQ,bR,bS,bT | |
378 | - | then $Tuple2(nil, | |
374 | + | @Callable(bB) | |
375 | + | func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO))) | |
376 | + | then $Tuple2(nil, bT) | |
379 | 377 | else { | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | if ($isInstanceOf( | |
387 | - | then | |
388 | - | else throw(($getType( | |
378 | + | let bU = bO[bN] | |
379 | + | let bV = bP[bN] | |
380 | + | let bW = bQ[bN] | |
381 | + | let bX = bR[bN] | |
382 | + | let bY = { | |
383 | + | let bZ = invoke(this, "calcBoostREADONLY", [bU, bV, bW, bX, bS], nil) | |
384 | + | if ($isInstanceOf(bZ, "String")) | |
385 | + | then bZ | |
386 | + | else throw(($getType(bZ) + " couldn't be cast to String")) | |
389 | 387 | } | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | if ($isInstanceOf( | |
394 | - | then | |
395 | - | else throw(($getType( | |
388 | + | let ca = (bT :+ bY) | |
389 | + | let cb = { | |
390 | + | let bZ = invoke(this, "calcBoostBulkInternalREADONLY", [(bN + 1), bO, bP, bQ, bR, bS, ca], nil) | |
391 | + | if ($isInstanceOf(bZ, "List[Any]")) | |
392 | + | then bZ | |
393 | + | else throw(($getType(bZ) + " couldn't be cast to List[Any]")) | |
396 | 394 | } | |
397 | - | if (( | |
398 | - | then $Tuple2(nil, | |
395 | + | if ((cb == cb)) | |
396 | + | then $Tuple2(nil, cb) | |
399 | 397 | else throw("Strict value is not equal to itself.") | |
400 | 398 | } | |
401 | 399 | ||
402 | 400 | ||
403 | 401 | ||
404 | - | @Callable( | |
405 | - | func calcBoostBulkREADONLY (bV,bW,bX, | |
406 | - | let | |
407 | - | $Tuple2(nil, | |
402 | + | @Callable(bB) | |
403 | + | func calcBoostBulkREADONLY (bU,bV,bW,bX,bS) = { | |
404 | + | let ca = invoke(this, "calcBoostBulkInternalREADONLY", [0, bU, bV, bW, bX, bS, nil], nil) | |
405 | + | $Tuple2(nil, ca) | |
408 | 406 | } | |
409 | 407 | ||
410 | 408 | ||
411 | 409 | ||
412 | - | @Callable( | |
413 | - | func calcBoostREADONLY (bV,bW,bX, | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | then | |
419 | - | else | |
420 | - | let | |
421 | - | then | |
422 | - | else | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
410 | + | @Callable(bB) | |
411 | + | func calcBoostREADONLY (bU,bV,bW,bX,bS) = { | |
412 | + | let cc = ba | |
413 | + | let cd = "empty" | |
414 | + | let ce = parseIntValue(split(t(bb, ag()), e)[4]) | |
415 | + | let aG = if ((bX == "")) | |
416 | + | then cd | |
417 | + | else bX | |
418 | + | let aF = if ((bS == "")) | |
419 | + | then cd | |
420 | + | else bS | |
421 | + | let cf = valueOrElse(getString(bb, al(bS)), cd) | |
422 | + | let cg = valueOrElse(getInteger(bb, ap(cf)), 0) | |
423 | + | let ch = valueOrElse(getInteger(bb, ar(cf)), height) | |
424 | + | let bq = valueOrElse(getInteger(bb, as(cf)), 0) | |
425 | + | let ci = (ch + bq) | |
426 | + | let cj = max([(ci - height), 0]) | |
427 | + | let ck = (cg + bU) | |
428 | + | let cl = min([(cj + bV), ce]) | |
429 | + | let cm = B(x(invoke(bb, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
430 | + | let cn = bo(ck, cl, ce)[0] | |
431 | + | let co = x(invoke(cc, "calcGwxParamsREADONLY", [cn, height, cl], nil)) | |
432 | + | let cp = (cn - cm) | |
433 | + | let cq = B(co[0]) | |
434 | + | let cr = B(co[1]) | |
435 | + | let aw = toString(B(co[2])) | |
436 | + | let cs = aA() | |
437 | + | let ct = aD() | |
438 | + | let cu = ((cn * cl) / 2) | |
439 | + | let cv = v(bb, cs) | |
440 | + | let cw = valueOrElse(getInteger(bb, ct), 0) | |
441 | + | let cx = 1000 | |
442 | + | let cy = (w(aZ, aN()) * cx) | |
443 | + | let cz = aE(aF, aG) | |
444 | + | let cA = aH(aG) | |
445 | + | let cB = aL(aM, cz) | |
446 | + | let cC = aL(aM, cA) | |
447 | + | let cD = (cB + bW) | |
448 | + | let cE = (cC + bW) | |
449 | + | let bg = if ((aG != cd)) | |
452 | 450 | then { | |
453 | - | let | |
454 | - | getIntegerValue( | |
451 | + | let be = valueOrErrorMessage(getString(aX, R(aG)), ("unsupported lp asset " + aG)) | |
452 | + | getIntegerValue(aX, V(be)) | |
455 | 453 | } | |
456 | 454 | else 0 | |
457 | - | let | |
458 | - | let | |
459 | - | then fraction( | |
455 | + | let cF = fraction(cy, bg, (f * 3)) | |
456 | + | let cG = if ((cE != 0)) | |
457 | + | then fraction(cF, b, cE) | |
460 | 458 | else 0 | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | then (1 * | |
467 | - | else fraction(( | |
468 | - | $Tuple2(nil, makeString(["%d%d%s", toString( | |
459 | + | let cH = fraction(cG, cD, b) | |
460 | + | let cI = (cF * 2) | |
461 | + | let cJ = fraction(cn, cI, (cw + cp)) | |
462 | + | let cK = min([cJ, (cH * 2)]) | |
463 | + | let cL = if ((cH == 0)) | |
464 | + | then (1 * b) | |
465 | + | else fraction((cK + cH), b, cH) | |
466 | + | $Tuple2(nil, makeString(["%d%d%s", toString(cn), toString(cL), "d"], e)) | |
469 | 467 | } | |
470 | 468 | ||
471 | 469 | ||
472 | 470 | ||
473 | - | @Callable( | |
471 | + | @Callable(bB) | |
474 | 472 | func wxEmissionStatsREADONLY () = { | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
473 | + | let cM = toString(b) | |
474 | + | let cN = "1" | |
475 | + | let bh = w(aZ, aN()) | |
476 | + | let cO = w(aZ, aP()) | |
477 | + | let cP = if ((cO > height)) | |
480 | 478 | then 0 | |
481 | - | else (height - | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | then | |
486 | - | else fraction( | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString(cU), toString(cV), toString(cW) | |
479 | + | else (height - cO) | |
480 | + | let cQ = (1440 * 365) | |
481 | + | let cR = (201000000 * b) | |
482 | + | let cS = if ((cP > cQ)) | |
483 | + | then cR | |
484 | + | else fraction(cR, cP, cQ) | |
485 | + | let cT = ((bh * cP) + cS) | |
486 | + | let cU = v(bb, ah()) | |
487 | + | let cV = v(bb, ai()) | |
488 | + | let cW = v(bb, aj()) | |
489 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cT), toString(cU), toString(cV), toString(cW)], e)) | |
492 | 490 | } | |
493 | 491 | ||
494 | 492 | ||
495 | 493 | ||
496 | - | @Callable( | |
497 | - | func poolStatsREADONLY ( | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | then [toString( | |
512 | - | else | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | if ($isInstanceOf( | |
521 | - | then | |
522 | - | else throw(($getType( | |
494 | + | @Callable(bB) | |
495 | + | func poolStatsREADONLY (cX) = { | |
496 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
497 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
498 | + | let bd = fromBase58String(D(cY[j])) | |
499 | + | let cZ = D(cY[k]) | |
500 | + | let da = D(cY[l]) | |
501 | + | let db = D(cY[o]) | |
502 | + | let dc = D(cY[p]) | |
503 | + | let dd = parseIntValue(D(cY[m])) | |
504 | + | let de = parseIntValue(D(cY[n])) | |
505 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
506 | + | let dg = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cZ], nil)) | |
507 | + | let dh = B(invoke(aU, "getAccBalanceWrapperREADONLY", [da], nil)) | |
508 | + | let di = if ((df == 0)) | |
509 | + | then [toString(g), toString(g), toString(g)] | |
510 | + | else x(invoke(aU, "calcPricesWrapperREADONLY", [dg, dh, df], nil)) | |
511 | + | let dj = 0 | |
512 | + | let dk = B(invoke(aU, "fromX18WrapperREADONLY", [di[1], b], nil)) | |
513 | + | let dl = B(invoke(aU, "fromX18WrapperREADONLY", [di[2], b], nil)) | |
514 | + | let bg = getIntegerValue(aX, V(toString(aU))) | |
515 | + | let dm = aT(aU) | |
516 | + | let dn = { | |
517 | + | let bZ = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil) | |
518 | + | if ($isInstanceOf(bZ, "Boolean")) | |
519 | + | then bZ | |
520 | + | else throw(($getType(bZ) + " couldn't be cast to Boolean")) | |
523 | 521 | } | |
524 | - | let | |
525 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dh), toString( | |
522 | + | let do = !(dn) | |
523 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dg), toString(dh), toString(df), toString(dj), toString(dk), toString(dl), toString(bg), toString(dm), toString(do)], e)) | |
526 | 524 | } | |
527 | 525 | ||
528 | 526 | ||
529 | 527 | ||
530 | - | @Callable( | |
531 | - | func poolEvaluatePutByAmountAssetREADONLY ( | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | then | |
549 | - | else parseBigIntValue( | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | if (if (if ($isInstanceOf( | |
558 | - | then if ($isInstanceOf( | |
559 | - | then if ($isInstanceOf( | |
560 | - | then if ($isInstanceOf( | |
561 | - | then $isInstanceOf( | |
528 | + | @Callable(bB) | |
529 | + | func poolEvaluatePutByAmountAssetREADONLY (cX,dp) = { | |
530 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
531 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
532 | + | let bd = fromBase58String(D(cY[j])) | |
533 | + | let dq = D(cY[k]) | |
534 | + | let dr = fromBase58String(dq) | |
535 | + | let ds = D(cY[l]) | |
536 | + | let dt = fromBase58String(ds) | |
537 | + | let dd = parseIntValue(D(cY[m])) | |
538 | + | let de = parseIntValue(D(cY[n])) | |
539 | + | let du = D(cY[i]) | |
540 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
541 | + | let dg = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dq], nil)) | |
542 | + | let dh = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ds], nil)) | |
543 | + | let dv = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dg, dd], nil))) | |
544 | + | let dw = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dh, de], nil))) | |
545 | + | let dx = if ((df == 0)) | |
546 | + | then g | |
547 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dw), toString(dv)], nil))) | |
548 | + | let dj = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dx), b], nil)) | |
549 | + | let dy = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dp, dd], nil))) | |
550 | + | let dz = fraction(dy, dx, d) | |
551 | + | let dA = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dz), de], nil)) | |
552 | + | let ca = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dp, dr, dA, dt, "", true, false], nil) | |
553 | + | let dB = { | |
554 | + | let z = ca | |
555 | + | if (if (if ($isInstanceOf(z._1, "Int")) | |
556 | + | then if ($isInstanceOf(z._3, "Int")) | |
557 | + | then if ($isInstanceOf(z._4, "Int")) | |
558 | + | then if ($isInstanceOf(z._5, "Int")) | |
559 | + | then $isInstanceOf(z._6, "Int") | |
562 | 560 | else false | |
563 | 561 | else false | |
564 | 562 | else false | |
565 | 563 | else false) | |
566 | - | then (size( | |
564 | + | then (size(z) == 13) | |
567 | 565 | else false) | |
568 | 566 | then { | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | $Tuple5(dD, dE, dF, dG | |
567 | + | let dC = z._1 | |
568 | + | let dD = z._3 | |
569 | + | let dE = z._4 | |
570 | + | let dF = z._5 | |
571 | + | let dG = z._6 | |
572 | + | $Tuple5(dC, dD, dE, dF, dG) | |
575 | 573 | } | |
576 | 574 | else throw("Couldn't cast types") | |
577 | 575 | } | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
576 | + | let dC = dB._1 | |
577 | + | let dD = dB._2 | |
578 | + | let dE = dB._3 | |
579 | + | let dF = dB._4 | |
580 | + | let dG = dB._5 | |
581 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dC), toString(dj), toString(dE), toString(dF), toString(dG), du, toString(dp), toString(dA)], e)) | |
584 | 582 | } | |
585 | 583 | ||
586 | 584 | ||
587 | 585 | ||
588 | - | @Callable( | |
589 | - | func poolEvaluatePutByPriceAssetREADONLY ( | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | then | |
607 | - | else parseBigIntValue( | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | if (if (if ($isInstanceOf( | |
616 | - | then if ($isInstanceOf( | |
617 | - | then if ($isInstanceOf( | |
618 | - | then if ($isInstanceOf( | |
619 | - | then $isInstanceOf( | |
586 | + | @Callable(bB) | |
587 | + | func poolEvaluatePutByPriceAssetREADONLY (cX,dA) = { | |
588 | + | let aU = addressFromStringValue(t(aX, U(cX))) | |
589 | + | let cY = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
590 | + | let bd = fromBase58String(D(cY[j])) | |
591 | + | let dq = D(cY[k]) | |
592 | + | let dr = fromBase58String(dq) | |
593 | + | let ds = D(cY[l]) | |
594 | + | let dt = fromBase58String(ds) | |
595 | + | let dd = parseIntValue(D(cY[m])) | |
596 | + | let de = parseIntValue(D(cY[n])) | |
597 | + | let du = D(cY[i]) | |
598 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
599 | + | let dH = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dq], nil)) | |
600 | + | let dI = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ds], nil)) | |
601 | + | let dJ = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dH, dd], nil))) | |
602 | + | let dK = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dI, de], nil))) | |
603 | + | let dx = if ((df == 0)) | |
604 | + | then g | |
605 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dK), toString(dJ)], nil))) | |
606 | + | let dj = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dx), b], nil)) | |
607 | + | let dz = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dA, de], nil))) | |
608 | + | let dy = fraction(dz, d, dx) | |
609 | + | let dp = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dy), dd], nil)) | |
610 | + | let ca = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dp, dr, dA, dt, "", true, false], nil) | |
611 | + | let dL = { | |
612 | + | let z = ca | |
613 | + | if (if (if ($isInstanceOf(z._1, "Int")) | |
614 | + | then if ($isInstanceOf(z._3, "Int")) | |
615 | + | then if ($isInstanceOf(z._4, "Int")) | |
616 | + | then if ($isInstanceOf(z._5, "Int")) | |
617 | + | then $isInstanceOf(z._6, "Int") | |
620 | 618 | else false | |
621 | 619 | else false | |
622 | 620 | else false | |
623 | 621 | else false) | |
624 | - | then (size( | |
622 | + | then (size(z) == 13) | |
625 | 623 | else false) | |
626 | 624 | then { | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | $Tuple5(dD, dE, dF, dG | |
625 | + | let dC = z._1 | |
626 | + | let dD = z._3 | |
627 | + | let dE = z._4 | |
628 | + | let dF = z._5 | |
629 | + | let dG = z._6 | |
630 | + | $Tuple5(dC, dD, dE, dF, dG) | |
633 | 631 | } | |
634 | 632 | else throw("Couldn't cast types") | |
635 | 633 | } | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
634 | + | let dC = dL._1 | |
635 | + | let dD = dL._2 | |
636 | + | let dE = dL._3 | |
637 | + | let dF = dL._4 | |
638 | + | let dG = dL._5 | |
639 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dC), toString(dj), toString(dE), toString(dF), toString(dG), du, toString(dp), toString(dA)], e)) | |
642 | 640 | } | |
643 | 641 | ||
644 | 642 | ||
645 | 643 | ||
646 | - | @Callable( | |
647 | - | func poolEvaluateGetREADONLY (dN | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | if (if (if ($isInstanceOf( | |
653 | - | then if ($isInstanceOf( | |
654 | - | then if ($isInstanceOf( | |
655 | - | then if ($isInstanceOf( | |
656 | - | then if ($isInstanceOf( | |
657 | - | then if ($isInstanceOf( | |
658 | - | then $isInstanceOf( | |
644 | + | @Callable(bB) | |
645 | + | func poolEvaluateGetREADONLY (dM,dN) = { | |
646 | + | let aU = addressFromStringValue(t(aX, U(dM))) | |
647 | + | let ca = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dM, dN, toString(aU)], nil) | |
648 | + | let dO = { | |
649 | + | let z = ca | |
650 | + | if (if (if ($isInstanceOf(z._1, "Int")) | |
651 | + | then if ($isInstanceOf(z._2, "Int")) | |
652 | + | then if ($isInstanceOf(z._5, "Int")) | |
653 | + | then if ($isInstanceOf(z._6, "Int")) | |
654 | + | then if ($isInstanceOf(z._7, "Int")) | |
655 | + | then if ($isInstanceOf(z._8, "String")) | |
656 | + | then $isInstanceOf(z._9, "String") | |
659 | 657 | else false | |
660 | 658 | else false | |
661 | 659 | else false | |
662 | 660 | else false | |
663 | 661 | else false | |
664 | 662 | else false) | |
665 | - | then (size( | |
663 | + | then (size(z) == 10) | |
666 | 664 | else false) | |
667 | 665 | then { | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | $Tuple7(dQ, | |
666 | + | let dP = z._1 | |
667 | + | let dQ = z._2 | |
668 | + | let dE = z._5 | |
669 | + | let dF = z._6 | |
670 | + | let dG = z._7 | |
671 | + | let dj = z._8 | |
672 | + | let du = z._9 | |
673 | + | $Tuple7(dP, dQ, dE, dF, dG, dj, du) | |
676 | 674 | } | |
677 | 675 | else throw("Couldn't cast types") | |
678 | 676 | } | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
686 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dQ), toString( | |
677 | + | let dP = dO._1 | |
678 | + | let dQ = dO._2 | |
679 | + | let dE = dO._3 | |
680 | + | let dF = dO._4 | |
681 | + | let dG = dO._5 | |
682 | + | let dj = dO._6 | |
683 | + | let du = dO._7 | |
684 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dP), toString(dQ), toString(dE), toString(dF), toString(dG), dj, du], e)) | |
687 | 685 | } | |
688 | 686 | ||
689 | 687 | ||
690 | 688 | ||
691 | - | @Callable( | |
692 | - | func gwxUserInfoREADONLY ( | |
693 | - | let | |
694 | - | let | |
695 | - | $Tuple2(nil, makeString(["%d", toString( | |
689 | + | @Callable(bB) | |
690 | + | func gwxUserInfoREADONLY (am) = { | |
691 | + | let dR = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil)) | |
692 | + | let dS = B(dR[0]) | |
693 | + | $Tuple2(nil, makeString(["%d", toString(dS)], e)) | |
696 | 694 | } | |
697 | 695 | ||
698 | 696 | ||
699 | 697 | ||
700 | - | @Callable( | |
701 | - | func unstakeAndGetOneTknV2 ( | |
702 | - | let | |
703 | - | if (( | |
698 | + | @Callable(bB) | |
699 | + | func unstakeAndGetOneTknV2 (aU,dT,dU,dV) = { | |
700 | + | let cb = invoke(addressFromStringValue(aU), "unstakeAndGetOneTknV2", [dT, dU, dV], nil) | |
701 | + | if ((cb == cb)) | |
704 | 702 | then $Tuple2(nil, unit) | |
705 | 703 | else throw("Strict value is not equal to itself.") | |
706 | 704 | } | |
707 | 705 | ||
708 | 706 | ||
709 | 707 | ||
710 | - | @Callable( | |
711 | - | func getKeysBulkInternal ( | |
712 | - | then $Tuple2(nil, | |
708 | + | @Callable(bB) | |
709 | + | func getKeysBulkInternal (bN,dW,bT) = if ((bN == size(dW))) | |
710 | + | then $Tuple2(nil, bT) | |
713 | 711 | else { | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | if (( | |
722 | - | then $Tuple2(nil, | |
712 | + | let cq = split(dW[bN], "++") | |
713 | + | let bv = addressFromStringValue(cq[0]) | |
714 | + | let s = cq[1] | |
715 | + | let bw = cq[2] | |
716 | + | let y = bu(bv, s, bw) | |
717 | + | let ca = (bT :+ y) | |
718 | + | let cb = invoke(this, "getKeysBulkInternal", [(bN + 1), dW, ca], nil) | |
719 | + | if ((cb == cb)) | |
720 | + | then $Tuple2(nil, cb) | |
723 | 721 | else throw("Strict value is not equal to itself.") | |
724 | 722 | } | |
725 | 723 | ||
726 | 724 | ||
727 | 725 | ||
728 | - | @Callable( | |
729 | - | func getKeysBulk ( | |
730 | - | let | |
731 | - | $Tuple2(nil, | |
726 | + | @Callable(bB) | |
727 | + | func getKeysBulk (dW) = { | |
728 | + | let ca = invoke(this, "getKeysBulkInternal", [0, dW, nil], nil) | |
729 | + | $Tuple2(nil, ca) | |
732 | 730 | } | |
733 | 731 | ||
734 | 732 | ||
735 | 733 | ||
736 | - | @Callable( | |
737 | - | func setManager ( | |
738 | - | let | |
739 | - | if (( | |
734 | + | @Callable(bB) | |
735 | + | func setManager (dX) = { | |
736 | + | let bF = bA(bB) | |
737 | + | if ((bF == bF)) | |
740 | 738 | then { | |
741 | - | let | |
742 | - | if (( | |
743 | - | then [StringEntry( | |
739 | + | let dY = fromBase58String(dX) | |
740 | + | if ((dY == dY)) | |
741 | + | then [StringEntry(H(), dX)] | |
744 | 742 | else throw("Strict value is not equal to itself.") | |
745 | 743 | } | |
746 | 744 | else throw("Strict value is not equal to itself.") | |
747 | 745 | } | |
748 | 746 | ||
749 | 747 | ||
750 | 748 | ||
751 | - | @Callable( | |
749 | + | @Callable(bB) | |
752 | 750 | func confirmManager () = { | |
753 | - | let | |
754 | - | let | |
751 | + | let dZ = bz() | |
752 | + | let ea = if (isDefined(dZ)) | |
755 | 753 | then true | |
756 | 754 | else throw("No pending manager") | |
757 | - | if (( | |
755 | + | if ((ea == ea)) | |
758 | 756 | then { | |
759 | - | let | |
757 | + | let eb = if ((bB.callerPublicKey == value(dZ))) | |
760 | 758 | then true | |
761 | 759 | else throw("You are not pending manager") | |
762 | - | if (( | |
763 | - | then [StringEntry( | |
760 | + | if ((eb == eb)) | |
761 | + | then [StringEntry(G(), toBase58String(value(dZ))), DeleteEntry(H())] | |
764 | 762 | else throw("Strict value is not equal to itself.") | |
765 | 763 | } | |
766 | 764 | else throw("Strict value is not equal to itself.") | |
767 | 765 | } | |
768 | 766 | ||
769 | 767 | ||
770 | - | @Verifier( | |
771 | - | func | |
772 | - | let | |
773 | - | let | |
774 | - | if ($isInstanceOf( | |
768 | + | @Verifier(ec) | |
769 | + | func ed () = { | |
770 | + | let ee = { | |
771 | + | let z = bx() | |
772 | + | if ($isInstanceOf(z, "ByteVector")) | |
775 | 773 | then { | |
776 | - | let | |
777 | - | | |
774 | + | let bD = z | |
775 | + | bD | |
778 | 776 | } | |
779 | - | else if ($isInstanceOf( | |
780 | - | then | |
777 | + | else if ($isInstanceOf(z, "Unit")) | |
778 | + | then ec.senderPublicKey | |
781 | 779 | else throw("Match error") | |
782 | 780 | } | |
783 | - | sigVerify( | |
781 | + | sigVerify(ec.bodyBytes, ec.proofs[0], ee) | |
784 | 782 | } | |
785 | 783 |
github/deemru/w8io/169f3d6 345.51 ms ◑