tx · 3nGt3bwf2dGC4w3HPz7dXsP7DfbdMFtFn5ezxYzVhr4h 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.02800000 Waves 2023.08.17 16:29 [2714656] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "3nGt3bwf2dGC4w3HPz7dXsP7DfbdMFtFn5ezxYzVhr4h", "fee": 2800000, "feeAssetId": null, "timestamp": 1692279025176, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "4FF66aZ98GoU8vKdMyfR3cy5rhDLU1sVEHvJ2s7ddE5YajWT43f6QGLnR4hg7utMHvZWN843LpiftRSVhkDh1Bpw" ], "script": "base64:BgL9LQgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIIgZTQ0FMRTgiBU1VTFQ4IgZNVUxUMTIiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiC3dhdmVzU3RyaW5nIhBjb250cmFjdEZpbGVuYW1lIhFkZWNpbWFsc011bHRQcmljZSIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1dGRvd24iEmlkeEludGVybmFs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BAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmZCAQJmQwAEAmZEBAJiZwkBAmJ6AAMJAAECBQJiZwIKQnl0ZVZlY3RvcgQCYkcFAmJnBQJiRwMJAAECBQJiZwIEVW5pdAgFAmZCD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJmQglib2R5Qnl0ZXMJAJEDAggFAmZCBnByb29mcwAABQJmRIROJg4=", "height": 2714656, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FsMwn7j7hKG8RYngfkw1ytMpHno4E3TrQRyWHAGniveX Next: 3Zf7THF2Usw3xNwhyvEWz8j8TXSLVyuqSWr359g8LLg5 Diff:
Old | New | Differences | |
---|---|---|---|
158 | 158 | func as () = makeString(["%s", "oneTokenOperationsDisabled"], m) | |
159 | 159 | ||
160 | 160 | ||
161 | - | func at (aq) = { | |
162 | - | let au = aq | |
163 | - | let an = au._1 | |
164 | - | let ao = au._2 | |
165 | - | makeString(["%d%d%s", toString(an), toString(ao), "swapDisabled"], m) | |
166 | - | } | |
161 | + | func at (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2Pool") | |
167 | 162 | ||
168 | 163 | ||
169 | - | func av () = | |
164 | + | func av (aw,ax) = (((("%d%d%s%s__" + aw) + "__") + ax) + "__mappings__PoolAssets2LpAsset") | |
170 | 165 | ||
171 | 166 | ||
172 | - | func | |
167 | + | func ay (af) = ("%s%s__spread__" + af) | |
173 | 168 | ||
174 | 169 | ||
175 | - | func | |
170 | + | func az (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2PoolAssets") | |
176 | 171 | ||
177 | 172 | ||
178 | - | func aB ( | |
173 | + | func aB (aw,ax) = (((("%d%d%s%s__" + toString(aw)) + "__") + toString(ax)) + "__mappings__poolAssets2PoolContract") | |
179 | 174 | ||
180 | 175 | ||
181 | - | func aC ( | |
176 | + | func aC (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2LpAsset") | |
182 | 177 | ||
183 | 178 | ||
184 | - | func | |
179 | + | func aD (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2PoolContract") | |
185 | 180 | ||
186 | 181 | ||
187 | - | func | |
182 | + | func aE (aF,aG) = ((("%s%s%s__wxEmission__" + aF) + "__") + aG) | |
188 | 183 | ||
189 | 184 | ||
190 | - | func | |
185 | + | func aH (af) = ("%s%s__inFee__" + af) | |
191 | 186 | ||
192 | 187 | ||
193 | - | func | |
188 | + | func aI () = "%s__inFeeDefault" | |
194 | 189 | ||
195 | 190 | ||
196 | - | func | |
191 | + | func aJ (af) = ("%s%s__swapFee__" + af) | |
197 | 192 | ||
198 | 193 | ||
199 | - | func | |
194 | + | func aK (af) = ("%s%s__outFee__" + af) | |
200 | 195 | ||
201 | 196 | ||
202 | - | func | |
197 | + | func aL () = "%s__outFeeDefault" | |
203 | 198 | ||
204 | 199 | ||
205 | - | func | |
200 | + | func aM (af) = ("%s%s__skipOrderValidation__" + af) | |
206 | 201 | ||
207 | 202 | ||
208 | - | func | |
203 | + | func aN (af) = ("%s%s__changeAmpDelay__" + af) | |
209 | 204 | ||
210 | 205 | ||
211 | - | func | |
206 | + | func aO (af) = ("%s%s__changeAmpDelta__" + af) | |
212 | 207 | ||
213 | 208 | ||
214 | - | func | |
209 | + | func aP (af) = ("%s%s__changeAmpTarget__" + af) | |
215 | 210 | ||
216 | 211 | ||
217 | - | func | |
212 | + | func aQ () = "%s__sWavesProxyAddress" | |
218 | 213 | ||
219 | 214 | ||
220 | - | func | |
215 | + | func aR () = "%s__sWavesAssetId" | |
221 | 216 | ||
222 | 217 | ||
223 | - | func | |
218 | + | func aS () = "%s__stakingProfitAddress" | |
224 | 219 | ||
225 | 220 | ||
226 | - | func | |
221 | + | func aT (af,aU) = makeString(["%s%s%s", "leasedRatio", af, aU], m) | |
227 | 222 | ||
228 | 223 | ||
229 | - | func aV () = "%s | |
224 | + | func aV (aU) = makeString(["%s%s", "leasedRatioDefault", aU], m) | |
230 | 225 | ||
231 | 226 | ||
232 | - | func aW (af, | |
227 | + | func aW (af,aU) = makeString(["%s%s%s", "leasedRatioTolerance", af, aU], m) | |
233 | 228 | ||
234 | 229 | ||
235 | - | func | |
230 | + | func aX (af,aU) = makeString(["%s%s%s", "minBalance", af, aU], m) | |
236 | 231 | ||
237 | 232 | ||
238 | - | func | |
233 | + | func aY (aU) = makeString(["%s%s", "minBalanceDefault", aU], m) | |
239 | 234 | ||
240 | 235 | ||
241 | - | func | |
236 | + | func aZ (ba) = valueOrErrorMessage(getString(this, ba), ("No data for this.key=" + ba)) | |
242 | 237 | ||
243 | 238 | ||
244 | - | func bb ( | |
239 | + | func bb (ba) = valueOrErrorMessage(getBoolean(this, ba), ("No data for this.key=" + ba)) | |
245 | 240 | ||
246 | 241 | ||
247 | - | func bc ( | |
242 | + | func bc (ba) = valueOrErrorMessage(getInteger(this, ba), ("No data for this.key=" + ba)) | |
248 | 243 | ||
249 | 244 | ||
250 | - | func be (bd) = valueOrErrorMessage(getBoolean(this, bd), ("No data for this.key=" + bd)) | |
245 | + | func bd (be) = if ((be == j)) | |
246 | + | then unit | |
247 | + | else fromBase58String(be) | |
251 | 248 | ||
252 | 249 | ||
253 | - | func bf (bd) = valueOrErrorMessage(getInteger(this, bd), ("No data for this.key=" + bd)) | |
254 | - | ||
255 | - | ||
256 | - | func bg (bh) = if ((bh == j)) | |
257 | - | then unit | |
258 | - | else fromBase58String(bh) | |
259 | - | ||
260 | - | ||
261 | - | func bi () = { | |
262 | - | let bj = getString(V()) | |
263 | - | if ($isInstanceOf(bj, "String")) | |
250 | + | func bf () = { | |
251 | + | let bg = getString(V()) | |
252 | + | if ($isInstanceOf(bg, "String")) | |
264 | 253 | then { | |
265 | - | let | |
266 | - | addressFromStringValue( | |
254 | + | let bh = bg | |
255 | + | addressFromStringValue(bh) | |
267 | 256 | } | |
268 | 257 | else this | |
269 | 258 | } | |
270 | 259 | ||
271 | 260 | ||
272 | - | let | |
261 | + | let bi = 1 | |
273 | 262 | ||
274 | - | let | |
263 | + | let bj = 2 | |
275 | 264 | ||
276 | - | let | |
265 | + | let bk = 3 | |
277 | 266 | ||
278 | - | let | |
267 | + | let bl = 4 | |
279 | 268 | ||
280 | - | let | |
269 | + | let bm = 5 | |
281 | 270 | ||
282 | - | let | |
271 | + | let bn = 6 | |
283 | 272 | ||
284 | - | let | |
273 | + | let bo = 7 | |
285 | 274 | ||
286 | - | let | |
275 | + | let bp = 8 | |
287 | 276 | ||
288 | - | let | |
277 | + | let bq = 9 | |
289 | 278 | ||
290 | - | let | |
279 | + | let br = 10 | |
291 | 280 | ||
292 | - | let | |
281 | + | let bs = 11 | |
293 | 282 | ||
294 | - | func | |
283 | + | func bt (bu) = addressFromStringValue(bu[bj]) | |
295 | 284 | ||
296 | 285 | ||
297 | - | func | |
286 | + | func bv (bu) = addressFromStringValue(bu[bm]) | |
298 | 287 | ||
299 | 288 | ||
300 | - | func | |
289 | + | func bw (bu) = addressFromStringValue(bu[bi]) | |
301 | 290 | ||
302 | 291 | ||
303 | - | func | |
292 | + | func bx (bu) = addressFromStringValue(bu[br]) | |
304 | 293 | ||
305 | 294 | ||
306 | - | func | |
307 | - | let | |
308 | - | if ($isInstanceOf( | |
295 | + | func by () = { | |
296 | + | let bg = getString(aa()) | |
297 | + | if ($isInstanceOf(bg, "String")) | |
309 | 298 | then { | |
310 | - | let | |
311 | - | if ((size( | |
299 | + | let bh = bg | |
300 | + | if ((size(bh) == 0)) | |
312 | 301 | then nil | |
313 | - | else split_4C( | |
302 | + | else split_4C(bh, m) | |
314 | 303 | } | |
315 | 304 | else nil | |
316 | 305 | } | |
317 | 306 | ||
318 | 307 | ||
319 | - | func | |
320 | - | let | |
321 | - | let | |
322 | - | if ($isInstanceOf( | |
308 | + | func bz () = { | |
309 | + | let bA = bf() | |
310 | + | let bg = getString(bA, U()) | |
311 | + | if ($isInstanceOf(bg, "String")) | |
323 | 312 | then { | |
324 | - | let | |
325 | - | fromBase58String( | |
313 | + | let bh = bg | |
314 | + | fromBase58String(bh) | |
326 | 315 | } | |
327 | - | else if ($isInstanceOf( | |
316 | + | else if ($isInstanceOf(bg, "Unit")) | |
328 | 317 | then unit | |
329 | 318 | else throw("Match error") | |
330 | 319 | } | |
331 | 320 | ||
332 | 321 | ||
333 | - | let | |
322 | + | let bB = K("Permission denied") | |
334 | 323 | ||
335 | - | let | |
324 | + | let bC = K("Test error here") | |
336 | 325 | ||
337 | - | func | |
326 | + | func bD (bE) = if ((bE.caller == this)) | |
338 | 327 | then true | |
339 | - | else | |
328 | + | else bB | |
340 | 329 | ||
341 | 330 | ||
342 | - | func | |
343 | - | let | |
344 | - | if ($isInstanceOf( | |
331 | + | func bF (bE) = { | |
332 | + | let bg = bz() | |
333 | + | if ($isInstanceOf(bg, "ByteVector")) | |
345 | 334 | then { | |
346 | - | let | |
347 | - | if (( | |
335 | + | let bG = bg | |
336 | + | if ((bE.callerPublicKey == bG)) | |
348 | 337 | then true | |
349 | - | else | |
338 | + | else bB | |
350 | 339 | } | |
351 | - | else if ($isInstanceOf( | |
352 | - | then | |
340 | + | else if ($isInstanceOf(bg, "Unit")) | |
341 | + | then bD(bE) | |
353 | 342 | else throw("Match error") | |
354 | 343 | } | |
355 | 344 | ||
356 | 345 | ||
357 | - | func | |
346 | + | func bH (bI,bJ,bK,bL,bM,bN,bO,bP,bQ,bR,bS) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS], m) | |
358 | 347 | ||
359 | 348 | ||
360 | - | func | |
349 | + | func bT (bI,bJ,bK,bL,bM,bN,bO) = makeString(["%s%s%s%s%s%s", bI, bJ, bK, bL, bM, bN, bO], m) | |
361 | 350 | ||
362 | 351 | ||
363 | - | func | |
352 | + | func bU (af,bV,bW,bX,bY,bZ,ca,cb,cc,cd,ce) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", af, bV, bW, bX, bY, toString(bZ), toString(ca), toString(cb), toString(cc), toString(cd), ce], m) | |
364 | 353 | ||
365 | 354 | ||
366 | - | func | |
355 | + | func cf (cg,ch) = makeString(["%d%d", toString(cg), toString(ch)], m) | |
367 | 356 | ||
368 | 357 | ||
369 | - | func | |
370 | - | let | |
371 | - | let an = | |
372 | - | let ao = | |
373 | - | split( | |
358 | + | func ci (af) = { | |
359 | + | let cj = split(aZ(az(af)), m) | |
360 | + | let an = cj[1] | |
361 | + | let ao = cj[2] | |
362 | + | split(aZ(am(an, ao)), m) | |
374 | 363 | } | |
375 | 364 | ||
376 | 365 | ||
377 | - | func | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
366 | + | func ck (cl,cm) = { | |
367 | + | let cn = valueOrElse(getInteger(this, ak(cl)), 0) | |
368 | + | let co = valueOrElse(getInteger(this, ad()), 0) | |
369 | + | let cp = if ((cn == 0)) | |
381 | 370 | then { | |
382 | - | let | |
383 | - | $Tuple3( | |
371 | + | let cq = (co + cm) | |
372 | + | $Tuple3(cq, [IntegerEntry(ad(), cq), IntegerEntry(ak(cl), cq), StringEntry(ai(cq), cl)], true) | |
384 | 373 | } | |
385 | - | else $Tuple3( | |
386 | - | | |
374 | + | else $Tuple3(cn, nil, false) | |
375 | + | cp | |
387 | 376 | } | |
388 | 377 | ||
389 | 378 | ||
390 | - | func | |
391 | - | let | |
392 | - | if (containsElement( | |
379 | + | func cr (bE) = { | |
380 | + | let cs = split(valueOrElse(getString(W()), n), m) | |
381 | + | if (containsElement(cs, toBase58String(bE.callerPublicKey))) | |
393 | 382 | then true | |
394 | 383 | else { | |
395 | - | let | |
396 | - | if (( | |
384 | + | let ct = bF(bE) | |
385 | + | if ((ct == ct)) | |
397 | 386 | then true | |
398 | 387 | else throw("Strict value is not equal to itself.") | |
399 | 388 | } | |
400 | 389 | } | |
401 | 390 | ||
402 | 391 | ||
403 | - | func | |
392 | + | func cu (ba,cv,cw) = valueOrElse(getInteger(this, ba), valueOrElse(getInteger(this, cv), cw)) | |
404 | 393 | ||
405 | 394 | ||
406 | - | func | |
407 | - | let an = getInteger(ak( | |
408 | - | let ao = getInteger(ak( | |
395 | + | func cx (aF,aG) = { | |
396 | + | let an = getInteger(ak(aF)) | |
397 | + | let ao = getInteger(ak(aG)) | |
409 | 398 | if (if ((an == unit)) | |
410 | 399 | then true | |
411 | 400 | else (ao == unit)) | |
412 | 401 | then false | |
413 | 402 | else { | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
403 | + | let cy = toString(value(an)) | |
404 | + | let cz = toString(value(ao)) | |
405 | + | let cA = getString(am(cy, cz)) | |
406 | + | let cB = getString(am(cz, cy)) | |
407 | + | let cC = if ((cA != unit)) | |
419 | 408 | then true | |
420 | - | else ( | |
421 | - | | |
409 | + | else (cB != unit) | |
410 | + | cC | |
422 | 411 | } | |
423 | 412 | } | |
424 | 413 | ||
425 | 414 | ||
426 | - | func | |
427 | - | let | |
428 | - | let | |
429 | - | if ($isInstanceOf( | |
415 | + | func cD (aA) = { | |
416 | + | let cj = { | |
417 | + | let bg = getString(az(aA)) | |
418 | + | if ($isInstanceOf(bg, "String")) | |
430 | 419 | then { | |
431 | - | let | |
432 | - | split( | |
420 | + | let bh = bg | |
421 | + | split(bh, m) | |
433 | 422 | } | |
434 | - | else K(makeString([ | |
423 | + | else K(makeString([aA, "pool is not found"], " ")) | |
435 | 424 | } | |
436 | - | let an = parseIntValue( | |
437 | - | let ao = parseIntValue( | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | $Tuple5( | |
425 | + | let an = parseIntValue(cj[1]) | |
426 | + | let ao = parseIntValue(cj[2]) | |
427 | + | let aF = getStringValue(ai(an)) | |
428 | + | let aG = getStringValue(ai(ao)) | |
429 | + | let bW = getStringValue(aC(aA)) | |
430 | + | $Tuple5(aF, aG, bW, an, ao) | |
442 | 431 | } | |
443 | 432 | ||
444 | 433 | ||
445 | - | func | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let an = | |
451 | - | let ao = | |
452 | - | let | |
453 | - | let | |
454 | - | | |
434 | + | func cE (aA) = { | |
435 | + | let cF = cD(aA) | |
436 | + | let aF = cF._1 | |
437 | + | let aG = cF._2 | |
438 | + | let bW = cF._3 | |
439 | + | let an = cF._4 | |
440 | + | let ao = cF._5 | |
441 | + | let cG = addressFromStringValue(getStringValue(Z())) | |
442 | + | let cH = invoke(cG, "getPoolCreatorREADONLY", [aF, aG], nil) | |
443 | + | cH | |
455 | 444 | } | |
456 | 445 | ||
457 | 446 | ||
458 | - | func | |
459 | - | let | |
460 | - | if (( | |
461 | - | then wavesBalance( | |
447 | + | func cI (cJ,cK) = { | |
448 | + | let cL = addressFromStringValue(cJ) | |
449 | + | if ((cK == "WAVES")) | |
450 | + | then wavesBalance(cL).regular | |
462 | 451 | else { | |
463 | - | let | |
464 | - | assetBalance( | |
452 | + | let aU = fromBase58String(cK) | |
453 | + | assetBalance(cL, aU) | |
465 | 454 | } | |
466 | 455 | } | |
467 | 456 | ||
468 | 457 | ||
469 | - | func | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let an = | |
475 | - | let ao = | |
476 | - | if (( | |
477 | - | then ( | |
458 | + | func cM (aA) = { | |
459 | + | let cN = cD(aA) | |
460 | + | let aF = cN._1 | |
461 | + | let aG = cN._2 | |
462 | + | let bW = cN._3 | |
463 | + | let an = cN._4 | |
464 | + | let ao = cN._5 | |
465 | + | if ((cI(aA, aF) == 0)) | |
466 | + | then (cI(aA, aG) == 0) | |
478 | 467 | else false | |
479 | 468 | } | |
480 | 469 | ||
481 | 470 | ||
482 | - | @Callable( | |
483 | - | func getSwapContractREADONLY () = $Tuple2(nil, | |
471 | + | @Callable(bE) | |
472 | + | func getSwapContractREADONLY () = $Tuple2(nil, aZ(N())) | |
484 | 473 | ||
485 | 474 | ||
486 | 475 | ||
487 | - | @Callable( | |
488 | - | func getPoolLeaseConfigREADONLY (af, | |
489 | - | let | |
490 | - | let | |
491 | - | if ($isInstanceOf( | |
476 | + | @Callable(bE) | |
477 | + | func getPoolLeaseConfigREADONLY (af,aU) = { | |
478 | + | let cO = { | |
479 | + | let bg = getInteger(this, aT(af, aU)) | |
480 | + | if ($isInstanceOf(bg, "Int")) | |
492 | 481 | then { | |
493 | - | let | |
494 | - | $Tuple2(true, min([100, max([0, | |
482 | + | let cP = bg | |
483 | + | $Tuple2(true, min([100, max([0, cP])])) | |
495 | 484 | } | |
496 | 485 | else { | |
497 | - | let | |
498 | - | if ($isInstanceOf( | |
486 | + | let cQ = getInteger(this, aV(aU)) | |
487 | + | if ($isInstanceOf(cQ, "Int")) | |
499 | 488 | then { | |
500 | - | let | |
501 | - | $Tuple2(true, min([100, max([0, | |
489 | + | let cR = cQ | |
490 | + | $Tuple2(true, min([100, max([0, cR])])) | |
502 | 491 | } | |
503 | 492 | else $Tuple2(false, 0) | |
504 | 493 | } | |
505 | 494 | } | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | if ($isInstanceOf( | |
495 | + | let cS = cO._1 | |
496 | + | let cT = cO._2 | |
497 | + | let cU = { | |
498 | + | let bg = getInteger(this, aX(af, aU)) | |
499 | + | if ($isInstanceOf(bg, "Int")) | |
511 | 500 | then { | |
512 | - | let | |
513 | - | max([0, | |
501 | + | let cV = bg | |
502 | + | max([0, cV]) | |
514 | 503 | } | |
515 | 504 | else { | |
516 | - | let | |
517 | - | if ($isInstanceOf( | |
505 | + | let cQ = getInteger(this, aY(aU)) | |
506 | + | if ($isInstanceOf(cQ, "Int")) | |
518 | 507 | then { | |
519 | - | let | |
520 | - | max([0, | |
508 | + | let cW = cQ | |
509 | + | max([0, cW]) | |
521 | 510 | } | |
522 | 511 | else 0 | |
523 | 512 | } | |
524 | 513 | } | |
525 | - | let | |
526 | - | then $Tuple3(valueOrElse(getString(this, | |
514 | + | let cX = if ((aU == "WAVES")) | |
515 | + | then $Tuple3(valueOrElse(getString(this, aQ()), ""), getString(this, valueOrElse(aR(), "")), c) | |
527 | 516 | else $Tuple3("", "", 0) | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | $Tuple2(nil, $Tuple7( | |
517 | + | let cY = cX._1 | |
518 | + | let cZ = cX._2 | |
519 | + | let da = cX._3 | |
520 | + | let db = valueOrElse(getString(this, aS()), "") | |
521 | + | $Tuple2(nil, $Tuple7(cS, cT, cU, cY, cZ, da, db)) | |
533 | 522 | } | |
534 | 523 | ||
535 | 524 | ||
536 | 525 | ||
537 | - | @Callable( | |
538 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
539 | - | then ( | |
526 | + | @Callable(bE) | |
527 | + | func getLpAssetFromPoolAssetsREADONLY (dc,dd) = if (if ((dc == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
528 | + | then (dd == "WAVES") | |
540 | 529 | else false) | |
541 | 530 | then $Tuple2(nil, unit) | |
542 | 531 | else { | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
532 | + | let de = value(getInteger(this, ak(dc))) | |
533 | + | let df = value(getInteger(this, ak(dd))) | |
534 | + | let dg = getString(this, av(toString(de), toString(df))) | |
535 | + | let dh = if ((dg == unit)) | |
547 | 536 | then unit | |
548 | - | else drop(value( | |
549 | - | $Tuple2(nil, | |
537 | + | else drop(value(dg), 4) | |
538 | + | $Tuple2(nil, dh) | |
550 | 539 | } | |
551 | 540 | ||
552 | 541 | ||
553 | 542 | ||
554 | - | @Callable( | |
555 | - | func getPoolAddressFromLpAssetREADONLY ( | |
543 | + | @Callable(bE) | |
544 | + | func getPoolAddressFromLpAssetREADONLY (di) = $Tuple2(nil, valueOrElse(getString(this, aD(di)), "")) | |
556 | 545 | ||
557 | 546 | ||
558 | 547 | ||
559 | - | @Callable( | |
560 | - | func constructor ( | |
561 | - | let | |
562 | - | if (( | |
563 | - | then [StringEntry(O(), | |
548 | + | @Callable(bE) | |
549 | + | func constructor (dj,dk,bK,bL,bM,bN,dl,dm) = { | |
550 | + | let dn = bF(bE) | |
551 | + | if ((dn == dn)) | |
552 | + | then [StringEntry(O(), bT(dj, dk, bK, bL, bM, bN, dl)), IntegerEntry(ab(), dm)] | |
564 | 553 | else throw("Strict value is not equal to itself.") | |
565 | 554 | } | |
566 | 555 | ||
567 | 556 | ||
568 | 557 | ||
569 | - | @Callable( | |
570 | - | func constructorV2 ( | |
571 | - | let | |
572 | - | if (( | |
558 | + | @Callable(bE) | |
559 | + | func constructorV2 (do) = { | |
560 | + | let dn = bF(bE) | |
561 | + | if ((dn == dn)) | |
573 | 562 | then { | |
574 | - | let | |
575 | - | if (( | |
576 | - | then [StringEntry(R(), | |
563 | + | let dp = addressFromPublicKey(fromBase58String(do)) | |
564 | + | if ((dp == dp)) | |
565 | + | then [StringEntry(R(), do)] | |
577 | 566 | else throw("Strict value is not equal to itself.") | |
578 | 567 | } | |
579 | 568 | else throw("Strict value is not equal to itself.") | |
581 | 570 | ||
582 | 571 | ||
583 | 572 | ||
584 | - | @Callable( | |
585 | - | func constructorV3 (bS | |
586 | - | let | |
587 | - | if (( | |
573 | + | @Callable(bE) | |
574 | + | func constructorV3 (bP,bQ,bR,bS) = { | |
575 | + | let dn = bF(bE) | |
576 | + | if ((dn == dn)) | |
588 | 577 | then { | |
589 | - | let | |
590 | - | [StringEntry(O(), | |
578 | + | let bu = split(aZ(O()), m) | |
579 | + | [StringEntry(O(), bH(bu[1], bu[2], bu[3], bu[4], bu[5], bu[6], bu[7], bP, bQ, bR, bS))] | |
591 | 580 | } | |
592 | 581 | else throw("Strict value is not equal to itself.") | |
593 | 582 | } | |
594 | 583 | ||
595 | 584 | ||
596 | 585 | ||
597 | - | @Callable( | |
598 | - | func constructorV4 ( | |
599 | - | let | |
600 | - | if (( | |
601 | - | then [StringEntry(S(), | |
586 | + | @Callable(bE) | |
587 | + | func constructorV4 (dq,dr) = { | |
588 | + | let dn = bF(bE) | |
589 | + | if ((dn == dn)) | |
590 | + | then [StringEntry(S(), dq), StringEntry(T(), makeString(dr, m))] | |
602 | 591 | else throw("Strict value is not equal to itself.") | |
603 | 592 | } | |
604 | 593 | ||
605 | 594 | ||
606 | 595 | ||
607 | - | @Callable( | |
608 | - | func constructorV5 ( | |
609 | - | let | |
610 | - | if (( | |
611 | - | then [StringEntry(X(), | |
596 | + | @Callable(bE) | |
597 | + | func constructorV5 (ds) = { | |
598 | + | let dn = bF(bE) | |
599 | + | if ((dn == dn)) | |
600 | + | then [StringEntry(X(), ds)] | |
612 | 601 | else throw("Strict value is not equal to itself.") | |
613 | 602 | } | |
614 | 603 | ||
615 | 604 | ||
616 | 605 | ||
617 | - | @Callable( | |
618 | - | func constructorV6 ( | |
619 | - | let | |
606 | + | @Callable(bE) | |
607 | + | func constructorV6 (dt,du) = { | |
608 | + | let dv = [bF(bE), if ((addressFromString(dt) != unit)) | |
620 | 609 | then true | |
621 | 610 | else "invalid voting emission contract address"] | |
622 | - | if (( | |
623 | - | then [StringEntry(Y(), | |
611 | + | if ((dv == dv)) | |
612 | + | then [StringEntry(Y(), dt), StringEntry(aa(), makeString(du, m))] | |
624 | 613 | else throw("Strict value is not equal to itself.") | |
625 | 614 | } | |
626 | 615 | ||
627 | 616 | ||
628 | 617 | ||
629 | - | @Callable( | |
630 | - | func setAdmins ( | |
631 | - | let | |
632 | - | if (( | |
633 | - | then [StringEntry(W(), makeString( | |
618 | + | @Callable(bE) | |
619 | + | func setAdmins (dw) = { | |
620 | + | let dn = bF(bE) | |
621 | + | if ((dn == dn)) | |
622 | + | then [StringEntry(W(), makeString(dw, m))] | |
634 | 623 | else throw("Strict value is not equal to itself.") | |
635 | 624 | } | |
636 | 625 | ||
637 | 626 | ||
638 | 627 | ||
639 | - | @Callable( | |
640 | - | func activateNewPool (af, | |
641 | - | let | |
642 | - | if (( | |
643 | - | then if (isDefined(getString( | |
628 | + | @Callable(bE) | |
629 | + | func activateNewPool (af,bX,bY,dx,dy,dz,ce,dA) = { | |
630 | + | let dn = cr(bE) | |
631 | + | if ((dn == dn)) | |
632 | + | then if (isDefined(getString(az(af)))) | |
644 | 633 | then K((("Pool address " + af) + " already registered.")) | |
645 | 634 | else { | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
635 | + | let dB = ck(bX, 1) | |
636 | + | let dC = dB._1 | |
637 | + | let dD = ck(bY, if (dB._3) | |
649 | 638 | then 2 | |
650 | 639 | else 1) | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | if ( | |
656 | - | then K((((("Pool " + | |
640 | + | let dE = dD._1 | |
641 | + | let dF = valueOrErrorMessage(scriptHash(addressFromStringValue(af)), ("No script has been found on pool account " + af)) | |
642 | + | let dG = getBinaryValue(Q()) | |
643 | + | let dH = cx(bX, bY) | |
644 | + | if (dH) | |
645 | + | then K((((("Pool " + bX) + "/") + bY) + " has already been activated.")) | |
657 | 646 | else { | |
658 | - | let | |
659 | - | let | |
647 | + | let dI = value(getString(this, am(toString(dC), toString(dE)))) | |
648 | + | let dJ = if ((bX == "WAVES")) | |
660 | 649 | then l | |
661 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
662 | - | let | |
650 | + | else pow(10, 0, value(assetInfo(fromBase58String(bX))).decimals, 0, 0, DOWN) | |
651 | + | let dK = if ((bY == "WAVES")) | |
663 | 652 | then l | |
664 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | if (( | |
670 | - | then if (( | |
653 | + | else pow(10, 0, value(assetInfo(fromBase58String(bY))).decimals, 0, 0, DOWN) | |
654 | + | let dL = Issue(dx, dy, 1, 8, true) | |
655 | + | let bW = calculateAssetId(dL) | |
656 | + | let dM = toBase58String(bW) | |
657 | + | let dN = invoke(addressFromStringValue(af), "activate", [bX, bY], nil) | |
658 | + | if ((dN == dN)) | |
659 | + | then if ((dN != "success")) | |
671 | 660 | then K("Pool initialisation error happened.") | |
672 | 661 | else { | |
673 | - | let | |
674 | - | let | |
675 | - | if (( | |
662 | + | let ds = addressFromStringValue(aZ(X())) | |
663 | + | let dO = invoke(ds, "createOrUpdate", [dM, dx, false], nil) | |
664 | + | if ((dO == dO)) | |
676 | 665 | then { | |
677 | - | let | |
678 | - | if (( | |
666 | + | let dP = invoke(ds, "addLabel", [dM, h], nil) | |
667 | + | if ((dP == dP)) | |
679 | 668 | then { | |
680 | - | let | |
681 | - | if (( | |
669 | + | let dQ = invoke(ds, "setLogo", [dM, dA], nil) | |
670 | + | if ((dQ == dQ)) | |
682 | 671 | then { | |
683 | - | let | |
684 | - | if (( | |
672 | + | let dR = invoke(ds, "addAssetsLink", [bX, bY, dM], nil) | |
673 | + | if ((dR == dR)) | |
685 | 674 | then { | |
686 | - | let | |
687 | - | if (( | |
688 | - | then $Tuple2((( | |
675 | + | let dS = invoke(ds, "increaseAssetPoolsNumber", [bX], nil) | |
676 | + | if ((dS == dS)) | |
677 | + | then $Tuple2(((dB._2 ++ dD._2) ++ [dL, Burn(bW, 1), StringEntry(am(toString(dC), toString(dE)), bU(af, toString(o), dM, bX, bY, dJ, dK, dC, dE, l, ce)), StringEntry(at(dM), cf(dC, dE)), StringEntry(av(toString(dC), toString(dE)), ("%s__" + dM)), StringEntry(az(af), cf(dC, dE)), StringEntry(aB(dC, dE), af), StringEntry(aD(dM), af), StringEntry(aC(af), dM), IntegerEntry(ae(af), dz), IntegerEntry(ay(af), i)]), dM) | |
689 | 678 | else throw("Strict value is not equal to itself.") | |
690 | 679 | } | |
691 | 680 | else throw("Strict value is not equal to itself.") | |
704 | 693 | ||
705 | 694 | ||
706 | 695 | ||
707 | - | @Callable( | |
708 | - | func managePool (af, | |
709 | - | let | |
710 | - | if (( | |
696 | + | @Callable(bE) | |
697 | + | func managePool (af,dT) = { | |
698 | + | let dn = bF(bE) | |
699 | + | if ((dn == dn)) | |
711 | 700 | then { | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | [StringEntry(am(toString( | |
701 | + | let dU = ci(af) | |
702 | + | let bV = dU[w] | |
703 | + | let dM = dU[x] | |
704 | + | let bX = dU[y] | |
705 | + | let bY = dU[z] | |
706 | + | let dJ = parseIntValue(dU[A]) | |
707 | + | let dK = parseIntValue(dU[B]) | |
708 | + | let dC = parseIntValue(dU[C]) | |
709 | + | let dE = parseIntValue(dU[D]) | |
710 | + | let dV = parseIntValue(dU[E]) | |
711 | + | let ce = dU[F] | |
712 | + | [StringEntry(am(toString(dC), toString(dE)), bU(af, toString(dT), dM, bX, bY, dJ, dK, dC, dE, dV, ce))] | |
724 | 713 | } | |
725 | 714 | else throw("Strict value is not equal to itself.") | |
726 | 715 | } | |
727 | 716 | ||
728 | 717 | ||
729 | 718 | ||
730 | - | @Callable( | |
731 | - | func emit ( | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | if ((0 >= | |
719 | + | @Callable(bE) | |
720 | + | func emit (dW) = { | |
721 | + | let dX = bE.caller | |
722 | + | let dY = bE.originCaller | |
723 | + | let dZ = valueOrErrorMessage(getString(aC(toString(dX))), "Invalid LP address called me.") | |
724 | + | let ea = fromBase58String(dZ) | |
725 | + | let dr = split(valueOrElse(getString(T()), n), m) | |
726 | + | let dq = addressFromStringValue(valueOrErrorMessage(getString(S()), "Legacy factory contract does not exists.")) | |
727 | + | if ((0 >= dW)) | |
739 | 728 | then nil | |
740 | - | else if (containsElement( | |
741 | - | then $Tuple2(nil, | |
742 | - | else $Tuple2([Reissue( | |
729 | + | else if (containsElement(dr, toString(dX))) | |
730 | + | then $Tuple2(nil, dq) | |
731 | + | else $Tuple2([Reissue(ea, dW, true), ScriptTransfer(bE.caller, dW, ea)], "success") | |
743 | 732 | } | |
744 | 733 | ||
745 | 734 | ||
746 | 735 | ||
747 | - | @Callable( | |
748 | - | func burn ( | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | if (( | |
736 | + | @Callable(bE) | |
737 | + | func burn (eb) = { | |
738 | + | let dX = bE.caller | |
739 | + | let dY = bE.originCaller | |
740 | + | let ec = value(bE.payments[0]) | |
741 | + | let ed = value(ec.amount) | |
742 | + | let ee = toBase58String(value(ec.assetId)) | |
743 | + | let ef = valueOrErrorMessage(getString(aC(toString(dX))), "Invalid LP address called me.") | |
744 | + | if ((ee != ef)) | |
756 | 745 | then K("Invalid asset passed.") | |
757 | - | else if (( | |
746 | + | else if ((eb != ed)) | |
758 | 747 | then K("Invalid amount passed.") | |
759 | 748 | else { | |
760 | - | let | |
761 | - | $Tuple2([Burn( | |
749 | + | let ea = fromBase58String(ef) | |
750 | + | $Tuple2([Burn(ea, eb)], "success") | |
762 | 751 | } | |
763 | 752 | } | |
764 | 753 | ||
765 | 754 | ||
766 | 755 | ||
767 | - | @Callable( | |
768 | - | func modifyWeight ( | |
769 | - | let | |
756 | + | @Callable(bE) | |
757 | + | func modifyWeight (bW,eg) = { | |
758 | + | let dn = if ((toBase58String(bE.caller.bytes) == valueOrElse(getString(this, Y()), ""))) | |
770 | 759 | then true | |
771 | - | else | |
772 | - | if (( | |
760 | + | else bF(bE) | |
761 | + | if ((dn == dn)) | |
773 | 762 | then { | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | if (( | |
763 | + | let aA = aZ(aD(bW)) | |
764 | + | let eh = ae(aA) | |
765 | + | let ei = ae(g) | |
766 | + | let ej = valueOrElse(getInteger(ei), 0) | |
767 | + | let dz = valueOrElse(getInteger(eh), 0) | |
768 | + | let ek = eg | |
769 | + | let bu = split(aZ(O()), m) | |
770 | + | let dj = bw(bu) | |
771 | + | let el = invoke(dj, "onModifyWeight", [bW, aA], nil) | |
772 | + | if ((el == el)) | |
784 | 773 | then { | |
785 | - | let | |
774 | + | let em = if ((ej == 0)) | |
786 | 775 | then nil | |
787 | - | else [IntegerEntry( | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
776 | + | else [IntegerEntry(ei, 0)] | |
777 | + | let en = ag(aA, 0) | |
778 | + | let eo = getInteger(en) | |
779 | + | let ep = if ((eo == unit)) | |
791 | 780 | then nil | |
792 | - | else [DeleteEntry( | |
793 | - | (([IntegerEntry( | |
781 | + | else [DeleteEntry(en)] | |
782 | + | (([IntegerEntry(eh, ek)] ++ em) ++ ep) | |
794 | 783 | } | |
795 | 784 | else throw("Strict value is not equal to itself.") | |
796 | 785 | } | |
799 | 788 | ||
800 | 789 | ||
801 | 790 | ||
802 | - | @Callable( | |
803 | - | func modifyWeights (et | |
804 | - | let | |
805 | - | if (( | |
791 | + | @Callable(bE) | |
792 | + | func modifyWeights (eq,er,es,et) = { | |
793 | + | let dn = bF(bE) | |
794 | + | if ((dn == dn)) | |
806 | 795 | then { | |
807 | - | let ex = ((5 * f) / 100) | |
808 | - | let ey = ((5 * f) / 100) | |
809 | - | let ez = ((5 * f) / 100) | |
810 | - | let bx = split(bc(O()), m) | |
811 | - | let eA = bz(bx) | |
812 | - | let eB = bA(bx) | |
796 | + | let eu = ((5 * f) / 100) | |
797 | + | let ev = ((5 * f) / 100) | |
798 | + | let ew = ((5 * f) / 100) | |
799 | + | let bu = split(aZ(O()), m) | |
800 | + | let ex = bw(bu) | |
801 | + | let ey = bx(bu) | |
802 | + | let ez = ae(eq) | |
803 | + | let eA = ae(er) | |
804 | + | let eB = ae(es) | |
813 | 805 | let eC = ae(et) | |
814 | - | let eD = ae(eu) | |
815 | - | let eE = ae(ev) | |
816 | - | let eF = ae(ew) | |
817 | - | let eG = bf(eC) | |
818 | - | let eH = bf(eD) | |
819 | - | let eI = (eG - ez) | |
820 | - | let eJ = (eH - ez) | |
821 | - | if ((0 >= eI)) | |
822 | - | then K(("invalid btcWeightNew: " + toString(eI))) | |
823 | - | else if ((0 >= eJ)) | |
824 | - | then K(("invalid ethWeightNew: " + toString(eJ))) | |
806 | + | let eD = bc(ez) | |
807 | + | let eE = bc(eA) | |
808 | + | let eF = (eD - ew) | |
809 | + | let eG = (eE - ew) | |
810 | + | if ((0 >= eF)) | |
811 | + | then K(("invalid btcWeightNew: " + toString(eF))) | |
812 | + | else if ((0 >= eG)) | |
813 | + | then K(("invalid ethWeightNew: " + toString(eG))) | |
825 | 814 | else { | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | if (( | |
815 | + | let eH = aZ(aC(eq)) | |
816 | + | let eI = aZ(aC(er)) | |
817 | + | let eJ = aZ(aC(es)) | |
818 | + | let eK = aZ(aC(et)) | |
819 | + | let eL = invoke(ex, "onModifyWeight", [eH, eq], nil) | |
820 | + | if ((eL == eL)) | |
832 | 821 | then { | |
833 | - | let | |
834 | - | if (( | |
822 | + | let eM = invoke(ex, "onModifyWeight", [eI, er], nil) | |
823 | + | if ((eM == eM)) | |
835 | 824 | then { | |
836 | - | let | |
837 | - | if (( | |
825 | + | let eN = invoke(ex, "onModifyWeight", [eJ, es], nil) | |
826 | + | if ((eN == eN)) | |
838 | 827 | then { | |
839 | - | let | |
840 | - | if (( | |
841 | - | then [IntegerEntry( | |
828 | + | let eO = invoke(ex, "onModifyWeight", [eK, et], nil) | |
829 | + | if ((eO == eO)) | |
830 | + | then [IntegerEntry(ez, eF), IntegerEntry(eA, eG), IntegerEntry(eB, eu), IntegerEntry(eC, ev), IntegerEntry(ag(eq, 0), eD), IntegerEntry(ag(er, 0), eE), IntegerEntry(ag(es, 0), eu), IntegerEntry(ag(et, 0), ev)] | |
842 | 831 | else throw("Strict value is not equal to itself.") | |
843 | 832 | } | |
844 | 833 | else throw("Strict value is not equal to itself.") | |
853 | 842 | ||
854 | 843 | ||
855 | 844 | ||
856 | - | @Callable( | |
857 | - | func checkWxEmissionPoolLabel ( | |
858 | - | let | |
859 | - | let | |
860 | - | if ($isInstanceOf( | |
845 | + | @Callable(bE) | |
846 | + | func checkWxEmissionPoolLabel (aF,aG) = { | |
847 | + | let eP = { | |
848 | + | let bg = getBoolean(aE(aF, aG)) | |
849 | + | if ($isInstanceOf(bg, "Boolean")) | |
861 | 850 | then { | |
862 | - | let | |
863 | - | | |
851 | + | let cV = bg | |
852 | + | cV | |
864 | 853 | } | |
865 | 854 | else false | |
866 | 855 | } | |
867 | - | $Tuple2(nil, | |
856 | + | $Tuple2(nil, eP) | |
868 | 857 | } | |
869 | 858 | ||
870 | 859 | ||
871 | 860 | ||
872 | - | @Callable( | |
873 | - | func setWxEmissionPoolLabel ( | |
874 | - | let | |
875 | - | if (( | |
876 | - | then $Tuple2([BooleanEntry( | |
861 | + | @Callable(bE) | |
862 | + | func setWxEmissionPoolLabel (aF,aG) = { | |
863 | + | let dn = cr(bE) | |
864 | + | if ((dn == dn)) | |
865 | + | then $Tuple2([BooleanEntry(aE(aF, aG), true)], unit) | |
877 | 866 | else throw("Strict value is not equal to itself.") | |
878 | 867 | } | |
879 | 868 | ||
880 | 869 | ||
881 | 870 | ||
882 | - | @Callable( | |
883 | - | func deleteWxEmissionPoolLabel ( | |
884 | - | let | |
871 | + | @Callable(bE) | |
872 | + | func deleteWxEmissionPoolLabel (aF,aG) = { | |
873 | + | let dn = if ((bE.caller == this)) | |
885 | 874 | then true | |
886 | - | else | |
887 | - | if (( | |
888 | - | then $Tuple2([DeleteEntry( | |
875 | + | else cr(bE) | |
876 | + | if ((dn == dn)) | |
877 | + | then $Tuple2([DeleteEntry(aE(aF, aG))], unit) | |
889 | 878 | else throw("Strict value is not equal to itself.") | |
890 | 879 | } | |
891 | 880 | ||
892 | 881 | ||
893 | 882 | ||
894 | - | @Callable( | |
895 | - | func onVerificationLoss ( | |
896 | - | let | |
883 | + | @Callable(bE) | |
884 | + | func onVerificationLoss (aU) = { | |
885 | + | let dn = if ((toBase58String(bE.caller.bytes) == valueOrElse(getString(this, X()), ""))) | |
897 | 886 | then true | |
898 | - | else | |
899 | - | if (( | |
887 | + | else bF(bE) | |
888 | + | if ((dn == dn)) | |
900 | 889 | then { | |
901 | - | let | |
902 | - | let | |
890 | + | let du = by() | |
891 | + | let eQ = if ((size(du) > 0)) | |
903 | 892 | then true | |
904 | 893 | else K("invalid price assets") | |
905 | - | if (( | |
894 | + | if ((eQ == eQ)) | |
906 | 895 | then { | |
907 | - | func | |
908 | - | let | |
909 | - | if (( | |
896 | + | func eR (eS,eT) = { | |
897 | + | let cP = invoke(this, "deleteWxEmissionPoolLabel", [aU, eT], nil) | |
898 | + | if ((cP == cP)) | |
910 | 899 | then unit | |
911 | 900 | else throw("Strict value is not equal to itself.") | |
912 | 901 | } | |
913 | 902 | ||
914 | - | let | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | func | |
919 | - | then | |
920 | - | else | |
903 | + | let eU = { | |
904 | + | let eV = du | |
905 | + | let eW = size(eV) | |
906 | + | let eX = unit | |
907 | + | func eY (eZ,fa) = if ((fa >= eW)) | |
908 | + | then eZ | |
909 | + | else eR(eZ, eV[fa]) | |
921 | 910 | ||
922 | - | func | |
923 | - | then | |
911 | + | func fb (eZ,fa) = if ((fa >= eW)) | |
912 | + | then eZ | |
924 | 913 | else throw("List size exceeds 13") | |
925 | 914 | ||
926 | - | | |
915 | + | fb(eY(eY(eY(eY(eY(eY(eY(eY(eY(eY(eY(eY(eY(eX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13) | |
927 | 916 | } | |
928 | - | if (( | |
917 | + | if ((eU == eU)) | |
929 | 918 | then $Tuple2(nil, unit) | |
930 | 919 | else throw("Strict value is not equal to itself.") | |
931 | 920 | } | |
936 | 925 | ||
937 | 926 | ||
938 | 927 | ||
939 | - | @Callable( | |
928 | + | @Callable(bE) | |
940 | 929 | func isPoolOneTokenOperationsDisabledREADONLY (af) = { | |
941 | - | let | |
942 | - | let aq = $Tuple2(parseIntValue( | |
943 | - | let | |
944 | - | let | |
945 | - | $Tuple2(nil, if ( | |
930 | + | let dU = ci(af) | |
931 | + | let aq = $Tuple2(parseIntValue(dU[C]), parseIntValue(dU[D])) | |
932 | + | let fc = valueOrElse(getBoolean(ap(aq)), false) | |
933 | + | let fd = valueOrElse(getBoolean(as()), false) | |
934 | + | $Tuple2(nil, if (fd) | |
946 | 935 | then true | |
947 | - | else | |
936 | + | else fc) | |
948 | 937 | } | |
949 | 938 | ||
950 | 939 | ||
951 | 940 | ||
952 | - | @Callable(bH) | |
953 | - | func isPoolSwapDisabledREADONLY (af) = { | |
954 | - | let dX = cl(af) | |
955 | - | let aq = $Tuple2(parseIntValue(dX[C]), parseIntValue(dX[D])) | |
956 | - | let fh = valueOrElse(getBoolean(at(aq)), false) | |
957 | - | let fi = valueOrElse(getBoolean(av()), false) | |
958 | - | $Tuple2(nil, if (fi) | |
959 | - | then true | |
960 | - | else fh) | |
941 | + | @Callable(bE) | |
942 | + | func getInFeeREADONLY (af) = { | |
943 | + | let fe = cu(aH(af), aI(), 0) | |
944 | + | $Tuple2(nil, fe) | |
961 | 945 | } | |
962 | 946 | ||
963 | 947 | ||
964 | 948 | ||
965 | - | @Callable( | |
966 | - | func | |
967 | - | let | |
968 | - | $Tuple2(nil, | |
949 | + | @Callable(bE) | |
950 | + | func getOutFeeREADONLY (af) = { | |
951 | + | let fe = cu(aK(af), aL(), fraction(10, b, 10000)) | |
952 | + | $Tuple2(nil, fe) | |
969 | 953 | } | |
970 | 954 | ||
971 | 955 | ||
972 | 956 | ||
973 | - | @Callable(bH) | |
974 | - | func getOutFeeREADONLY (af) = { | |
975 | - | let fj = cx(aN(af), aO(), fraction(10, b, 10000)) | |
976 | - | $Tuple2(nil, fj) | |
957 | + | @Callable(bE) | |
958 | + | func getSwapFeeREADONLY (ff) = { | |
959 | + | let fg = { | |
960 | + | let bg = getString(this, aJ(ff)) | |
961 | + | if ($isInstanceOf(bg, "String")) | |
962 | + | then { | |
963 | + | let bh = bg | |
964 | + | let fh = split(bh, m) | |
965 | + | let fi = parseIntValue(fh[1]) | |
966 | + | let fj = parseIntValue(fh[2]) | |
967 | + | $Tuple2(fi, fj) | |
968 | + | } | |
969 | + | else if ($isInstanceOf(bg, "Unit")) | |
970 | + | then unit | |
971 | + | else throw("Match error") | |
972 | + | } | |
973 | + | $Tuple2(nil, fg) | |
977 | 974 | } | |
978 | 975 | ||
979 | 976 | ||
980 | 977 | ||
981 | - | @Callable(bH) | |
982 | - | func getSwapFeeREADONLY (fk) = { | |
983 | - | let fl = { | |
984 | - | let bj = getString(this, aM(fk)) | |
985 | - | if ($isInstanceOf(bj, "String")) | |
986 | - | then { | |
987 | - | let bk = bj | |
988 | - | let fm = split(bk, m) | |
989 | - | let fn = parseIntValue(fm[1]) | |
990 | - | let fo = parseIntValue(fm[2]) | |
991 | - | $Tuple2(fn, fo) | |
992 | - | } | |
993 | - | else if ($isInstanceOf(bj, "Unit")) | |
994 | - | then unit | |
995 | - | else throw("Match error") | |
996 | - | } | |
997 | - | $Tuple2(nil, fl) | |
978 | + | @Callable(bE) | |
979 | + | func poolInfoREADONLY (fk,fl) = { | |
980 | + | let fm = getInteger(this, ak(fk)) | |
981 | + | let fn = getInteger(this, ak(fl)) | |
982 | + | let fo = getString(this, aB(value(fm), value(fn))) | |
983 | + | let fp = getString(this, aC(value(fo))) | |
984 | + | let dH = if (if (isDefined(fm)) | |
985 | + | then isDefined(fn) | |
986 | + | else false) | |
987 | + | then isDefined(fo) | |
988 | + | else false | |
989 | + | let fq = if (dH) | |
990 | + | then $Tuple2(addressFromStringValue(value(fo)), bd(value(fp))) | |
991 | + | else unit | |
992 | + | $Tuple2(nil, fq) | |
998 | 993 | } | |
999 | 994 | ||
1000 | 995 | ||
1001 | 996 | ||
1002 | - | @Callable(bH) | |
1003 | - | func poolInfoREADONLY (fp,fq) = { | |
1004 | - | let fr = getInteger(this, ak(fp)) | |
1005 | - | let fs = getInteger(this, ak(fq)) | |
1006 | - | let ft = getString(this, aE(value(fr), value(fs))) | |
1007 | - | let fu = getString(this, aF(value(ft))) | |
1008 | - | let dK = if (if (isDefined(fr)) | |
1009 | - | then isDefined(fs) | |
1010 | - | else false) | |
1011 | - | then isDefined(ft) | |
1012 | - | else false | |
1013 | - | let fv = if (dK) | |
1014 | - | then $Tuple2(addressFromStringValue(value(ft)), bg(value(fu))) | |
1015 | - | else unit | |
1016 | - | $Tuple2(nil, fv) | |
997 | + | @Callable(bE) | |
998 | + | func getPoolStatusREADONLY (af) = { | |
999 | + | let cj = split(aZ(az(af)), m) | |
1000 | + | let an = cj[1] | |
1001 | + | let ao = cj[2] | |
1002 | + | let cA = split(aZ(am(an, ao)), m) | |
1003 | + | $Tuple2(nil, parseIntValue(cA[w])) | |
1017 | 1004 | } | |
1018 | 1005 | ||
1019 | 1006 | ||
1020 | 1007 | ||
1021 | - | @Callable( | |
1022 | - | func | |
1023 | - | let | |
1024 | - | let an = | |
1025 | - | let ao = | |
1026 | - | let | |
1027 | - | $Tuple2(nil, | |
1008 | + | @Callable(bE) | |
1009 | + | func getPoolConfigREADONLY (af) = { | |
1010 | + | let cj = split(aZ(az(af)), m) | |
1011 | + | let an = cj[1] | |
1012 | + | let ao = cj[2] | |
1013 | + | let cA = split(aZ(am(an, ao)), m) | |
1014 | + | $Tuple2(nil, cA) | |
1028 | 1015 | } | |
1029 | 1016 | ||
1030 | 1017 | ||
1031 | 1018 | ||
1032 | - | @Callable( | |
1033 | - | func | |
1034 | - | let | |
1035 | - | let an = | |
1036 | - | let ao = | |
1037 | - | let | |
1038 | - | $Tuple2(nil, | |
1019 | + | @Callable(bE) | |
1020 | + | func getPoolConfigByLpAssetIdREADONLY (dM) = { | |
1021 | + | let cj = split(aZ(at(dM)), m) | |
1022 | + | let an = cj[1] | |
1023 | + | let ao = cj[2] | |
1024 | + | let cA = split(aZ(am(an, ao)), m) | |
1025 | + | $Tuple2(nil, cA) | |
1039 | 1026 | } | |
1040 | 1027 | ||
1041 | 1028 | ||
1042 | 1029 | ||
1043 | - | @Callable(bH) | |
1044 | - | func getPoolConfigByLpAssetIdREADONLY (dP) = { | |
1045 | - | let cm = split(bc(aw(dP)), m) | |
1046 | - | let an = cm[1] | |
1047 | - | let ao = cm[2] | |
1048 | - | let cD = split(bc(am(an, ao)), m) | |
1049 | - | $Tuple2(nil, cD) | |
1030 | + | @Callable(bE) | |
1031 | + | func poolExistsREADONLY (aF,aG) = $Tuple2(nil, cx(aF, aG)) | |
1032 | + | ||
1033 | + | ||
1034 | + | ||
1035 | + | @Callable(bE) | |
1036 | + | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aM(af)), false)) | |
1037 | + | ||
1038 | + | ||
1039 | + | ||
1040 | + | @Callable(bE) | |
1041 | + | func getChangeAmpConfigREADONLY (af) = { | |
1042 | + | let fr = getIntegerValue(aN(af)) | |
1043 | + | let fs = getIntegerValue(aO(af)) | |
1044 | + | let ft = getIntegerValue(aP(af)) | |
1045 | + | $Tuple2(nil, [fr, fs, ft]) | |
1050 | 1046 | } | |
1051 | 1047 | ||
1052 | 1048 | ||
1053 | 1049 | ||
1054 | - | @Callable(bH) | |
1055 | - | func poolExistsREADONLY (aI,aJ) = $Tuple2(nil, cA(aI, aJ)) | |
1056 | - | ||
1057 | - | ||
1058 | - | ||
1059 | - | @Callable(bH) | |
1060 | - | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aP(af)), false)) | |
1061 | - | ||
1062 | - | ||
1063 | - | ||
1064 | - | @Callable(bH) | |
1065 | - | func getChangeAmpConfigREADONLY (af) = { | |
1066 | - | let fw = getIntegerValue(aQ(af)) | |
1067 | - | let fx = getIntegerValue(aR(af)) | |
1068 | - | let fy = getIntegerValue(aS(af)) | |
1069 | - | $Tuple2(nil, [fw, fx, fy]) | |
1050 | + | @Callable(bE) | |
1051 | + | func getPoolWeightREADONLY (bW) = { | |
1052 | + | let af = aZ(aD(bW)) | |
1053 | + | let fu = valueOrElse(getInteger(ae(af)), 0) | |
1054 | + | $Tuple2(nil, fu) | |
1070 | 1055 | } | |
1071 | 1056 | ||
1072 | 1057 | ||
1073 | 1058 | ||
1074 | - | @Callable(bH) | |
1075 | - | func getPoolWeightREADONLY (bZ) = { | |
1076 | - | let af = bc(aG(bZ)) | |
1077 | - | let fz = valueOrElse(getInteger(ae(af)), 0) | |
1078 | - | $Tuple2(nil, fz) | |
1079 | - | } | |
1080 | - | ||
1081 | - | ||
1082 | - | ||
1083 | - | @Callable(bH) | |
1084 | - | func deletePool (aD) = { | |
1085 | - | let dX = cl(aD) | |
1086 | - | let dq = if ((toString(bH.caller) == cH(aD))) | |
1087 | - | then if (cP(aD)) | |
1059 | + | @Callable(bE) | |
1060 | + | func deletePool (aA) = { | |
1061 | + | let dU = ci(aA) | |
1062 | + | let dn = if ((toString(bE.caller) == cE(aA))) | |
1063 | + | then if (cM(aA)) | |
1088 | 1064 | then true | |
1089 | 1065 | else K("Pool is not empty") | |
1090 | - | else | |
1091 | - | if (( | |
1066 | + | else bF(bE) | |
1067 | + | if ((dn == dn)) | |
1092 | 1068 | then { | |
1093 | - | let | |
1069 | + | let fv = if ((valueOrElse(getInteger(ae(aA)), 0) == 0)) | |
1094 | 1070 | then true | |
1095 | 1071 | else K("Pool weight is not Zero") | |
1096 | - | if (( | |
1072 | + | if ((fv == fv)) | |
1097 | 1073 | then { | |
1098 | - | let | |
1074 | + | let fw = if ((dU[w] == toString(r))) | |
1099 | 1075 | then true | |
1100 | 1076 | else K("Pool must be SHUTDOWN (4)") | |
1101 | - | if (( | |
1077 | + | if ((fw == fw)) | |
1102 | 1078 | then { | |
1103 | - | let | |
1104 | - | let | |
1105 | - | let | |
1106 | - | let | |
1107 | - | let an = | |
1108 | - | let ao = | |
1109 | - | let | |
1110 | - | let | |
1111 | - | if (( | |
1079 | + | let fx = cD(aA) | |
1080 | + | let aF = fx._1 | |
1081 | + | let aG = fx._2 | |
1082 | + | let bW = fx._3 | |
1083 | + | let an = fx._4 | |
1084 | + | let ao = fx._5 | |
1085 | + | let cG = addressFromStringValue(getStringValue(Z())) | |
1086 | + | let fy = invoke(cG, "deletePool", [aF, aG], nil) | |
1087 | + | if ((fy == fy)) | |
1112 | 1088 | then { | |
1113 | - | let | |
1114 | - | let | |
1115 | - | if (( | |
1089 | + | let dt = addressFromStringValue(getStringValue(Y())) | |
1090 | + | let fz = invoke(dt, "deletePool", [aF, aG], nil) | |
1091 | + | if ((fz == fz)) | |
1116 | 1092 | then { | |
1117 | - | let | |
1118 | - | let | |
1119 | - | if (( | |
1120 | - | then [DeleteEntry( | |
1093 | + | let ds = addressFromStringValue(getStringValue(X())) | |
1094 | + | let fA = invoke(ds, "deletePool", [aF, aG], nil) | |
1095 | + | if ((fA == fA)) | |
1096 | + | then [DeleteEntry(aC(aA)), DeleteEntry(az(aA)), DeleteEntry(av(toString(an), toString(ao))), DeleteEntry(aB(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(at(bW)), DeleteEntry(aD(bW)), DeleteEntry(aE(aF, aG)), DeleteEntry(ae(aA)), DeleteEntry(ay(aA)), DeleteEntry(aH(aA)), DeleteEntry(aK(aA)), DeleteEntry(aM(aA)), DeleteEntry(aN(aA)), DeleteEntry(aO(aA)), DeleteEntry(aP(aA))] | |
1121 | 1097 | else throw("Strict value is not equal to itself.") | |
1122 | 1098 | } | |
1123 | 1099 | else throw("Strict value is not equal to itself.") | |
1132 | 1108 | } | |
1133 | 1109 | ||
1134 | 1110 | ||
1135 | - | @Verifier( | |
1136 | - | func | |
1137 | - | let | |
1138 | - | let | |
1139 | - | if ($isInstanceOf( | |
1111 | + | @Verifier(fB) | |
1112 | + | func fC () = { | |
1113 | + | let fD = { | |
1114 | + | let bg = bz() | |
1115 | + | if ($isInstanceOf(bg, "ByteVector")) | |
1140 | 1116 | then { | |
1141 | - | let | |
1142 | - | | |
1117 | + | let bG = bg | |
1118 | + | bG | |
1143 | 1119 | } | |
1144 | - | else if ($isInstanceOf( | |
1145 | - | then | |
1120 | + | else if ($isInstanceOf(bg, "Unit")) | |
1121 | + | then fB.senderPublicKey | |
1146 | 1122 | else throw("Match error") | |
1147 | 1123 | } | |
1148 | - | sigVerify( | |
1124 | + | sigVerify(fB.bodyBytes, fB.proofs[0], fD) | |
1149 | 1125 | } | |
1150 | 1126 |
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 = 1000000000000 | |
9 | 9 | ||
10 | 10 | let d = 18 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(1000000000000000000) | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = "GWXvirtualPOOL" | |
17 | 17 | ||
18 | 18 | let h = "POOLS_LP" | |
19 | 19 | ||
20 | 20 | let i = 2000000 | |
21 | 21 | ||
22 | 22 | let j = "WAVES" | |
23 | 23 | ||
24 | 24 | let k = "factory_v2.ride" | |
25 | 25 | ||
26 | 26 | let l = ((100 * 1000) * 1000) | |
27 | 27 | ||
28 | 28 | let m = "__" | |
29 | 29 | ||
30 | 30 | let n = "" | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 1 | |
41 | 41 | ||
42 | 42 | let t = 2 | |
43 | 43 | ||
44 | 44 | let u = 3 | |
45 | 45 | ||
46 | 46 | let v = 1 | |
47 | 47 | ||
48 | 48 | let w = 2 | |
49 | 49 | ||
50 | 50 | let x = 3 | |
51 | 51 | ||
52 | 52 | let y = 4 | |
53 | 53 | ||
54 | 54 | let z = 5 | |
55 | 55 | ||
56 | 56 | let A = 6 | |
57 | 57 | ||
58 | 58 | let B = 7 | |
59 | 59 | ||
60 | 60 | let C = 8 | |
61 | 61 | ||
62 | 62 | let D = 9 | |
63 | 63 | ||
64 | 64 | let E = 10 | |
65 | 65 | ||
66 | 66 | let F = 11 | |
67 | 67 | ||
68 | 68 | let G = "WX_EMISSION" | |
69 | 69 | ||
70 | 70 | let H = [G] | |
71 | 71 | ||
72 | 72 | func I (J) = makeString([k, ": ", J], "") | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func K (J) = throw(I(J)) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func L () = "%s__allowedLpScriptHash" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func M () = "%s__allowedLpStableScriptHash" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func N () = "%s__swapContract" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func O () = "%s__factoryConfig" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func P () = "%s__lpTokensList" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func Q () = "%s%s__pool__scriptHash" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func R () = "%s%s__matcher__publicKey" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func S () = "%s__legacyFactoryContract" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func T () = "%s__legacyPools" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func U () = "%s__managerPublicKey" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func V () = "%s__managerVaultAddress" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func W () = "%s__adminPubKeys" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func X () = "%s__assetsStoreContract" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func Y () = "%s__votingEmissionContract" | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func Z () = "%s__userPoolsContract" | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func aa () = makeString(["%s", "priceAssets"], m) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ab () = "%s__priceDecimals" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ac () = "%s__shutdown" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ad () = "%s__nextInternalAssetId" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ae (af) = ("%s%s__poolWeight__" + af) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ag (af,ah) = ((("%s%s__poolWeight__" + af) + "__") + toString(ah)) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ai (aj) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(aj)) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ak (al) = ("%s%s%s__mappings__baseAsset2internalId__" + al) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func am (an,ao) = (((("%d%d%s__" + an) + "__") + ao) + "__config") | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ap (aq) = { | |
151 | 151 | let ar = aq | |
152 | 152 | let an = ar._1 | |
153 | 153 | let ao = ar._2 | |
154 | 154 | makeString(["%d%d%s", toString(an), toString(ao), "oneTokenOperationsDisabled"], m) | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func as () = makeString(["%s", "oneTokenOperationsDisabled"], m) | |
159 | 159 | ||
160 | 160 | ||
161 | - | func at (aq) = { | |
162 | - | let au = aq | |
163 | - | let an = au._1 | |
164 | - | let ao = au._2 | |
165 | - | makeString(["%d%d%s", toString(an), toString(ao), "swapDisabled"], m) | |
166 | - | } | |
161 | + | func at (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2Pool") | |
167 | 162 | ||
168 | 163 | ||
169 | - | func av () = | |
164 | + | func av (aw,ax) = (((("%d%d%s%s__" + aw) + "__") + ax) + "__mappings__PoolAssets2LpAsset") | |
170 | 165 | ||
171 | 166 | ||
172 | - | func | |
167 | + | func ay (af) = ("%s%s__spread__" + af) | |
173 | 168 | ||
174 | 169 | ||
175 | - | func | |
170 | + | func az (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2PoolAssets") | |
176 | 171 | ||
177 | 172 | ||
178 | - | func aB ( | |
173 | + | func aB (aw,ax) = (((("%d%d%s%s__" + toString(aw)) + "__") + toString(ax)) + "__mappings__poolAssets2PoolContract") | |
179 | 174 | ||
180 | 175 | ||
181 | - | func aC ( | |
176 | + | func aC (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2LpAsset") | |
182 | 177 | ||
183 | 178 | ||
184 | - | func | |
179 | + | func aD (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2PoolContract") | |
185 | 180 | ||
186 | 181 | ||
187 | - | func | |
182 | + | func aE (aF,aG) = ((("%s%s%s__wxEmission__" + aF) + "__") + aG) | |
188 | 183 | ||
189 | 184 | ||
190 | - | func | |
185 | + | func aH (af) = ("%s%s__inFee__" + af) | |
191 | 186 | ||
192 | 187 | ||
193 | - | func | |
188 | + | func aI () = "%s__inFeeDefault" | |
194 | 189 | ||
195 | 190 | ||
196 | - | func | |
191 | + | func aJ (af) = ("%s%s__swapFee__" + af) | |
197 | 192 | ||
198 | 193 | ||
199 | - | func | |
194 | + | func aK (af) = ("%s%s__outFee__" + af) | |
200 | 195 | ||
201 | 196 | ||
202 | - | func | |
197 | + | func aL () = "%s__outFeeDefault" | |
203 | 198 | ||
204 | 199 | ||
205 | - | func | |
200 | + | func aM (af) = ("%s%s__skipOrderValidation__" + af) | |
206 | 201 | ||
207 | 202 | ||
208 | - | func | |
203 | + | func aN (af) = ("%s%s__changeAmpDelay__" + af) | |
209 | 204 | ||
210 | 205 | ||
211 | - | func | |
206 | + | func aO (af) = ("%s%s__changeAmpDelta__" + af) | |
212 | 207 | ||
213 | 208 | ||
214 | - | func | |
209 | + | func aP (af) = ("%s%s__changeAmpTarget__" + af) | |
215 | 210 | ||
216 | 211 | ||
217 | - | func | |
212 | + | func aQ () = "%s__sWavesProxyAddress" | |
218 | 213 | ||
219 | 214 | ||
220 | - | func | |
215 | + | func aR () = "%s__sWavesAssetId" | |
221 | 216 | ||
222 | 217 | ||
223 | - | func | |
218 | + | func aS () = "%s__stakingProfitAddress" | |
224 | 219 | ||
225 | 220 | ||
226 | - | func | |
221 | + | func aT (af,aU) = makeString(["%s%s%s", "leasedRatio", af, aU], m) | |
227 | 222 | ||
228 | 223 | ||
229 | - | func aV () = "%s | |
224 | + | func aV (aU) = makeString(["%s%s", "leasedRatioDefault", aU], m) | |
230 | 225 | ||
231 | 226 | ||
232 | - | func aW (af, | |
227 | + | func aW (af,aU) = makeString(["%s%s%s", "leasedRatioTolerance", af, aU], m) | |
233 | 228 | ||
234 | 229 | ||
235 | - | func | |
230 | + | func aX (af,aU) = makeString(["%s%s%s", "minBalance", af, aU], m) | |
236 | 231 | ||
237 | 232 | ||
238 | - | func | |
233 | + | func aY (aU) = makeString(["%s%s", "minBalanceDefault", aU], m) | |
239 | 234 | ||
240 | 235 | ||
241 | - | func | |
236 | + | func aZ (ba) = valueOrErrorMessage(getString(this, ba), ("No data for this.key=" + ba)) | |
242 | 237 | ||
243 | 238 | ||
244 | - | func bb ( | |
239 | + | func bb (ba) = valueOrErrorMessage(getBoolean(this, ba), ("No data for this.key=" + ba)) | |
245 | 240 | ||
246 | 241 | ||
247 | - | func bc ( | |
242 | + | func bc (ba) = valueOrErrorMessage(getInteger(this, ba), ("No data for this.key=" + ba)) | |
248 | 243 | ||
249 | 244 | ||
250 | - | func be (bd) = valueOrErrorMessage(getBoolean(this, bd), ("No data for this.key=" + bd)) | |
245 | + | func bd (be) = if ((be == j)) | |
246 | + | then unit | |
247 | + | else fromBase58String(be) | |
251 | 248 | ||
252 | 249 | ||
253 | - | func bf (bd) = valueOrErrorMessage(getInteger(this, bd), ("No data for this.key=" + bd)) | |
254 | - | ||
255 | - | ||
256 | - | func bg (bh) = if ((bh == j)) | |
257 | - | then unit | |
258 | - | else fromBase58String(bh) | |
259 | - | ||
260 | - | ||
261 | - | func bi () = { | |
262 | - | let bj = getString(V()) | |
263 | - | if ($isInstanceOf(bj, "String")) | |
250 | + | func bf () = { | |
251 | + | let bg = getString(V()) | |
252 | + | if ($isInstanceOf(bg, "String")) | |
264 | 253 | then { | |
265 | - | let | |
266 | - | addressFromStringValue( | |
254 | + | let bh = bg | |
255 | + | addressFromStringValue(bh) | |
267 | 256 | } | |
268 | 257 | else this | |
269 | 258 | } | |
270 | 259 | ||
271 | 260 | ||
272 | - | let | |
261 | + | let bi = 1 | |
273 | 262 | ||
274 | - | let | |
263 | + | let bj = 2 | |
275 | 264 | ||
276 | - | let | |
265 | + | let bk = 3 | |
277 | 266 | ||
278 | - | let | |
267 | + | let bl = 4 | |
279 | 268 | ||
280 | - | let | |
269 | + | let bm = 5 | |
281 | 270 | ||
282 | - | let | |
271 | + | let bn = 6 | |
283 | 272 | ||
284 | - | let | |
273 | + | let bo = 7 | |
285 | 274 | ||
286 | - | let | |
275 | + | let bp = 8 | |
287 | 276 | ||
288 | - | let | |
277 | + | let bq = 9 | |
289 | 278 | ||
290 | - | let | |
279 | + | let br = 10 | |
291 | 280 | ||
292 | - | let | |
281 | + | let bs = 11 | |
293 | 282 | ||
294 | - | func | |
283 | + | func bt (bu) = addressFromStringValue(bu[bj]) | |
295 | 284 | ||
296 | 285 | ||
297 | - | func | |
286 | + | func bv (bu) = addressFromStringValue(bu[bm]) | |
298 | 287 | ||
299 | 288 | ||
300 | - | func | |
289 | + | func bw (bu) = addressFromStringValue(bu[bi]) | |
301 | 290 | ||
302 | 291 | ||
303 | - | func | |
292 | + | func bx (bu) = addressFromStringValue(bu[br]) | |
304 | 293 | ||
305 | 294 | ||
306 | - | func | |
307 | - | let | |
308 | - | if ($isInstanceOf( | |
295 | + | func by () = { | |
296 | + | let bg = getString(aa()) | |
297 | + | if ($isInstanceOf(bg, "String")) | |
309 | 298 | then { | |
310 | - | let | |
311 | - | if ((size( | |
299 | + | let bh = bg | |
300 | + | if ((size(bh) == 0)) | |
312 | 301 | then nil | |
313 | - | else split_4C( | |
302 | + | else split_4C(bh, m) | |
314 | 303 | } | |
315 | 304 | else nil | |
316 | 305 | } | |
317 | 306 | ||
318 | 307 | ||
319 | - | func | |
320 | - | let | |
321 | - | let | |
322 | - | if ($isInstanceOf( | |
308 | + | func bz () = { | |
309 | + | let bA = bf() | |
310 | + | let bg = getString(bA, U()) | |
311 | + | if ($isInstanceOf(bg, "String")) | |
323 | 312 | then { | |
324 | - | let | |
325 | - | fromBase58String( | |
313 | + | let bh = bg | |
314 | + | fromBase58String(bh) | |
326 | 315 | } | |
327 | - | else if ($isInstanceOf( | |
316 | + | else if ($isInstanceOf(bg, "Unit")) | |
328 | 317 | then unit | |
329 | 318 | else throw("Match error") | |
330 | 319 | } | |
331 | 320 | ||
332 | 321 | ||
333 | - | let | |
322 | + | let bB = K("Permission denied") | |
334 | 323 | ||
335 | - | let | |
324 | + | let bC = K("Test error here") | |
336 | 325 | ||
337 | - | func | |
326 | + | func bD (bE) = if ((bE.caller == this)) | |
338 | 327 | then true | |
339 | - | else | |
328 | + | else bB | |
340 | 329 | ||
341 | 330 | ||
342 | - | func | |
343 | - | let | |
344 | - | if ($isInstanceOf( | |
331 | + | func bF (bE) = { | |
332 | + | let bg = bz() | |
333 | + | if ($isInstanceOf(bg, "ByteVector")) | |
345 | 334 | then { | |
346 | - | let | |
347 | - | if (( | |
335 | + | let bG = bg | |
336 | + | if ((bE.callerPublicKey == bG)) | |
348 | 337 | then true | |
349 | - | else | |
338 | + | else bB | |
350 | 339 | } | |
351 | - | else if ($isInstanceOf( | |
352 | - | then | |
340 | + | else if ($isInstanceOf(bg, "Unit")) | |
341 | + | then bD(bE) | |
353 | 342 | else throw("Match error") | |
354 | 343 | } | |
355 | 344 | ||
356 | 345 | ||
357 | - | func | |
346 | + | func bH (bI,bJ,bK,bL,bM,bN,bO,bP,bQ,bR,bS) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS], m) | |
358 | 347 | ||
359 | 348 | ||
360 | - | func | |
349 | + | func bT (bI,bJ,bK,bL,bM,bN,bO) = makeString(["%s%s%s%s%s%s", bI, bJ, bK, bL, bM, bN, bO], m) | |
361 | 350 | ||
362 | 351 | ||
363 | - | func | |
352 | + | func bU (af,bV,bW,bX,bY,bZ,ca,cb,cc,cd,ce) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", af, bV, bW, bX, bY, toString(bZ), toString(ca), toString(cb), toString(cc), toString(cd), ce], m) | |
364 | 353 | ||
365 | 354 | ||
366 | - | func | |
355 | + | func cf (cg,ch) = makeString(["%d%d", toString(cg), toString(ch)], m) | |
367 | 356 | ||
368 | 357 | ||
369 | - | func | |
370 | - | let | |
371 | - | let an = | |
372 | - | let ao = | |
373 | - | split( | |
358 | + | func ci (af) = { | |
359 | + | let cj = split(aZ(az(af)), m) | |
360 | + | let an = cj[1] | |
361 | + | let ao = cj[2] | |
362 | + | split(aZ(am(an, ao)), m) | |
374 | 363 | } | |
375 | 364 | ||
376 | 365 | ||
377 | - | func | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
366 | + | func ck (cl,cm) = { | |
367 | + | let cn = valueOrElse(getInteger(this, ak(cl)), 0) | |
368 | + | let co = valueOrElse(getInteger(this, ad()), 0) | |
369 | + | let cp = if ((cn == 0)) | |
381 | 370 | then { | |
382 | - | let | |
383 | - | $Tuple3( | |
371 | + | let cq = (co + cm) | |
372 | + | $Tuple3(cq, [IntegerEntry(ad(), cq), IntegerEntry(ak(cl), cq), StringEntry(ai(cq), cl)], true) | |
384 | 373 | } | |
385 | - | else $Tuple3( | |
386 | - | | |
374 | + | else $Tuple3(cn, nil, false) | |
375 | + | cp | |
387 | 376 | } | |
388 | 377 | ||
389 | 378 | ||
390 | - | func | |
391 | - | let | |
392 | - | if (containsElement( | |
379 | + | func cr (bE) = { | |
380 | + | let cs = split(valueOrElse(getString(W()), n), m) | |
381 | + | if (containsElement(cs, toBase58String(bE.callerPublicKey))) | |
393 | 382 | then true | |
394 | 383 | else { | |
395 | - | let | |
396 | - | if (( | |
384 | + | let ct = bF(bE) | |
385 | + | if ((ct == ct)) | |
397 | 386 | then true | |
398 | 387 | else throw("Strict value is not equal to itself.") | |
399 | 388 | } | |
400 | 389 | } | |
401 | 390 | ||
402 | 391 | ||
403 | - | func | |
392 | + | func cu (ba,cv,cw) = valueOrElse(getInteger(this, ba), valueOrElse(getInteger(this, cv), cw)) | |
404 | 393 | ||
405 | 394 | ||
406 | - | func | |
407 | - | let an = getInteger(ak( | |
408 | - | let ao = getInteger(ak( | |
395 | + | func cx (aF,aG) = { | |
396 | + | let an = getInteger(ak(aF)) | |
397 | + | let ao = getInteger(ak(aG)) | |
409 | 398 | if (if ((an == unit)) | |
410 | 399 | then true | |
411 | 400 | else (ao == unit)) | |
412 | 401 | then false | |
413 | 402 | else { | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
403 | + | let cy = toString(value(an)) | |
404 | + | let cz = toString(value(ao)) | |
405 | + | let cA = getString(am(cy, cz)) | |
406 | + | let cB = getString(am(cz, cy)) | |
407 | + | let cC = if ((cA != unit)) | |
419 | 408 | then true | |
420 | - | else ( | |
421 | - | | |
409 | + | else (cB != unit) | |
410 | + | cC | |
422 | 411 | } | |
423 | 412 | } | |
424 | 413 | ||
425 | 414 | ||
426 | - | func | |
427 | - | let | |
428 | - | let | |
429 | - | if ($isInstanceOf( | |
415 | + | func cD (aA) = { | |
416 | + | let cj = { | |
417 | + | let bg = getString(az(aA)) | |
418 | + | if ($isInstanceOf(bg, "String")) | |
430 | 419 | then { | |
431 | - | let | |
432 | - | split( | |
420 | + | let bh = bg | |
421 | + | split(bh, m) | |
433 | 422 | } | |
434 | - | else K(makeString([ | |
423 | + | else K(makeString([aA, "pool is not found"], " ")) | |
435 | 424 | } | |
436 | - | let an = parseIntValue( | |
437 | - | let ao = parseIntValue( | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | $Tuple5( | |
425 | + | let an = parseIntValue(cj[1]) | |
426 | + | let ao = parseIntValue(cj[2]) | |
427 | + | let aF = getStringValue(ai(an)) | |
428 | + | let aG = getStringValue(ai(ao)) | |
429 | + | let bW = getStringValue(aC(aA)) | |
430 | + | $Tuple5(aF, aG, bW, an, ao) | |
442 | 431 | } | |
443 | 432 | ||
444 | 433 | ||
445 | - | func | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let an = | |
451 | - | let ao = | |
452 | - | let | |
453 | - | let | |
454 | - | | |
434 | + | func cE (aA) = { | |
435 | + | let cF = cD(aA) | |
436 | + | let aF = cF._1 | |
437 | + | let aG = cF._2 | |
438 | + | let bW = cF._3 | |
439 | + | let an = cF._4 | |
440 | + | let ao = cF._5 | |
441 | + | let cG = addressFromStringValue(getStringValue(Z())) | |
442 | + | let cH = invoke(cG, "getPoolCreatorREADONLY", [aF, aG], nil) | |
443 | + | cH | |
455 | 444 | } | |
456 | 445 | ||
457 | 446 | ||
458 | - | func | |
459 | - | let | |
460 | - | if (( | |
461 | - | then wavesBalance( | |
447 | + | func cI (cJ,cK) = { | |
448 | + | let cL = addressFromStringValue(cJ) | |
449 | + | if ((cK == "WAVES")) | |
450 | + | then wavesBalance(cL).regular | |
462 | 451 | else { | |
463 | - | let | |
464 | - | assetBalance( | |
452 | + | let aU = fromBase58String(cK) | |
453 | + | assetBalance(cL, aU) | |
465 | 454 | } | |
466 | 455 | } | |
467 | 456 | ||
468 | 457 | ||
469 | - | func | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let an = | |
475 | - | let ao = | |
476 | - | if (( | |
477 | - | then ( | |
458 | + | func cM (aA) = { | |
459 | + | let cN = cD(aA) | |
460 | + | let aF = cN._1 | |
461 | + | let aG = cN._2 | |
462 | + | let bW = cN._3 | |
463 | + | let an = cN._4 | |
464 | + | let ao = cN._5 | |
465 | + | if ((cI(aA, aF) == 0)) | |
466 | + | then (cI(aA, aG) == 0) | |
478 | 467 | else false | |
479 | 468 | } | |
480 | 469 | ||
481 | 470 | ||
482 | - | @Callable( | |
483 | - | func getSwapContractREADONLY () = $Tuple2(nil, | |
471 | + | @Callable(bE) | |
472 | + | func getSwapContractREADONLY () = $Tuple2(nil, aZ(N())) | |
484 | 473 | ||
485 | 474 | ||
486 | 475 | ||
487 | - | @Callable( | |
488 | - | func getPoolLeaseConfigREADONLY (af, | |
489 | - | let | |
490 | - | let | |
491 | - | if ($isInstanceOf( | |
476 | + | @Callable(bE) | |
477 | + | func getPoolLeaseConfigREADONLY (af,aU) = { | |
478 | + | let cO = { | |
479 | + | let bg = getInteger(this, aT(af, aU)) | |
480 | + | if ($isInstanceOf(bg, "Int")) | |
492 | 481 | then { | |
493 | - | let | |
494 | - | $Tuple2(true, min([100, max([0, | |
482 | + | let cP = bg | |
483 | + | $Tuple2(true, min([100, max([0, cP])])) | |
495 | 484 | } | |
496 | 485 | else { | |
497 | - | let | |
498 | - | if ($isInstanceOf( | |
486 | + | let cQ = getInteger(this, aV(aU)) | |
487 | + | if ($isInstanceOf(cQ, "Int")) | |
499 | 488 | then { | |
500 | - | let | |
501 | - | $Tuple2(true, min([100, max([0, | |
489 | + | let cR = cQ | |
490 | + | $Tuple2(true, min([100, max([0, cR])])) | |
502 | 491 | } | |
503 | 492 | else $Tuple2(false, 0) | |
504 | 493 | } | |
505 | 494 | } | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | if ($isInstanceOf( | |
495 | + | let cS = cO._1 | |
496 | + | let cT = cO._2 | |
497 | + | let cU = { | |
498 | + | let bg = getInteger(this, aX(af, aU)) | |
499 | + | if ($isInstanceOf(bg, "Int")) | |
511 | 500 | then { | |
512 | - | let | |
513 | - | max([0, | |
501 | + | let cV = bg | |
502 | + | max([0, cV]) | |
514 | 503 | } | |
515 | 504 | else { | |
516 | - | let | |
517 | - | if ($isInstanceOf( | |
505 | + | let cQ = getInteger(this, aY(aU)) | |
506 | + | if ($isInstanceOf(cQ, "Int")) | |
518 | 507 | then { | |
519 | - | let | |
520 | - | max([0, | |
508 | + | let cW = cQ | |
509 | + | max([0, cW]) | |
521 | 510 | } | |
522 | 511 | else 0 | |
523 | 512 | } | |
524 | 513 | } | |
525 | - | let | |
526 | - | then $Tuple3(valueOrElse(getString(this, | |
514 | + | let cX = if ((aU == "WAVES")) | |
515 | + | then $Tuple3(valueOrElse(getString(this, aQ()), ""), getString(this, valueOrElse(aR(), "")), c) | |
527 | 516 | else $Tuple3("", "", 0) | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | $Tuple2(nil, $Tuple7( | |
517 | + | let cY = cX._1 | |
518 | + | let cZ = cX._2 | |
519 | + | let da = cX._3 | |
520 | + | let db = valueOrElse(getString(this, aS()), "") | |
521 | + | $Tuple2(nil, $Tuple7(cS, cT, cU, cY, cZ, da, db)) | |
533 | 522 | } | |
534 | 523 | ||
535 | 524 | ||
536 | 525 | ||
537 | - | @Callable( | |
538 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
539 | - | then ( | |
526 | + | @Callable(bE) | |
527 | + | func getLpAssetFromPoolAssetsREADONLY (dc,dd) = if (if ((dc == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
528 | + | then (dd == "WAVES") | |
540 | 529 | else false) | |
541 | 530 | then $Tuple2(nil, unit) | |
542 | 531 | else { | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
532 | + | let de = value(getInteger(this, ak(dc))) | |
533 | + | let df = value(getInteger(this, ak(dd))) | |
534 | + | let dg = getString(this, av(toString(de), toString(df))) | |
535 | + | let dh = if ((dg == unit)) | |
547 | 536 | then unit | |
548 | - | else drop(value( | |
549 | - | $Tuple2(nil, | |
537 | + | else drop(value(dg), 4) | |
538 | + | $Tuple2(nil, dh) | |
550 | 539 | } | |
551 | 540 | ||
552 | 541 | ||
553 | 542 | ||
554 | - | @Callable( | |
555 | - | func getPoolAddressFromLpAssetREADONLY ( | |
543 | + | @Callable(bE) | |
544 | + | func getPoolAddressFromLpAssetREADONLY (di) = $Tuple2(nil, valueOrElse(getString(this, aD(di)), "")) | |
556 | 545 | ||
557 | 546 | ||
558 | 547 | ||
559 | - | @Callable( | |
560 | - | func constructor ( | |
561 | - | let | |
562 | - | if (( | |
563 | - | then [StringEntry(O(), | |
548 | + | @Callable(bE) | |
549 | + | func constructor (dj,dk,bK,bL,bM,bN,dl,dm) = { | |
550 | + | let dn = bF(bE) | |
551 | + | if ((dn == dn)) | |
552 | + | then [StringEntry(O(), bT(dj, dk, bK, bL, bM, bN, dl)), IntegerEntry(ab(), dm)] | |
564 | 553 | else throw("Strict value is not equal to itself.") | |
565 | 554 | } | |
566 | 555 | ||
567 | 556 | ||
568 | 557 | ||
569 | - | @Callable( | |
570 | - | func constructorV2 ( | |
571 | - | let | |
572 | - | if (( | |
558 | + | @Callable(bE) | |
559 | + | func constructorV2 (do) = { | |
560 | + | let dn = bF(bE) | |
561 | + | if ((dn == dn)) | |
573 | 562 | then { | |
574 | - | let | |
575 | - | if (( | |
576 | - | then [StringEntry(R(), | |
563 | + | let dp = addressFromPublicKey(fromBase58String(do)) | |
564 | + | if ((dp == dp)) | |
565 | + | then [StringEntry(R(), do)] | |
577 | 566 | else throw("Strict value is not equal to itself.") | |
578 | 567 | } | |
579 | 568 | else throw("Strict value is not equal to itself.") | |
580 | 569 | } | |
581 | 570 | ||
582 | 571 | ||
583 | 572 | ||
584 | - | @Callable( | |
585 | - | func constructorV3 (bS | |
586 | - | let | |
587 | - | if (( | |
573 | + | @Callable(bE) | |
574 | + | func constructorV3 (bP,bQ,bR,bS) = { | |
575 | + | let dn = bF(bE) | |
576 | + | if ((dn == dn)) | |
588 | 577 | then { | |
589 | - | let | |
590 | - | [StringEntry(O(), | |
578 | + | let bu = split(aZ(O()), m) | |
579 | + | [StringEntry(O(), bH(bu[1], bu[2], bu[3], bu[4], bu[5], bu[6], bu[7], bP, bQ, bR, bS))] | |
591 | 580 | } | |
592 | 581 | else throw("Strict value is not equal to itself.") | |
593 | 582 | } | |
594 | 583 | ||
595 | 584 | ||
596 | 585 | ||
597 | - | @Callable( | |
598 | - | func constructorV4 ( | |
599 | - | let | |
600 | - | if (( | |
601 | - | then [StringEntry(S(), | |
586 | + | @Callable(bE) | |
587 | + | func constructorV4 (dq,dr) = { | |
588 | + | let dn = bF(bE) | |
589 | + | if ((dn == dn)) | |
590 | + | then [StringEntry(S(), dq), StringEntry(T(), makeString(dr, m))] | |
602 | 591 | else throw("Strict value is not equal to itself.") | |
603 | 592 | } | |
604 | 593 | ||
605 | 594 | ||
606 | 595 | ||
607 | - | @Callable( | |
608 | - | func constructorV5 ( | |
609 | - | let | |
610 | - | if (( | |
611 | - | then [StringEntry(X(), | |
596 | + | @Callable(bE) | |
597 | + | func constructorV5 (ds) = { | |
598 | + | let dn = bF(bE) | |
599 | + | if ((dn == dn)) | |
600 | + | then [StringEntry(X(), ds)] | |
612 | 601 | else throw("Strict value is not equal to itself.") | |
613 | 602 | } | |
614 | 603 | ||
615 | 604 | ||
616 | 605 | ||
617 | - | @Callable( | |
618 | - | func constructorV6 ( | |
619 | - | let | |
606 | + | @Callable(bE) | |
607 | + | func constructorV6 (dt,du) = { | |
608 | + | let dv = [bF(bE), if ((addressFromString(dt) != unit)) | |
620 | 609 | then true | |
621 | 610 | else "invalid voting emission contract address"] | |
622 | - | if (( | |
623 | - | then [StringEntry(Y(), | |
611 | + | if ((dv == dv)) | |
612 | + | then [StringEntry(Y(), dt), StringEntry(aa(), makeString(du, m))] | |
624 | 613 | else throw("Strict value is not equal to itself.") | |
625 | 614 | } | |
626 | 615 | ||
627 | 616 | ||
628 | 617 | ||
629 | - | @Callable( | |
630 | - | func setAdmins ( | |
631 | - | let | |
632 | - | if (( | |
633 | - | then [StringEntry(W(), makeString( | |
618 | + | @Callable(bE) | |
619 | + | func setAdmins (dw) = { | |
620 | + | let dn = bF(bE) | |
621 | + | if ((dn == dn)) | |
622 | + | then [StringEntry(W(), makeString(dw, m))] | |
634 | 623 | else throw("Strict value is not equal to itself.") | |
635 | 624 | } | |
636 | 625 | ||
637 | 626 | ||
638 | 627 | ||
639 | - | @Callable( | |
640 | - | func activateNewPool (af, | |
641 | - | let | |
642 | - | if (( | |
643 | - | then if (isDefined(getString( | |
628 | + | @Callable(bE) | |
629 | + | func activateNewPool (af,bX,bY,dx,dy,dz,ce,dA) = { | |
630 | + | let dn = cr(bE) | |
631 | + | if ((dn == dn)) | |
632 | + | then if (isDefined(getString(az(af)))) | |
644 | 633 | then K((("Pool address " + af) + " already registered.")) | |
645 | 634 | else { | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
635 | + | let dB = ck(bX, 1) | |
636 | + | let dC = dB._1 | |
637 | + | let dD = ck(bY, if (dB._3) | |
649 | 638 | then 2 | |
650 | 639 | else 1) | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | if ( | |
656 | - | then K((((("Pool " + | |
640 | + | let dE = dD._1 | |
641 | + | let dF = valueOrErrorMessage(scriptHash(addressFromStringValue(af)), ("No script has been found on pool account " + af)) | |
642 | + | let dG = getBinaryValue(Q()) | |
643 | + | let dH = cx(bX, bY) | |
644 | + | if (dH) | |
645 | + | then K((((("Pool " + bX) + "/") + bY) + " has already been activated.")) | |
657 | 646 | else { | |
658 | - | let | |
659 | - | let | |
647 | + | let dI = value(getString(this, am(toString(dC), toString(dE)))) | |
648 | + | let dJ = if ((bX == "WAVES")) | |
660 | 649 | then l | |
661 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
662 | - | let | |
650 | + | else pow(10, 0, value(assetInfo(fromBase58String(bX))).decimals, 0, 0, DOWN) | |
651 | + | let dK = if ((bY == "WAVES")) | |
663 | 652 | then l | |
664 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | if (( | |
670 | - | then if (( | |
653 | + | else pow(10, 0, value(assetInfo(fromBase58String(bY))).decimals, 0, 0, DOWN) | |
654 | + | let dL = Issue(dx, dy, 1, 8, true) | |
655 | + | let bW = calculateAssetId(dL) | |
656 | + | let dM = toBase58String(bW) | |
657 | + | let dN = invoke(addressFromStringValue(af), "activate", [bX, bY], nil) | |
658 | + | if ((dN == dN)) | |
659 | + | then if ((dN != "success")) | |
671 | 660 | then K("Pool initialisation error happened.") | |
672 | 661 | else { | |
673 | - | let | |
674 | - | let | |
675 | - | if (( | |
662 | + | let ds = addressFromStringValue(aZ(X())) | |
663 | + | let dO = invoke(ds, "createOrUpdate", [dM, dx, false], nil) | |
664 | + | if ((dO == dO)) | |
676 | 665 | then { | |
677 | - | let | |
678 | - | if (( | |
666 | + | let dP = invoke(ds, "addLabel", [dM, h], nil) | |
667 | + | if ((dP == dP)) | |
679 | 668 | then { | |
680 | - | let | |
681 | - | if (( | |
669 | + | let dQ = invoke(ds, "setLogo", [dM, dA], nil) | |
670 | + | if ((dQ == dQ)) | |
682 | 671 | then { | |
683 | - | let | |
684 | - | if (( | |
672 | + | let dR = invoke(ds, "addAssetsLink", [bX, bY, dM], nil) | |
673 | + | if ((dR == dR)) | |
685 | 674 | then { | |
686 | - | let | |
687 | - | if (( | |
688 | - | then $Tuple2((( | |
675 | + | let dS = invoke(ds, "increaseAssetPoolsNumber", [bX], nil) | |
676 | + | if ((dS == dS)) | |
677 | + | then $Tuple2(((dB._2 ++ dD._2) ++ [dL, Burn(bW, 1), StringEntry(am(toString(dC), toString(dE)), bU(af, toString(o), dM, bX, bY, dJ, dK, dC, dE, l, ce)), StringEntry(at(dM), cf(dC, dE)), StringEntry(av(toString(dC), toString(dE)), ("%s__" + dM)), StringEntry(az(af), cf(dC, dE)), StringEntry(aB(dC, dE), af), StringEntry(aD(dM), af), StringEntry(aC(af), dM), IntegerEntry(ae(af), dz), IntegerEntry(ay(af), i)]), dM) | |
689 | 678 | else throw("Strict value is not equal to itself.") | |
690 | 679 | } | |
691 | 680 | else throw("Strict value is not equal to itself.") | |
692 | 681 | } | |
693 | 682 | else throw("Strict value is not equal to itself.") | |
694 | 683 | } | |
695 | 684 | else throw("Strict value is not equal to itself.") | |
696 | 685 | } | |
697 | 686 | else throw("Strict value is not equal to itself.") | |
698 | 687 | } | |
699 | 688 | else throw("Strict value is not equal to itself.") | |
700 | 689 | } | |
701 | 690 | } | |
702 | 691 | else throw("Strict value is not equal to itself.") | |
703 | 692 | } | |
704 | 693 | ||
705 | 694 | ||
706 | 695 | ||
707 | - | @Callable( | |
708 | - | func managePool (af, | |
709 | - | let | |
710 | - | if (( | |
696 | + | @Callable(bE) | |
697 | + | func managePool (af,dT) = { | |
698 | + | let dn = bF(bE) | |
699 | + | if ((dn == dn)) | |
711 | 700 | then { | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | [StringEntry(am(toString( | |
701 | + | let dU = ci(af) | |
702 | + | let bV = dU[w] | |
703 | + | let dM = dU[x] | |
704 | + | let bX = dU[y] | |
705 | + | let bY = dU[z] | |
706 | + | let dJ = parseIntValue(dU[A]) | |
707 | + | let dK = parseIntValue(dU[B]) | |
708 | + | let dC = parseIntValue(dU[C]) | |
709 | + | let dE = parseIntValue(dU[D]) | |
710 | + | let dV = parseIntValue(dU[E]) | |
711 | + | let ce = dU[F] | |
712 | + | [StringEntry(am(toString(dC), toString(dE)), bU(af, toString(dT), dM, bX, bY, dJ, dK, dC, dE, dV, ce))] | |
724 | 713 | } | |
725 | 714 | else throw("Strict value is not equal to itself.") | |
726 | 715 | } | |
727 | 716 | ||
728 | 717 | ||
729 | 718 | ||
730 | - | @Callable( | |
731 | - | func emit ( | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | if ((0 >= | |
719 | + | @Callable(bE) | |
720 | + | func emit (dW) = { | |
721 | + | let dX = bE.caller | |
722 | + | let dY = bE.originCaller | |
723 | + | let dZ = valueOrErrorMessage(getString(aC(toString(dX))), "Invalid LP address called me.") | |
724 | + | let ea = fromBase58String(dZ) | |
725 | + | let dr = split(valueOrElse(getString(T()), n), m) | |
726 | + | let dq = addressFromStringValue(valueOrErrorMessage(getString(S()), "Legacy factory contract does not exists.")) | |
727 | + | if ((0 >= dW)) | |
739 | 728 | then nil | |
740 | - | else if (containsElement( | |
741 | - | then $Tuple2(nil, | |
742 | - | else $Tuple2([Reissue( | |
729 | + | else if (containsElement(dr, toString(dX))) | |
730 | + | then $Tuple2(nil, dq) | |
731 | + | else $Tuple2([Reissue(ea, dW, true), ScriptTransfer(bE.caller, dW, ea)], "success") | |
743 | 732 | } | |
744 | 733 | ||
745 | 734 | ||
746 | 735 | ||
747 | - | @Callable( | |
748 | - | func burn ( | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | if (( | |
736 | + | @Callable(bE) | |
737 | + | func burn (eb) = { | |
738 | + | let dX = bE.caller | |
739 | + | let dY = bE.originCaller | |
740 | + | let ec = value(bE.payments[0]) | |
741 | + | let ed = value(ec.amount) | |
742 | + | let ee = toBase58String(value(ec.assetId)) | |
743 | + | let ef = valueOrErrorMessage(getString(aC(toString(dX))), "Invalid LP address called me.") | |
744 | + | if ((ee != ef)) | |
756 | 745 | then K("Invalid asset passed.") | |
757 | - | else if (( | |
746 | + | else if ((eb != ed)) | |
758 | 747 | then K("Invalid amount passed.") | |
759 | 748 | else { | |
760 | - | let | |
761 | - | $Tuple2([Burn( | |
749 | + | let ea = fromBase58String(ef) | |
750 | + | $Tuple2([Burn(ea, eb)], "success") | |
762 | 751 | } | |
763 | 752 | } | |
764 | 753 | ||
765 | 754 | ||
766 | 755 | ||
767 | - | @Callable( | |
768 | - | func modifyWeight ( | |
769 | - | let | |
756 | + | @Callable(bE) | |
757 | + | func modifyWeight (bW,eg) = { | |
758 | + | let dn = if ((toBase58String(bE.caller.bytes) == valueOrElse(getString(this, Y()), ""))) | |
770 | 759 | then true | |
771 | - | else | |
772 | - | if (( | |
760 | + | else bF(bE) | |
761 | + | if ((dn == dn)) | |
773 | 762 | then { | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | if (( | |
763 | + | let aA = aZ(aD(bW)) | |
764 | + | let eh = ae(aA) | |
765 | + | let ei = ae(g) | |
766 | + | let ej = valueOrElse(getInteger(ei), 0) | |
767 | + | let dz = valueOrElse(getInteger(eh), 0) | |
768 | + | let ek = eg | |
769 | + | let bu = split(aZ(O()), m) | |
770 | + | let dj = bw(bu) | |
771 | + | let el = invoke(dj, "onModifyWeight", [bW, aA], nil) | |
772 | + | if ((el == el)) | |
784 | 773 | then { | |
785 | - | let | |
774 | + | let em = if ((ej == 0)) | |
786 | 775 | then nil | |
787 | - | else [IntegerEntry( | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
776 | + | else [IntegerEntry(ei, 0)] | |
777 | + | let en = ag(aA, 0) | |
778 | + | let eo = getInteger(en) | |
779 | + | let ep = if ((eo == unit)) | |
791 | 780 | then nil | |
792 | - | else [DeleteEntry( | |
793 | - | (([IntegerEntry( | |
781 | + | else [DeleteEntry(en)] | |
782 | + | (([IntegerEntry(eh, ek)] ++ em) ++ ep) | |
794 | 783 | } | |
795 | 784 | else throw("Strict value is not equal to itself.") | |
796 | 785 | } | |
797 | 786 | else throw("Strict value is not equal to itself.") | |
798 | 787 | } | |
799 | 788 | ||
800 | 789 | ||
801 | 790 | ||
802 | - | @Callable( | |
803 | - | func modifyWeights (et | |
804 | - | let | |
805 | - | if (( | |
791 | + | @Callable(bE) | |
792 | + | func modifyWeights (eq,er,es,et) = { | |
793 | + | let dn = bF(bE) | |
794 | + | if ((dn == dn)) | |
806 | 795 | then { | |
807 | - | let ex = ((5 * f) / 100) | |
808 | - | let ey = ((5 * f) / 100) | |
809 | - | let ez = ((5 * f) / 100) | |
810 | - | let bx = split(bc(O()), m) | |
811 | - | let eA = bz(bx) | |
812 | - | let eB = bA(bx) | |
796 | + | let eu = ((5 * f) / 100) | |
797 | + | let ev = ((5 * f) / 100) | |
798 | + | let ew = ((5 * f) / 100) | |
799 | + | let bu = split(aZ(O()), m) | |
800 | + | let ex = bw(bu) | |
801 | + | let ey = bx(bu) | |
802 | + | let ez = ae(eq) | |
803 | + | let eA = ae(er) | |
804 | + | let eB = ae(es) | |
813 | 805 | let eC = ae(et) | |
814 | - | let eD = ae(eu) | |
815 | - | let eE = ae(ev) | |
816 | - | let eF = ae(ew) | |
817 | - | let eG = bf(eC) | |
818 | - | let eH = bf(eD) | |
819 | - | let eI = (eG - ez) | |
820 | - | let eJ = (eH - ez) | |
821 | - | if ((0 >= eI)) | |
822 | - | then K(("invalid btcWeightNew: " + toString(eI))) | |
823 | - | else if ((0 >= eJ)) | |
824 | - | then K(("invalid ethWeightNew: " + toString(eJ))) | |
806 | + | let eD = bc(ez) | |
807 | + | let eE = bc(eA) | |
808 | + | let eF = (eD - ew) | |
809 | + | let eG = (eE - ew) | |
810 | + | if ((0 >= eF)) | |
811 | + | then K(("invalid btcWeightNew: " + toString(eF))) | |
812 | + | else if ((0 >= eG)) | |
813 | + | then K(("invalid ethWeightNew: " + toString(eG))) | |
825 | 814 | else { | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | if (( | |
815 | + | let eH = aZ(aC(eq)) | |
816 | + | let eI = aZ(aC(er)) | |
817 | + | let eJ = aZ(aC(es)) | |
818 | + | let eK = aZ(aC(et)) | |
819 | + | let eL = invoke(ex, "onModifyWeight", [eH, eq], nil) | |
820 | + | if ((eL == eL)) | |
832 | 821 | then { | |
833 | - | let | |
834 | - | if (( | |
822 | + | let eM = invoke(ex, "onModifyWeight", [eI, er], nil) | |
823 | + | if ((eM == eM)) | |
835 | 824 | then { | |
836 | - | let | |
837 | - | if (( | |
825 | + | let eN = invoke(ex, "onModifyWeight", [eJ, es], nil) | |
826 | + | if ((eN == eN)) | |
838 | 827 | then { | |
839 | - | let | |
840 | - | if (( | |
841 | - | then [IntegerEntry( | |
828 | + | let eO = invoke(ex, "onModifyWeight", [eK, et], nil) | |
829 | + | if ((eO == eO)) | |
830 | + | then [IntegerEntry(ez, eF), IntegerEntry(eA, eG), IntegerEntry(eB, eu), IntegerEntry(eC, ev), IntegerEntry(ag(eq, 0), eD), IntegerEntry(ag(er, 0), eE), IntegerEntry(ag(es, 0), eu), IntegerEntry(ag(et, 0), ev)] | |
842 | 831 | else throw("Strict value is not equal to itself.") | |
843 | 832 | } | |
844 | 833 | else throw("Strict value is not equal to itself.") | |
845 | 834 | } | |
846 | 835 | else throw("Strict value is not equal to itself.") | |
847 | 836 | } | |
848 | 837 | else throw("Strict value is not equal to itself.") | |
849 | 838 | } | |
850 | 839 | } | |
851 | 840 | else throw("Strict value is not equal to itself.") | |
852 | 841 | } | |
853 | 842 | ||
854 | 843 | ||
855 | 844 | ||
856 | - | @Callable( | |
857 | - | func checkWxEmissionPoolLabel ( | |
858 | - | let | |
859 | - | let | |
860 | - | if ($isInstanceOf( | |
845 | + | @Callable(bE) | |
846 | + | func checkWxEmissionPoolLabel (aF,aG) = { | |
847 | + | let eP = { | |
848 | + | let bg = getBoolean(aE(aF, aG)) | |
849 | + | if ($isInstanceOf(bg, "Boolean")) | |
861 | 850 | then { | |
862 | - | let | |
863 | - | | |
851 | + | let cV = bg | |
852 | + | cV | |
864 | 853 | } | |
865 | 854 | else false | |
866 | 855 | } | |
867 | - | $Tuple2(nil, | |
856 | + | $Tuple2(nil, eP) | |
868 | 857 | } | |
869 | 858 | ||
870 | 859 | ||
871 | 860 | ||
872 | - | @Callable( | |
873 | - | func setWxEmissionPoolLabel ( | |
874 | - | let | |
875 | - | if (( | |
876 | - | then $Tuple2([BooleanEntry( | |
861 | + | @Callable(bE) | |
862 | + | func setWxEmissionPoolLabel (aF,aG) = { | |
863 | + | let dn = cr(bE) | |
864 | + | if ((dn == dn)) | |
865 | + | then $Tuple2([BooleanEntry(aE(aF, aG), true)], unit) | |
877 | 866 | else throw("Strict value is not equal to itself.") | |
878 | 867 | } | |
879 | 868 | ||
880 | 869 | ||
881 | 870 | ||
882 | - | @Callable( | |
883 | - | func deleteWxEmissionPoolLabel ( | |
884 | - | let | |
871 | + | @Callable(bE) | |
872 | + | func deleteWxEmissionPoolLabel (aF,aG) = { | |
873 | + | let dn = if ((bE.caller == this)) | |
885 | 874 | then true | |
886 | - | else | |
887 | - | if (( | |
888 | - | then $Tuple2([DeleteEntry( | |
875 | + | else cr(bE) | |
876 | + | if ((dn == dn)) | |
877 | + | then $Tuple2([DeleteEntry(aE(aF, aG))], unit) | |
889 | 878 | else throw("Strict value is not equal to itself.") | |
890 | 879 | } | |
891 | 880 | ||
892 | 881 | ||
893 | 882 | ||
894 | - | @Callable( | |
895 | - | func onVerificationLoss ( | |
896 | - | let | |
883 | + | @Callable(bE) | |
884 | + | func onVerificationLoss (aU) = { | |
885 | + | let dn = if ((toBase58String(bE.caller.bytes) == valueOrElse(getString(this, X()), ""))) | |
897 | 886 | then true | |
898 | - | else | |
899 | - | if (( | |
887 | + | else bF(bE) | |
888 | + | if ((dn == dn)) | |
900 | 889 | then { | |
901 | - | let | |
902 | - | let | |
890 | + | let du = by() | |
891 | + | let eQ = if ((size(du) > 0)) | |
903 | 892 | then true | |
904 | 893 | else K("invalid price assets") | |
905 | - | if (( | |
894 | + | if ((eQ == eQ)) | |
906 | 895 | then { | |
907 | - | func | |
908 | - | let | |
909 | - | if (( | |
896 | + | func eR (eS,eT) = { | |
897 | + | let cP = invoke(this, "deleteWxEmissionPoolLabel", [aU, eT], nil) | |
898 | + | if ((cP == cP)) | |
910 | 899 | then unit | |
911 | 900 | else throw("Strict value is not equal to itself.") | |
912 | 901 | } | |
913 | 902 | ||
914 | - | let | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | func | |
919 | - | then | |
920 | - | else | |
903 | + | let eU = { | |
904 | + | let eV = du | |
905 | + | let eW = size(eV) | |
906 | + | let eX = unit | |
907 | + | func eY (eZ,fa) = if ((fa >= eW)) | |
908 | + | then eZ | |
909 | + | else eR(eZ, eV[fa]) | |
921 | 910 | ||
922 | - | func | |
923 | - | then | |
911 | + | func fb (eZ,fa) = if ((fa >= eW)) | |
912 | + | then eZ | |
924 | 913 | else throw("List size exceeds 13") | |
925 | 914 | ||
926 | - | | |
915 | + | fb(eY(eY(eY(eY(eY(eY(eY(eY(eY(eY(eY(eY(eY(eX, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13) | |
927 | 916 | } | |
928 | - | if (( | |
917 | + | if ((eU == eU)) | |
929 | 918 | then $Tuple2(nil, unit) | |
930 | 919 | else throw("Strict value is not equal to itself.") | |
931 | 920 | } | |
932 | 921 | else throw("Strict value is not equal to itself.") | |
933 | 922 | } | |
934 | 923 | else throw("Strict value is not equal to itself.") | |
935 | 924 | } | |
936 | 925 | ||
937 | 926 | ||
938 | 927 | ||
939 | - | @Callable( | |
928 | + | @Callable(bE) | |
940 | 929 | func isPoolOneTokenOperationsDisabledREADONLY (af) = { | |
941 | - | let | |
942 | - | let aq = $Tuple2(parseIntValue( | |
943 | - | let | |
944 | - | let | |
945 | - | $Tuple2(nil, if ( | |
930 | + | let dU = ci(af) | |
931 | + | let aq = $Tuple2(parseIntValue(dU[C]), parseIntValue(dU[D])) | |
932 | + | let fc = valueOrElse(getBoolean(ap(aq)), false) | |
933 | + | let fd = valueOrElse(getBoolean(as()), false) | |
934 | + | $Tuple2(nil, if (fd) | |
946 | 935 | then true | |
947 | - | else | |
936 | + | else fc) | |
948 | 937 | } | |
949 | 938 | ||
950 | 939 | ||
951 | 940 | ||
952 | - | @Callable(bH) | |
953 | - | func isPoolSwapDisabledREADONLY (af) = { | |
954 | - | let dX = cl(af) | |
955 | - | let aq = $Tuple2(parseIntValue(dX[C]), parseIntValue(dX[D])) | |
956 | - | let fh = valueOrElse(getBoolean(at(aq)), false) | |
957 | - | let fi = valueOrElse(getBoolean(av()), false) | |
958 | - | $Tuple2(nil, if (fi) | |
959 | - | then true | |
960 | - | else fh) | |
941 | + | @Callable(bE) | |
942 | + | func getInFeeREADONLY (af) = { | |
943 | + | let fe = cu(aH(af), aI(), 0) | |
944 | + | $Tuple2(nil, fe) | |
961 | 945 | } | |
962 | 946 | ||
963 | 947 | ||
964 | 948 | ||
965 | - | @Callable( | |
966 | - | func | |
967 | - | let | |
968 | - | $Tuple2(nil, | |
949 | + | @Callable(bE) | |
950 | + | func getOutFeeREADONLY (af) = { | |
951 | + | let fe = cu(aK(af), aL(), fraction(10, b, 10000)) | |
952 | + | $Tuple2(nil, fe) | |
969 | 953 | } | |
970 | 954 | ||
971 | 955 | ||
972 | 956 | ||
973 | - | @Callable(bH) | |
974 | - | func getOutFeeREADONLY (af) = { | |
975 | - | let fj = cx(aN(af), aO(), fraction(10, b, 10000)) | |
976 | - | $Tuple2(nil, fj) | |
957 | + | @Callable(bE) | |
958 | + | func getSwapFeeREADONLY (ff) = { | |
959 | + | let fg = { | |
960 | + | let bg = getString(this, aJ(ff)) | |
961 | + | if ($isInstanceOf(bg, "String")) | |
962 | + | then { | |
963 | + | let bh = bg | |
964 | + | let fh = split(bh, m) | |
965 | + | let fi = parseIntValue(fh[1]) | |
966 | + | let fj = parseIntValue(fh[2]) | |
967 | + | $Tuple2(fi, fj) | |
968 | + | } | |
969 | + | else if ($isInstanceOf(bg, "Unit")) | |
970 | + | then unit | |
971 | + | else throw("Match error") | |
972 | + | } | |
973 | + | $Tuple2(nil, fg) | |
977 | 974 | } | |
978 | 975 | ||
979 | 976 | ||
980 | 977 | ||
981 | - | @Callable(bH) | |
982 | - | func getSwapFeeREADONLY (fk) = { | |
983 | - | let fl = { | |
984 | - | let bj = getString(this, aM(fk)) | |
985 | - | if ($isInstanceOf(bj, "String")) | |
986 | - | then { | |
987 | - | let bk = bj | |
988 | - | let fm = split(bk, m) | |
989 | - | let fn = parseIntValue(fm[1]) | |
990 | - | let fo = parseIntValue(fm[2]) | |
991 | - | $Tuple2(fn, fo) | |
992 | - | } | |
993 | - | else if ($isInstanceOf(bj, "Unit")) | |
994 | - | then unit | |
995 | - | else throw("Match error") | |
996 | - | } | |
997 | - | $Tuple2(nil, fl) | |
978 | + | @Callable(bE) | |
979 | + | func poolInfoREADONLY (fk,fl) = { | |
980 | + | let fm = getInteger(this, ak(fk)) | |
981 | + | let fn = getInteger(this, ak(fl)) | |
982 | + | let fo = getString(this, aB(value(fm), value(fn))) | |
983 | + | let fp = getString(this, aC(value(fo))) | |
984 | + | let dH = if (if (isDefined(fm)) | |
985 | + | then isDefined(fn) | |
986 | + | else false) | |
987 | + | then isDefined(fo) | |
988 | + | else false | |
989 | + | let fq = if (dH) | |
990 | + | then $Tuple2(addressFromStringValue(value(fo)), bd(value(fp))) | |
991 | + | else unit | |
992 | + | $Tuple2(nil, fq) | |
998 | 993 | } | |
999 | 994 | ||
1000 | 995 | ||
1001 | 996 | ||
1002 | - | @Callable(bH) | |
1003 | - | func poolInfoREADONLY (fp,fq) = { | |
1004 | - | let fr = getInteger(this, ak(fp)) | |
1005 | - | let fs = getInteger(this, ak(fq)) | |
1006 | - | let ft = getString(this, aE(value(fr), value(fs))) | |
1007 | - | let fu = getString(this, aF(value(ft))) | |
1008 | - | let dK = if (if (isDefined(fr)) | |
1009 | - | then isDefined(fs) | |
1010 | - | else false) | |
1011 | - | then isDefined(ft) | |
1012 | - | else false | |
1013 | - | let fv = if (dK) | |
1014 | - | then $Tuple2(addressFromStringValue(value(ft)), bg(value(fu))) | |
1015 | - | else unit | |
1016 | - | $Tuple2(nil, fv) | |
997 | + | @Callable(bE) | |
998 | + | func getPoolStatusREADONLY (af) = { | |
999 | + | let cj = split(aZ(az(af)), m) | |
1000 | + | let an = cj[1] | |
1001 | + | let ao = cj[2] | |
1002 | + | let cA = split(aZ(am(an, ao)), m) | |
1003 | + | $Tuple2(nil, parseIntValue(cA[w])) | |
1017 | 1004 | } | |
1018 | 1005 | ||
1019 | 1006 | ||
1020 | 1007 | ||
1021 | - | @Callable( | |
1022 | - | func | |
1023 | - | let | |
1024 | - | let an = | |
1025 | - | let ao = | |
1026 | - | let | |
1027 | - | $Tuple2(nil, | |
1008 | + | @Callable(bE) | |
1009 | + | func getPoolConfigREADONLY (af) = { | |
1010 | + | let cj = split(aZ(az(af)), m) | |
1011 | + | let an = cj[1] | |
1012 | + | let ao = cj[2] | |
1013 | + | let cA = split(aZ(am(an, ao)), m) | |
1014 | + | $Tuple2(nil, cA) | |
1028 | 1015 | } | |
1029 | 1016 | ||
1030 | 1017 | ||
1031 | 1018 | ||
1032 | - | @Callable( | |
1033 | - | func | |
1034 | - | let | |
1035 | - | let an = | |
1036 | - | let ao = | |
1037 | - | let | |
1038 | - | $Tuple2(nil, | |
1019 | + | @Callable(bE) | |
1020 | + | func getPoolConfigByLpAssetIdREADONLY (dM) = { | |
1021 | + | let cj = split(aZ(at(dM)), m) | |
1022 | + | let an = cj[1] | |
1023 | + | let ao = cj[2] | |
1024 | + | let cA = split(aZ(am(an, ao)), m) | |
1025 | + | $Tuple2(nil, cA) | |
1039 | 1026 | } | |
1040 | 1027 | ||
1041 | 1028 | ||
1042 | 1029 | ||
1043 | - | @Callable(bH) | |
1044 | - | func getPoolConfigByLpAssetIdREADONLY (dP) = { | |
1045 | - | let cm = split(bc(aw(dP)), m) | |
1046 | - | let an = cm[1] | |
1047 | - | let ao = cm[2] | |
1048 | - | let cD = split(bc(am(an, ao)), m) | |
1049 | - | $Tuple2(nil, cD) | |
1030 | + | @Callable(bE) | |
1031 | + | func poolExistsREADONLY (aF,aG) = $Tuple2(nil, cx(aF, aG)) | |
1032 | + | ||
1033 | + | ||
1034 | + | ||
1035 | + | @Callable(bE) | |
1036 | + | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aM(af)), false)) | |
1037 | + | ||
1038 | + | ||
1039 | + | ||
1040 | + | @Callable(bE) | |
1041 | + | func getChangeAmpConfigREADONLY (af) = { | |
1042 | + | let fr = getIntegerValue(aN(af)) | |
1043 | + | let fs = getIntegerValue(aO(af)) | |
1044 | + | let ft = getIntegerValue(aP(af)) | |
1045 | + | $Tuple2(nil, [fr, fs, ft]) | |
1050 | 1046 | } | |
1051 | 1047 | ||
1052 | 1048 | ||
1053 | 1049 | ||
1054 | - | @Callable(bH) | |
1055 | - | func poolExistsREADONLY (aI,aJ) = $Tuple2(nil, cA(aI, aJ)) | |
1056 | - | ||
1057 | - | ||
1058 | - | ||
1059 | - | @Callable(bH) | |
1060 | - | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aP(af)), false)) | |
1061 | - | ||
1062 | - | ||
1063 | - | ||
1064 | - | @Callable(bH) | |
1065 | - | func getChangeAmpConfigREADONLY (af) = { | |
1066 | - | let fw = getIntegerValue(aQ(af)) | |
1067 | - | let fx = getIntegerValue(aR(af)) | |
1068 | - | let fy = getIntegerValue(aS(af)) | |
1069 | - | $Tuple2(nil, [fw, fx, fy]) | |
1050 | + | @Callable(bE) | |
1051 | + | func getPoolWeightREADONLY (bW) = { | |
1052 | + | let af = aZ(aD(bW)) | |
1053 | + | let fu = valueOrElse(getInteger(ae(af)), 0) | |
1054 | + | $Tuple2(nil, fu) | |
1070 | 1055 | } | |
1071 | 1056 | ||
1072 | 1057 | ||
1073 | 1058 | ||
1074 | - | @Callable(bH) | |
1075 | - | func getPoolWeightREADONLY (bZ) = { | |
1076 | - | let af = bc(aG(bZ)) | |
1077 | - | let fz = valueOrElse(getInteger(ae(af)), 0) | |
1078 | - | $Tuple2(nil, fz) | |
1079 | - | } | |
1080 | - | ||
1081 | - | ||
1082 | - | ||
1083 | - | @Callable(bH) | |
1084 | - | func deletePool (aD) = { | |
1085 | - | let dX = cl(aD) | |
1086 | - | let dq = if ((toString(bH.caller) == cH(aD))) | |
1087 | - | then if (cP(aD)) | |
1059 | + | @Callable(bE) | |
1060 | + | func deletePool (aA) = { | |
1061 | + | let dU = ci(aA) | |
1062 | + | let dn = if ((toString(bE.caller) == cE(aA))) | |
1063 | + | then if (cM(aA)) | |
1088 | 1064 | then true | |
1089 | 1065 | else K("Pool is not empty") | |
1090 | - | else | |
1091 | - | if (( | |
1066 | + | else bF(bE) | |
1067 | + | if ((dn == dn)) | |
1092 | 1068 | then { | |
1093 | - | let | |
1069 | + | let fv = if ((valueOrElse(getInteger(ae(aA)), 0) == 0)) | |
1094 | 1070 | then true | |
1095 | 1071 | else K("Pool weight is not Zero") | |
1096 | - | if (( | |
1072 | + | if ((fv == fv)) | |
1097 | 1073 | then { | |
1098 | - | let | |
1074 | + | let fw = if ((dU[w] == toString(r))) | |
1099 | 1075 | then true | |
1100 | 1076 | else K("Pool must be SHUTDOWN (4)") | |
1101 | - | if (( | |
1077 | + | if ((fw == fw)) | |
1102 | 1078 | then { | |
1103 | - | let | |
1104 | - | let | |
1105 | - | let | |
1106 | - | let | |
1107 | - | let an = | |
1108 | - | let ao = | |
1109 | - | let | |
1110 | - | let | |
1111 | - | if (( | |
1079 | + | let fx = cD(aA) | |
1080 | + | let aF = fx._1 | |
1081 | + | let aG = fx._2 | |
1082 | + | let bW = fx._3 | |
1083 | + | let an = fx._4 | |
1084 | + | let ao = fx._5 | |
1085 | + | let cG = addressFromStringValue(getStringValue(Z())) | |
1086 | + | let fy = invoke(cG, "deletePool", [aF, aG], nil) | |
1087 | + | if ((fy == fy)) | |
1112 | 1088 | then { | |
1113 | - | let | |
1114 | - | let | |
1115 | - | if (( | |
1089 | + | let dt = addressFromStringValue(getStringValue(Y())) | |
1090 | + | let fz = invoke(dt, "deletePool", [aF, aG], nil) | |
1091 | + | if ((fz == fz)) | |
1116 | 1092 | then { | |
1117 | - | let | |
1118 | - | let | |
1119 | - | if (( | |
1120 | - | then [DeleteEntry( | |
1093 | + | let ds = addressFromStringValue(getStringValue(X())) | |
1094 | + | let fA = invoke(ds, "deletePool", [aF, aG], nil) | |
1095 | + | if ((fA == fA)) | |
1096 | + | then [DeleteEntry(aC(aA)), DeleteEntry(az(aA)), DeleteEntry(av(toString(an), toString(ao))), DeleteEntry(aB(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(at(bW)), DeleteEntry(aD(bW)), DeleteEntry(aE(aF, aG)), DeleteEntry(ae(aA)), DeleteEntry(ay(aA)), DeleteEntry(aH(aA)), DeleteEntry(aK(aA)), DeleteEntry(aM(aA)), DeleteEntry(aN(aA)), DeleteEntry(aO(aA)), DeleteEntry(aP(aA))] | |
1121 | 1097 | else throw("Strict value is not equal to itself.") | |
1122 | 1098 | } | |
1123 | 1099 | else throw("Strict value is not equal to itself.") | |
1124 | 1100 | } | |
1125 | 1101 | else throw("Strict value is not equal to itself.") | |
1126 | 1102 | } | |
1127 | 1103 | else throw("Strict value is not equal to itself.") | |
1128 | 1104 | } | |
1129 | 1105 | else throw("Strict value is not equal to itself.") | |
1130 | 1106 | } | |
1131 | 1107 | else throw("Strict value is not equal to itself.") | |
1132 | 1108 | } | |
1133 | 1109 | ||
1134 | 1110 | ||
1135 | - | @Verifier( | |
1136 | - | func | |
1137 | - | let | |
1138 | - | let | |
1139 | - | if ($isInstanceOf( | |
1111 | + | @Verifier(fB) | |
1112 | + | func fC () = { | |
1113 | + | let fD = { | |
1114 | + | let bg = bz() | |
1115 | + | if ($isInstanceOf(bg, "ByteVector")) | |
1140 | 1116 | then { | |
1141 | - | let | |
1142 | - | | |
1117 | + | let bG = bg | |
1118 | + | bG | |
1143 | 1119 | } | |
1144 | - | else if ($isInstanceOf( | |
1145 | - | then | |
1120 | + | else if ($isInstanceOf(bg, "Unit")) | |
1121 | + | then fB.senderPublicKey | |
1146 | 1122 | else throw("Match error") | |
1147 | 1123 | } | |
1148 | - | sigVerify( | |
1124 | + | sigVerify(fB.bodyBytes, fB.proofs[0], fD) | |
1149 | 1125 | } | |
1150 | 1126 |
github/deemru/w8io/026f985 347.57 ms ◑