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