tx · 5KPi12He2papvNXVDQrnAgA4rzF8JUXTcvKJGXxJQP11 3MxpZZ46oGH5idG2rXfcUDwFotSELDEtyQu: -0.01400000 Waves 2021.12.16 17:01 [1836903] smart account 3MxpZZ46oGH5idG2rXfcUDwFotSELDEtyQu > SELF 0.00000000 Waves
{ "type": 13, "id": "5KPi12He2papvNXVDQrnAgA4rzF8JUXTcvKJGXxJQP11", "fee": 1400000, "feeAssetId": null, "timestamp": 1639663315114, "version": 1, "sender": "3MxpZZ46oGH5idG2rXfcUDwFotSELDEtyQu", "senderPublicKey": "HLjebBrq1Pdi1gabeao41GqBhEf9kyjY2P4k6dbNW8XC", "proofs": [ "NPEhVch1QWa7MWiVnaCmjonAT8232wwpQZ6t83YjVn52DjYdxS24snVMzpUN4PJpba8vuKB3XGHXCdqirtqZZkn" ], "script": "base64:AAIFAAAAAAAAADkIAhIDCgEIEgMKAQgSBAoCCAgSAwoBCBIHCgUBAQEICBIAEgMKAQgSBAoCCAESBAoCCAESBAoCCAEAAAAgAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAdTQ0FMRTE4AAAAAAAAAAASAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAKemVyb0JpZ0ludAkAATYAAAABAAAAAAAAAAAAAAAAAA5pZHhQb29sQWRkcmVzcwAAAAAAAAAAAQAAAAANaWR4UG9vbFN0YXR1cwAAAAAAAAAAAgAAAAAQaWR4UG9vbExQQXNzZXRJZAAAAAAAAAAAAwAAAAANaWR4QW10QXNzZXRJZAAAAAAAAAAABAAAAAAPaWR4UHJpY2VBc3NldElkAAAAAAAAAAAFAAAAAA5pZHhBbXRBc3NldERjbQAAAAAAAAAABgAAAAAQaWR4UHJpY2VBc3NldERjbQAAAAAAAAAABwAAAAAOaWR4SUFtdEFzc2V0SWQAAAAAAAAAAAgAAAAAEGlkeElQcmljZUFzc2V0SWQAAAAAAAAA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Ib3V0UHJBbXQFAAAACWFtQmFsYW5jZQUAAAAJcHJCYWxhbmNlBQAAAApscEVtaXNzaW9uBQAAAAhjdXJQcmljZQUAAAAKcG9vbFN0YXR1cwkAAAIAAAABAgAAABNDb3VsZG4ndCBjYXN0IHR5cGVzBAAAAAhvdXRBbUFtdAgFAAAADSR0MDE1MDU4MTU0NzUAAAACXzEEAAAACG91dFByQW10CAUAAAANJHQwMTUwNTgxNTQ3NQAAAAJfMgQAAAAJYW1CYWxhbmNlCAUAAAANJHQwMTUwNTgxNTQ3NQAAAAJfMwQAAAAJcHJCYWxhbmNlCAUAAAANJHQwMTUwNTgxNTQ3NQAAAAJfNAQAAAAKbHBFbWlzc2lvbggFAAAADSR0MDE1MDU4MTU0NzUAAAACXzUEAAAACGN1clByaWNlCAUAAAANJHQwMTUwNTgxNTQ3NQAAAAJfNgQAAAAKcG9vbFN0YXR1cwgFAAAADSR0MDE1MDU4MTU0NzUAAAACXzcJAAUUAAAAAgUAAAADbmlsCQAEuQAAAAIJAARMAAAAAgIAAAAOJWQlZCVkJWQlZCVkJWQJAARMAAAAAgkAAaQAAAABBQAAAAhvdXRBbUFtdAkABEwAAAACCQABpAAAAAEFAAAACG91dFByQW10CQAETAAAAAIJAAGkAAAAAQUAAAAJYW1CYWxhbmNlCQAETAAAAAIJAAGkAAAAAQUAAAAJcHJCYWxhbmNlCQAETAAAAAIJAAGkAAAAAQUAAAAKbHBFbWlzc2lvbgkABEwAAAACBQAAAAhjdXJQcmljZQkABEwAAAACBQAAAApwb29sU3RhdHVzBQAAAANuaWwFAAAAA1NFUAAAAAAC4Cwf", "chainId": 84, "height": 1836903, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8pGigL65MavoTS7SehK6YyieCmD6LUxoTZVkYysshMrj Next: none Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | let e = "__" | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = toBigInt(0) | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = 1 | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 2 | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = 3 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 4 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 5 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 6 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 7 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 8 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 9 | |
33 | 33 | ||
34 | - | func p (q) = valueOrErrorMessage(getString(q), (("mandatory this." + q) + " is not defined")) | |
34 | + | let p = 10 | |
35 | + | ||
36 | + | func q (r) = valueOrErrorMessage(getString(r), (("mandatory this." + r) + " is not defined")) | |
35 | 37 | ||
36 | 38 | ||
37 | - | func | |
39 | + | func s (t,r) = valueOrErrorMessage(getString(t, r), (((("mandatory " + toString(t)) + ".") + r) + " is not defined")) | |
38 | 40 | ||
39 | 41 | ||
40 | - | func | |
42 | + | func u (t,r) = valueOrElse(getInteger(t, r), 0) | |
41 | 43 | ||
42 | 44 | ||
43 | - | func | |
45 | + | func v (t,r) = valueOrErrorMessage(getInteger(t, r), (("mandatory this." + r) + " is not defined")) | |
44 | 46 | ||
45 | 47 | ||
46 | - | func | |
48 | + | func w () = "%s%s__config__factoryAddress" | |
47 | 49 | ||
48 | 50 | ||
49 | - | let w = 1 | |
50 | - | ||
51 | - | let x = 2 | |
52 | - | ||
53 | - | let y = 3 | |
54 | - | ||
55 | - | let z = 4 | |
56 | - | ||
57 | - | let A = 5 | |
58 | - | ||
59 | - | let B = 6 | |
60 | - | ||
61 | - | let C = 7 | |
62 | - | ||
63 | - | func D () = "%s__factoryConfig" | |
51 | + | func x (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], e) | |
64 | 52 | ||
65 | 53 | ||
66 | - | func | |
54 | + | func z () = "%s__lpTokensList" | |
67 | 55 | ||
68 | 56 | ||
69 | - | func | |
57 | + | func A () = "%s__factoryConfig" | |
70 | 58 | ||
71 | 59 | ||
72 | - | func H (F) = makeString(["%s%s%s", F, "mappings__lpAsset2PoolContract"], e) | |
60 | + | func B () = addressFromStringValue(q(w())) | |
61 | + | ||
62 | + | ||
63 | + | func C () = split(valueOrElse(getString(B(), z()), ""), e) | |
64 | + | ||
65 | + | ||
66 | + | func D () = split(s(B(), A()), e) | |
67 | + | ||
68 | + | ||
69 | + | func E (F,G) = makeString(["%s%s%s__staked", F, G], e) | |
70 | + | ||
71 | + | ||
72 | + | func H (G) = ("%s%s%s__staked__total__" + G) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func I (J) = makeString(["%s%s", "poolWeight", J], e) | |
76 | 76 | ||
77 | 77 | ||
78 | - | func K () = addressFromStringValue( | |
78 | + | func K (L) = addressFromStringValue(L[1]) | |
79 | 79 | ||
80 | 80 | ||
81 | - | func L () = split(valueOrElse(getString(K(), G()), ""), e) | |
82 | - | ||
83 | - | ||
84 | - | func M (N) = split(r(N, D()), e) | |
85 | - | ||
86 | - | ||
87 | - | func O (P) = addressFromStringValue(P[x]) | |
88 | - | ||
89 | - | ||
90 | - | func Q (P) = addressFromStringValue(P[A]) | |
91 | - | ||
92 | - | ||
93 | - | func R (P) = addressFromStringValue(P[w]) | |
94 | - | ||
95 | - | ||
96 | - | func S () = "%s%s__stats__activeTotalLocked" | |
97 | - | ||
98 | - | ||
99 | - | func T () = "%s%s__stats__locksDurationSumInBlocks" | |
100 | - | ||
101 | - | ||
102 | - | func U () = "%s%s__stats__locksCount" | |
103 | - | ||
104 | - | ||
105 | - | func V () = "%s%s__stats__activeUsersCount" | |
106 | - | ||
107 | - | ||
108 | - | func W (X,Y) = makeString(["%s%s%s__staked", X, Y], e) | |
109 | - | ||
110 | - | ||
111 | - | func Z (Y) = ("%s%s%s__staked__total__" + Y) | |
112 | - | ||
113 | - | ||
114 | - | func aa () = "%s%s__ratePerBlock__current" | |
115 | - | ||
116 | - | ||
117 | - | func ab () = "%s%s__ratePerBlockMax__current" | |
118 | - | ||
119 | - | ||
120 | - | func ac () = "%s%s__emission__startBlock" | |
121 | - | ||
122 | - | ||
123 | - | func ad () = "%s%s__emission__duration" | |
124 | - | ||
125 | - | ||
126 | - | func ae () = "%s%s__emission__endBlock" | |
127 | - | ||
128 | - | ||
129 | - | func af (ag,ah,ai,aj) = { | |
130 | - | let ak = r(ag, H(aj)) | |
131 | - | let al = b | |
132 | - | let am = getIntegerValue(ag, I(ak)) | |
133 | - | let an = u(ai, aa()) | |
134 | - | let ao = u(ai, ab()) | |
135 | - | let ap = fraction(an, am, al) | |
136 | - | let aq = fraction(ao, am, al) | |
137 | - | let ar = (3 * b) | |
138 | - | let as = t(ah, Z(aj)) | |
139 | - | [ap, ar, as] | |
81 | + | func M (N,O) = { | |
82 | + | let P = 0 | |
83 | + | let Q = (1 * b) | |
84 | + | let R = u(N, H(O)) | |
85 | + | [P, Q, R] | |
140 | 86 | } | |
141 | 87 | ||
142 | 88 | ||
143 | - | @Callable( | |
144 | - | func constructor ( | |
89 | + | @Callable(S) | |
90 | + | func constructor (T) = if ((S.caller != this)) | |
145 | 91 | then throw("not authorized") | |
146 | - | else [StringEntry( | |
92 | + | else [StringEntry(w(), T)] | |
147 | 93 | ||
148 | 94 | ||
149 | 95 | ||
150 | - | @Callable(at) | |
151 | - | func currentRewardRateREADONLY (aj) = { | |
152 | - | let ag = K() | |
153 | - | let P = M(ag) | |
154 | - | let ah = R(P) | |
155 | - | let ai = Q(P) | |
156 | - | let av = af(ag, ah, ai, aj) | |
157 | - | let an = av[0] | |
158 | - | let ar = av[1] | |
159 | - | let as = av[2] | |
160 | - | $Tuple2(nil, makeString(["%d%d%d", toString(an), toString(ar), toString(as)], e)) | |
96 | + | @Callable(S) | |
97 | + | func currentRewardRateREADONLY (O) = { | |
98 | + | let U = D() | |
99 | + | let N = K(U) | |
100 | + | let V = M(N, O) | |
101 | + | let P = V[0] | |
102 | + | let Q = V[1] | |
103 | + | let R = V[2] | |
104 | + | $Tuple2(nil, makeString(["%d%d%d", toString(P), toString(Q), toString(R)], e)) | |
161 | 105 | } | |
162 | 106 | ||
163 | 107 | ||
164 | 108 | ||
165 | - | @Callable(at) | |
166 | - | func currentUserRewardRateREADONLY (aj,aw) = { | |
167 | - | let ag = K() | |
168 | - | let P = M(ag) | |
169 | - | let ah = R(P) | |
170 | - | let ai = Q(P) | |
171 | - | let av = af(ag, ah, ai, aj) | |
172 | - | let an = av[0] | |
173 | - | let ar = av[1] | |
174 | - | let as = av[2] | |
175 | - | let ax = t(ah, W(aw, aj)) | |
176 | - | let ay = (1 * b) | |
177 | - | $Tuple2(nil, makeString(["%d%d%d%d%d", toString(an), toString(ar), toString(as), toString(ax), toString(ay)], e)) | |
109 | + | @Callable(S) | |
110 | + | func currentUserRewardRateREADONLY (O,W) = { | |
111 | + | let U = D() | |
112 | + | let N = K(U) | |
113 | + | let V = M(N, O) | |
114 | + | let P = V[0] | |
115 | + | let Q = V[1] | |
116 | + | let R = V[2] | |
117 | + | let X = u(N, E(W, O)) | |
118 | + | let Y = (1 * b) | |
119 | + | $Tuple2(nil, makeString(["%d%d%d", toString(P), toString(Q), toString(R), toString(X), toString(Y)], e)) | |
178 | 120 | } | |
179 | 121 | ||
180 | 122 | ||
181 | 123 | ||
182 | - | @Callable( | |
183 | - | func claimedRewardREADONLY ( | |
184 | - | let | |
185 | - | let | |
186 | - | func | |
187 | - | let | |
188 | - | let | |
189 | - | then -( | |
190 | - | else | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | let | |
195 | - | makeString([( | |
124 | + | @Callable(S) | |
125 | + | func claimedRewardREADONLY (W) = { | |
126 | + | let Z = C() | |
127 | + | let aa = "%s%d%d%d%s" | |
128 | + | func ab (ac,ad) = { | |
129 | + | let ae = ((toInt(fromBase58String(ad)) % 100000) + (toInt(toBytes(W)) % 100000)) | |
130 | + | let af = if ((0 > ae)) | |
131 | + | then -(ae) | |
132 | + | else ae | |
133 | + | let ag = (((af % 100) * b) + (af * (b / 100000))) | |
134 | + | let ah = 0 | |
135 | + | let ai = 0 | |
136 | + | let aj = 0 | |
137 | + | makeString([(aa + ac), ad, toString(ah), toString(ai), toString(aj), "end"], e) | |
196 | 138 | } | |
197 | 139 | ||
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | func | |
203 | - | then | |
204 | - | else | |
140 | + | let ak = { | |
141 | + | let al = Z | |
142 | + | let am = size(al) | |
143 | + | let an = "%s" | |
144 | + | func ao (ap,aq) = if ((aq >= am)) | |
145 | + | then ap | |
146 | + | else ab(ap, al[aq]) | |
205 | 147 | ||
206 | - | func | |
207 | - | then | |
148 | + | func ar (ap,aq) = if ((aq >= am)) | |
149 | + | then ap | |
208 | 150 | else throw("List size exceeds 10") | |
209 | 151 | ||
210 | - | | |
152 | + | ar(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(an, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
211 | 153 | } | |
212 | - | $Tuple2(nil, (( | |
154 | + | $Tuple2(nil, ((ak + e) + W)) | |
213 | 155 | } | |
214 | 156 | ||
215 | 157 | ||
216 | 158 | ||
217 | - | @Callable( | |
218 | - | func calcBoostREADONLY ( | |
219 | - | let | |
159 | + | @Callable(S) | |
160 | + | func calcBoostREADONLY (as,at,au,av,aw) = { | |
161 | + | let ax = if ((aw != "")) | |
220 | 162 | then (3 * b) | |
221 | 163 | else (1 * b) | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | $Tuple2(nil, makeString(["%d%d", toString(toInt( | |
164 | + | let ay = fraction(toBigInt(at), d, toBigInt((30 * 1440))) | |
165 | + | let az = (pow(ay, c, toBigInt(2), 0, c, HALFUP) / toBigInt(100)) | |
166 | + | let aA = fraction(toBigInt(as), az, d) | |
167 | + | $Tuple2(nil, makeString(["%d%d", toString(toInt(aA)), toString(ax)], e)) | |
226 | 168 | } | |
227 | 169 | ||
228 | 170 | ||
229 | 171 | ||
230 | - | @Callable( | |
172 | + | @Callable(S) | |
231 | 173 | func wxEmissionStatsREADONLY () = { | |
232 | - | let bb = toString(b) | |
233 | - | let bc = "1" | |
234 | - | let ag = K() | |
235 | - | let P = M(ag) | |
236 | - | let bd = O(P) | |
237 | - | let ai = Q(P) | |
238 | - | let an = u(ai, aa()) | |
239 | - | let be = u(ai, ac()) | |
240 | - | let bf = if ((be > height)) | |
241 | - | then 0 | |
242 | - | else (height - be) | |
243 | - | let bg = (an * bf) | |
244 | - | let bh = t(bd, S()) | |
245 | - | let bi = t(bd, T()) | |
246 | - | let bj = t(bd, U()) | |
247 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString(bg), toString(bh), toString(bi), toString(bj)], e)) | |
174 | + | let aB = toString(b) | |
175 | + | let aC = "1" | |
176 | + | let aD = 0 | |
177 | + | let aE = 0 | |
178 | + | let aF = 0 | |
179 | + | let aG = 0 | |
180 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(aD), toString(aE), toString(aF), toString(aG)], e)) | |
248 | 181 | } | |
249 | 182 | ||
250 | 183 | ||
251 | 184 | ||
252 | - | @Callable(at) | |
253 | - | func lpStatsREADONLY (bk) = { | |
254 | - | let au = K() | |
255 | - | let bl = addressFromStringValue(r(au, H(bk))) | |
256 | - | let bm = if ($isInstanceOf(invoke(bl, "getPoolConfigWrapperREADONLY", nil, nil), "List[Any]")) | |
257 | - | then invoke(bl, "getPoolConfigWrapperREADONLY", nil, nil) | |
258 | - | else throw("Couldn't cast Any to List[Any]") | |
259 | - | let aj = fromBase58String(if ($isInstanceOf(bm[h], "String")) | |
260 | - | then bm[h] | |
261 | - | else throw("Couldn't cast Any to String")) | |
262 | - | let bn = if ($isInstanceOf(bm[i], "String")) | |
263 | - | then bm[i] | |
264 | - | else throw("Couldn't cast Any to String") | |
265 | - | let bo = if ($isInstanceOf(bm[j], "String")) | |
266 | - | then bm[j] | |
267 | - | else throw("Couldn't cast Any to String") | |
268 | - | let bp = if ($isInstanceOf(bm[m], "String")) | |
269 | - | then bm[m] | |
270 | - | else throw("Couldn't cast Any to String") | |
271 | - | let bq = if ($isInstanceOf(bm[n], "String")) | |
272 | - | then bm[n] | |
273 | - | else throw("Couldn't cast Any to String") | |
274 | - | let br = parseIntValue(if ($isInstanceOf(bm[k], "String")) | |
275 | - | then bm[k] | |
276 | - | else throw("Couldn't cast Any to String")) | |
277 | - | let bs = parseIntValue(if ($isInstanceOf(bm[l], "String")) | |
278 | - | then bm[l] | |
279 | - | else throw("Couldn't cast Any to String")) | |
280 | - | let bt = valueOrErrorMessage(assetInfo(aj), (("Asset " + toBase58String(aj)) + " doesn't exist")).quantity | |
281 | - | let bu = if ($isInstanceOf(invoke(bl, "getAccBalanceWrapperREADONLY", [bn], nil), "Int")) | |
282 | - | then invoke(bl, "getAccBalanceWrapperREADONLY", [bn], nil) | |
283 | - | else throw("Couldn't cast Any to Int") | |
284 | - | let bv = if ($isInstanceOf(invoke(bl, "getAccBalanceWrapperREADONLY", [bo], nil), "Int")) | |
285 | - | then invoke(bl, "getAccBalanceWrapperREADONLY", [bo], nil) | |
286 | - | else throw("Couldn't cast Any to Int") | |
287 | - | let bw = if ($isInstanceOf(invoke(bl, "calcPricesWrapperREADONLY", [bu, bv, bt], nil), "List[Any]")) | |
288 | - | then invoke(bl, "calcPricesWrapperREADONLY", [bu, bv, bt], nil) | |
289 | - | else throw("Couldn't cast Any to List[Any]") | |
290 | - | let bx = 0 | |
291 | - | let by = if ($isInstanceOf(invoke(bl, "fromX18WrapperREADONLY", [bw[1], b], nil), "Int")) | |
292 | - | then invoke(bl, "fromX18WrapperREADONLY", [bw[1], b], nil) | |
293 | - | else throw("Couldn't cast Any to Int") | |
294 | - | let bz = if ($isInstanceOf(invoke(bl, "fromX18WrapperREADONLY", [bw[2], b], nil), "Int")) | |
295 | - | then invoke(bl, "fromX18WrapperREADONLY", [bw[2], b], nil) | |
296 | - | else throw("Couldn't cast Any to Int") | |
297 | - | let am = getIntegerValue(au, I(toString(bl))) | |
298 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bu), toString(bv), toString(bt), toString(bx), toString(by), toString(bz), toString(am)], e)) | |
185 | + | @Callable(S) | |
186 | + | func poolStatsREADONLY (aH) = { | |
187 | + | let T = B() | |
188 | + | let aI = addressFromStringValue(s(T, x(aH))) | |
189 | + | let aJ = { | |
190 | + | let aK = invoke(aI, "getPoolConfigWrapperREADONLY", nil, nil) | |
191 | + | if ($isInstanceOf(aK, "List[Any]")) | |
192 | + | then aK | |
193 | + | else throw("Couldn't cast Any to List[Any]") | |
194 | + | } | |
195 | + | let O = fromBase58String({ | |
196 | + | let aK = aJ[i] | |
197 | + | if ($isInstanceOf(aK, "String")) | |
198 | + | then aK | |
199 | + | else throw("Couldn't cast Any to String") | |
200 | + | }) | |
201 | + | let aL = { | |
202 | + | let aK = aJ[j] | |
203 | + | if ($isInstanceOf(aK, "String")) | |
204 | + | then aK | |
205 | + | else throw("Couldn't cast Any to String") | |
206 | + | } | |
207 | + | let aM = { | |
208 | + | let aK = aJ[k] | |
209 | + | if ($isInstanceOf(aK, "String")) | |
210 | + | then aK | |
211 | + | else throw("Couldn't cast Any to String") | |
212 | + | } | |
213 | + | let aN = { | |
214 | + | let aK = aJ[n] | |
215 | + | if ($isInstanceOf(aK, "String")) | |
216 | + | then aK | |
217 | + | else throw("Couldn't cast Any to String") | |
218 | + | } | |
219 | + | let aO = { | |
220 | + | let aK = aJ[o] | |
221 | + | if ($isInstanceOf(aK, "String")) | |
222 | + | then aK | |
223 | + | else throw("Couldn't cast Any to String") | |
224 | + | } | |
225 | + | let aP = parseIntValue({ | |
226 | + | let aK = aJ[l] | |
227 | + | if ($isInstanceOf(aK, "String")) | |
228 | + | then aK | |
229 | + | else throw("Couldn't cast Any to String") | |
230 | + | }) | |
231 | + | let aQ = parseIntValue({ | |
232 | + | let aK = aJ[m] | |
233 | + | if ($isInstanceOf(aK, "String")) | |
234 | + | then aK | |
235 | + | else throw("Couldn't cast Any to String") | |
236 | + | }) | |
237 | + | let aR = valueOrErrorMessage(assetInfo(O), (("Asset " + toBase58String(O)) + " doesn't exist")).quantity | |
238 | + | let aS = { | |
239 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [aL], nil) | |
240 | + | if ($isInstanceOf(aK, "Int")) | |
241 | + | then aK | |
242 | + | else throw("Couldn't cast Any to Int") | |
243 | + | } | |
244 | + | let aT = { | |
245 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [aM], nil) | |
246 | + | if ($isInstanceOf(aK, "Int")) | |
247 | + | then aK | |
248 | + | else throw("Couldn't cast Any to Int") | |
249 | + | } | |
250 | + | let aU = { | |
251 | + | let aK = invoke(aI, "calcPricesWrapperREADONLY", [aS, aT, aR], nil) | |
252 | + | if ($isInstanceOf(aK, "List[Any]")) | |
253 | + | then aK | |
254 | + | else throw("Couldn't cast Any to List[Any]") | |
255 | + | } | |
256 | + | let aV = 0 | |
257 | + | let aW = { | |
258 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [aU[1], b], nil) | |
259 | + | if ($isInstanceOf(aK, "Int")) | |
260 | + | then aK | |
261 | + | else throw("Couldn't cast Any to Int") | |
262 | + | } | |
263 | + | let aX = { | |
264 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [aU[2], b], nil) | |
265 | + | if ($isInstanceOf(aK, "Int")) | |
266 | + | then aK | |
267 | + | else throw("Couldn't cast Any to Int") | |
268 | + | } | |
269 | + | let aY = getIntegerValue(B(), I(toString(aI))) | |
270 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(aS), toString(aT), toString(aR), toString(aV), toString(aW), toString(aX), toString(aY)], e)) | |
299 | 271 | } | |
300 | 272 | ||
301 | 273 | ||
302 | 274 | ||
303 | - | @Callable(at) | |
304 | - | func gwxUserInfoREADONLY (aw) = { | |
305 | - | let ag = K() | |
306 | - | let P = M(ag) | |
307 | - | let bd = O(P) | |
308 | - | let bA = if ($isInstanceOf(invoke(bd, "gwxUserInfoREADONLY", [aw], nil), "List[Any]")) | |
309 | - | then invoke(bd, "gwxUserInfoREADONLY", [aw], nil) | |
310 | - | else throw("Couldn't cast Any to List[Any]") | |
311 | - | let bB = if ($isInstanceOf(bA[0], "Int")) | |
312 | - | then bA[0] | |
313 | - | else throw("Couldn't cast Any to Int") | |
314 | - | $Tuple2(nil, makeString(["%d", toString(bB)], e)) | |
275 | + | @Callable(S) | |
276 | + | func poolEvaluatePutByAmountAssetREADONLY (aH,aZ) = { | |
277 | + | let T = B() | |
278 | + | let aI = addressFromStringValue(s(T, x(aH))) | |
279 | + | let aJ = { | |
280 | + | let aK = invoke(aI, "getPoolConfigWrapperREADONLY", nil, nil) | |
281 | + | if ($isInstanceOf(aK, "List[Any]")) | |
282 | + | then aK | |
283 | + | else throw("Couldn't cast Any to List[Any]") | |
284 | + | } | |
285 | + | let O = fromBase58String({ | |
286 | + | let aK = aJ[i] | |
287 | + | if ($isInstanceOf(aK, "String")) | |
288 | + | then aK | |
289 | + | else throw("Couldn't cast Any to String") | |
290 | + | }) | |
291 | + | let ba = { | |
292 | + | let aK = aJ[j] | |
293 | + | if ($isInstanceOf(aK, "String")) | |
294 | + | then aK | |
295 | + | else throw("Couldn't cast Any to String") | |
296 | + | } | |
297 | + | let bb = fromBase58String(ba) | |
298 | + | let bc = { | |
299 | + | let aK = aJ[k] | |
300 | + | if ($isInstanceOf(aK, "String")) | |
301 | + | then aK | |
302 | + | else throw("Couldn't cast Any to String") | |
303 | + | } | |
304 | + | let bd = fromBase58String(bc) | |
305 | + | let aP = parseIntValue({ | |
306 | + | let aK = aJ[l] | |
307 | + | if ($isInstanceOf(aK, "String")) | |
308 | + | then aK | |
309 | + | else throw("Couldn't cast Any to String") | |
310 | + | }) | |
311 | + | let aQ = parseIntValue({ | |
312 | + | let aK = aJ[m] | |
313 | + | if ($isInstanceOf(aK, "String")) | |
314 | + | then aK | |
315 | + | else throw("Couldn't cast Any to String") | |
316 | + | }) | |
317 | + | let be = { | |
318 | + | let aK = aJ[h] | |
319 | + | if ($isInstanceOf(aK, "String")) | |
320 | + | then aK | |
321 | + | else throw("Couldn't cast Any to String") | |
322 | + | } | |
323 | + | let aR = valueOrErrorMessage(assetInfo(O), (("Asset " + toBase58String(O)) + " doesn't exist")).quantity | |
324 | + | let aS = { | |
325 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [ba], nil) | |
326 | + | if ($isInstanceOf(aK, "Int")) | |
327 | + | then aK | |
328 | + | else throw("Couldn't cast Any to Int") | |
329 | + | } | |
330 | + | let aT = { | |
331 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [bc], nil) | |
332 | + | if ($isInstanceOf(aK, "Int")) | |
333 | + | then aK | |
334 | + | else throw("Couldn't cast Any to Int") | |
335 | + | } | |
336 | + | let bf = parseBigIntValue({ | |
337 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [aS, aP], nil) | |
338 | + | if ($isInstanceOf(aK, "String")) | |
339 | + | then aK | |
340 | + | else throw("Couldn't cast Any to String") | |
341 | + | }) | |
342 | + | let bg = parseBigIntValue({ | |
343 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [aT, aQ], nil) | |
344 | + | if ($isInstanceOf(aK, "String")) | |
345 | + | then aK | |
346 | + | else throw("Couldn't cast Any to String") | |
347 | + | }) | |
348 | + | let bh = if ((aR == 0)) | |
349 | + | then f | |
350 | + | else parseBigIntValue({ | |
351 | + | let aK = invoke(aI, "calcPriceBigIntWrapperREADONLY", [toString(bg), toString(bf)], nil) | |
352 | + | if ($isInstanceOf(aK, "String")) | |
353 | + | then aK | |
354 | + | else throw("Couldn't cast Any to String") | |
355 | + | }) | |
356 | + | let aV = { | |
357 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [toString(bh), b], nil) | |
358 | + | if ($isInstanceOf(aK, "Int")) | |
359 | + | then aK | |
360 | + | else throw("Couldn't cast Any to Int") | |
361 | + | } | |
362 | + | let bi = parseBigIntValue({ | |
363 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [aZ, aP], nil) | |
364 | + | if ($isInstanceOf(aK, "String")) | |
365 | + | then aK | |
366 | + | else throw("Couldn't cast Any to String") | |
367 | + | }) | |
368 | + | let bj = fraction(bi, bh, d) | |
369 | + | let bk = { | |
370 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [toString(bj), aQ], nil) | |
371 | + | if ($isInstanceOf(aK, "Int")) | |
372 | + | then aK | |
373 | + | else throw("Couldn't cast Any to Int") | |
374 | + | } | |
375 | + | let bl = invoke(aI, "estimatePutOperationWrapperREADONLY", ["", 500000, aZ, bb, bk, bd, "", true, false], nil) | |
376 | + | let bm = { | |
377 | + | let bn = bl | |
378 | + | if (if ($isInstanceOf(bn._1, "Int")) | |
379 | + | then if ($isInstanceOf(bn._3, "Int")) | |
380 | + | then if ($isInstanceOf(bn._4, "Int")) | |
381 | + | then if ($isInstanceOf(bn._5, "Int")) | |
382 | + | then $isInstanceOf(bn._6, "Int") | |
383 | + | else false | |
384 | + | else false | |
385 | + | else false | |
386 | + | else false) | |
387 | + | then { | |
388 | + | let bo = bn._1 | |
389 | + | let bp = bn._3 | |
390 | + | let bq = bn._4 | |
391 | + | let br = bn._5 | |
392 | + | let bs = bn._6 | |
393 | + | $Tuple5(bo, bp, bq, br, bs) | |
394 | + | } | |
395 | + | else throw("Couldn't cast types") | |
396 | + | } | |
397 | + | let bo = bm._1 | |
398 | + | let bp = bm._2 | |
399 | + | let bq = bm._3 | |
400 | + | let br = bm._4 | |
401 | + | let bs = bm._5 | |
402 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(bo), toString(aV), toString(bq), toString(br), toString(bs), be, toString(aZ), toString(bk)], e)) | |
403 | + | } | |
404 | + | ||
405 | + | ||
406 | + | ||
407 | + | @Callable(S) | |
408 | + | func poolEvaluatePutByPriceAssetREADONLY (aH,bk) = { | |
409 | + | let T = B() | |
410 | + | let aI = addressFromStringValue(s(T, x(aH))) | |
411 | + | let aJ = { | |
412 | + | let aK = invoke(aI, "getPoolConfigWrapperREADONLY", nil, nil) | |
413 | + | if ($isInstanceOf(aK, "List[Any]")) | |
414 | + | then aK | |
415 | + | else throw("Couldn't cast Any to List[Any]") | |
416 | + | } | |
417 | + | let O = fromBase58String({ | |
418 | + | let aK = aJ[i] | |
419 | + | if ($isInstanceOf(aK, "String")) | |
420 | + | then aK | |
421 | + | else throw("Couldn't cast Any to String") | |
422 | + | }) | |
423 | + | let ba = { | |
424 | + | let aK = aJ[j] | |
425 | + | if ($isInstanceOf(aK, "String")) | |
426 | + | then aK | |
427 | + | else throw("Couldn't cast Any to String") | |
428 | + | } | |
429 | + | let bb = fromBase58String(ba) | |
430 | + | let bc = { | |
431 | + | let aK = aJ[k] | |
432 | + | if ($isInstanceOf(aK, "String")) | |
433 | + | then aK | |
434 | + | else throw("Couldn't cast Any to String") | |
435 | + | } | |
436 | + | let bd = fromBase58String(bc) | |
437 | + | let aP = parseIntValue({ | |
438 | + | let aK = aJ[l] | |
439 | + | if ($isInstanceOf(aK, "String")) | |
440 | + | then aK | |
441 | + | else throw("Couldn't cast Any to String") | |
442 | + | }) | |
443 | + | let aQ = parseIntValue({ | |
444 | + | let aK = aJ[m] | |
445 | + | if ($isInstanceOf(aK, "String")) | |
446 | + | then aK | |
447 | + | else throw("Couldn't cast Any to String") | |
448 | + | }) | |
449 | + | let be = { | |
450 | + | let aK = aJ[h] | |
451 | + | if ($isInstanceOf(aK, "String")) | |
452 | + | then aK | |
453 | + | else throw("Couldn't cast Any to String") | |
454 | + | } | |
455 | + | let aR = valueOrErrorMessage(assetInfo(O), (("Asset " + toBase58String(O)) + " doesn't exist")).quantity | |
456 | + | let bt = { | |
457 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [ba], nil) | |
458 | + | if ($isInstanceOf(aK, "Int")) | |
459 | + | then aK | |
460 | + | else throw("Couldn't cast Any to Int") | |
461 | + | } | |
462 | + | let bu = { | |
463 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [bc], nil) | |
464 | + | if ($isInstanceOf(aK, "Int")) | |
465 | + | then aK | |
466 | + | else throw("Couldn't cast Any to Int") | |
467 | + | } | |
468 | + | let bv = parseBigIntValue({ | |
469 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [bt, aP], nil) | |
470 | + | if ($isInstanceOf(aK, "String")) | |
471 | + | then aK | |
472 | + | else throw("Couldn't cast Any to String") | |
473 | + | }) | |
474 | + | let bw = parseBigIntValue({ | |
475 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [bu, aQ], nil) | |
476 | + | if ($isInstanceOf(aK, "String")) | |
477 | + | then aK | |
478 | + | else throw("Couldn't cast Any to String") | |
479 | + | }) | |
480 | + | let bh = if ((aR == 0)) | |
481 | + | then f | |
482 | + | else parseBigIntValue({ | |
483 | + | let aK = invoke(aI, "calcPriceBigIntWrapperREADONLY", [toString(bw), toString(bv)], nil) | |
484 | + | if ($isInstanceOf(aK, "String")) | |
485 | + | then aK | |
486 | + | else throw("Couldn't cast Any to String") | |
487 | + | }) | |
488 | + | let aV = { | |
489 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [toString(bh), b], nil) | |
490 | + | if ($isInstanceOf(aK, "Int")) | |
491 | + | then aK | |
492 | + | else throw("Couldn't cast Any to Int") | |
493 | + | } | |
494 | + | let bj = parseBigIntValue({ | |
495 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [bk, aQ], nil) | |
496 | + | if ($isInstanceOf(aK, "String")) | |
497 | + | then aK | |
498 | + | else throw("Couldn't cast Any to String") | |
499 | + | }) | |
500 | + | let bi = fraction(bj, d, bh) | |
501 | + | let aZ = { | |
502 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [toString(bi), aP], nil) | |
503 | + | if ($isInstanceOf(aK, "Int")) | |
504 | + | then aK | |
505 | + | else throw("Couldn't cast Any to Int") | |
506 | + | } | |
507 | + | let bl = invoke(aI, "estimatePutOperationWrapperREADONLY", ["", 500000, aZ, bb, bk, bd, "", true, false], nil) | |
508 | + | let bx = { | |
509 | + | let bn = bl | |
510 | + | if (if ($isInstanceOf(bn._1, "Int")) | |
511 | + | then if ($isInstanceOf(bn._3, "Int")) | |
512 | + | then if ($isInstanceOf(bn._4, "Int")) | |
513 | + | then if ($isInstanceOf(bn._5, "Int")) | |
514 | + | then $isInstanceOf(bn._6, "Int") | |
515 | + | else false | |
516 | + | else false | |
517 | + | else false | |
518 | + | else false) | |
519 | + | then { | |
520 | + | let bo = bn._1 | |
521 | + | let bp = bn._3 | |
522 | + | let bq = bn._4 | |
523 | + | let br = bn._5 | |
524 | + | let bs = bn._6 | |
525 | + | $Tuple5(bo, bp, bq, br, bs) | |
526 | + | } | |
527 | + | else throw("Couldn't cast types") | |
528 | + | } | |
529 | + | let bo = bx._1 | |
530 | + | let bp = bx._2 | |
531 | + | let bq = bx._3 | |
532 | + | let br = bx._4 | |
533 | + | let bs = bx._5 | |
534 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(bo), toString(aV), toString(bq), toString(br), toString(bs), be, toString(aZ), toString(bk)], e)) | |
535 | + | } | |
536 | + | ||
537 | + | ||
538 | + | ||
539 | + | @Callable(S) | |
540 | + | func poolEvaluateGetREADONLY (by,bz) = { | |
541 | + | let T = B() | |
542 | + | let aI = addressFromStringValue(s(T, x(by))) | |
543 | + | let bl = invoke(aI, "estimateGetOperationWrapperREADONLY", ["", by, bz, toString(aI)], nil) | |
544 | + | let bA = { | |
545 | + | let bn = bl | |
546 | + | if (if ($isInstanceOf(bn._1, "Int")) | |
547 | + | then if ($isInstanceOf(bn._2, "Int")) | |
548 | + | then if ($isInstanceOf(bn._5, "Int")) | |
549 | + | then if ($isInstanceOf(bn._6, "Int")) | |
550 | + | then if ($isInstanceOf(bn._7, "Int")) | |
551 | + | then if ($isInstanceOf(bn._8, "String")) | |
552 | + | then $isInstanceOf(bn._9, "String") | |
553 | + | else false | |
554 | + | else false | |
555 | + | else false | |
556 | + | else false | |
557 | + | else false | |
558 | + | else false) | |
559 | + | then { | |
560 | + | let bB = bn._1 | |
561 | + | let bC = bn._2 | |
562 | + | let bq = bn._5 | |
563 | + | let br = bn._6 | |
564 | + | let bs = bn._7 | |
565 | + | let aV = bn._8 | |
566 | + | let be = bn._9 | |
567 | + | $Tuple7(bB, bC, bq, br, bs, aV, be) | |
568 | + | } | |
569 | + | else throw("Couldn't cast types") | |
570 | + | } | |
571 | + | let bB = bA._1 | |
572 | + | let bC = bA._2 | |
573 | + | let bq = bA._3 | |
574 | + | let br = bA._4 | |
575 | + | let bs = bA._5 | |
576 | + | let aV = bA._6 | |
577 | + | let be = bA._7 | |
578 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bB), toString(bC), toString(bq), toString(br), toString(bs), aV, be], e)) | |
315 | 579 | } | |
316 | 580 | ||
317 | 581 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 18 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = "__" | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = toBigInt(0) | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = 1 | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 2 | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = 3 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 4 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 5 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 6 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 7 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 8 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 9 | |
33 | 33 | ||
34 | - | func p (q) = valueOrErrorMessage(getString(q), (("mandatory this." + q) + " is not defined")) | |
34 | + | let p = 10 | |
35 | + | ||
36 | + | func q (r) = valueOrErrorMessage(getString(r), (("mandatory this." + r) + " is not defined")) | |
35 | 37 | ||
36 | 38 | ||
37 | - | func | |
39 | + | func s (t,r) = valueOrErrorMessage(getString(t, r), (((("mandatory " + toString(t)) + ".") + r) + " is not defined")) | |
38 | 40 | ||
39 | 41 | ||
40 | - | func | |
42 | + | func u (t,r) = valueOrElse(getInteger(t, r), 0) | |
41 | 43 | ||
42 | 44 | ||
43 | - | func | |
45 | + | func v (t,r) = valueOrErrorMessage(getInteger(t, r), (("mandatory this." + r) + " is not defined")) | |
44 | 46 | ||
45 | 47 | ||
46 | - | func | |
48 | + | func w () = "%s%s__config__factoryAddress" | |
47 | 49 | ||
48 | 50 | ||
49 | - | let w = 1 | |
50 | - | ||
51 | - | let x = 2 | |
52 | - | ||
53 | - | let y = 3 | |
54 | - | ||
55 | - | let z = 4 | |
56 | - | ||
57 | - | let A = 5 | |
58 | - | ||
59 | - | let B = 6 | |
60 | - | ||
61 | - | let C = 7 | |
62 | - | ||
63 | - | func D () = "%s__factoryConfig" | |
51 | + | func x (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], e) | |
64 | 52 | ||
65 | 53 | ||
66 | - | func | |
54 | + | func z () = "%s__lpTokensList" | |
67 | 55 | ||
68 | 56 | ||
69 | - | func | |
57 | + | func A () = "%s__factoryConfig" | |
70 | 58 | ||
71 | 59 | ||
72 | - | func H (F) = makeString(["%s%s%s", F, "mappings__lpAsset2PoolContract"], e) | |
60 | + | func B () = addressFromStringValue(q(w())) | |
61 | + | ||
62 | + | ||
63 | + | func C () = split(valueOrElse(getString(B(), z()), ""), e) | |
64 | + | ||
65 | + | ||
66 | + | func D () = split(s(B(), A()), e) | |
67 | + | ||
68 | + | ||
69 | + | func E (F,G) = makeString(["%s%s%s__staked", F, G], e) | |
70 | + | ||
71 | + | ||
72 | + | func H (G) = ("%s%s%s__staked__total__" + G) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func I (J) = makeString(["%s%s", "poolWeight", J], e) | |
76 | 76 | ||
77 | 77 | ||
78 | - | func K () = addressFromStringValue( | |
78 | + | func K (L) = addressFromStringValue(L[1]) | |
79 | 79 | ||
80 | 80 | ||
81 | - | func L () = split(valueOrElse(getString(K(), G()), ""), e) | |
82 | - | ||
83 | - | ||
84 | - | func M (N) = split(r(N, D()), e) | |
85 | - | ||
86 | - | ||
87 | - | func O (P) = addressFromStringValue(P[x]) | |
88 | - | ||
89 | - | ||
90 | - | func Q (P) = addressFromStringValue(P[A]) | |
91 | - | ||
92 | - | ||
93 | - | func R (P) = addressFromStringValue(P[w]) | |
94 | - | ||
95 | - | ||
96 | - | func S () = "%s%s__stats__activeTotalLocked" | |
97 | - | ||
98 | - | ||
99 | - | func T () = "%s%s__stats__locksDurationSumInBlocks" | |
100 | - | ||
101 | - | ||
102 | - | func U () = "%s%s__stats__locksCount" | |
103 | - | ||
104 | - | ||
105 | - | func V () = "%s%s__stats__activeUsersCount" | |
106 | - | ||
107 | - | ||
108 | - | func W (X,Y) = makeString(["%s%s%s__staked", X, Y], e) | |
109 | - | ||
110 | - | ||
111 | - | func Z (Y) = ("%s%s%s__staked__total__" + Y) | |
112 | - | ||
113 | - | ||
114 | - | func aa () = "%s%s__ratePerBlock__current" | |
115 | - | ||
116 | - | ||
117 | - | func ab () = "%s%s__ratePerBlockMax__current" | |
118 | - | ||
119 | - | ||
120 | - | func ac () = "%s%s__emission__startBlock" | |
121 | - | ||
122 | - | ||
123 | - | func ad () = "%s%s__emission__duration" | |
124 | - | ||
125 | - | ||
126 | - | func ae () = "%s%s__emission__endBlock" | |
127 | - | ||
128 | - | ||
129 | - | func af (ag,ah,ai,aj) = { | |
130 | - | let ak = r(ag, H(aj)) | |
131 | - | let al = b | |
132 | - | let am = getIntegerValue(ag, I(ak)) | |
133 | - | let an = u(ai, aa()) | |
134 | - | let ao = u(ai, ab()) | |
135 | - | let ap = fraction(an, am, al) | |
136 | - | let aq = fraction(ao, am, al) | |
137 | - | let ar = (3 * b) | |
138 | - | let as = t(ah, Z(aj)) | |
139 | - | [ap, ar, as] | |
81 | + | func M (N,O) = { | |
82 | + | let P = 0 | |
83 | + | let Q = (1 * b) | |
84 | + | let R = u(N, H(O)) | |
85 | + | [P, Q, R] | |
140 | 86 | } | |
141 | 87 | ||
142 | 88 | ||
143 | - | @Callable( | |
144 | - | func constructor ( | |
89 | + | @Callable(S) | |
90 | + | func constructor (T) = if ((S.caller != this)) | |
145 | 91 | then throw("not authorized") | |
146 | - | else [StringEntry( | |
92 | + | else [StringEntry(w(), T)] | |
147 | 93 | ||
148 | 94 | ||
149 | 95 | ||
150 | - | @Callable(at) | |
151 | - | func currentRewardRateREADONLY (aj) = { | |
152 | - | let ag = K() | |
153 | - | let P = M(ag) | |
154 | - | let ah = R(P) | |
155 | - | let ai = Q(P) | |
156 | - | let av = af(ag, ah, ai, aj) | |
157 | - | let an = av[0] | |
158 | - | let ar = av[1] | |
159 | - | let as = av[2] | |
160 | - | $Tuple2(nil, makeString(["%d%d%d", toString(an), toString(ar), toString(as)], e)) | |
96 | + | @Callable(S) | |
97 | + | func currentRewardRateREADONLY (O) = { | |
98 | + | let U = D() | |
99 | + | let N = K(U) | |
100 | + | let V = M(N, O) | |
101 | + | let P = V[0] | |
102 | + | let Q = V[1] | |
103 | + | let R = V[2] | |
104 | + | $Tuple2(nil, makeString(["%d%d%d", toString(P), toString(Q), toString(R)], e)) | |
161 | 105 | } | |
162 | 106 | ||
163 | 107 | ||
164 | 108 | ||
165 | - | @Callable(at) | |
166 | - | func currentUserRewardRateREADONLY (aj,aw) = { | |
167 | - | let ag = K() | |
168 | - | let P = M(ag) | |
169 | - | let ah = R(P) | |
170 | - | let ai = Q(P) | |
171 | - | let av = af(ag, ah, ai, aj) | |
172 | - | let an = av[0] | |
173 | - | let ar = av[1] | |
174 | - | let as = av[2] | |
175 | - | let ax = t(ah, W(aw, aj)) | |
176 | - | let ay = (1 * b) | |
177 | - | $Tuple2(nil, makeString(["%d%d%d%d%d", toString(an), toString(ar), toString(as), toString(ax), toString(ay)], e)) | |
109 | + | @Callable(S) | |
110 | + | func currentUserRewardRateREADONLY (O,W) = { | |
111 | + | let U = D() | |
112 | + | let N = K(U) | |
113 | + | let V = M(N, O) | |
114 | + | let P = V[0] | |
115 | + | let Q = V[1] | |
116 | + | let R = V[2] | |
117 | + | let X = u(N, E(W, O)) | |
118 | + | let Y = (1 * b) | |
119 | + | $Tuple2(nil, makeString(["%d%d%d", toString(P), toString(Q), toString(R), toString(X), toString(Y)], e)) | |
178 | 120 | } | |
179 | 121 | ||
180 | 122 | ||
181 | 123 | ||
182 | - | @Callable( | |
183 | - | func claimedRewardREADONLY ( | |
184 | - | let | |
185 | - | let | |
186 | - | func | |
187 | - | let | |
188 | - | let | |
189 | - | then -( | |
190 | - | else | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | let | |
195 | - | makeString([( | |
124 | + | @Callable(S) | |
125 | + | func claimedRewardREADONLY (W) = { | |
126 | + | let Z = C() | |
127 | + | let aa = "%s%d%d%d%s" | |
128 | + | func ab (ac,ad) = { | |
129 | + | let ae = ((toInt(fromBase58String(ad)) % 100000) + (toInt(toBytes(W)) % 100000)) | |
130 | + | let af = if ((0 > ae)) | |
131 | + | then -(ae) | |
132 | + | else ae | |
133 | + | let ag = (((af % 100) * b) + (af * (b / 100000))) | |
134 | + | let ah = 0 | |
135 | + | let ai = 0 | |
136 | + | let aj = 0 | |
137 | + | makeString([(aa + ac), ad, toString(ah), toString(ai), toString(aj), "end"], e) | |
196 | 138 | } | |
197 | 139 | ||
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | func | |
203 | - | then | |
204 | - | else | |
140 | + | let ak = { | |
141 | + | let al = Z | |
142 | + | let am = size(al) | |
143 | + | let an = "%s" | |
144 | + | func ao (ap,aq) = if ((aq >= am)) | |
145 | + | then ap | |
146 | + | else ab(ap, al[aq]) | |
205 | 147 | ||
206 | - | func | |
207 | - | then | |
148 | + | func ar (ap,aq) = if ((aq >= am)) | |
149 | + | then ap | |
208 | 150 | else throw("List size exceeds 10") | |
209 | 151 | ||
210 | - | | |
152 | + | ar(ao(ao(ao(ao(ao(ao(ao(ao(ao(ao(an, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
211 | 153 | } | |
212 | - | $Tuple2(nil, (( | |
154 | + | $Tuple2(nil, ((ak + e) + W)) | |
213 | 155 | } | |
214 | 156 | ||
215 | 157 | ||
216 | 158 | ||
217 | - | @Callable( | |
218 | - | func calcBoostREADONLY ( | |
219 | - | let | |
159 | + | @Callable(S) | |
160 | + | func calcBoostREADONLY (as,at,au,av,aw) = { | |
161 | + | let ax = if ((aw != "")) | |
220 | 162 | then (3 * b) | |
221 | 163 | else (1 * b) | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | $Tuple2(nil, makeString(["%d%d", toString(toInt( | |
164 | + | let ay = fraction(toBigInt(at), d, toBigInt((30 * 1440))) | |
165 | + | let az = (pow(ay, c, toBigInt(2), 0, c, HALFUP) / toBigInt(100)) | |
166 | + | let aA = fraction(toBigInt(as), az, d) | |
167 | + | $Tuple2(nil, makeString(["%d%d", toString(toInt(aA)), toString(ax)], e)) | |
226 | 168 | } | |
227 | 169 | ||
228 | 170 | ||
229 | 171 | ||
230 | - | @Callable( | |
172 | + | @Callable(S) | |
231 | 173 | func wxEmissionStatsREADONLY () = { | |
232 | - | let bb = toString(b) | |
233 | - | let bc = "1" | |
234 | - | let ag = K() | |
235 | - | let P = M(ag) | |
236 | - | let bd = O(P) | |
237 | - | let ai = Q(P) | |
238 | - | let an = u(ai, aa()) | |
239 | - | let be = u(ai, ac()) | |
240 | - | let bf = if ((be > height)) | |
241 | - | then 0 | |
242 | - | else (height - be) | |
243 | - | let bg = (an * bf) | |
244 | - | let bh = t(bd, S()) | |
245 | - | let bi = t(bd, T()) | |
246 | - | let bj = t(bd, U()) | |
247 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString(bg), toString(bh), toString(bi), toString(bj)], e)) | |
174 | + | let aB = toString(b) | |
175 | + | let aC = "1" | |
176 | + | let aD = 0 | |
177 | + | let aE = 0 | |
178 | + | let aF = 0 | |
179 | + | let aG = 0 | |
180 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(aD), toString(aE), toString(aF), toString(aG)], e)) | |
248 | 181 | } | |
249 | 182 | ||
250 | 183 | ||
251 | 184 | ||
252 | - | @Callable(at) | |
253 | - | func lpStatsREADONLY (bk) = { | |
254 | - | let au = K() | |
255 | - | let bl = addressFromStringValue(r(au, H(bk))) | |
256 | - | let bm = if ($isInstanceOf(invoke(bl, "getPoolConfigWrapperREADONLY", nil, nil), "List[Any]")) | |
257 | - | then invoke(bl, "getPoolConfigWrapperREADONLY", nil, nil) | |
258 | - | else throw("Couldn't cast Any to List[Any]") | |
259 | - | let aj = fromBase58String(if ($isInstanceOf(bm[h], "String")) | |
260 | - | then bm[h] | |
261 | - | else throw("Couldn't cast Any to String")) | |
262 | - | let bn = if ($isInstanceOf(bm[i], "String")) | |
263 | - | then bm[i] | |
264 | - | else throw("Couldn't cast Any to String") | |
265 | - | let bo = if ($isInstanceOf(bm[j], "String")) | |
266 | - | then bm[j] | |
267 | - | else throw("Couldn't cast Any to String") | |
268 | - | let bp = if ($isInstanceOf(bm[m], "String")) | |
269 | - | then bm[m] | |
270 | - | else throw("Couldn't cast Any to String") | |
271 | - | let bq = if ($isInstanceOf(bm[n], "String")) | |
272 | - | then bm[n] | |
273 | - | else throw("Couldn't cast Any to String") | |
274 | - | let br = parseIntValue(if ($isInstanceOf(bm[k], "String")) | |
275 | - | then bm[k] | |
276 | - | else throw("Couldn't cast Any to String")) | |
277 | - | let bs = parseIntValue(if ($isInstanceOf(bm[l], "String")) | |
278 | - | then bm[l] | |
279 | - | else throw("Couldn't cast Any to String")) | |
280 | - | let bt = valueOrErrorMessage(assetInfo(aj), (("Asset " + toBase58String(aj)) + " doesn't exist")).quantity | |
281 | - | let bu = if ($isInstanceOf(invoke(bl, "getAccBalanceWrapperREADONLY", [bn], nil), "Int")) | |
282 | - | then invoke(bl, "getAccBalanceWrapperREADONLY", [bn], nil) | |
283 | - | else throw("Couldn't cast Any to Int") | |
284 | - | let bv = if ($isInstanceOf(invoke(bl, "getAccBalanceWrapperREADONLY", [bo], nil), "Int")) | |
285 | - | then invoke(bl, "getAccBalanceWrapperREADONLY", [bo], nil) | |
286 | - | else throw("Couldn't cast Any to Int") | |
287 | - | let bw = if ($isInstanceOf(invoke(bl, "calcPricesWrapperREADONLY", [bu, bv, bt], nil), "List[Any]")) | |
288 | - | then invoke(bl, "calcPricesWrapperREADONLY", [bu, bv, bt], nil) | |
289 | - | else throw("Couldn't cast Any to List[Any]") | |
290 | - | let bx = 0 | |
291 | - | let by = if ($isInstanceOf(invoke(bl, "fromX18WrapperREADONLY", [bw[1], b], nil), "Int")) | |
292 | - | then invoke(bl, "fromX18WrapperREADONLY", [bw[1], b], nil) | |
293 | - | else throw("Couldn't cast Any to Int") | |
294 | - | let bz = if ($isInstanceOf(invoke(bl, "fromX18WrapperREADONLY", [bw[2], b], nil), "Int")) | |
295 | - | then invoke(bl, "fromX18WrapperREADONLY", [bw[2], b], nil) | |
296 | - | else throw("Couldn't cast Any to Int") | |
297 | - | let am = getIntegerValue(au, I(toString(bl))) | |
298 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bu), toString(bv), toString(bt), toString(bx), toString(by), toString(bz), toString(am)], e)) | |
185 | + | @Callable(S) | |
186 | + | func poolStatsREADONLY (aH) = { | |
187 | + | let T = B() | |
188 | + | let aI = addressFromStringValue(s(T, x(aH))) | |
189 | + | let aJ = { | |
190 | + | let aK = invoke(aI, "getPoolConfigWrapperREADONLY", nil, nil) | |
191 | + | if ($isInstanceOf(aK, "List[Any]")) | |
192 | + | then aK | |
193 | + | else throw("Couldn't cast Any to List[Any]") | |
194 | + | } | |
195 | + | let O = fromBase58String({ | |
196 | + | let aK = aJ[i] | |
197 | + | if ($isInstanceOf(aK, "String")) | |
198 | + | then aK | |
199 | + | else throw("Couldn't cast Any to String") | |
200 | + | }) | |
201 | + | let aL = { | |
202 | + | let aK = aJ[j] | |
203 | + | if ($isInstanceOf(aK, "String")) | |
204 | + | then aK | |
205 | + | else throw("Couldn't cast Any to String") | |
206 | + | } | |
207 | + | let aM = { | |
208 | + | let aK = aJ[k] | |
209 | + | if ($isInstanceOf(aK, "String")) | |
210 | + | then aK | |
211 | + | else throw("Couldn't cast Any to String") | |
212 | + | } | |
213 | + | let aN = { | |
214 | + | let aK = aJ[n] | |
215 | + | if ($isInstanceOf(aK, "String")) | |
216 | + | then aK | |
217 | + | else throw("Couldn't cast Any to String") | |
218 | + | } | |
219 | + | let aO = { | |
220 | + | let aK = aJ[o] | |
221 | + | if ($isInstanceOf(aK, "String")) | |
222 | + | then aK | |
223 | + | else throw("Couldn't cast Any to String") | |
224 | + | } | |
225 | + | let aP = parseIntValue({ | |
226 | + | let aK = aJ[l] | |
227 | + | if ($isInstanceOf(aK, "String")) | |
228 | + | then aK | |
229 | + | else throw("Couldn't cast Any to String") | |
230 | + | }) | |
231 | + | let aQ = parseIntValue({ | |
232 | + | let aK = aJ[m] | |
233 | + | if ($isInstanceOf(aK, "String")) | |
234 | + | then aK | |
235 | + | else throw("Couldn't cast Any to String") | |
236 | + | }) | |
237 | + | let aR = valueOrErrorMessage(assetInfo(O), (("Asset " + toBase58String(O)) + " doesn't exist")).quantity | |
238 | + | let aS = { | |
239 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [aL], nil) | |
240 | + | if ($isInstanceOf(aK, "Int")) | |
241 | + | then aK | |
242 | + | else throw("Couldn't cast Any to Int") | |
243 | + | } | |
244 | + | let aT = { | |
245 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [aM], nil) | |
246 | + | if ($isInstanceOf(aK, "Int")) | |
247 | + | then aK | |
248 | + | else throw("Couldn't cast Any to Int") | |
249 | + | } | |
250 | + | let aU = { | |
251 | + | let aK = invoke(aI, "calcPricesWrapperREADONLY", [aS, aT, aR], nil) | |
252 | + | if ($isInstanceOf(aK, "List[Any]")) | |
253 | + | then aK | |
254 | + | else throw("Couldn't cast Any to List[Any]") | |
255 | + | } | |
256 | + | let aV = 0 | |
257 | + | let aW = { | |
258 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [aU[1], b], nil) | |
259 | + | if ($isInstanceOf(aK, "Int")) | |
260 | + | then aK | |
261 | + | else throw("Couldn't cast Any to Int") | |
262 | + | } | |
263 | + | let aX = { | |
264 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [aU[2], b], nil) | |
265 | + | if ($isInstanceOf(aK, "Int")) | |
266 | + | then aK | |
267 | + | else throw("Couldn't cast Any to Int") | |
268 | + | } | |
269 | + | let aY = getIntegerValue(B(), I(toString(aI))) | |
270 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(aS), toString(aT), toString(aR), toString(aV), toString(aW), toString(aX), toString(aY)], e)) | |
299 | 271 | } | |
300 | 272 | ||
301 | 273 | ||
302 | 274 | ||
303 | - | @Callable(at) | |
304 | - | func gwxUserInfoREADONLY (aw) = { | |
305 | - | let ag = K() | |
306 | - | let P = M(ag) | |
307 | - | let bd = O(P) | |
308 | - | let bA = if ($isInstanceOf(invoke(bd, "gwxUserInfoREADONLY", [aw], nil), "List[Any]")) | |
309 | - | then invoke(bd, "gwxUserInfoREADONLY", [aw], nil) | |
310 | - | else throw("Couldn't cast Any to List[Any]") | |
311 | - | let bB = if ($isInstanceOf(bA[0], "Int")) | |
312 | - | then bA[0] | |
313 | - | else throw("Couldn't cast Any to Int") | |
314 | - | $Tuple2(nil, makeString(["%d", toString(bB)], e)) | |
275 | + | @Callable(S) | |
276 | + | func poolEvaluatePutByAmountAssetREADONLY (aH,aZ) = { | |
277 | + | let T = B() | |
278 | + | let aI = addressFromStringValue(s(T, x(aH))) | |
279 | + | let aJ = { | |
280 | + | let aK = invoke(aI, "getPoolConfigWrapperREADONLY", nil, nil) | |
281 | + | if ($isInstanceOf(aK, "List[Any]")) | |
282 | + | then aK | |
283 | + | else throw("Couldn't cast Any to List[Any]") | |
284 | + | } | |
285 | + | let O = fromBase58String({ | |
286 | + | let aK = aJ[i] | |
287 | + | if ($isInstanceOf(aK, "String")) | |
288 | + | then aK | |
289 | + | else throw("Couldn't cast Any to String") | |
290 | + | }) | |
291 | + | let ba = { | |
292 | + | let aK = aJ[j] | |
293 | + | if ($isInstanceOf(aK, "String")) | |
294 | + | then aK | |
295 | + | else throw("Couldn't cast Any to String") | |
296 | + | } | |
297 | + | let bb = fromBase58String(ba) | |
298 | + | let bc = { | |
299 | + | let aK = aJ[k] | |
300 | + | if ($isInstanceOf(aK, "String")) | |
301 | + | then aK | |
302 | + | else throw("Couldn't cast Any to String") | |
303 | + | } | |
304 | + | let bd = fromBase58String(bc) | |
305 | + | let aP = parseIntValue({ | |
306 | + | let aK = aJ[l] | |
307 | + | if ($isInstanceOf(aK, "String")) | |
308 | + | then aK | |
309 | + | else throw("Couldn't cast Any to String") | |
310 | + | }) | |
311 | + | let aQ = parseIntValue({ | |
312 | + | let aK = aJ[m] | |
313 | + | if ($isInstanceOf(aK, "String")) | |
314 | + | then aK | |
315 | + | else throw("Couldn't cast Any to String") | |
316 | + | }) | |
317 | + | let be = { | |
318 | + | let aK = aJ[h] | |
319 | + | if ($isInstanceOf(aK, "String")) | |
320 | + | then aK | |
321 | + | else throw("Couldn't cast Any to String") | |
322 | + | } | |
323 | + | let aR = valueOrErrorMessage(assetInfo(O), (("Asset " + toBase58String(O)) + " doesn't exist")).quantity | |
324 | + | let aS = { | |
325 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [ba], nil) | |
326 | + | if ($isInstanceOf(aK, "Int")) | |
327 | + | then aK | |
328 | + | else throw("Couldn't cast Any to Int") | |
329 | + | } | |
330 | + | let aT = { | |
331 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [bc], nil) | |
332 | + | if ($isInstanceOf(aK, "Int")) | |
333 | + | then aK | |
334 | + | else throw("Couldn't cast Any to Int") | |
335 | + | } | |
336 | + | let bf = parseBigIntValue({ | |
337 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [aS, aP], nil) | |
338 | + | if ($isInstanceOf(aK, "String")) | |
339 | + | then aK | |
340 | + | else throw("Couldn't cast Any to String") | |
341 | + | }) | |
342 | + | let bg = parseBigIntValue({ | |
343 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [aT, aQ], nil) | |
344 | + | if ($isInstanceOf(aK, "String")) | |
345 | + | then aK | |
346 | + | else throw("Couldn't cast Any to String") | |
347 | + | }) | |
348 | + | let bh = if ((aR == 0)) | |
349 | + | then f | |
350 | + | else parseBigIntValue({ | |
351 | + | let aK = invoke(aI, "calcPriceBigIntWrapperREADONLY", [toString(bg), toString(bf)], nil) | |
352 | + | if ($isInstanceOf(aK, "String")) | |
353 | + | then aK | |
354 | + | else throw("Couldn't cast Any to String") | |
355 | + | }) | |
356 | + | let aV = { | |
357 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [toString(bh), b], nil) | |
358 | + | if ($isInstanceOf(aK, "Int")) | |
359 | + | then aK | |
360 | + | else throw("Couldn't cast Any to Int") | |
361 | + | } | |
362 | + | let bi = parseBigIntValue({ | |
363 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [aZ, aP], nil) | |
364 | + | if ($isInstanceOf(aK, "String")) | |
365 | + | then aK | |
366 | + | else throw("Couldn't cast Any to String") | |
367 | + | }) | |
368 | + | let bj = fraction(bi, bh, d) | |
369 | + | let bk = { | |
370 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [toString(bj), aQ], nil) | |
371 | + | if ($isInstanceOf(aK, "Int")) | |
372 | + | then aK | |
373 | + | else throw("Couldn't cast Any to Int") | |
374 | + | } | |
375 | + | let bl = invoke(aI, "estimatePutOperationWrapperREADONLY", ["", 500000, aZ, bb, bk, bd, "", true, false], nil) | |
376 | + | let bm = { | |
377 | + | let bn = bl | |
378 | + | if (if ($isInstanceOf(bn._1, "Int")) | |
379 | + | then if ($isInstanceOf(bn._3, "Int")) | |
380 | + | then if ($isInstanceOf(bn._4, "Int")) | |
381 | + | then if ($isInstanceOf(bn._5, "Int")) | |
382 | + | then $isInstanceOf(bn._6, "Int") | |
383 | + | else false | |
384 | + | else false | |
385 | + | else false | |
386 | + | else false) | |
387 | + | then { | |
388 | + | let bo = bn._1 | |
389 | + | let bp = bn._3 | |
390 | + | let bq = bn._4 | |
391 | + | let br = bn._5 | |
392 | + | let bs = bn._6 | |
393 | + | $Tuple5(bo, bp, bq, br, bs) | |
394 | + | } | |
395 | + | else throw("Couldn't cast types") | |
396 | + | } | |
397 | + | let bo = bm._1 | |
398 | + | let bp = bm._2 | |
399 | + | let bq = bm._3 | |
400 | + | let br = bm._4 | |
401 | + | let bs = bm._5 | |
402 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(bo), toString(aV), toString(bq), toString(br), toString(bs), be, toString(aZ), toString(bk)], e)) | |
403 | + | } | |
404 | + | ||
405 | + | ||
406 | + | ||
407 | + | @Callable(S) | |
408 | + | func poolEvaluatePutByPriceAssetREADONLY (aH,bk) = { | |
409 | + | let T = B() | |
410 | + | let aI = addressFromStringValue(s(T, x(aH))) | |
411 | + | let aJ = { | |
412 | + | let aK = invoke(aI, "getPoolConfigWrapperREADONLY", nil, nil) | |
413 | + | if ($isInstanceOf(aK, "List[Any]")) | |
414 | + | then aK | |
415 | + | else throw("Couldn't cast Any to List[Any]") | |
416 | + | } | |
417 | + | let O = fromBase58String({ | |
418 | + | let aK = aJ[i] | |
419 | + | if ($isInstanceOf(aK, "String")) | |
420 | + | then aK | |
421 | + | else throw("Couldn't cast Any to String") | |
422 | + | }) | |
423 | + | let ba = { | |
424 | + | let aK = aJ[j] | |
425 | + | if ($isInstanceOf(aK, "String")) | |
426 | + | then aK | |
427 | + | else throw("Couldn't cast Any to String") | |
428 | + | } | |
429 | + | let bb = fromBase58String(ba) | |
430 | + | let bc = { | |
431 | + | let aK = aJ[k] | |
432 | + | if ($isInstanceOf(aK, "String")) | |
433 | + | then aK | |
434 | + | else throw("Couldn't cast Any to String") | |
435 | + | } | |
436 | + | let bd = fromBase58String(bc) | |
437 | + | let aP = parseIntValue({ | |
438 | + | let aK = aJ[l] | |
439 | + | if ($isInstanceOf(aK, "String")) | |
440 | + | then aK | |
441 | + | else throw("Couldn't cast Any to String") | |
442 | + | }) | |
443 | + | let aQ = parseIntValue({ | |
444 | + | let aK = aJ[m] | |
445 | + | if ($isInstanceOf(aK, "String")) | |
446 | + | then aK | |
447 | + | else throw("Couldn't cast Any to String") | |
448 | + | }) | |
449 | + | let be = { | |
450 | + | let aK = aJ[h] | |
451 | + | if ($isInstanceOf(aK, "String")) | |
452 | + | then aK | |
453 | + | else throw("Couldn't cast Any to String") | |
454 | + | } | |
455 | + | let aR = valueOrErrorMessage(assetInfo(O), (("Asset " + toBase58String(O)) + " doesn't exist")).quantity | |
456 | + | let bt = { | |
457 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [ba], nil) | |
458 | + | if ($isInstanceOf(aK, "Int")) | |
459 | + | then aK | |
460 | + | else throw("Couldn't cast Any to Int") | |
461 | + | } | |
462 | + | let bu = { | |
463 | + | let aK = invoke(aI, "getAccBalanceWrapperREADONLY", [bc], nil) | |
464 | + | if ($isInstanceOf(aK, "Int")) | |
465 | + | then aK | |
466 | + | else throw("Couldn't cast Any to Int") | |
467 | + | } | |
468 | + | let bv = parseBigIntValue({ | |
469 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [bt, aP], nil) | |
470 | + | if ($isInstanceOf(aK, "String")) | |
471 | + | then aK | |
472 | + | else throw("Couldn't cast Any to String") | |
473 | + | }) | |
474 | + | let bw = parseBigIntValue({ | |
475 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [bu, aQ], nil) | |
476 | + | if ($isInstanceOf(aK, "String")) | |
477 | + | then aK | |
478 | + | else throw("Couldn't cast Any to String") | |
479 | + | }) | |
480 | + | let bh = if ((aR == 0)) | |
481 | + | then f | |
482 | + | else parseBigIntValue({ | |
483 | + | let aK = invoke(aI, "calcPriceBigIntWrapperREADONLY", [toString(bw), toString(bv)], nil) | |
484 | + | if ($isInstanceOf(aK, "String")) | |
485 | + | then aK | |
486 | + | else throw("Couldn't cast Any to String") | |
487 | + | }) | |
488 | + | let aV = { | |
489 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [toString(bh), b], nil) | |
490 | + | if ($isInstanceOf(aK, "Int")) | |
491 | + | then aK | |
492 | + | else throw("Couldn't cast Any to Int") | |
493 | + | } | |
494 | + | let bj = parseBigIntValue({ | |
495 | + | let aK = invoke(aI, "toX18WrapperREADONLY", [bk, aQ], nil) | |
496 | + | if ($isInstanceOf(aK, "String")) | |
497 | + | then aK | |
498 | + | else throw("Couldn't cast Any to String") | |
499 | + | }) | |
500 | + | let bi = fraction(bj, d, bh) | |
501 | + | let aZ = { | |
502 | + | let aK = invoke(aI, "fromX18WrapperREADONLY", [toString(bi), aP], nil) | |
503 | + | if ($isInstanceOf(aK, "Int")) | |
504 | + | then aK | |
505 | + | else throw("Couldn't cast Any to Int") | |
506 | + | } | |
507 | + | let bl = invoke(aI, "estimatePutOperationWrapperREADONLY", ["", 500000, aZ, bb, bk, bd, "", true, false], nil) | |
508 | + | let bx = { | |
509 | + | let bn = bl | |
510 | + | if (if ($isInstanceOf(bn._1, "Int")) | |
511 | + | then if ($isInstanceOf(bn._3, "Int")) | |
512 | + | then if ($isInstanceOf(bn._4, "Int")) | |
513 | + | then if ($isInstanceOf(bn._5, "Int")) | |
514 | + | then $isInstanceOf(bn._6, "Int") | |
515 | + | else false | |
516 | + | else false | |
517 | + | else false | |
518 | + | else false) | |
519 | + | then { | |
520 | + | let bo = bn._1 | |
521 | + | let bp = bn._3 | |
522 | + | let bq = bn._4 | |
523 | + | let br = bn._5 | |
524 | + | let bs = bn._6 | |
525 | + | $Tuple5(bo, bp, bq, br, bs) | |
526 | + | } | |
527 | + | else throw("Couldn't cast types") | |
528 | + | } | |
529 | + | let bo = bx._1 | |
530 | + | let bp = bx._2 | |
531 | + | let bq = bx._3 | |
532 | + | let br = bx._4 | |
533 | + | let bs = bx._5 | |
534 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(bo), toString(aV), toString(bq), toString(br), toString(bs), be, toString(aZ), toString(bk)], e)) | |
535 | + | } | |
536 | + | ||
537 | + | ||
538 | + | ||
539 | + | @Callable(S) | |
540 | + | func poolEvaluateGetREADONLY (by,bz) = { | |
541 | + | let T = B() | |
542 | + | let aI = addressFromStringValue(s(T, x(by))) | |
543 | + | let bl = invoke(aI, "estimateGetOperationWrapperREADONLY", ["", by, bz, toString(aI)], nil) | |
544 | + | let bA = { | |
545 | + | let bn = bl | |
546 | + | if (if ($isInstanceOf(bn._1, "Int")) | |
547 | + | then if ($isInstanceOf(bn._2, "Int")) | |
548 | + | then if ($isInstanceOf(bn._5, "Int")) | |
549 | + | then if ($isInstanceOf(bn._6, "Int")) | |
550 | + | then if ($isInstanceOf(bn._7, "Int")) | |
551 | + | then if ($isInstanceOf(bn._8, "String")) | |
552 | + | then $isInstanceOf(bn._9, "String") | |
553 | + | else false | |
554 | + | else false | |
555 | + | else false | |
556 | + | else false | |
557 | + | else false | |
558 | + | else false) | |
559 | + | then { | |
560 | + | let bB = bn._1 | |
561 | + | let bC = bn._2 | |
562 | + | let bq = bn._5 | |
563 | + | let br = bn._6 | |
564 | + | let bs = bn._7 | |
565 | + | let aV = bn._8 | |
566 | + | let be = bn._9 | |
567 | + | $Tuple7(bB, bC, bq, br, bs, aV, be) | |
568 | + | } | |
569 | + | else throw("Couldn't cast types") | |
570 | + | } | |
571 | + | let bB = bA._1 | |
572 | + | let bC = bA._2 | |
573 | + | let bq = bA._3 | |
574 | + | let br = bA._4 | |
575 | + | let bs = bA._5 | |
576 | + | let aV = bA._6 | |
577 | + | let be = bA._7 | |
578 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bB), toString(bC), toString(bq), toString(br), toString(bs), aV, be], e)) | |
315 | 579 | } | |
316 | 580 | ||
317 | 581 |
github/deemru/w8io/026f985 69.76 ms ◑