tx · GBouABYyNQ5qo27b5P8iaJYzD4HchJFMfEodyP7GNdtZ 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv: -0.02700000 Waves 2022.11.03 15:21 [2300932] smart account 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv > SELF 0.00000000 Waves
{ "type": 13, "id": "GBouABYyNQ5qo27b5P8iaJYzD4HchJFMfEodyP7GNdtZ", "fee": 2700000, "feeAssetId": null, "timestamp": 1667478089484, "version": 1, "sender": "3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv", "senderPublicKey": "39YkRD2qWXTcdNBr4CbDnm8g8SAB2FKVaDeGYahcFHHx", "proofs": [ "2VpsFJHq7k3Cv8sF5yAwMo3s3dQJUzLRnaz9pAvqcBKVYjRCArmBnccoTgyF4zM7TZwRuiYYFcn9C33S7L6xCDFX" ], "script": "base64:AAIFAAAAAAAADy0IAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIAIg9nZXRTdHJpbmdPckZhaWwiA2tleSIDU0VQIghCVUZTQ0FMRSIGc2NhbGU4Igh0aHJvd0VyciIDbXNnIh1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldCIQcHJpY2VBc3NldEFtb3VudCIOcHJpY2VBc3NldE1VTFQiBXByaWNlIglwcmljZU1VTFQiDGlkb0Fzc2V0TVVMVCIPYlByaWNlQXNzZXRNVUxUIg1iSWRvQXNzZXRNVUxUIg5iUHJpY2VBc3NldEJVRiIPYkFtb3VudEFzc2V0QlVGIg5JZHhDZmdJZG9TdGFydCIRSWR4Q2ZnSWRvRHVyYXRpb24iEElkeENmZ0NsYWltU3RhcnQiE0lkeENmZ0NsYWltRHVyYXRpb24iC0lkeENmZ1ByaWNlIg9JZHhDZmdQcmljZU11bHQiEElkeENmZ0lkb0Fzc2V0SWQiEklkeENmZ0lkb0Fzc2V0TXVsdCISSWR4Q2ZnUHJpY2VBc3NldElkIhRJZHhDZmdQcmlj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AACY2YAAAAABAAAAAJjWQMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAJjWAYJAAACAAAAAQIAAAASTm8gcGVuZGluZyBtYW5hZ2VyAwkAAAAAAAACBQAAAAJjWQUAAAACY1kEAAAAAmNaAwkAAAAAAAACCAUAAAACY2gAAAAPY2FsbGVyUHVibGljS2V5CQEAAAAFdmFsdWUAAAABBQAAAAJjWAYJAAACAAAAAQIAAAAbWW91IGFyZSBub3QgcGVuZGluZyBtYW5hZ2VyAwkAAAAAAAACBQAAAAJjWgUAAAACY1oJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAAmFCAAAAAAkAAlgAAAABCQEAAAAFdmFsdWUAAAABBQAAAAJjWAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAACYUMAAAAABQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACZGEBAAAAAmRiAAAAAAQAAAACZGMEAAAAAmNkCQEAAAACY2MAAAAAAwkAAAEAAAACBQAAAAJjZAIAAAAKQnl0ZVZlY3RvcgQAAAACY2oFAAAAAmNkBQAAAAJjagMJAAABAAAAAgUAAAACY2QCAAAABFVuaXQIBQAAAAJkYQAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAmRhAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACZGEAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJkY3J7HEM=", "chainId": 84, "height": 2300932, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9cSBRe14tt8CVmX5shjK7fHJFWYiuEWyaLeK3YC3xPH Next: GuP8Xv9mLH4Nfg6XJ7qwX6jG8MxyaMe8a4uKGCrTnG94 Diff:
Old | New | Differences | |
---|---|---|---|
274 | 274 | let bK = valueOrElse(getInteger(aw(K, bC, be)), bu) | |
275 | 275 | let bL = valueOrElse(getInteger(az(be)), 0) | |
276 | 276 | let bM = min([(br + bL), bJ, bK]) | |
277 | - | let bN = value(getInteger(ar())) | |
278 | - | let bO = e | |
279 | - | let bP = { | |
280 | - | let bQ = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bO, K], nil) | |
281 | - | if ($isInstanceOf(bQ, "(Int, Int, Int)")) | |
282 | - | then bQ | |
283 | - | else throw("Couldn't cast Any to (Int, Int, Int)") | |
284 | - | } | |
285 | - | if ((bP == bP)) | |
277 | + | let bN = (br + bL) | |
278 | + | let bO = throw(makeString([toString(br), toString(bL), toString(bN), toString(bJ), toString(bK)], c)) | |
279 | + | if ((bO == bO)) | |
286 | 280 | then { | |
287 | - | let bR = bP._3 | |
288 | - | let bS = bP._2 | |
289 | - | let bT = bP._1 | |
290 | - | let bU = value(getString(ay())) | |
291 | - | let bV = { | |
292 | - | let bQ = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bU, bT], nil) | |
293 | - | if ($isInstanceOf(bQ, "(Int, Int)")) | |
294 | - | then bQ | |
295 | - | else throw("Couldn't cast Any to (Int, Int)") | |
281 | + | let bP = value(getInteger(ar())) | |
282 | + | let bQ = e | |
283 | + | let bR = { | |
284 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bQ, K], nil) | |
285 | + | if ($isInstanceOf(bS, "(Int, Int, Int)")) | |
286 | + | then bS | |
287 | + | else throw("Couldn't cast Any to (Int, Int, Int)") | |
296 | 288 | } | |
297 | - | if (( | |
289 | + | if ((bR == bR)) | |
298 | 290 | then { | |
299 | - | let bW = bV._2 | |
300 | - | let bX = bV._1 | |
301 | - | let bY = fraction(bX, bO, e) | |
302 | - | let bZ = (bF - height) | |
303 | - | $Tuple10(bM, bJ, bK, bs, bN, bY, bZ, bC, bD, bF) | |
291 | + | let bT = bR._3 | |
292 | + | let bU = bR._2 | |
293 | + | let bV = bR._1 | |
294 | + | let bW = value(getString(ay())) | |
295 | + | let bX = { | |
296 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bW, bV], nil) | |
297 | + | if ($isInstanceOf(bS, "(Int, Int)")) | |
298 | + | then bS | |
299 | + | else throw("Couldn't cast Any to (Int, Int)") | |
300 | + | } | |
301 | + | if ((bX == bX)) | |
302 | + | then { | |
303 | + | let bY = bX._2 | |
304 | + | let bZ = bX._1 | |
305 | + | let ca = fraction(bZ, bQ, e) | |
306 | + | let cb = (bF - height) | |
307 | + | $Tuple10(bM, bJ, bK, bs, bP, ca, cb, bC, bD, bF) | |
308 | + | } | |
309 | + | else throw("Strict value is not equal to itself.") | |
304 | 310 | } | |
305 | 311 | else throw("Strict value is not equal to itself.") | |
306 | 312 | } | |
308 | 314 | } | |
309 | 315 | ||
310 | 316 | ||
311 | - | func | |
312 | - | let | |
313 | - | if ($isInstanceOf( | |
317 | + | func cc () = { | |
318 | + | let cd = getString(aB()) | |
319 | + | if ($isInstanceOf(cd, "String")) | |
314 | 320 | then { | |
315 | - | let | |
316 | - | fromBase58String( | |
321 | + | let ce = cd | |
322 | + | fromBase58String(ce) | |
317 | 323 | } | |
318 | - | else if ($isInstanceOf( | |
324 | + | else if ($isInstanceOf(cd, "Unit")) | |
319 | 325 | then unit | |
320 | 326 | else throw("Match error") | |
321 | 327 | } | |
322 | 328 | ||
323 | 329 | ||
324 | - | func | |
325 | - | let | |
326 | - | if ($isInstanceOf( | |
330 | + | func cf () = { | |
331 | + | let cd = getString(aC()) | |
332 | + | if ($isInstanceOf(cd, "String")) | |
327 | 333 | then { | |
328 | - | let | |
329 | - | fromBase58String( | |
334 | + | let ce = cd | |
335 | + | fromBase58String(ce) | |
330 | 336 | } | |
331 | - | else if ($isInstanceOf( | |
337 | + | else if ($isInstanceOf(cd, "Unit")) | |
332 | 338 | then unit | |
333 | 339 | else throw("Match error") | |
334 | 340 | } | |
335 | 341 | ||
336 | 342 | ||
337 | - | func | |
338 | - | let | |
339 | - | let | |
340 | - | if ($isInstanceOf( | |
343 | + | func cg (ch) = { | |
344 | + | let ci = throw("Permission denied") | |
345 | + | let cd = cc() | |
346 | + | if ($isInstanceOf(cd, "ByteVector")) | |
341 | 347 | then { | |
342 | - | let | |
343 | - | if (( | |
348 | + | let cj = cd | |
349 | + | if ((ch.callerPublicKey == cj)) | |
344 | 350 | then true | |
345 | - | else | |
351 | + | else ci | |
346 | 352 | } | |
347 | - | else if ($isInstanceOf( | |
348 | - | then if (( | |
353 | + | else if ($isInstanceOf(cd, "Unit")) | |
354 | + | then if ((ch.caller == this)) | |
349 | 355 | then true | |
350 | - | else | |
356 | + | else ci | |
351 | 357 | else throw("Match error") | |
352 | 358 | } | |
353 | 359 | ||
354 | 360 | ||
355 | - | @Callable( | |
361 | + | @Callable(ch) | |
356 | 362 | func constructor (D,E,F,G,k,K,M) = { | |
357 | 363 | let H = ((100 * 1000) * 1000) | |
358 | - | let | |
364 | + | let ck = (D + E) | |
359 | 365 | if (isDefined(getString(ad()))) | |
360 | 366 | then throw("already initialized") | |
361 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
367 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(ch.caller))) | |
362 | 368 | then throw("not authorized") | |
363 | - | else if ((size( | |
369 | + | else if ((size(ch.payments) != 1)) | |
364 | 370 | then throw("exactly 1 payment must be attached") | |
365 | - | else if (( | |
371 | + | else if ((ck >= F)) | |
366 | 372 | then throw("claimStart must be greater than idoEnd") | |
367 | 373 | else { | |
368 | - | let | |
369 | - | let bc = value( | |
370 | - | let | |
374 | + | let cl = value(ch.payments[0]) | |
375 | + | let bc = value(cl.assetId) | |
376 | + | let cm = valueOrErrorMessage(assetInfo(bc), "fail to load ido asset info") | |
371 | 377 | let I = toBase58String(bc) | |
372 | - | let J = pow(10, 0, | |
378 | + | let J = pow(10, 0, cm.decimals, 0, 0, DOWN) | |
373 | 379 | let bd = fromBase58String(K) | |
374 | - | let | |
375 | - | let L = pow(10, 0, | |
376 | - | let | |
377 | - | let | |
378 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
380 | + | let cn = valueOrErrorMessage(assetInfo(bd), "fail to load price asset info") | |
381 | + | let L = pow(10, 0, cn.decimals, 0, 0, DOWN) | |
382 | + | let co = aG() | |
383 | + | let cp = [0, 0, 0, 0] | |
384 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cl.amount)), aN(ag(), co, cp, F)] | |
379 | 385 | } | |
380 | 386 | } | |
381 | 387 | ||
382 | 388 | ||
383 | 389 | ||
384 | - | @Callable( | |
390 | + | @Callable(ch) | |
385 | 391 | func invest () = { | |
386 | 392 | let ba = aD() | |
387 | 393 | let D = parseIntValue(ba[r]) | |
388 | 394 | let E = parseIntValue(ba[s]) | |
389 | - | let | |
395 | + | let ck = (D + E) | |
390 | 396 | let F = parseIntValue(ba[t]) | |
391 | 397 | let G = parseIntValue(ba[u]) | |
392 | 398 | let k = parseIntValue(ba[v]) | |
397 | 403 | let K = ba[z] | |
398 | 404 | let bd = fromBase58String(K) | |
399 | 405 | let L = parseIntValue(ba[A]) | |
400 | - | let | |
401 | - | let af = toString( | |
406 | + | let cq = parseIntValue(ba[B]) | |
407 | + | let af = toString(ch.caller) | |
402 | 408 | if ((D > height)) | |
403 | 409 | then throw("ido has not been started yet") | |
404 | - | else if ((height > | |
410 | + | else if ((height > ck)) | |
405 | 411 | then throw("ido has been already ended") | |
406 | - | else if ((size( | |
412 | + | else if ((size(ch.payments) != 1)) | |
407 | 413 | then throw("exactly 1 payment is expected") | |
408 | 414 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | if (( | |
413 | - | then throw((("invalid payment asset id: " + toBase58String( | |
415 | + | let cl = value(ch.payments[0]) | |
416 | + | let cr = value(cl.assetId) | |
417 | + | let cs = cl.amount | |
418 | + | if ((cr != bd)) | |
419 | + | then throw((("invalid payment asset id: " + toBase58String(cr)) + " is expected")) | |
414 | 420 | else { | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | if (( | |
421 | + | let ct = aH(af) | |
422 | + | let co = aG() | |
423 | + | let cu = (parseIntValue(co[P]) + cs) | |
424 | + | let cv = (cu * 100) | |
425 | + | if ((cv > assetBalance(this, bc))) | |
420 | 426 | then throw("IDO asset has been - sold consider to use smaller payment") | |
421 | 427 | else { | |
422 | - | let | |
423 | - | [aN(ae(af), | |
428 | + | let cp = [cs, cs, 0, 0] | |
429 | + | [aN(ae(af), ct, cp, F), aN(ag(), co, cp, F), aV(af, cs, 0, ch.transactionId)] | |
424 | 430 | } | |
425 | 431 | } | |
426 | 432 | } | |
428 | 434 | ||
429 | 435 | ||
430 | 436 | ||
431 | - | @Callable( | |
437 | + | @Callable(ch) | |
432 | 438 | func claim (aZ,be) = { | |
433 | - | let | |
434 | - | if ((be != | |
439 | + | let cw = toString(ch.caller) | |
440 | + | if ((be != cw)) | |
435 | 441 | then throw("not authorized") | |
436 | 442 | else { | |
437 | 443 | let ba = aD() | |
438 | 444 | let K = ba[z] | |
439 | - | let | |
440 | - | let | |
441 | - | let br = | |
442 | - | let | |
443 | - | let bf = | |
444 | - | let bj = | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
445 | + | let cx = aY(aZ, ch.caller, ch.transactionId) | |
446 | + | let cp = cx._1 | |
447 | + | let br = cx._2 | |
448 | + | let cy = cx._3 | |
449 | + | let bf = cx._4 | |
450 | + | let bj = cx._5 | |
451 | + | let cz = cp[aL] | |
452 | + | let cA = cp[aM] | |
453 | + | let cB = if ((aZ == K)) | |
448 | 454 | then { | |
449 | - | let | |
450 | - | let bM = | |
451 | - | let bJ = | |
452 | - | let bK = | |
453 | - | let bs = | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let bC = | |
458 | - | let bD = | |
459 | - | let bF = | |
455 | + | let cC = bq(K, be, br, cp[aL]) | |
456 | + | let bM = cC._1 | |
457 | + | let bJ = cC._2 | |
458 | + | let bK = cC._3 | |
459 | + | let bs = cC._4 | |
460 | + | let bP = cC._5 | |
461 | + | let ca = cC._6 | |
462 | + | let cb = cC._7 | |
463 | + | let bC = cC._8 | |
464 | + | let bD = cC._9 | |
465 | + | let bF = cC._10 | |
460 | 466 | let bp = [if ((bK > 0)) | |
461 | 467 | then true | |
462 | 468 | else f("unavailable to claim because user period allowance reached"), if ((bJ > 0)) | |
463 | 469 | then true | |
464 | 470 | else f("unavailable to claim because total period allowance reached"), if ((bM > 0)) | |
465 | 471 | then true | |
466 | - | else f("nothing to claim"), if (( | |
472 | + | else f("nothing to claim"), if ((bP > ca)) | |
467 | 473 | then true | |
468 | 474 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
469 | 475 | if ((bp == bp)) | |
470 | 476 | then { | |
471 | 477 | let bL = valueOrElse(getInteger(az(be)), 0) | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | if (( | |
478 | + | let cD = (bJ - bM) | |
479 | + | let cE = (bK - bM) | |
480 | + | let cF = value(assetInfo(fromBase58String(aZ))).decimals | |
481 | + | let cG = fraction(bM, pow(10, 0, cF, 0, 0, DOWN), e) | |
482 | + | let cH = throw(makeString([toString(cF), toString(bM), toString(cG)], c)) | |
483 | + | if ((cH == cH)) | |
478 | 484 | then { | |
479 | - | let | |
480 | - | then [ScriptTransfer( | |
485 | + | let cB = if ((bL >= bM)) | |
486 | + | then [ScriptTransfer(ch.caller, cG, cy), IntegerEntry(az(be), (bL - bM))] | |
481 | 487 | else { | |
482 | - | let | |
483 | - | [ScriptTransfer( | |
488 | + | let cI = ((bL + br) - bM) | |
489 | + | [ScriptTransfer(ch.caller, cG, cy), aN(ae(be), bf, cp, bj), aN(ag(), aG(), cp, bj), IntegerEntry(az(be), cI)] | |
484 | 490 | } | |
485 | - | $Tuple2(([IntegerEntry(an(), bC), IntegerEntry(ao(bC), bD), IntegerEntry(aq(bC), bF), IntegerEntry(av(K, bC), | |
491 | + | $Tuple2(([IntegerEntry(an(), bC), IntegerEntry(ao(bC), bD), IntegerEntry(aq(bC), bF), IntegerEntry(av(K, bC), cD), IntegerEntry(aw(K, bC, be), cE), aX(be, cG, cA, ch.transactionId)] ++ cB), unit) | |
486 | 492 | } | |
487 | 493 | else throw("Strict value is not equal to itself.") | |
488 | 494 | } | |
489 | 495 | else throw("Strict value is not equal to itself.") | |
490 | 496 | } | |
491 | - | else $Tuple2([ScriptTransfer( | |
492 | - | | |
497 | + | else $Tuple2([ScriptTransfer(ch.caller, br, cy), IntegerEntry(az(be), 0), aN(ae(be), bf, cp, bj), aN(ag(), aG(), cp, bj), aX(be, cz, cA, ch.transactionId)], unit) | |
498 | + | cB | |
493 | 499 | } | |
494 | 500 | } | |
495 | 501 | ||
496 | 502 | ||
497 | 503 | ||
498 | - | @Callable( | |
504 | + | @Callable(ch) | |
499 | 505 | func claimREADONLY (aZ,be) = { | |
500 | - | let | |
501 | - | let | |
502 | - | let br = | |
503 | - | let | |
504 | - | let bf = | |
505 | - | let bj = | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | $Tuple2(nil, makeString(["%s%d%d", be, toString( | |
506 | + | let cx = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
507 | + | let cp = cx._1 | |
508 | + | let br = cx._2 | |
509 | + | let cy = cx._3 | |
510 | + | let bf = cx._4 | |
511 | + | let bj = cx._5 | |
512 | + | let cJ = cx._6 | |
513 | + | let cK = cJ[0] | |
514 | + | let cL = cJ[1] | |
515 | + | $Tuple2(nil, makeString(["%s%d%d", be, toString(cK), toString(cL)], c)) | |
510 | 516 | } | |
511 | 517 | ||
512 | 518 | ||
513 | 519 | ||
514 | - | @Callable( | |
520 | + | @Callable(ch) | |
515 | 521 | func claimV2READONLY (aZ,be) = { | |
516 | - | let | |
517 | - | let | |
518 | - | let br = | |
519 | - | let | |
520 | - | let bf = | |
521 | - | let bj = | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
522 | + | let cx = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
523 | + | let cp = cx._1 | |
524 | + | let br = cx._2 | |
525 | + | let cy = cx._3 | |
526 | + | let bf = cx._4 | |
527 | + | let bj = cx._5 | |
528 | + | let cJ = cx._6 | |
529 | + | let cK = cJ[0] | |
530 | + | let cL = cJ[1] | |
525 | 531 | let ba = aD() | |
526 | 532 | let K = ba[z] | |
527 | 533 | let bL = valueOrElse(getInteger(az(be)), 0) | |
528 | - | let | |
529 | - | let | |
530 | - | let bM = | |
531 | - | let bJ = | |
532 | - | let bK = | |
533 | - | let bs = | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let bC = | |
538 | - | let bD = | |
539 | - | let bF = | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
534 | + | let cM = (cL + bL) | |
535 | + | let cN = bq(K, be, br, cp[aL]) | |
536 | + | let bM = cN._1 | |
537 | + | let bJ = cN._2 | |
538 | + | let bK = cN._3 | |
539 | + | let bs = cN._4 | |
540 | + | let bP = cN._5 | |
541 | + | let ca = cN._6 | |
542 | + | let cb = cN._7 | |
543 | + | let bC = cN._8 | |
544 | + | let bD = cN._9 | |
545 | + | let bF = cN._10 | |
546 | + | let cO = valueOrElse(getInteger(aq(bC)), 0) | |
547 | + | let cP = value(assetInfo(fromBase58String(aZ))).decimals | |
548 | + | let cQ = if ((height > cO)) | |
543 | 549 | then { | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | makeString(["%d%d%d%d%d%d", toString( | |
550 | + | let cR = value(getInteger(am())) | |
551 | + | let cS = value(getInteger(au(K))) | |
552 | + | let cT = value(getInteger(as(K))) | |
553 | + | makeString(["%d%d%d%d%d%d", toString(cM), toString(cS), toString(cT), toString(bP), toString(ca), toString(cR), toString(br), toString(bM), toString(bK), toString(cP)], c) | |
548 | 554 | } | |
549 | - | else makeString(["%d%d%d%d%d%d", toString( | |
550 | - | $Tuple2(nil, | |
555 | + | else makeString(["%d%d%d%d%d%d", toString(cM), toString(bM), toString(bJ), toString(bP), toString(ca), toString(cb), toString(br), toString(bM), toString(bK), toString(cP)], c) | |
556 | + | $Tuple2(nil, cQ) | |
551 | 557 | } | |
552 | 558 | ||
553 | 559 | ||
554 | 560 | ||
555 | - | @Callable( | |
556 | - | func setManager ( | |
557 | - | let | |
558 | - | if (( | |
561 | + | @Callable(ch) | |
562 | + | func setManager (cU) = { | |
563 | + | let cV = cg(ch) | |
564 | + | if ((cV == cV)) | |
559 | 565 | then { | |
560 | - | let | |
561 | - | if (( | |
562 | - | then [StringEntry(aC(), | |
566 | + | let cW = fromBase58String(cU) | |
567 | + | if ((cW == cW)) | |
568 | + | then [StringEntry(aC(), cU)] | |
563 | 569 | else throw("Strict value is not equal to itself.") | |
564 | 570 | } | |
565 | 571 | else throw("Strict value is not equal to itself.") | |
567 | 573 | ||
568 | 574 | ||
569 | 575 | ||
570 | - | @Callable( | |
576 | + | @Callable(ch) | |
571 | 577 | func confirmManager () = { | |
572 | - | let | |
573 | - | let | |
578 | + | let cX = cf() | |
579 | + | let cY = if (isDefined(cX)) | |
574 | 580 | then true | |
575 | 581 | else throw("No pending manager") | |
576 | - | if (( | |
582 | + | if ((cY == cY)) | |
577 | 583 | then { | |
578 | - | let | |
584 | + | let cZ = if ((ch.callerPublicKey == value(cX))) | |
579 | 585 | then true | |
580 | 586 | else throw("You are not pending manager") | |
581 | - | if (( | |
582 | - | then [StringEntry(aB(), toBase58String(value( | |
587 | + | if ((cZ == cZ)) | |
588 | + | then [StringEntry(aB(), toBase58String(value(cX))), DeleteEntry(aC())] | |
583 | 589 | else throw("Strict value is not equal to itself.") | |
584 | 590 | } | |
585 | 591 | else throw("Strict value is not equal to itself.") | |
586 | 592 | } | |
587 | 593 | ||
588 | 594 | ||
589 | - | @Verifier( | |
590 | - | func | |
591 | - | let | |
592 | - | let | |
593 | - | if ($isInstanceOf( | |
595 | + | @Verifier(da) | |
596 | + | func db () = { | |
597 | + | let dc = { | |
598 | + | let cd = cc() | |
599 | + | if ($isInstanceOf(cd, "ByteVector")) | |
594 | 600 | then { | |
595 | - | let | |
596 | - | | |
601 | + | let cj = cd | |
602 | + | cj | |
597 | 603 | } | |
598 | - | else if ($isInstanceOf( | |
599 | - | then | |
604 | + | else if ($isInstanceOf(cd, "Unit")) | |
605 | + | then da.senderPublicKey | |
600 | 606 | else throw("Match error") | |
601 | 607 | } | |
602 | - | sigVerify( | |
608 | + | sigVerify(da.bodyBytes, da.proofs[0], dc) | |
603 | 609 | } | |
604 | 610 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrErrorMessage(getString(b), (("mandatory this." + b) + " is not defined")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let c = "__" | |
8 | 8 | ||
9 | 9 | let d = toBigInt(1000000000000000000) | |
10 | 10 | ||
11 | 11 | let e = 100000000 | |
12 | 12 | ||
13 | 13 | func f (g) = throw(makeString(["ido.ride:", g], " ")) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func h (i,j,k,l,m) = { | |
17 | 17 | let n = toBigInt(j) | |
18 | 18 | let o = toBigInt(m) | |
19 | 19 | let p = fraction(toBigInt(i), d, n) | |
20 | 20 | let q = fraction(p, toBigInt(l), toBigInt(k)) | |
21 | 21 | toInt(fraction(q, toBigInt(m), d)) | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | let r = 1 | |
26 | 26 | ||
27 | 27 | let s = 2 | |
28 | 28 | ||
29 | 29 | let t = 3 | |
30 | 30 | ||
31 | 31 | let u = 4 | |
32 | 32 | ||
33 | 33 | let v = 5 | |
34 | 34 | ||
35 | 35 | let w = 6 | |
36 | 36 | ||
37 | 37 | let x = 7 | |
38 | 38 | ||
39 | 39 | let y = 8 | |
40 | 40 | ||
41 | 41 | let z = 9 | |
42 | 42 | ||
43 | 43 | let A = 10 | |
44 | 44 | ||
45 | 45 | let B = 11 | |
46 | 46 | ||
47 | 47 | func C (D,E,F,G,k,H,I,J,K,L,M,N) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", D, E, F, G, k, H, I, J, K, L, M, N], c) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func O (D,E,F,G,k,H,I,J,K,L,M,N) = C(toString(D), toString(E), toString(F), toString(G), toString(k), toString(H), I, toString(J), K, toString(L), toString(M), toString(N)) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | let P = 1 | |
54 | 54 | ||
55 | 55 | let Q = 2 | |
56 | 56 | ||
57 | 57 | let R = 3 | |
58 | 58 | ||
59 | 59 | let S = 4 | |
60 | 60 | ||
61 | 61 | let T = 5 | |
62 | 62 | ||
63 | 63 | func U (V,W,X,Y,Z) = makeString(["%d%d%d%d%d", V, W, X, Y, Z], c) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func aa (V,W,X,Y,Z) = U(toString(V), toString(W), toString(X), toString(Y), toString(Z)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func ab (i,ac) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(i), toString(ac)], c) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func ad () = "%s__config" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func ae (af) = ("%s__" + af) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func ag () = "%s__totals" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func ah (ai,af,aj) = makeString(["%s%s%s%s__history", ai, af, aj], c) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func ak () = "%s__usdnClaimDisabled" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func al () = "%s__usdnClaimEndHeight" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func am () = makeString(["%s", "periodLength"], c) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func an () = makeString(["%s", "currentPeriod"], c) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func ao (ap) = makeString(["%s%s", "periodStartHeight", toString(ap)], c) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func aq (ap) = makeString(["%s%s", "periodEndHeight", toString(ap)], c) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func ar () = makeString(["%s", "usdtPriceAssetAllowableRatio"], c) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func as (at) = makeString(["%s%s", "totalPeriodAllowance", at], c) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func au (at) = makeString(["%s%s", "userPeriodAllowance", at], c) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func av (at,ap) = makeString(["%s%s%s", "periodTotalAvailableToClaim", at, toString(ap)], c) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func aw (at,ap,af) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", at, toString(ap), af], c) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ax () = makeString(["%s", "usdtPriceAssetStablePool"], c) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ay () = makeString(["%s", "usdtAssetId"], c) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func az (aA) = makeString(["%s%s", "priceAssetBalance", aA], c) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func aB () = "%s__managerPublicKey" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func aC () = "%s__pendingManagerPublicKey" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func aD () = split(a(ad()), c) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func aE (aF) = split(valueOrElse(getString(aF), U("0", "0", "0", "0", "0")), c) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func aG () = aE(ag()) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func aH (af) = aE(ae(af)) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func aI (af) = split(a(ae(af)), c) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | let aJ = 0 | |
148 | 148 | ||
149 | 149 | let aK = 1 | |
150 | 150 | ||
151 | 151 | let aL = 2 | |
152 | 152 | ||
153 | 153 | let aM = 3 | |
154 | 154 | ||
155 | 155 | func aN (b,aO,aP,aQ) = { | |
156 | 156 | let V = parseIntValue(aO[P]) | |
157 | 157 | let W = parseIntValue(aO[Q]) | |
158 | 158 | let X = parseIntValue(aO[R]) | |
159 | 159 | let Y = parseIntValue(aO[S]) | |
160 | 160 | let Z = parseIntValue(aO[T]) | |
161 | 161 | let aR = (V + aP[aJ]) | |
162 | 162 | let aS = (W + aP[aK]) | |
163 | 163 | let aT = (X + aP[aL]) | |
164 | 164 | let aU = (Y + aP[aM]) | |
165 | 165 | if ((0 > aS)) | |
166 | 166 | then throw("invalid math") | |
167 | 167 | else StringEntry(b, aa(aR, aS, aT, aU, aQ)) | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func aV (af,i,ac,aW) = StringEntry(ah("invest", af, toBase58String(aW)), ab(i, ac)) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aX (af,i,ac,aW) = StringEntry(ah("claim", af, toBase58String(aW)), ab(i, ac)) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aY (aZ,af,aW) = { | |
178 | 178 | let ba = aD() | |
179 | 179 | let F = parseIntValue(ba[t]) | |
180 | 180 | let G = parseIntValue(ba[u]) | |
181 | 181 | let bb = (F + G) | |
182 | 182 | let k = parseIntValue(ba[v]) | |
183 | 183 | let H = parseIntValue(ba[w]) | |
184 | 184 | let I = ba[x] | |
185 | 185 | let bc = fromBase58String(I) | |
186 | 186 | let J = parseIntValue(ba[y]) | |
187 | 187 | let K = ba[z] | |
188 | 188 | let bd = fromBase58String(K) | |
189 | 189 | let L = parseIntValue(ba[A]) | |
190 | 190 | let be = toString(af) | |
191 | 191 | let bf = aI(be) | |
192 | 192 | let bg = parseIntValue(bf[P]) | |
193 | 193 | let bh = parseIntValue(bf[T]) | |
194 | 194 | let bi = if ((F >= bh)) | |
195 | 195 | then F | |
196 | 196 | else bh | |
197 | 197 | let bj = if ((height > bb)) | |
198 | 198 | then bb | |
199 | 199 | else if ((F > height)) | |
200 | 200 | then F | |
201 | 201 | else height | |
202 | 202 | let bk = (bj - bi) | |
203 | 203 | let bl = fraction(bg, bk, G) | |
204 | 204 | let bm = h(bl, L, k, H, J) | |
205 | 205 | let bn = (aZ == K) | |
206 | 206 | let bo = valueOrElse(getBoolean(ak()), false) | |
207 | 207 | let bp = [if (!(if (bn) | |
208 | 208 | then bo | |
209 | 209 | else false)) | |
210 | 210 | then true | |
211 | 211 | else throw("USDN claim is disabled")] | |
212 | 212 | if ((bp == bp)) | |
213 | 213 | then if ((aZ == K)) | |
214 | 214 | then $Tuple6([0, -(bl), bl, 0], bl, bd, bf, bj, [bl, bm]) | |
215 | 215 | else if ((aZ == I)) | |
216 | 216 | then $Tuple6([0, -(bl), 0, bm], bm, bc, bf, bj, [bl, bm]) | |
217 | 217 | else throw(("unsupported assetId: " + aZ)) | |
218 | 218 | else throw("Strict value is not equal to itself.") | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func bq (K,be,br,bs) = { | |
223 | 223 | let bt = value(getInteger(as(K))) | |
224 | 224 | let bu = value(getInteger(au(K))) | |
225 | 225 | let bv = value(getInteger(am())) | |
226 | 226 | let bw = valueOrElse(getInteger(an()), 0) | |
227 | 227 | let bx = isDefined(getInteger(aq(0))) | |
228 | 228 | let by = if ((bw > 0)) | |
229 | 229 | then { | |
230 | 230 | let bz = value(getInteger(ao(bw))) | |
231 | 231 | let bA = value(getInteger(aq(bw))) | |
232 | 232 | let bB = if ((height > bA)) | |
233 | 233 | then { | |
234 | 234 | let bC = (bw + 1) | |
235 | 235 | let bD = if ((height > (bA + bv))) | |
236 | 236 | then { | |
237 | 237 | let bE = ((height - bA) % bv) | |
238 | 238 | if ((bE == 0)) | |
239 | 239 | then ((height - bv) + 1) | |
240 | 240 | else (height - bE) | |
241 | 241 | } | |
242 | 242 | else (bA + 1) | |
243 | 243 | let bF = ((bD + bv) - 1) | |
244 | 244 | $Tuple3(bC, bD, bF) | |
245 | 245 | } | |
246 | 246 | else $Tuple3(bw, bz, bA) | |
247 | 247 | let bC = bB._1 | |
248 | 248 | let bD = bB._2 | |
249 | 249 | let bF = bB._3 | |
250 | 250 | $Tuple3(bC, bD, bF) | |
251 | 251 | } | |
252 | 252 | else if (bx) | |
253 | 253 | then { | |
254 | 254 | let bG = value(getInteger(ao(0))) | |
255 | 255 | let bH = value(getInteger(aq(0))) | |
256 | 256 | let bI = if ((height > bH)) | |
257 | 257 | then { | |
258 | 258 | let bC = (bw + 1) | |
259 | 259 | let bD = (bH + 1) | |
260 | 260 | let bF = ((bD + bv) - 1) | |
261 | 261 | $Tuple3(bC, bD, bF) | |
262 | 262 | } | |
263 | 263 | else $Tuple3(bw, bG, bH) | |
264 | 264 | let bC = bI._1 | |
265 | 265 | let bD = bI._2 | |
266 | 266 | let bF = bI._3 | |
267 | 267 | $Tuple3(bC, bD, bF) | |
268 | 268 | } | |
269 | 269 | else $Tuple3(bw, valueOrElse(getInteger(ao(bw)), height), valueOrElse(getInteger(aq(bw)), ((height + bv) - 1))) | |
270 | 270 | let bC = by._1 | |
271 | 271 | let bD = by._2 | |
272 | 272 | let bF = by._3 | |
273 | 273 | let bJ = valueOrElse(getInteger(av(K, bC)), bt) | |
274 | 274 | let bK = valueOrElse(getInteger(aw(K, bC, be)), bu) | |
275 | 275 | let bL = valueOrElse(getInteger(az(be)), 0) | |
276 | 276 | let bM = min([(br + bL), bJ, bK]) | |
277 | - | let bN = value(getInteger(ar())) | |
278 | - | let bO = e | |
279 | - | let bP = { | |
280 | - | let bQ = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bO, K], nil) | |
281 | - | if ($isInstanceOf(bQ, "(Int, Int, Int)")) | |
282 | - | then bQ | |
283 | - | else throw("Couldn't cast Any to (Int, Int, Int)") | |
284 | - | } | |
285 | - | if ((bP == bP)) | |
277 | + | let bN = (br + bL) | |
278 | + | let bO = throw(makeString([toString(br), toString(bL), toString(bN), toString(bJ), toString(bK)], c)) | |
279 | + | if ((bO == bO)) | |
286 | 280 | then { | |
287 | - | let bR = bP._3 | |
288 | - | let bS = bP._2 | |
289 | - | let bT = bP._1 | |
290 | - | let bU = value(getString(ay())) | |
291 | - | let bV = { | |
292 | - | let bQ = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bU, bT], nil) | |
293 | - | if ($isInstanceOf(bQ, "(Int, Int)")) | |
294 | - | then bQ | |
295 | - | else throw("Couldn't cast Any to (Int, Int)") | |
281 | + | let bP = value(getInteger(ar())) | |
282 | + | let bQ = e | |
283 | + | let bR = { | |
284 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bQ, K], nil) | |
285 | + | if ($isInstanceOf(bS, "(Int, Int, Int)")) | |
286 | + | then bS | |
287 | + | else throw("Couldn't cast Any to (Int, Int, Int)") | |
296 | 288 | } | |
297 | - | if (( | |
289 | + | if ((bR == bR)) | |
298 | 290 | then { | |
299 | - | let bW = bV._2 | |
300 | - | let bX = bV._1 | |
301 | - | let bY = fraction(bX, bO, e) | |
302 | - | let bZ = (bF - height) | |
303 | - | $Tuple10(bM, bJ, bK, bs, bN, bY, bZ, bC, bD, bF) | |
291 | + | let bT = bR._3 | |
292 | + | let bU = bR._2 | |
293 | + | let bV = bR._1 | |
294 | + | let bW = value(getString(ay())) | |
295 | + | let bX = { | |
296 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bW, bV], nil) | |
297 | + | if ($isInstanceOf(bS, "(Int, Int)")) | |
298 | + | then bS | |
299 | + | else throw("Couldn't cast Any to (Int, Int)") | |
300 | + | } | |
301 | + | if ((bX == bX)) | |
302 | + | then { | |
303 | + | let bY = bX._2 | |
304 | + | let bZ = bX._1 | |
305 | + | let ca = fraction(bZ, bQ, e) | |
306 | + | let cb = (bF - height) | |
307 | + | $Tuple10(bM, bJ, bK, bs, bP, ca, cb, bC, bD, bF) | |
308 | + | } | |
309 | + | else throw("Strict value is not equal to itself.") | |
304 | 310 | } | |
305 | 311 | else throw("Strict value is not equal to itself.") | |
306 | 312 | } | |
307 | 313 | else throw("Strict value is not equal to itself.") | |
308 | 314 | } | |
309 | 315 | ||
310 | 316 | ||
311 | - | func | |
312 | - | let | |
313 | - | if ($isInstanceOf( | |
317 | + | func cc () = { | |
318 | + | let cd = getString(aB()) | |
319 | + | if ($isInstanceOf(cd, "String")) | |
314 | 320 | then { | |
315 | - | let | |
316 | - | fromBase58String( | |
321 | + | let ce = cd | |
322 | + | fromBase58String(ce) | |
317 | 323 | } | |
318 | - | else if ($isInstanceOf( | |
324 | + | else if ($isInstanceOf(cd, "Unit")) | |
319 | 325 | then unit | |
320 | 326 | else throw("Match error") | |
321 | 327 | } | |
322 | 328 | ||
323 | 329 | ||
324 | - | func | |
325 | - | let | |
326 | - | if ($isInstanceOf( | |
330 | + | func cf () = { | |
331 | + | let cd = getString(aC()) | |
332 | + | if ($isInstanceOf(cd, "String")) | |
327 | 333 | then { | |
328 | - | let | |
329 | - | fromBase58String( | |
334 | + | let ce = cd | |
335 | + | fromBase58String(ce) | |
330 | 336 | } | |
331 | - | else if ($isInstanceOf( | |
337 | + | else if ($isInstanceOf(cd, "Unit")) | |
332 | 338 | then unit | |
333 | 339 | else throw("Match error") | |
334 | 340 | } | |
335 | 341 | ||
336 | 342 | ||
337 | - | func | |
338 | - | let | |
339 | - | let | |
340 | - | if ($isInstanceOf( | |
343 | + | func cg (ch) = { | |
344 | + | let ci = throw("Permission denied") | |
345 | + | let cd = cc() | |
346 | + | if ($isInstanceOf(cd, "ByteVector")) | |
341 | 347 | then { | |
342 | - | let | |
343 | - | if (( | |
348 | + | let cj = cd | |
349 | + | if ((ch.callerPublicKey == cj)) | |
344 | 350 | then true | |
345 | - | else | |
351 | + | else ci | |
346 | 352 | } | |
347 | - | else if ($isInstanceOf( | |
348 | - | then if (( | |
353 | + | else if ($isInstanceOf(cd, "Unit")) | |
354 | + | then if ((ch.caller == this)) | |
349 | 355 | then true | |
350 | - | else | |
356 | + | else ci | |
351 | 357 | else throw("Match error") | |
352 | 358 | } | |
353 | 359 | ||
354 | 360 | ||
355 | - | @Callable( | |
361 | + | @Callable(ch) | |
356 | 362 | func constructor (D,E,F,G,k,K,M) = { | |
357 | 363 | let H = ((100 * 1000) * 1000) | |
358 | - | let | |
364 | + | let ck = (D + E) | |
359 | 365 | if (isDefined(getString(ad()))) | |
360 | 366 | then throw("already initialized") | |
361 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
367 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(ch.caller))) | |
362 | 368 | then throw("not authorized") | |
363 | - | else if ((size( | |
369 | + | else if ((size(ch.payments) != 1)) | |
364 | 370 | then throw("exactly 1 payment must be attached") | |
365 | - | else if (( | |
371 | + | else if ((ck >= F)) | |
366 | 372 | then throw("claimStart must be greater than idoEnd") | |
367 | 373 | else { | |
368 | - | let | |
369 | - | let bc = value( | |
370 | - | let | |
374 | + | let cl = value(ch.payments[0]) | |
375 | + | let bc = value(cl.assetId) | |
376 | + | let cm = valueOrErrorMessage(assetInfo(bc), "fail to load ido asset info") | |
371 | 377 | let I = toBase58String(bc) | |
372 | - | let J = pow(10, 0, | |
378 | + | let J = pow(10, 0, cm.decimals, 0, 0, DOWN) | |
373 | 379 | let bd = fromBase58String(K) | |
374 | - | let | |
375 | - | let L = pow(10, 0, | |
376 | - | let | |
377 | - | let | |
378 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
380 | + | let cn = valueOrErrorMessage(assetInfo(bd), "fail to load price asset info") | |
381 | + | let L = pow(10, 0, cn.decimals, 0, 0, DOWN) | |
382 | + | let co = aG() | |
383 | + | let cp = [0, 0, 0, 0] | |
384 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cl.amount)), aN(ag(), co, cp, F)] | |
379 | 385 | } | |
380 | 386 | } | |
381 | 387 | ||
382 | 388 | ||
383 | 389 | ||
384 | - | @Callable( | |
390 | + | @Callable(ch) | |
385 | 391 | func invest () = { | |
386 | 392 | let ba = aD() | |
387 | 393 | let D = parseIntValue(ba[r]) | |
388 | 394 | let E = parseIntValue(ba[s]) | |
389 | - | let | |
395 | + | let ck = (D + E) | |
390 | 396 | let F = parseIntValue(ba[t]) | |
391 | 397 | let G = parseIntValue(ba[u]) | |
392 | 398 | let k = parseIntValue(ba[v]) | |
393 | 399 | let H = parseIntValue(ba[w]) | |
394 | 400 | let I = ba[x] | |
395 | 401 | let bc = fromBase58String(I) | |
396 | 402 | let J = parseIntValue(ba[y]) | |
397 | 403 | let K = ba[z] | |
398 | 404 | let bd = fromBase58String(K) | |
399 | 405 | let L = parseIntValue(ba[A]) | |
400 | - | let | |
401 | - | let af = toString( | |
406 | + | let cq = parseIntValue(ba[B]) | |
407 | + | let af = toString(ch.caller) | |
402 | 408 | if ((D > height)) | |
403 | 409 | then throw("ido has not been started yet") | |
404 | - | else if ((height > | |
410 | + | else if ((height > ck)) | |
405 | 411 | then throw("ido has been already ended") | |
406 | - | else if ((size( | |
412 | + | else if ((size(ch.payments) != 1)) | |
407 | 413 | then throw("exactly 1 payment is expected") | |
408 | 414 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | if (( | |
413 | - | then throw((("invalid payment asset id: " + toBase58String( | |
415 | + | let cl = value(ch.payments[0]) | |
416 | + | let cr = value(cl.assetId) | |
417 | + | let cs = cl.amount | |
418 | + | if ((cr != bd)) | |
419 | + | then throw((("invalid payment asset id: " + toBase58String(cr)) + " is expected")) | |
414 | 420 | else { | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | if (( | |
421 | + | let ct = aH(af) | |
422 | + | let co = aG() | |
423 | + | let cu = (parseIntValue(co[P]) + cs) | |
424 | + | let cv = (cu * 100) | |
425 | + | if ((cv > assetBalance(this, bc))) | |
420 | 426 | then throw("IDO asset has been - sold consider to use smaller payment") | |
421 | 427 | else { | |
422 | - | let | |
423 | - | [aN(ae(af), | |
428 | + | let cp = [cs, cs, 0, 0] | |
429 | + | [aN(ae(af), ct, cp, F), aN(ag(), co, cp, F), aV(af, cs, 0, ch.transactionId)] | |
424 | 430 | } | |
425 | 431 | } | |
426 | 432 | } | |
427 | 433 | } | |
428 | 434 | ||
429 | 435 | ||
430 | 436 | ||
431 | - | @Callable( | |
437 | + | @Callable(ch) | |
432 | 438 | func claim (aZ,be) = { | |
433 | - | let | |
434 | - | if ((be != | |
439 | + | let cw = toString(ch.caller) | |
440 | + | if ((be != cw)) | |
435 | 441 | then throw("not authorized") | |
436 | 442 | else { | |
437 | 443 | let ba = aD() | |
438 | 444 | let K = ba[z] | |
439 | - | let | |
440 | - | let | |
441 | - | let br = | |
442 | - | let | |
443 | - | let bf = | |
444 | - | let bj = | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
445 | + | let cx = aY(aZ, ch.caller, ch.transactionId) | |
446 | + | let cp = cx._1 | |
447 | + | let br = cx._2 | |
448 | + | let cy = cx._3 | |
449 | + | let bf = cx._4 | |
450 | + | let bj = cx._5 | |
451 | + | let cz = cp[aL] | |
452 | + | let cA = cp[aM] | |
453 | + | let cB = if ((aZ == K)) | |
448 | 454 | then { | |
449 | - | let | |
450 | - | let bM = | |
451 | - | let bJ = | |
452 | - | let bK = | |
453 | - | let bs = | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let bC = | |
458 | - | let bD = | |
459 | - | let bF = | |
455 | + | let cC = bq(K, be, br, cp[aL]) | |
456 | + | let bM = cC._1 | |
457 | + | let bJ = cC._2 | |
458 | + | let bK = cC._3 | |
459 | + | let bs = cC._4 | |
460 | + | let bP = cC._5 | |
461 | + | let ca = cC._6 | |
462 | + | let cb = cC._7 | |
463 | + | let bC = cC._8 | |
464 | + | let bD = cC._9 | |
465 | + | let bF = cC._10 | |
460 | 466 | let bp = [if ((bK > 0)) | |
461 | 467 | then true | |
462 | 468 | else f("unavailable to claim because user period allowance reached"), if ((bJ > 0)) | |
463 | 469 | then true | |
464 | 470 | else f("unavailable to claim because total period allowance reached"), if ((bM > 0)) | |
465 | 471 | then true | |
466 | - | else f("nothing to claim"), if (( | |
472 | + | else f("nothing to claim"), if ((bP > ca)) | |
467 | 473 | then true | |
468 | 474 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
469 | 475 | if ((bp == bp)) | |
470 | 476 | then { | |
471 | 477 | let bL = valueOrElse(getInteger(az(be)), 0) | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | if (( | |
478 | + | let cD = (bJ - bM) | |
479 | + | let cE = (bK - bM) | |
480 | + | let cF = value(assetInfo(fromBase58String(aZ))).decimals | |
481 | + | let cG = fraction(bM, pow(10, 0, cF, 0, 0, DOWN), e) | |
482 | + | let cH = throw(makeString([toString(cF), toString(bM), toString(cG)], c)) | |
483 | + | if ((cH == cH)) | |
478 | 484 | then { | |
479 | - | let | |
480 | - | then [ScriptTransfer( | |
485 | + | let cB = if ((bL >= bM)) | |
486 | + | then [ScriptTransfer(ch.caller, cG, cy), IntegerEntry(az(be), (bL - bM))] | |
481 | 487 | else { | |
482 | - | let | |
483 | - | [ScriptTransfer( | |
488 | + | let cI = ((bL + br) - bM) | |
489 | + | [ScriptTransfer(ch.caller, cG, cy), aN(ae(be), bf, cp, bj), aN(ag(), aG(), cp, bj), IntegerEntry(az(be), cI)] | |
484 | 490 | } | |
485 | - | $Tuple2(([IntegerEntry(an(), bC), IntegerEntry(ao(bC), bD), IntegerEntry(aq(bC), bF), IntegerEntry(av(K, bC), | |
491 | + | $Tuple2(([IntegerEntry(an(), bC), IntegerEntry(ao(bC), bD), IntegerEntry(aq(bC), bF), IntegerEntry(av(K, bC), cD), IntegerEntry(aw(K, bC, be), cE), aX(be, cG, cA, ch.transactionId)] ++ cB), unit) | |
486 | 492 | } | |
487 | 493 | else throw("Strict value is not equal to itself.") | |
488 | 494 | } | |
489 | 495 | else throw("Strict value is not equal to itself.") | |
490 | 496 | } | |
491 | - | else $Tuple2([ScriptTransfer( | |
492 | - | | |
497 | + | else $Tuple2([ScriptTransfer(ch.caller, br, cy), IntegerEntry(az(be), 0), aN(ae(be), bf, cp, bj), aN(ag(), aG(), cp, bj), aX(be, cz, cA, ch.transactionId)], unit) | |
498 | + | cB | |
493 | 499 | } | |
494 | 500 | } | |
495 | 501 | ||
496 | 502 | ||
497 | 503 | ||
498 | - | @Callable( | |
504 | + | @Callable(ch) | |
499 | 505 | func claimREADONLY (aZ,be) = { | |
500 | - | let | |
501 | - | let | |
502 | - | let br = | |
503 | - | let | |
504 | - | let bf = | |
505 | - | let bj = | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | $Tuple2(nil, makeString(["%s%d%d", be, toString( | |
506 | + | let cx = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
507 | + | let cp = cx._1 | |
508 | + | let br = cx._2 | |
509 | + | let cy = cx._3 | |
510 | + | let bf = cx._4 | |
511 | + | let bj = cx._5 | |
512 | + | let cJ = cx._6 | |
513 | + | let cK = cJ[0] | |
514 | + | let cL = cJ[1] | |
515 | + | $Tuple2(nil, makeString(["%s%d%d", be, toString(cK), toString(cL)], c)) | |
510 | 516 | } | |
511 | 517 | ||
512 | 518 | ||
513 | 519 | ||
514 | - | @Callable( | |
520 | + | @Callable(ch) | |
515 | 521 | func claimV2READONLY (aZ,be) = { | |
516 | - | let | |
517 | - | let | |
518 | - | let br = | |
519 | - | let | |
520 | - | let bf = | |
521 | - | let bj = | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
522 | + | let cx = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
523 | + | let cp = cx._1 | |
524 | + | let br = cx._2 | |
525 | + | let cy = cx._3 | |
526 | + | let bf = cx._4 | |
527 | + | let bj = cx._5 | |
528 | + | let cJ = cx._6 | |
529 | + | let cK = cJ[0] | |
530 | + | let cL = cJ[1] | |
525 | 531 | let ba = aD() | |
526 | 532 | let K = ba[z] | |
527 | 533 | let bL = valueOrElse(getInteger(az(be)), 0) | |
528 | - | let | |
529 | - | let | |
530 | - | let bM = | |
531 | - | let bJ = | |
532 | - | let bK = | |
533 | - | let bs = | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let bC = | |
538 | - | let bD = | |
539 | - | let bF = | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
534 | + | let cM = (cL + bL) | |
535 | + | let cN = bq(K, be, br, cp[aL]) | |
536 | + | let bM = cN._1 | |
537 | + | let bJ = cN._2 | |
538 | + | let bK = cN._3 | |
539 | + | let bs = cN._4 | |
540 | + | let bP = cN._5 | |
541 | + | let ca = cN._6 | |
542 | + | let cb = cN._7 | |
543 | + | let bC = cN._8 | |
544 | + | let bD = cN._9 | |
545 | + | let bF = cN._10 | |
546 | + | let cO = valueOrElse(getInteger(aq(bC)), 0) | |
547 | + | let cP = value(assetInfo(fromBase58String(aZ))).decimals | |
548 | + | let cQ = if ((height > cO)) | |
543 | 549 | then { | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | makeString(["%d%d%d%d%d%d", toString( | |
550 | + | let cR = value(getInteger(am())) | |
551 | + | let cS = value(getInteger(au(K))) | |
552 | + | let cT = value(getInteger(as(K))) | |
553 | + | makeString(["%d%d%d%d%d%d", toString(cM), toString(cS), toString(cT), toString(bP), toString(ca), toString(cR), toString(br), toString(bM), toString(bK), toString(cP)], c) | |
548 | 554 | } | |
549 | - | else makeString(["%d%d%d%d%d%d", toString( | |
550 | - | $Tuple2(nil, | |
555 | + | else makeString(["%d%d%d%d%d%d", toString(cM), toString(bM), toString(bJ), toString(bP), toString(ca), toString(cb), toString(br), toString(bM), toString(bK), toString(cP)], c) | |
556 | + | $Tuple2(nil, cQ) | |
551 | 557 | } | |
552 | 558 | ||
553 | 559 | ||
554 | 560 | ||
555 | - | @Callable( | |
556 | - | func setManager ( | |
557 | - | let | |
558 | - | if (( | |
561 | + | @Callable(ch) | |
562 | + | func setManager (cU) = { | |
563 | + | let cV = cg(ch) | |
564 | + | if ((cV == cV)) | |
559 | 565 | then { | |
560 | - | let | |
561 | - | if (( | |
562 | - | then [StringEntry(aC(), | |
566 | + | let cW = fromBase58String(cU) | |
567 | + | if ((cW == cW)) | |
568 | + | then [StringEntry(aC(), cU)] | |
563 | 569 | else throw("Strict value is not equal to itself.") | |
564 | 570 | } | |
565 | 571 | else throw("Strict value is not equal to itself.") | |
566 | 572 | } | |
567 | 573 | ||
568 | 574 | ||
569 | 575 | ||
570 | - | @Callable( | |
576 | + | @Callable(ch) | |
571 | 577 | func confirmManager () = { | |
572 | - | let | |
573 | - | let | |
578 | + | let cX = cf() | |
579 | + | let cY = if (isDefined(cX)) | |
574 | 580 | then true | |
575 | 581 | else throw("No pending manager") | |
576 | - | if (( | |
582 | + | if ((cY == cY)) | |
577 | 583 | then { | |
578 | - | let | |
584 | + | let cZ = if ((ch.callerPublicKey == value(cX))) | |
579 | 585 | then true | |
580 | 586 | else throw("You are not pending manager") | |
581 | - | if (( | |
582 | - | then [StringEntry(aB(), toBase58String(value( | |
587 | + | if ((cZ == cZ)) | |
588 | + | then [StringEntry(aB(), toBase58String(value(cX))), DeleteEntry(aC())] | |
583 | 589 | else throw("Strict value is not equal to itself.") | |
584 | 590 | } | |
585 | 591 | else throw("Strict value is not equal to itself.") | |
586 | 592 | } | |
587 | 593 | ||
588 | 594 | ||
589 | - | @Verifier( | |
590 | - | func | |
591 | - | let | |
592 | - | let | |
593 | - | if ($isInstanceOf( | |
595 | + | @Verifier(da) | |
596 | + | func db () = { | |
597 | + | let dc = { | |
598 | + | let cd = cc() | |
599 | + | if ($isInstanceOf(cd, "ByteVector")) | |
594 | 600 | then { | |
595 | - | let | |
596 | - | | |
601 | + | let cj = cd | |
602 | + | cj | |
597 | 603 | } | |
598 | - | else if ($isInstanceOf( | |
599 | - | then | |
604 | + | else if ($isInstanceOf(cd, "Unit")) | |
605 | + | then da.senderPublicKey | |
600 | 606 | else throw("Match error") | |
601 | 607 | } | |
602 | - | sigVerify( | |
608 | + | sigVerify(da.bodyBytes, da.proofs[0], dc) | |
603 | 609 | } | |
604 | 610 |
github/deemru/w8io/026f985 130.34 ms ◑