tx · 6fXQU633NvXpTrp9JYc1tekuydQtKwEk2fu57G21dN1x 3MqzpRGNBq3GSxMonFoenAhNRDHJ2a8omm1: -0.05000000 Waves 2023.08.23 14:00 [2723191] smart account 3MqzpRGNBq3GSxMonFoenAhNRDHJ2a8omm1 > SELF 0.00000000 Waves
{ "type": 13, "id": "6fXQU633NvXpTrp9JYc1tekuydQtKwEk2fu57G21dN1x", "fee": 5000000, "feeAssetId": null, "timestamp": 1692788410052, "version": 2, "chainId": 84, "sender": "3MqzpRGNBq3GSxMonFoenAhNRDHJ2a8omm1", "senderPublicKey": "Cm1uVVKocYw3S4eL9bYUMNZe5vpBPipgiiTx37eL6E8F", "proofs": [ "5rdVuDww3qcywHAqesWCBML61YLpH8z1K4RPJh5MFdCakXUcdXWME4HENwQhoY2MCZUbhcTc5BrvgxBGWQ7yceiG", "6nQH8gFWSmFJZVwgTcAWjDz2zoP7Gz84QBEZ5t51vaG5ss4rWK6KteRPSeHPzxDY3dKArieVWoTgccDiCzwZGtd" ], "script": "base64:BgJQCAISBAoCAQgSAwoBCBIUChIIAQEIAQEBAQEBAQEYBAEBBBgSBAoCAQgSBAoCAQgSBAoCAQgSBQoDAQEIEgMKAQESAwoBARIECgIBARIAEgBOAAlrZXlBY3RpdmUCBmFjdGl2ZQALa0FjdGl2ZUdsb2ICFGFjdGl2ZV9hbGxfY29udHJhY3RzAA9rZXlBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA9rZXlBZG1pblB1YktleTICC2FkbWluX3B1Yl8yAA9rZXlBZG1pblB1YktleTMCC2FkbWluX3B1Yl8zACFrZXlMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMCIWxhdW5jaHBhZF9kYXRhX3RyYW5zYWN0aW9uX3N0YXR1cwASa2V5TGF1bmNocGFkTmV4dElkAhFsYXVuY2hwYWRfbmV4dF9pZAAUa2V5TGF1bmNocGFkQWN0aXZlSWQCE2xhdW5jaHBhZF9hY3RpdmVfaWQADWtleUluaXRDY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leUxhdW5jaHBhZERhdGFUcmFuc2FjdGlvblN0YXR1cwcFDXNpZ25lZEJ5QWRtaW4HBRNtdWx0aVNpZ25lZEJ5QWRtaW5z45su7g==", "height": 2723191, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3AF4QCzJ2Fpvh6QERPbz1DDUSiNZh3tzfYqCVsGuru6N Next: 8qMb324TTFRDxGjKhTaLRjBvT17cGtC58UYK6UuLmC4c Diff:
Old | New | Differences | |
---|---|---|---|
286 | 286 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
287 | 287 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
288 | 288 | let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false) | |
289 | - | let $ | |
289 | + | let $t01196513105 = if ((i.payments[0].assetId == unit)) | |
290 | 290 | then { | |
291 | 291 | let amntToGet = { | |
292 | 292 | let @ = ({ | |
302 | 302 | if ((amntToGet == amntToGet)) | |
303 | 303 | then { | |
304 | 304 | let ticketsAmount = (amntToGet / (ticketPrice + commissionPerTicket)) | |
305 | - | | |
306 | - | | |
307 | - | | |
308 | - | let | |
309 | - | | |
310 | - | | |
311 | - | | |
312 | - | | |
313 | - | | |
314 | - | | |
315 | - | | |
316 | - | | |
317 | - | | |
318 | - | | |
319 | - | | |
320 | - | if (( | |
305 | + | if ((ticketsAmount == 0)) | |
306 | + | then throw("Not enought WAVES to buy tickets") | |
307 | + | else { | |
308 | + | let amntToGetTickets = (ticketsAmount * (ticketPrice + commissionPerTicket)) | |
309 | + | let amntToPay = { | |
310 | + | let @ = ({ | |
311 | + | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouPayREADONLY", [toString(amntToGetTickets), buyAssetId]], nil) | |
312 | + | if ($isInstanceOf(@, "List[Any]")) | |
313 | + | then @ | |
314 | + | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
315 | + | })[0] | |
316 | + | if ($isInstanceOf(@, "Int")) | |
317 | + | then @ | |
318 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
319 | + | } | |
320 | + | if ((amntToPay == amntToPay)) | |
321 | 321 | then { | |
322 | - | let change = (i.payments[0].amount - amntToGetTickets) | |
323 | - | let cEntry = if ((change > 0)) | |
324 | - | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
325 | - | else nil | |
326 | - | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
322 | + | let ex = invoke(WAVES_XTN_EX, "callFunction", ["exchange", [toString(amntToGetTickets)]], [AttachedPayment(unit, amntToPay)]) | |
323 | + | if ((ex == ex)) | |
324 | + | then { | |
325 | + | let change = (i.payments[0].amount - amntToGetTickets) | |
326 | + | let cEntry = if ((change > 0)) | |
327 | + | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
328 | + | else nil | |
329 | + | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
330 | + | } | |
331 | + | else throw("Strict value is not equal to itself.") | |
327 | 332 | } | |
328 | 333 | else throw("Strict value is not equal to itself.") | |
329 | 334 | } | |
330 | - | else throw("Strict value is not equal to itself.") | |
331 | 335 | } | |
332 | 336 | else throw("Strict value is not equal to itself.") | |
333 | 337 | } | |
334 | 338 | else $Tuple3(i.payments[0].amount, i.payments[0].assetId, nil) | |
335 | - | let pmtAmount = $ | |
336 | - | let pmtAssetId = $ | |
337 | - | let changeEntry = $ | |
339 | + | let pmtAmount = $t01196513105._1 | |
340 | + | let pmtAssetId = $t01196513105._2 | |
341 | + | let changeEntry = $t01196513105._3 | |
338 | 342 | if ((activeLaunchpadId != launchpadId)) | |
339 | 343 | then throw("There is no active launchpad or this launchpad is ended") | |
340 | 344 | else if ((startHeight > height)) | |
374 | 378 | then { | |
375 | 379 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
376 | 380 | let freezeTokenPerTicket = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenPerTicket)) | |
377 | - | let $ | |
378 | - | let pmtAmountFreeze = $ | |
379 | - | let pmtAssetIdFreeze = $ | |
380 | - | let $ | |
381 | - | let pmtFreezeStrAssetId = $ | |
382 | - | let pmtFreezeAssetName = $ | |
383 | - | let pmtFreezeDecimals = $ | |
381 | + | let $t01494815035 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
382 | + | let pmtAmountFreeze = $t01494815035._1 | |
383 | + | let pmtAssetIdFreeze = $t01494815035._2 | |
384 | + | let $t01505215143 = getAssetInfo(pmtAssetId) | |
385 | + | let pmtFreezeStrAssetId = $t01505215143._1 | |
386 | + | let pmtFreezeAssetName = $t01505215143._2 | |
387 | + | let pmtFreezeDecimals = $t01505215143._3 | |
384 | 388 | let needFreezeTokens = (freezeTokenPerTicket * buyTicketAmount) | |
385 | 389 | if (if ((pmtFreezeStrAssetId != freezeTokenId)) | |
386 | 390 | then true | |
414 | 418 | ||
415 | 419 | @Callable(i) | |
416 | 420 | func commitAccessListSale (launchpadId,refId) = valueOrElse(isActive(), { | |
417 | - | let $ | |
418 | - | let pmtAmount = $ | |
419 | - | let pmtAssetId = $ | |
420 | - | let $ | |
421 | - | let buyAssetId = $ | |
422 | - | let buyAssetStrId = $ | |
423 | - | let buyAssetName = $ | |
424 | - | let buyAssetDecimals = $ | |
421 | + | let $t01722917304 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
422 | + | let pmtAmount = $t01722917304._1 | |
423 | + | let pmtAssetId = $t01722917304._2 | |
424 | + | let $t01730917459 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
425 | + | let buyAssetId = $t01730917459._1 | |
426 | + | let buyAssetStrId = $t01730917459._2 | |
427 | + | let buyAssetName = $t01730917459._3 | |
428 | + | let buyAssetDecimals = $t01730917459._4 | |
425 | 429 | let userUsdnInMarketing = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountBuyAssetInMarketing)), 0) | |
426 | 430 | let usdnInMarketing = valueOrElse(getInteger(this, (toString(launchpadId) + keyAmountBuyAssetInMarketing)), 0) | |
427 | 431 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
428 | 432 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
429 | 433 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
430 | 434 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
431 | - | let $ | |
432 | - | let tokenId = $ | |
433 | - | let tokenStrAssetId = $ | |
434 | - | let tokenAssetName = $ | |
435 | - | let tokenDecimals = $ | |
435 | + | let $t01812818272 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
436 | + | let tokenId = $t01812818272._1 | |
437 | + | let tokenStrAssetId = $t01812818272._2 | |
438 | + | let tokenAssetName = $t01812818272._3 | |
439 | + | let tokenDecimals = $t01812818272._4 | |
436 | 440 | let allocationPriceWithComission = fraction(fraction(tokenPrice, tokensPerAllocation, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
437 | 441 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
438 | 442 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
472 | 476 | ||
473 | 477 | @Callable(i) | |
474 | 478 | func commitHighCompetitionSale (launchpadId,refId) = valueOrElse(isActive(), { | |
475 | - | let $ | |
476 | - | let buyAssetId = $ | |
477 | - | let buyAssetStrId = $ | |
478 | - | let buyAssetName = $ | |
479 | - | let buyAssetDecimals = $ | |
479 | + | let $t02053020680 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
480 | + | let buyAssetId = $t02053020680._1 | |
481 | + | let buyAssetStrId = $t02053020680._2 | |
482 | + | let buyAssetName = $t02053020680._3 | |
483 | + | let buyAssetDecimals = $t02053020680._4 | |
480 | 484 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
481 | 485 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
482 | 486 | let boughtHCTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0) | |
483 | 487 | let highCompetitionSale = valueOrElse(getBoolean(this, (toString(launchpadId) + keyHighCompetitionSale)), false) | |
484 | 488 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
485 | 489 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
486 | - | let $ | |
487 | - | let tokenId = $ | |
488 | - | let tokenStrAssetId = $ | |
489 | - | let tokenAssetName = $ | |
490 | - | let tokenDecimals = $ | |
490 | + | let $t02129021434 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
491 | + | let tokenId = $t02129021434._1 | |
492 | + | let tokenStrAssetId = $t02129021434._2 | |
493 | + | let tokenAssetName = $t02129021434._3 | |
494 | + | let tokenDecimals = $t02129021434._4 | |
491 | 495 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
492 | 496 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)), 100) | |
493 | - | let $ | |
497 | + | let $t02166722807 = if ((i.payments[0].assetId == unit)) | |
494 | 498 | then { | |
495 | 499 | let amntToGet = { | |
496 | 500 | let @ = ({ | |
506 | 510 | if ((amntToGet == amntToGet)) | |
507 | 511 | then { | |
508 | 512 | let ticketsAmount = (amntToGet / (ticketPrice + commissionPerTicket)) | |
509 | - | | |
510 | - | | |
511 | - | | |
512 | - | let | |
513 | - | | |
514 | - | | |
515 | - | | |
516 | - | | |
517 | - | | |
518 | - | | |
519 | - | | |
520 | - | | |
521 | - | | |
522 | - | | |
523 | - | | |
524 | - | if (( | |
513 | + | if ((ticketsAmount == 0)) | |
514 | + | then throw("Not enought WAVES to buy tickets") | |
515 | + | else { | |
516 | + | let amntToGetTickets = (ticketsAmount * (ticketPrice + commissionPerTicket)) | |
517 | + | let amntToPay = { | |
518 | + | let @ = ({ | |
519 | + | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouPayREADONLY", [toString(amntToGetTickets), buyAssetId]], nil) | |
520 | + | if ($isInstanceOf(@, "List[Any]")) | |
521 | + | then @ | |
522 | + | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
523 | + | })[0] | |
524 | + | if ($isInstanceOf(@, "Int")) | |
525 | + | then @ | |
526 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
527 | + | } | |
528 | + | if ((amntToPay == amntToPay)) | |
525 | 529 | then { | |
526 | - | let change = (i.payments[0].amount - amntToGetTickets) | |
527 | - | let cEntry = if ((change > 0)) | |
528 | - | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
529 | - | else nil | |
530 | - | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
530 | + | let ex = invoke(WAVES_XTN_EX, "callFunction", ["exchange", [toString(amntToGetTickets)]], [AttachedPayment(unit, amntToPay)]) | |
531 | + | if ((ex == ex)) | |
532 | + | then { | |
533 | + | let change = (i.payments[0].amount - amntToGetTickets) | |
534 | + | let cEntry = if ((change > 0)) | |
535 | + | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
536 | + | else nil | |
537 | + | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
538 | + | } | |
539 | + | else throw("Strict value is not equal to itself.") | |
531 | 540 | } | |
532 | 541 | else throw("Strict value is not equal to itself.") | |
533 | 542 | } | |
534 | - | else throw("Strict value is not equal to itself.") | |
535 | 543 | } | |
536 | 544 | else throw("Strict value is not equal to itself.") | |
537 | 545 | } | |
538 | 546 | else $Tuple3(i.payments[0].amount, i.payments[0].assetId, nil) | |
539 | - | let pmtAmount = $ | |
540 | - | let pmtAssetId = $ | |
541 | - | let changeEntry = $ | |
547 | + | let pmtAmount = $t02166722807._1 | |
548 | + | let pmtAssetId = $t02166722807._2 | |
549 | + | let changeEntry = $t02166722807._3 | |
542 | 550 | if ((activeLaunchpadId != launchpadId)) | |
543 | 551 | then throw("There is no active launchpad or this launchpad is ended") | |
544 | 552 | else if (!(highCompetitionSale)) | |
590 | 598 | if ((calcHash != savedHash)) | |
591 | 599 | then throw("vrf Height hash not matching") | |
592 | 600 | else { | |
593 | - | let $ | |
594 | - | let buyAssetId = $ | |
595 | - | let buyAssetStrId = $ | |
596 | - | let buyAssetName = $ | |
597 | - | let buyAssetDecimals = $ | |
601 | + | let $t02576025910 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
602 | + | let buyAssetId = $t02576025910._1 | |
603 | + | let buyAssetStrId = $t02576025910._2 | |
604 | + | let buyAssetName = $t02576025910._3 | |
605 | + | let buyAssetDecimals = $t02576025910._4 | |
598 | 606 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
599 | 607 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
600 | 608 | let commissionHC = getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)) | |
639 | 647 | else false) | |
640 | 648 | then throw("You can't claim because you don't buy anything") | |
641 | 649 | else { | |
642 | - | let $ | |
643 | - | let buyAssetId = $ | |
644 | - | let buyAssetStrId = $ | |
645 | - | let buyAssetName = $ | |
646 | - | let buyAssetDecimals = $ | |
650 | + | let $t02899429171 = getAssetInfoFromString(valueOrElse(getString(this, (toString(launchpadId) + keyBuyToken)), toBase58String(USDN))) | |
651 | + | let buyAssetId = $t02899429171._1 | |
652 | + | let buyAssetStrId = $t02899429171._2 | |
653 | + | let buyAssetName = $t02899429171._3 | |
654 | + | let buyAssetDecimals = $t02899429171._4 | |
647 | 655 | let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0) | |
648 | 656 | let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0) | |
649 | 657 | let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0) | |
652 | 660 | let allowedAllocations = min([boughtAllocations, awailableAllocations]) | |
653 | 661 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
654 | 662 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
655 | - | let $ | |
656 | - | let tokenId = $ | |
657 | - | let tokenStrAssetId = $ | |
658 | - | let tokenAssetName = $ | |
659 | - | let tokenDecimals = $ | |
663 | + | let $t03008730231 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
664 | + | let tokenId = $t03008730231._1 | |
665 | + | let tokenStrAssetId = $t03008730231._2 | |
666 | + | let tokenAssetName = $t03008730231._3 | |
667 | + | let tokenDecimals = $t03008730231._4 | |
660 | 668 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
661 | 669 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
662 | 670 | let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket)) | |
751 | 759 | @Callable(i) | |
752 | 760 | func transferBuyAsset (launchpadId,amount) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
753 | 761 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
754 | - | let $ | |
755 | - | let buyAssetId = $ | |
756 | - | let buyAssetStrId = $ | |
757 | - | let buyAssetName = $ | |
758 | - | let buyAssetDecimals = $ | |
762 | + | let $t03639636546 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
763 | + | let buyAssetId = $t03639636546._1 | |
764 | + | let buyAssetStrId = $t03639636546._2 | |
765 | + | let buyAssetName = $t03639636546._3 | |
766 | + | let buyAssetDecimals = $t03639636546._4 | |
759 | 767 | let transferedBuyAsset = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferBuyAsset)), 0) | |
760 | 768 | let inv = if (if ((amount > 0)) | |
761 | 769 | then (buyAssetId == USDN) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let keyActive = "active" | |
5 | 5 | ||
6 | 6 | let kActiveGlob = "active_all_contracts" | |
7 | 7 | ||
8 | 8 | let keyAdminPubKey1 = "admin_pub_1" | |
9 | 9 | ||
10 | 10 | let keyAdminPubKey2 = "admin_pub_2" | |
11 | 11 | ||
12 | 12 | let keyAdminPubKey3 = "admin_pub_3" | |
13 | 13 | ||
14 | 14 | let keyLaunchpadDataTransactionStatus = "launchpad_data_transaction_status" | |
15 | 15 | ||
16 | 16 | let keyLaunchpadNextId = "launchpad_next_id" | |
17 | 17 | ||
18 | 18 | let keyLaunchpadActiveId = "launchpad_active_id" | |
19 | 19 | ||
20 | 20 | let keyInitCaller = "init_caller" | |
21 | 21 | ||
22 | 22 | let keyAddress = "_address" | |
23 | 23 | ||
24 | 24 | let keyInitHeight = "_init_height" | |
25 | 25 | ||
26 | 26 | let keyStartHeight = "_start_height" | |
27 | 27 | ||
28 | 28 | let keyFinaliseHeight = "_finalise_height" | |
29 | 29 | ||
30 | 30 | let keyComission = "_comission" | |
31 | 31 | ||
32 | 32 | let keyAssetId = "_asset_id" | |
33 | 33 | ||
34 | 34 | let keyTotalTokenAmount = "_total_token_amount" | |
35 | 35 | ||
36 | 36 | let keyTotalAmountBuyAssetSold = "_total_buy_asset_sold" | |
37 | 37 | ||
38 | 38 | let keyTokensPerTicket = "_tokens_per_ticket" | |
39 | 39 | ||
40 | 40 | let keyPricePerToken = "_price_per_token" | |
41 | 41 | ||
42 | 42 | let keySwopPerTicket = "_swop_per_ticket" | |
43 | 43 | ||
44 | 44 | let keySwopfiTicketsAmount = "_tickets_swopfi_members" | |
45 | 45 | ||
46 | 46 | let keyCampaignTokensAmount = "_tokens_access_list" | |
47 | 47 | ||
48 | 48 | let keyTokensPerAllocation = "_tokens_per_allocation" | |
49 | 49 | ||
50 | 50 | let keyTicketLastNumber = "_ticket_last_number" | |
51 | 51 | ||
52 | 52 | let keyGovernanceStaked = "_GSwop_amount" | |
53 | 53 | ||
54 | 54 | let keyUserRefId = "_ref_id" | |
55 | 55 | ||
56 | 56 | let keyVerifyHash = "_verify_hash" | |
57 | 57 | ||
58 | 58 | let keyDuration = "_duration" | |
59 | 59 | ||
60 | 60 | let keyAmountBuyAssetInMarketing = "_total_purchased_buy_asset_in_marketing" | |
61 | 61 | ||
62 | 62 | let keyAmountBuyAssetInMarketingFinalized = "_total_purchased_buy_asset_in_marketing_finalized" | |
63 | 63 | ||
64 | 64 | let keyTransferBuyAsset = "_transfer_buy_asset" | |
65 | 65 | ||
66 | 66 | let keyFreezSwopDuration = "_freeze_swop_duration" | |
67 | 67 | ||
68 | 68 | let keyFreezeAdditionalToken = "_freeze_additional_token" | |
69 | 69 | ||
70 | 70 | let keyFreezeTokenId = "_freeze_token_id" | |
71 | 71 | ||
72 | 72 | let keyFreezeTokenDuration = "_freeze_token_duration" | |
73 | 73 | ||
74 | 74 | let keyFreezeTokenPerTicket = "_freeze_token_per_ticket" | |
75 | 75 | ||
76 | 76 | let keyBuyToken = "_buy_token" | |
77 | 77 | ||
78 | 78 | let keyClaimParams = "_claim_params" | |
79 | 79 | ||
80 | 80 | let keyHighCompetitionComission = "_high_competition_comission" | |
81 | 81 | ||
82 | 82 | let keyHighCompetitionSale = "_high_competition_sale" | |
83 | 83 | ||
84 | 84 | let keyHCTicketLastNumber = "_high_competition_ticket_last_number" | |
85 | 85 | ||
86 | 86 | let keyHighCompetitionAmount = "_tickets_high_competition" | |
87 | 87 | ||
88 | 88 | let keyTotalAmountBuyAssetSoldHC = "_total_buy_asset_sold_high_competition" | |
89 | 89 | ||
90 | 90 | let keyUserClaimedTokens = "_claimed_tokens" | |
91 | 91 | ||
92 | 92 | let keyUserClaimedBuyTokens = "_claimed_buy_tokens" | |
93 | 93 | ||
94 | 94 | let keyUserBoughtTicketsAmount = "_bought_tickets" | |
95 | 95 | ||
96 | 96 | let keyUserTickets = "_tickets_number" | |
97 | 97 | ||
98 | 98 | let keyUserHCTickets = "_tickets_number_high_competition" | |
99 | 99 | ||
100 | 100 | let keyUserHCBoughtTicketsAmount = "_bought_tickets_high_competition" | |
101 | 101 | ||
102 | 102 | let keyUserAvailableAllocations = "_available_purchase_marketing" | |
103 | 103 | ||
104 | 104 | let keyUserAmountBuyAssetInMarketing = "_purchased_buy_asset_in_marketing" | |
105 | 105 | ||
106 | 106 | let keyUserBoughtAllocations = "_bought_allocations" | |
107 | 107 | ||
108 | 108 | let keyUserClaimStatus = "_claim_status" | |
109 | 109 | ||
110 | 110 | let keyUserWinnedTicketsAmount = "_tickets_result" | |
111 | 111 | ||
112 | 112 | let keyUserWinnedHighCompetitionTicketsAmount = "_tickets_result_high_competition" | |
113 | 113 | ||
114 | 114 | let keyUserFreezeToken = "_freeze_token_amount" | |
115 | 115 | ||
116 | 116 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
117 | 117 | ||
118 | 118 | let governance = Address(base58'3N8E9LU71MDkdP8FWtbP4TBXCNhoc15hWfs') | |
119 | 119 | ||
120 | 120 | let commissionWallet = Address(base58'3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had') | |
121 | 121 | ||
122 | 122 | let stakingUSDNAddress = Address(base58'3N8STSY7dWpBYLiCimEQMkRizyWePSX3qQx') | |
123 | 123 | ||
124 | 124 | let USDN = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp' | |
125 | 125 | ||
126 | 126 | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
127 | 127 | ||
128 | 128 | let WAVES_XTN_EX = Address(base58'3MqjSoPUdGHaan9uhxwTnFw1uH7uZ8dgt8f') | |
129 | 129 | ||
130 | 130 | let maxAllocationsAmount = 2 | |
131 | 131 | ||
132 | 132 | let activeLaunchpadId = valueOrElse(getIntegerValue(this, keyLaunchpadActiveId), -1) | |
133 | 133 | ||
134 | 134 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
135 | 135 | case string: String => | |
136 | 136 | fromBase58String(string) | |
137 | 137 | case nothing => | |
138 | 138 | throw("Admin public key is empty") | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
143 | 143 | ||
144 | 144 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
145 | 145 | ||
146 | 146 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
147 | 147 | ||
148 | 148 | func getAssetInfo (assetId) = match assetId { | |
149 | 149 | case id: ByteVector => | |
150 | 150 | let stringId = toBase58String(id) | |
151 | 151 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
152 | 152 | $Tuple3(stringId, info.name, info.decimals) | |
153 | 153 | case waves: Unit => | |
154 | 154 | $Tuple3("WAVES", "WAVES", 8) | |
155 | 155 | case _ => | |
156 | 156 | throw("Match error") | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func getLaunchpadNextId () = valueOrElse(getInteger(this, keyLaunchpadNextId), 1) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func stakedUsdnAmount () = valueOrElse(getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))), 0) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | let active = valueOrElse(getBoolean(this, keyActive), true) | |
167 | 167 | ||
168 | 168 | let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true) | |
169 | 169 | ||
170 | 170 | func isActive () = if (if (active) | |
171 | 171 | then activeGlob | |
172 | 172 | else false) | |
173 | 173 | then unit | |
174 | 174 | else throw("DApp is inactive at this moment") | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
178 | 178 | then unit | |
179 | 179 | else throw("Only admin can call this function") | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
183 | 183 | then $Tuple4(unit, "WAVES", "WAVES", 8) | |
184 | 184 | else { | |
185 | 185 | let stringId = assetStr | |
186 | 186 | let id = fromBase58String(assetStr) | |
187 | 187 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
188 | 188 | $Tuple4(id, stringId, info.name, info.decimals) | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func buyInWaves (launchpadId,ticketsAmount,type) = { | |
193 | 193 | let $t051595309 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
194 | 194 | let buyAssetId = $t051595309._1 | |
195 | 195 | let buyAssetStrId = $t051595309._2 | |
196 | 196 | let buyAssetName = $t051595309._3 | |
197 | 197 | let buyAssetDecimals = $t051595309._4 | |
198 | 198 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
199 | 199 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
200 | 200 | let $t054915635 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
201 | 201 | let tokenId = $t054915635._1 | |
202 | 202 | let tokenStrAssetId = $t054915635._2 | |
203 | 203 | let tokenAssetName = $t054915635._3 | |
204 | 204 | let tokenDecimals = $t054915635._4 | |
205 | 205 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
206 | 206 | let commissionPerTicket = if ((type == 1)) | |
207 | 207 | then fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyComission)), 100) | |
208 | 208 | else fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)), 100) | |
209 | 209 | let amntToGetTickets = (ticketsAmount * (ticketPrice + commissionPerTicket)) | |
210 | 210 | let amntToPay = { | |
211 | 211 | let @ = ({ | |
212 | 212 | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouPayREADONLY", [toString(amntToGetTickets), buyAssetId]], nil) | |
213 | 213 | if ($isInstanceOf(@, "List[Any]")) | |
214 | 214 | then @ | |
215 | 215 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
216 | 216 | })[0] | |
217 | 217 | if ($isInstanceOf(@, "Int")) | |
218 | 218 | then @ | |
219 | 219 | else throw(($getType(@) + " couldn't be cast to Int")) | |
220 | 220 | } | |
221 | 221 | if ((amntToPay == amntToPay)) | |
222 | 222 | then fraction(amntToPay, 101, 100) | |
223 | 223 | else throw("Strict value is not equal to itself.") | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(i) | |
228 | 228 | func hashingRandom (launchpadId,hash) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [StringEntry((toString(launchpadId) + keyVerifyHash), hash)])) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | ||
232 | 232 | @Callable(i) | |
233 | 233 | func initCaller (address) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [StringEntry(keyInitCaller, address)])) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | ||
237 | 237 | @Callable(i) | |
238 | 238 | func init (projectAddress,startHeight,duration,buyToken,commission,tokensPerTicket,pricePerToken,swopfiTicketsAmount,campaignTokensAmount,tokensPerAllocation,swopPerTicket,swopFreezeDuration,claimParams,HighCompetitionSale,highCompetitionComission,highCompetitionTicketsAmount,freezeAdditionalToken,freezeParams) = valueOrElse(isActive(), if ((toString(i.caller) != valueOrElse(getString(this, keyInitCaller), ""))) | |
239 | 239 | then throw("Only project admin can call init function") | |
240 | 240 | else if ((size(i.payments) != 1)) | |
241 | 241 | then throw("One attached payment expected") | |
242 | 242 | else if ((height > startHeight)) | |
243 | 243 | then throw("Start height must be greater than blockchain height") | |
244 | 244 | else if (if (freezeAdditionalToken) | |
245 | 245 | then (size(freezeParams) != 3) | |
246 | 246 | else false) | |
247 | 247 | then throw("Freeze params list must have 3 items") | |
248 | 248 | else { | |
249 | 249 | let launchpadId = getLaunchpadNextId() | |
250 | 250 | let launchpadIdStr = toString(launchpadId) | |
251 | 251 | let $t077897864 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
252 | 252 | let pmtAmount = $t077897864._1 | |
253 | 253 | let pmtAssetId = $t077897864._2 | |
254 | 254 | let $t078737946 = getAssetInfo(pmtAssetId) | |
255 | 255 | let pmtStrAssetId = $t078737946._1 | |
256 | 256 | let pmtAssetName = $t078737946._2 | |
257 | 257 | let pmtDecimals = $t078737946._3 | |
258 | 258 | let freezeAdditionalEntry = if (freezeAdditionalToken) | |
259 | 259 | then [BooleanEntry((launchpadIdStr + keyFreezeAdditionalToken), true), StringEntry((launchpadIdStr + keyFreezeTokenId), freezeParams[0]), IntegerEntry((launchpadIdStr + keyFreezeTokenDuration), parseIntValue(freezeParams[1])), IntegerEntry((launchpadIdStr + keyFreezeTokenPerTicket), parseIntValue(freezeParams[2]))] | |
260 | 260 | else nil | |
261 | 261 | ([IntegerEntry((pmtStrAssetId + "_launchpad"), launchpadId), IntegerEntry(keyLaunchpadNextId, (launchpadId + 1)), StringEntry((launchpadIdStr + keyAddress), projectAddress), IntegerEntry((launchpadIdStr + keyInitHeight), height), IntegerEntry((launchpadIdStr + keyStartHeight), startHeight), IntegerEntry((launchpadIdStr + keyDuration), duration), StringEntry((launchpadIdStr + keyBuyToken), buyToken), IntegerEntry((launchpadIdStr + keyFreezSwopDuration), swopFreezeDuration), IntegerEntry((launchpadIdStr + keyTotalTokenAmount), pmtAmount), StringEntry((launchpadIdStr + keyAssetId), pmtStrAssetId), IntegerEntry((launchpadIdStr + keyComission), commission), IntegerEntry((launchpadIdStr + keyTicketLastNumber), 0), IntegerEntry((launchpadIdStr + keyHCTicketLastNumber), 0), IntegerEntry((launchpadIdStr + keyTokensPerTicket), tokensPerTicket), IntegerEntry((launchpadIdStr + keyPricePerToken), pricePerToken), IntegerEntry((launchpadIdStr + keySwopPerTicket), swopPerTicket), IntegerEntry((launchpadIdStr + keySwopfiTicketsAmount), swopfiTicketsAmount), IntegerEntry((launchpadIdStr + keyCampaignTokensAmount), campaignTokensAmount), IntegerEntry((launchpadIdStr + keyTokensPerAllocation), tokensPerAllocation), StringEntry((launchpadIdStr + keyClaimParams), makeString(claimParams, ",")), BooleanEntry((launchpadIdStr + keyHighCompetitionSale), HighCompetitionSale), IntegerEntry((launchpadIdStr + keyHighCompetitionComission), highCompetitionComission), IntegerEntry((launchpadIdStr + keyHighCompetitionAmount), highCompetitionTicketsAmount), IntegerEntry(keyLaunchpadActiveId, launchpadId), StringEntry(keyInitCaller, "")] ++ freezeAdditionalEntry) | |
262 | 262 | }) | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | ||
266 | 266 | @Callable(i) | |
267 | 267 | func commitSwopfiSale (launchpadId,refId) = valueOrElse(isActive(), { | |
268 | 268 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
269 | 269 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
270 | 270 | let $t01072910873 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
271 | 271 | let tokenId = $t01072910873._1 | |
272 | 272 | let tokenStrAssetId = $t01072910873._2 | |
273 | 273 | let tokenAssetName = $t01072910873._3 | |
274 | 274 | let tokenDecimals = $t01072910873._4 | |
275 | 275 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
276 | 276 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyComission)), 100) | |
277 | 277 | let $t01109011240 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
278 | 278 | let buyAssetId = $t01109011240._1 | |
279 | 279 | let buyAssetStrId = $t01109011240._2 | |
280 | 280 | let buyAssetName = $t01109011240._3 | |
281 | 281 | let buyAssetDecimals = $t01109011240._4 | |
282 | 282 | let stakedSwops = valueOrElse(getInteger(governance, (toString(i.caller) + keyGovernanceStaked)), 0) | |
283 | 283 | let allowedTicketsAmountAll = (stakedSwops / getIntegerValue(this, (toString(launchpadId) + keySwopPerTicket))) | |
284 | 284 | let boughtTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
285 | 285 | let allowedTicketsAmount = (allowedTicketsAmountAll - boughtTicketsAmount) | |
286 | 286 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
287 | 287 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
288 | 288 | let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false) | |
289 | - | let $ | |
289 | + | let $t01196513105 = if ((i.payments[0].assetId == unit)) | |
290 | 290 | then { | |
291 | 291 | let amntToGet = { | |
292 | 292 | let @ = ({ | |
293 | 293 | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouGetREADONLY", [toString(i.payments[0].amount), base58'']], nil) | |
294 | 294 | if ($isInstanceOf(@, "List[Any]")) | |
295 | 295 | then @ | |
296 | 296 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
297 | 297 | })[0] | |
298 | 298 | if ($isInstanceOf(@, "Int")) | |
299 | 299 | then @ | |
300 | 300 | else throw(($getType(@) + " couldn't be cast to Int")) | |
301 | 301 | } | |
302 | 302 | if ((amntToGet == amntToGet)) | |
303 | 303 | then { | |
304 | 304 | let ticketsAmount = (amntToGet / (ticketPrice + commissionPerTicket)) | |
305 | - | | |
306 | - | | |
307 | - | | |
308 | - | let | |
309 | - | | |
310 | - | | |
311 | - | | |
312 | - | | |
313 | - | | |
314 | - | | |
315 | - | | |
316 | - | | |
317 | - | | |
318 | - | | |
319 | - | | |
320 | - | if (( | |
305 | + | if ((ticketsAmount == 0)) | |
306 | + | then throw("Not enought WAVES to buy tickets") | |
307 | + | else { | |
308 | + | let amntToGetTickets = (ticketsAmount * (ticketPrice + commissionPerTicket)) | |
309 | + | let amntToPay = { | |
310 | + | let @ = ({ | |
311 | + | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouPayREADONLY", [toString(amntToGetTickets), buyAssetId]], nil) | |
312 | + | if ($isInstanceOf(@, "List[Any]")) | |
313 | + | then @ | |
314 | + | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
315 | + | })[0] | |
316 | + | if ($isInstanceOf(@, "Int")) | |
317 | + | then @ | |
318 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
319 | + | } | |
320 | + | if ((amntToPay == amntToPay)) | |
321 | 321 | then { | |
322 | - | let change = (i.payments[0].amount - amntToGetTickets) | |
323 | - | let cEntry = if ((change > 0)) | |
324 | - | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
325 | - | else nil | |
326 | - | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
322 | + | let ex = invoke(WAVES_XTN_EX, "callFunction", ["exchange", [toString(amntToGetTickets)]], [AttachedPayment(unit, amntToPay)]) | |
323 | + | if ((ex == ex)) | |
324 | + | then { | |
325 | + | let change = (i.payments[0].amount - amntToGetTickets) | |
326 | + | let cEntry = if ((change > 0)) | |
327 | + | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
328 | + | else nil | |
329 | + | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
330 | + | } | |
331 | + | else throw("Strict value is not equal to itself.") | |
327 | 332 | } | |
328 | 333 | else throw("Strict value is not equal to itself.") | |
329 | 334 | } | |
330 | - | else throw("Strict value is not equal to itself.") | |
331 | 335 | } | |
332 | 336 | else throw("Strict value is not equal to itself.") | |
333 | 337 | } | |
334 | 338 | else $Tuple3(i.payments[0].amount, i.payments[0].assetId, nil) | |
335 | - | let pmtAmount = $ | |
336 | - | let pmtAssetId = $ | |
337 | - | let changeEntry = $ | |
339 | + | let pmtAmount = $t01196513105._1 | |
340 | + | let pmtAssetId = $t01196513105._2 | |
341 | + | let changeEntry = $t01196513105._3 | |
338 | 342 | if ((activeLaunchpadId != launchpadId)) | |
339 | 343 | then throw("There is no active launchpad or this launchpad is ended") | |
340 | 344 | else if ((startHeight > height)) | |
341 | 345 | then throw("Launchpad sale not started yet") | |
342 | 346 | else if ((height > (startHeight + duration))) | |
343 | 347 | then throw("Launchpad sale ended") | |
344 | 348 | else if (if (!(freezeAdditionalToken)) | |
345 | 349 | then if ((size(i.payments) != 1)) | |
346 | 350 | then true | |
347 | 351 | else (pmtAssetId != buyAssetId) | |
348 | 352 | else false) | |
349 | 353 | then throw((("One attached payment in " + buyAssetName) + " expected")) | |
350 | 354 | else if (if (freezeAdditionalToken) | |
351 | 355 | then if ((size(i.payments) != 2)) | |
352 | 356 | then true | |
353 | 357 | else (pmtAssetId != buyAssetId) | |
354 | 358 | else false) | |
355 | 359 | then { | |
356 | 360 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
357 | 361 | throw(((("Two attached payments expected: First in " + buyAssetName) + ", second in ") + freezeTokenId)) | |
358 | 362 | } | |
359 | 363 | else if (if ((0 >= allowedTicketsAmountAll)) | |
360 | 364 | then true | |
361 | 365 | else (0 >= allowedTicketsAmount)) | |
362 | 366 | then throw("Not enought SWOP in staking to buy tickets") | |
363 | 367 | else { | |
364 | 368 | let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket)) | |
365 | 369 | let allowedBuyTicketAmount = min([buyTicketAmount, allowedTicketsAmount]) | |
366 | 370 | let allowedBuyPriceWithComission = (allowedBuyTicketAmount * (ticketPrice + commissionPerTicket)) | |
367 | 371 | let change = (pmtAmount - allowedBuyPriceWithComission) | |
368 | 372 | if ((buyTicketAmount == 0)) | |
369 | 373 | then throw((("Not enought " + buyAssetName) + " to buy tickets")) | |
370 | 374 | else if ((change != 0)) | |
371 | 375 | then throw((((("Wrong payment. To buy " + toString(allowedBuyTicketAmount)) + "tickets you need to pay ") + toString(allowedBuyPriceWithComission)) + buyAssetName)) | |
372 | 376 | else { | |
373 | 377 | let freezeAdditionalEntry = if (freezeAdditionalToken) | |
374 | 378 | then { | |
375 | 379 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
376 | 380 | let freezeTokenPerTicket = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenPerTicket)) | |
377 | - | let $ | |
378 | - | let pmtAmountFreeze = $ | |
379 | - | let pmtAssetIdFreeze = $ | |
380 | - | let $ | |
381 | - | let pmtFreezeStrAssetId = $ | |
382 | - | let pmtFreezeAssetName = $ | |
383 | - | let pmtFreezeDecimals = $ | |
381 | + | let $t01494815035 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
382 | + | let pmtAmountFreeze = $t01494815035._1 | |
383 | + | let pmtAssetIdFreeze = $t01494815035._2 | |
384 | + | let $t01505215143 = getAssetInfo(pmtAssetId) | |
385 | + | let pmtFreezeStrAssetId = $t01505215143._1 | |
386 | + | let pmtFreezeAssetName = $t01505215143._2 | |
387 | + | let pmtFreezeDecimals = $t01505215143._3 | |
384 | 388 | let needFreezeTokens = (freezeTokenPerTicket * buyTicketAmount) | |
385 | 389 | if (if ((pmtFreezeStrAssetId != freezeTokenId)) | |
386 | 390 | then true | |
387 | 391 | else (needFreezeTokens != pmtAmountFreeze)) | |
388 | 392 | then throw((((("You need to add " + toString(needFreezeTokens)) + " ") + pmtFreezeAssetName) + " as a second payment")) | |
389 | 393 | else [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), pmtAmountFreeze)] | |
390 | 394 | } | |
391 | 395 | else nil | |
392 | 396 | let userBoughtTicketsNumbers = valueOrElse(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserTickets)), "") | |
393 | 397 | let lastBoughtTicketNumber = getIntegerValue(this, (toString(launchpadId) + keyTicketLastNumber)) | |
394 | 398 | let boughtRange = ((toString((lastBoughtTicketNumber + 1)) + "-") + toString((lastBoughtTicketNumber + allowedBuyTicketAmount))) | |
395 | 399 | let newUserBoughtTicketsNumbers = (userBoughtTicketsNumbers + (if ((userBoughtTicketsNumbers != "")) | |
396 | 400 | then ("," + boughtRange) | |
397 | 401 | else ("" + boughtRange))) | |
398 | 402 | let inv = if ((buyAssetId == USDN)) | |
399 | 403 | then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
400 | 404 | else 0 | |
401 | 405 | if ((inv == inv)) | |
402 | 406 | then { | |
403 | 407 | let baseEntry = (([IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount), (boughtTicketsAmount + allowedBuyTicketAmount)), IntegerEntry((toString(launchpadId) + keyTicketLastNumber), (lastBoughtTicketNumber + allowedBuyTicketAmount)), StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserTickets), newUserBoughtTicketsNumbers)] ++ freezeAdditionalEntry) ++ changeEntry) | |
404 | 408 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
405 | 409 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
406 | 410 | else baseEntry | |
407 | 411 | } | |
408 | 412 | else throw("Strict value is not equal to itself.") | |
409 | 413 | } | |
410 | 414 | } | |
411 | 415 | }) | |
412 | 416 | ||
413 | 417 | ||
414 | 418 | ||
415 | 419 | @Callable(i) | |
416 | 420 | func commitAccessListSale (launchpadId,refId) = valueOrElse(isActive(), { | |
417 | - | let $ | |
418 | - | let pmtAmount = $ | |
419 | - | let pmtAssetId = $ | |
420 | - | let $ | |
421 | - | let buyAssetId = $ | |
422 | - | let buyAssetStrId = $ | |
423 | - | let buyAssetName = $ | |
424 | - | let buyAssetDecimals = $ | |
421 | + | let $t01722917304 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
422 | + | let pmtAmount = $t01722917304._1 | |
423 | + | let pmtAssetId = $t01722917304._2 | |
424 | + | let $t01730917459 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
425 | + | let buyAssetId = $t01730917459._1 | |
426 | + | let buyAssetStrId = $t01730917459._2 | |
427 | + | let buyAssetName = $t01730917459._3 | |
428 | + | let buyAssetDecimals = $t01730917459._4 | |
425 | 429 | let userUsdnInMarketing = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountBuyAssetInMarketing)), 0) | |
426 | 430 | let usdnInMarketing = valueOrElse(getInteger(this, (toString(launchpadId) + keyAmountBuyAssetInMarketing)), 0) | |
427 | 431 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
428 | 432 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
429 | 433 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
430 | 434 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
431 | - | let $ | |
432 | - | let tokenId = $ | |
433 | - | let tokenStrAssetId = $ | |
434 | - | let tokenAssetName = $ | |
435 | - | let tokenDecimals = $ | |
435 | + | let $t01812818272 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
436 | + | let tokenId = $t01812818272._1 | |
437 | + | let tokenStrAssetId = $t01812818272._2 | |
438 | + | let tokenAssetName = $t01812818272._3 | |
439 | + | let tokenDecimals = $t01812818272._4 | |
436 | 440 | let allocationPriceWithComission = fraction(fraction(tokenPrice, tokensPerAllocation, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
437 | 441 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
438 | 442 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
439 | 443 | if ((activeLaunchpadId != launchpadId)) | |
440 | 444 | then throw("There is no active launchpad or this launchpad is ended") | |
441 | 445 | else if ((startHeight > height)) | |
442 | 446 | then throw("Launchpad sale not started yet") | |
443 | 447 | else if ((height > (startHeight + duration))) | |
444 | 448 | then throw("Launchpad sale ended") | |
445 | 449 | else if (if ((size(i.payments) != 1)) | |
446 | 450 | then true | |
447 | 451 | else (pmtAssetId != buyAssetId)) | |
448 | 452 | then throw((("One attached payment in " + buyAssetName) + " expected")) | |
449 | 453 | else if ((boughtAllocations >= maxAllocationsAmount)) | |
450 | 454 | then throw((("You can buy only " + toString(maxAllocationsAmount)) + "allocations")) | |
451 | 455 | else if (if ((allocationPriceWithComission != pmtAmount)) | |
452 | 456 | then ((allocationPriceWithComission * 2) != pmtAmount) | |
453 | 457 | else false) | |
454 | 458 | then throw(((("Wrong payment. You can buy 1 or 2 allocations for " + toString(allocationPriceWithComission)) + buyAssetName) + " per allocation")) | |
455 | 459 | else { | |
456 | 460 | let buyAllocationsAmount = (pmtAmount / allocationPriceWithComission) | |
457 | 461 | let inv = if ((buyAssetId == USDN)) | |
458 | 462 | then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
459 | 463 | else 0 | |
460 | 464 | if ((inv == inv)) | |
461 | 465 | then { | |
462 | 466 | let baseEntry = [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations), (boughtAllocations + buyAllocationsAmount)), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountBuyAssetInMarketing), (userUsdnInMarketing + pmtAmount)), IntegerEntry((toString(launchpadId) + keyAmountBuyAssetInMarketing), (usdnInMarketing + pmtAmount))] | |
463 | 467 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
464 | 468 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
465 | 469 | else baseEntry | |
466 | 470 | } | |
467 | 471 | else throw("Strict value is not equal to itself.") | |
468 | 472 | } | |
469 | 473 | }) | |
470 | 474 | ||
471 | 475 | ||
472 | 476 | ||
473 | 477 | @Callable(i) | |
474 | 478 | func commitHighCompetitionSale (launchpadId,refId) = valueOrElse(isActive(), { | |
475 | - | let $ | |
476 | - | let buyAssetId = $ | |
477 | - | let buyAssetStrId = $ | |
478 | - | let buyAssetName = $ | |
479 | - | let buyAssetDecimals = $ | |
479 | + | let $t02053020680 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
480 | + | let buyAssetId = $t02053020680._1 | |
481 | + | let buyAssetStrId = $t02053020680._2 | |
482 | + | let buyAssetName = $t02053020680._3 | |
483 | + | let buyAssetDecimals = $t02053020680._4 | |
480 | 484 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
481 | 485 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
482 | 486 | let boughtHCTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0) | |
483 | 487 | let highCompetitionSale = valueOrElse(getBoolean(this, (toString(launchpadId) + keyHighCompetitionSale)), false) | |
484 | 488 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
485 | 489 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
486 | - | let $ | |
487 | - | let tokenId = $ | |
488 | - | let tokenStrAssetId = $ | |
489 | - | let tokenAssetName = $ | |
490 | - | let tokenDecimals = $ | |
490 | + | let $t02129021434 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
491 | + | let tokenId = $t02129021434._1 | |
492 | + | let tokenStrAssetId = $t02129021434._2 | |
493 | + | let tokenAssetName = $t02129021434._3 | |
494 | + | let tokenDecimals = $t02129021434._4 | |
491 | 495 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
492 | 496 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)), 100) | |
493 | - | let $ | |
497 | + | let $t02166722807 = if ((i.payments[0].assetId == unit)) | |
494 | 498 | then { | |
495 | 499 | let amntToGet = { | |
496 | 500 | let @ = ({ | |
497 | 501 | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouGetREADONLY", [toString(i.payments[0].amount), base58'']], nil) | |
498 | 502 | if ($isInstanceOf(@, "List[Any]")) | |
499 | 503 | then @ | |
500 | 504 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
501 | 505 | })[0] | |
502 | 506 | if ($isInstanceOf(@, "Int")) | |
503 | 507 | then @ | |
504 | 508 | else throw(($getType(@) + " couldn't be cast to Int")) | |
505 | 509 | } | |
506 | 510 | if ((amntToGet == amntToGet)) | |
507 | 511 | then { | |
508 | 512 | let ticketsAmount = (amntToGet / (ticketPrice + commissionPerTicket)) | |
509 | - | | |
510 | - | | |
511 | - | | |
512 | - | let | |
513 | - | | |
514 | - | | |
515 | - | | |
516 | - | | |
517 | - | | |
518 | - | | |
519 | - | | |
520 | - | | |
521 | - | | |
522 | - | | |
523 | - | | |
524 | - | if (( | |
513 | + | if ((ticketsAmount == 0)) | |
514 | + | then throw("Not enought WAVES to buy tickets") | |
515 | + | else { | |
516 | + | let amntToGetTickets = (ticketsAmount * (ticketPrice + commissionPerTicket)) | |
517 | + | let amntToPay = { | |
518 | + | let @ = ({ | |
519 | + | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouPayREADONLY", [toString(amntToGetTickets), buyAssetId]], nil) | |
520 | + | if ($isInstanceOf(@, "List[Any]")) | |
521 | + | then @ | |
522 | + | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
523 | + | })[0] | |
524 | + | if ($isInstanceOf(@, "Int")) | |
525 | + | then @ | |
526 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
527 | + | } | |
528 | + | if ((amntToPay == amntToPay)) | |
525 | 529 | then { | |
526 | - | let change = (i.payments[0].amount - amntToGetTickets) | |
527 | - | let cEntry = if ((change > 0)) | |
528 | - | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
529 | - | else nil | |
530 | - | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
530 | + | let ex = invoke(WAVES_XTN_EX, "callFunction", ["exchange", [toString(amntToGetTickets)]], [AttachedPayment(unit, amntToPay)]) | |
531 | + | if ((ex == ex)) | |
532 | + | then { | |
533 | + | let change = (i.payments[0].amount - amntToGetTickets) | |
534 | + | let cEntry = if ((change > 0)) | |
535 | + | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
536 | + | else nil | |
537 | + | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
538 | + | } | |
539 | + | else throw("Strict value is not equal to itself.") | |
531 | 540 | } | |
532 | 541 | else throw("Strict value is not equal to itself.") | |
533 | 542 | } | |
534 | - | else throw("Strict value is not equal to itself.") | |
535 | 543 | } | |
536 | 544 | else throw("Strict value is not equal to itself.") | |
537 | 545 | } | |
538 | 546 | else $Tuple3(i.payments[0].amount, i.payments[0].assetId, nil) | |
539 | - | let pmtAmount = $ | |
540 | - | let pmtAssetId = $ | |
541 | - | let changeEntry = $ | |
547 | + | let pmtAmount = $t02166722807._1 | |
548 | + | let pmtAssetId = $t02166722807._2 | |
549 | + | let changeEntry = $t02166722807._3 | |
542 | 550 | if ((activeLaunchpadId != launchpadId)) | |
543 | 551 | then throw("There is no active launchpad or this launchpad is ended") | |
544 | 552 | else if (!(highCompetitionSale)) | |
545 | 553 | then throw("There is no high competition sale for this launchpad") | |
546 | 554 | else if ((startHeight > height)) | |
547 | 555 | then throw("Launchpad sale not started yet") | |
548 | 556 | else if ((height > (startHeight + duration))) | |
549 | 557 | then throw("Launchpad sale ended") | |
550 | 558 | else if (if ((size(i.payments) != 1)) | |
551 | 559 | then true | |
552 | 560 | else (pmtAssetId != buyAssetId)) | |
553 | 561 | then throw((("One attached payment in " + buyAssetName) + " expected")) | |
554 | 562 | else { | |
555 | 563 | let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket)) | |
556 | 564 | let buyPriceWithComission = (buyTicketAmount * (ticketPrice + commissionPerTicket)) | |
557 | 565 | let change = (pmtAmount - buyPriceWithComission) | |
558 | 566 | if ((buyTicketAmount == 0)) | |
559 | 567 | then throw((("Not enought " + buyAssetName) + " to buy tickets")) | |
560 | 568 | else if ((change != 0)) | |
561 | 569 | then throw((((("Wrong payment. To buy " + toString(buyTicketAmount)) + "tickets you need to pay ") + toString(buyPriceWithComission)) + buyAssetName)) | |
562 | 570 | else { | |
563 | 571 | let userBoughtTicketsNumbers = valueOrElse(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCTickets)), "") | |
564 | 572 | let lastBoughtTicketNumber = getIntegerValue(this, (toString(launchpadId) + keyHCTicketLastNumber)) | |
565 | 573 | let boughtRange = ((toString((lastBoughtTicketNumber + 1)) + "-") + toString((lastBoughtTicketNumber + buyTicketAmount))) | |
566 | 574 | let newUserBoughtTicketsNumbers = (userBoughtTicketsNumbers + (if ((userBoughtTicketsNumbers != "")) | |
567 | 575 | then ("," + boughtRange) | |
568 | 576 | else ("" + boughtRange))) | |
569 | 577 | let inv = if ((buyAssetId == USDN)) | |
570 | 578 | then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
571 | 579 | else 0 | |
572 | 580 | if ((inv == inv)) | |
573 | 581 | then { | |
574 | 582 | let baseEntry = ([IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount), (boughtHCTicketsAmount + buyTicketAmount)), IntegerEntry((toString(launchpadId) + keyHCTicketLastNumber), (lastBoughtTicketNumber + buyTicketAmount)), StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCTickets), newUserBoughtTicketsNumbers)] ++ changeEntry) | |
575 | 583 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
576 | 584 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
577 | 585 | else baseEntry | |
578 | 586 | } | |
579 | 587 | else throw("Strict value is not equal to itself.") | |
580 | 588 | } | |
581 | 589 | } | |
582 | 590 | }) | |
583 | 591 | ||
584 | 592 | ||
585 | 593 | ||
586 | 594 | @Callable(i) | |
587 | 595 | func finalise (launchpadId,vrfHeight,secretWord) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
588 | 596 | let savedHash = getStringValue(this, (toString(launchpadId) + keyVerifyHash)) | |
589 | 597 | let calcHash = toBase58String(sha256((toBytes(vrfHeight) + toBytes(secretWord)))) | |
590 | 598 | if ((calcHash != savedHash)) | |
591 | 599 | then throw("vrf Height hash not matching") | |
592 | 600 | else { | |
593 | - | let $ | |
594 | - | let buyAssetId = $ | |
595 | - | let buyAssetStrId = $ | |
596 | - | let buyAssetName = $ | |
597 | - | let buyAssetDecimals = $ | |
601 | + | let $t02576025910 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
602 | + | let buyAssetId = $t02576025910._1 | |
603 | + | let buyAssetStrId = $t02576025910._2 | |
604 | + | let buyAssetName = $t02576025910._3 | |
605 | + | let buyAssetDecimals = $t02576025910._4 | |
598 | 606 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
599 | 607 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
600 | 608 | let commissionHC = getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)) | |
601 | 609 | let transferedBuyAsset = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferBuyAsset)), 0) | |
602 | 610 | let swopfiMembersBuyAssetAmount = getIntegerValue(this, (toString(launchpadId) + keyTotalAmountBuyAssetSold)) | |
603 | 611 | let swopfiHCBuyAssetAmount = valueOrElse(getInteger(this, (toString(launchpadId) + keyTotalAmountBuyAssetSoldHC)), 0) | |
604 | 612 | let swopfiMembersComission = fraction(swopfiMembersBuyAssetAmount, commission, 100) | |
605 | 613 | let swopfiHCComission = fraction(swopfiHCBuyAssetAmount, commissionHC, 100) | |
606 | 614 | let totalAmountBuyAssetInMarketing = getIntegerValue(this, (toString(launchpadId) + keyAmountBuyAssetInMarketingFinalized)) | |
607 | 615 | let marketingComission = fraction(totalAmountBuyAssetInMarketing, commission, 100) | |
608 | 616 | let unstakeAmount = ((((((swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing) + swopfiMembersComission) + marketingComission) + swopfiHCBuyAssetAmount) + swopfiHCComission) - transferedBuyAsset) | |
609 | 617 | if ((transferedBuyAsset > ((swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing) + swopfiHCBuyAssetAmount))) | |
610 | 618 | then throw("Can't transfer negative value to project") | |
611 | 619 | else { | |
612 | 620 | let inv = if ((buyAssetId == USDN)) | |
613 | 621 | then invoke(stakingUSDNAddress, "unlockNeutrino", [unstakeAmount, toBase58String(USDN)], nil) | |
614 | 622 | else 0 | |
615 | 623 | if ((inv == inv)) | |
616 | 624 | then [IntegerEntry((toString(launchpadId) + keyFinaliseHeight), height), ScriptTransfer(projectAddress, (((swopfiMembersBuyAssetAmount + swopfiHCBuyAssetAmount) + totalAmountBuyAssetInMarketing) - transferedBuyAsset), buyAssetId), ScriptTransfer(commissionWallet, ((swopfiMembersComission + marketingComission) + swopfiHCComission), buyAssetId)] | |
617 | 625 | else throw("Strict value is not equal to itself.") | |
618 | 626 | } | |
619 | 627 | } | |
620 | 628 | })) | |
621 | 629 | ||
622 | 630 | ||
623 | 631 | ||
624 | 632 | @Callable(i) | |
625 | 633 | func claim (launchpadId) = valueOrElse(isActive(), { | |
626 | 634 | let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
627 | 635 | let boughtHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0) | |
628 | 636 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
629 | 637 | let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false) | |
630 | 638 | let finalizeHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)), 0) | |
631 | 639 | if ((finalizeHeight == 0)) | |
632 | 640 | then throw("You can't claim because results are not finalized") | |
633 | 641 | else if (userClaimStatus) | |
634 | 642 | then throw("You are already claimed") | |
635 | 643 | else if (if (if ((boughtTickets == 0)) | |
636 | 644 | then (boughtAllocations == 0) | |
637 | 645 | else false) | |
638 | 646 | then (boughtHCTickets == 0) | |
639 | 647 | else false) | |
640 | 648 | then throw("You can't claim because you don't buy anything") | |
641 | 649 | else { | |
642 | - | let $ | |
643 | - | let buyAssetId = $ | |
644 | - | let buyAssetStrId = $ | |
645 | - | let buyAssetName = $ | |
646 | - | let buyAssetDecimals = $ | |
650 | + | let $t02899429171 = getAssetInfoFromString(valueOrElse(getString(this, (toString(launchpadId) + keyBuyToken)), toBase58String(USDN))) | |
651 | + | let buyAssetId = $t02899429171._1 | |
652 | + | let buyAssetStrId = $t02899429171._2 | |
653 | + | let buyAssetName = $t02899429171._3 | |
654 | + | let buyAssetDecimals = $t02899429171._4 | |
647 | 655 | let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0) | |
648 | 656 | let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0) | |
649 | 657 | let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0) | |
650 | 658 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
651 | 659 | let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0) | |
652 | 660 | let allowedAllocations = min([boughtAllocations, awailableAllocations]) | |
653 | 661 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
654 | 662 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
655 | - | let $ | |
656 | - | let tokenId = $ | |
657 | - | let tokenStrAssetId = $ | |
658 | - | let tokenAssetName = $ | |
659 | - | let tokenDecimals = $ | |
663 | + | let $t03008730231 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
664 | + | let tokenId = $t03008730231._1 | |
665 | + | let tokenStrAssetId = $t03008730231._2 | |
666 | + | let tokenAssetName = $t03008730231._3 | |
667 | + | let tokenDecimals = $t03008730231._4 | |
660 | 668 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
661 | 669 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
662 | 670 | let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket)) | |
663 | 671 | let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation) | |
664 | 672 | let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
665 | 673 | let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100) | |
666 | 674 | let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100) | |
667 | 675 | let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0) | |
668 | 676 | if (if (if ((0 > buyAssetForAllocations)) | |
669 | 677 | then true | |
670 | 678 | else (0 > buyAssetForUnwonnedTickets)) | |
671 | 679 | then true | |
672 | 680 | else (0 > buyAssetForHCUnwonnedTickets)) | |
673 | 681 | then throw("Error with allowed allocation param or wonned tickets param please contact support") | |
674 | 682 | else { | |
675 | 683 | let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken) | |
676 | 684 | let transferBuyAsset = if ((returnedBuyAssetAmount > 0)) | |
677 | 685 | then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)] | |
678 | 686 | else nil | |
679 | 687 | let inv = if (if ((returnedBuyAssetAmount > 0)) | |
680 | 688 | then (buyAssetId == USDN) | |
681 | 689 | else false) | |
682 | 690 | then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil) | |
683 | 691 | else 0 | |
684 | 692 | if ((inv == inv)) | |
685 | 693 | then { | |
686 | 694 | let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), "claimAll"), ",") | |
687 | 695 | if ((claimedParams[0] == "claimAll")) | |
688 | 696 | then { | |
689 | 697 | let transferTokens = if ((transferTokensAmount > 0)) | |
690 | 698 | then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)] | |
691 | 699 | else nil | |
692 | 700 | (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset) | |
693 | 701 | } | |
694 | 702 | else if ((claimedParams[0] == "claimPeriod")) | |
695 | 703 | then { | |
696 | 704 | let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0) | |
697 | 705 | let unlockPeriod = value(parseInt(claimedParams[2])) | |
698 | 706 | let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight) | |
699 | 707 | let unlockHeight = (unlockPeriod + blockHeight) | |
700 | 708 | let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100) | |
701 | 709 | let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight)) | |
702 | 710 | then (fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod) - claimedTokens) | |
703 | 711 | else (0 - claimedTokens))) | |
704 | 712 | let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount))) | |
705 | 713 | then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)] | |
706 | 714 | else nil | |
707 | 715 | if (if ((allowedTokensAmount > 0)) | |
708 | 716 | then true | |
709 | 717 | else (returnedBuyAssetAmount > 0)) | |
710 | 718 | then { | |
711 | 719 | let transferTokens = if ((allowedTokensAmount > 0)) | |
712 | 720 | then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)] | |
713 | 721 | else nil | |
714 | 722 | (transferBuyAsset ++ transferTokens) | |
715 | 723 | } | |
716 | 724 | else throw("Nothing to claim") | |
717 | 725 | } | |
718 | 726 | else throw("Unknown claim function") | |
719 | 727 | } | |
720 | 728 | else throw("Strict value is not equal to itself.") | |
721 | 729 | } | |
722 | 730 | } | |
723 | 731 | }) | |
724 | 732 | ||
725 | 733 | ||
726 | 734 | ||
727 | 735 | @Callable(i) | |
728 | 736 | func claimFreezeToken (launchpadId) = valueOrElse(isActive(), { | |
729 | 737 | let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false) | |
730 | 738 | if (!(isDefined(getInteger(this, (toString(launchpadId) + keyFinaliseHeight))))) | |
731 | 739 | then throw("You can't claim because results are not finalized") | |
732 | 740 | else if (!(freezeAdditionalToken)) | |
733 | 741 | then throw("There are no additional token freezing for this launchpad") | |
734 | 742 | else { | |
735 | 743 | let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyFreezeTokenId))) | |
736 | 744 | let userTokensFreezed = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken)), 0) | |
737 | 745 | let startHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyStartHeight)), 0) | |
738 | 746 | let duration = valueOrElse(getInteger(this, (toString(launchpadId) + keyDuration)), 0) | |
739 | 747 | let freezeTokenDuration = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenDuration)) | |
740 | 748 | let blockEndHeight = ((startHeight + duration) + freezeTokenDuration) | |
741 | 749 | if ((userTokensFreezed == 0)) | |
742 | 750 | then throw("You are already claimed your tokens or not paid anything") | |
743 | 751 | else if ((blockEndHeight > height)) | |
744 | 752 | then throw(("Your tokens freezed teel " + toString(blockEndHeight))) | |
745 | 753 | else [ScriptTransfer(i.caller, userTokensFreezed, tokenId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), 0)] | |
746 | 754 | } | |
747 | 755 | }) | |
748 | 756 | ||
749 | 757 | ||
750 | 758 | ||
751 | 759 | @Callable(i) | |
752 | 760 | func transferBuyAsset (launchpadId,amount) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
753 | 761 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
754 | - | let $ | |
755 | - | let buyAssetId = $ | |
756 | - | let buyAssetStrId = $ | |
757 | - | let buyAssetName = $ | |
758 | - | let buyAssetDecimals = $ | |
762 | + | let $t03639636546 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
763 | + | let buyAssetId = $t03639636546._1 | |
764 | + | let buyAssetStrId = $t03639636546._2 | |
765 | + | let buyAssetName = $t03639636546._3 | |
766 | + | let buyAssetDecimals = $t03639636546._4 | |
759 | 767 | let transferedBuyAsset = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferBuyAsset)), 0) | |
760 | 768 | let inv = if (if ((amount > 0)) | |
761 | 769 | then (buyAssetId == USDN) | |
762 | 770 | else false) | |
763 | 771 | then invoke(stakingUSDNAddress, "unlockNeutrino", [amount, toBase58String(USDN)], nil) | |
764 | 772 | else 0 | |
765 | 773 | if ((inv == inv)) | |
766 | 774 | then [IntegerEntry((toString(launchpadId) + keyTransferBuyAsset), (transferedBuyAsset + amount)), ScriptTransfer(projectAddress, amount, buyAssetId)] | |
767 | 775 | else throw("Strict value is not equal to itself.") | |
768 | 776 | })) | |
769 | 777 | ||
770 | 778 | ||
771 | 779 | ||
772 | 780 | @Callable(i) | |
773 | 781 | func shutdown () = valueOrElse(isAdminCall(i), if (!(active)) | |
774 | 782 | then throw("DApp already inactive") | |
775 | 783 | else [BooleanEntry(keyActive, false)]) | |
776 | 784 | ||
777 | 785 | ||
778 | 786 | ||
779 | 787 | @Callable(i) | |
780 | 788 | func activate () = valueOrElse(isAdminCall(i), if (active) | |
781 | 789 | then throw("DApp already active") | |
782 | 790 | else [BooleanEntry(keyActive, true)]) | |
783 | 791 | ||
784 | 792 | ||
785 | 793 | @Verifier(tx) | |
786 | 794 | func verify () = { | |
787 | 795 | let multiSignedByAdmins = { | |
788 | 796 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
789 | 797 | then 1 | |
790 | 798 | else 0 | |
791 | 799 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
792 | 800 | then 1 | |
793 | 801 | else 0 | |
794 | 802 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
795 | 803 | then 1 | |
796 | 804 | else 0 | |
797 | 805 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
798 | 806 | } | |
799 | 807 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
800 | 808 | then true | |
801 | 809 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
802 | 810 | then true | |
803 | 811 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
804 | 812 | then true | |
805 | 813 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
806 | 814 | match tx { | |
807 | 815 | case dtx: DataTransaction => | |
808 | 816 | if (valueOrElse(getBoolean(oracle, keyLaunchpadDataTransactionStatus), false)) | |
809 | 817 | then signedByAdmin | |
810 | 818 | else false | |
811 | 819 | case _ => | |
812 | 820 | multiSignedByAdmins | |
813 | 821 | } | |
814 | 822 | } | |
815 | 823 |
github/deemru/w8io/026f985 128.90 ms ◑