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