tx · 8qMb324TTFRDxGjKhTaLRjBvT17cGtC58UYK6UuLmC4c 3MqzpRGNBq3GSxMonFoenAhNRDHJ2a8omm1: -0.05000000 Waves 2023.08.23 14:10 [2723204] smart account 3MqzpRGNBq3GSxMonFoenAhNRDHJ2a8omm1 > SELF 0.00000000 Waves
{ "type": 13, "id": "8qMb324TTFRDxGjKhTaLRjBvT17cGtC58UYK6UuLmC4c", "fee": 5000000, "feeAssetId": null, "timestamp": 1692789031257, "version": 2, "chainId": 84, "sender": "3MqzpRGNBq3GSxMonFoenAhNRDHJ2a8omm1", "senderPublicKey": "Cm1uVVKocYw3S4eL9bYUMNZe5vpBPipgiiTx37eL6E8F", "proofs": [ "pRcY3pdX8Jd4fLsPDuYFsMooTXpr5g4sCYKb14xeb9GzUK9H49Fp312XjueCpyA4xxri6ZB8xL6v9rzq34dWD3w", "31fYEgt988z89GCaSZbvPovwJnS7uVpXCnGq6Mmi4rCrE8Wa8ZKWgxA4zB6igFGWAt9z9iThxoH1Fm8Mo1Lgttex" ], "script": "base64:BgJQCAISBAoCAQgSAwoBCBIUChIIAQEIAQEBAQEBAQEYBAEBBBgSBAoCAQgSBAoCAQgSBAoCAQgSBQoDAQEIEgMKAQESAwoBARIECgIBARIAEgBOAAlrZXlBY3RpdmUCBmFjdGl2ZQALa0FjdGl2ZUdsb2ICFGFjdGl2ZV9hbGxfY29udHJhY3RzAA9rZXlBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA9rZXlBZG1pblB1YktleTICC2FkbWluX3B1Yl8yAA9rZXlBZG1pblB1YktleTMCC2FkbWluX3B1Yl8zACFrZXlMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMCIWxhdW5jaHBhZF9kYXRhX3RyYW5zYWN0aW9uX3N0YXR1cwASa2V5TGF1bmNocGFkTmV4dElkAhFsYXVuY2hwYWRfbmV4dF9pZAAUa2V5TGF1bmNocGFkQWN0aXZlSWQCE2xhdW5jaHBhZF9hY3RpdmVfaWQADWt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9vZnMAAAUSYWRtaW5QdWJLZXlTdGFraW5nBAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAg9EYXRhVHJhbnNhY3Rpb24EA2R0eAUHJG1hdGNoMAMJAQt2YWx1ZU9yRWxzZQIJAJsIAgUGb3JhY2xlBSFrZXlMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMHBQ1zaWduZWRCeUFkbWluBwUTbXVsdGlTaWduZWRCeUFkbWlucyn+Oew=", "height": 2723204, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6fXQU633NvXpTrp9JYc1tekuydQtKwEk2fu57G21dN1x Next: none 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 $t01196513098 = if ((i.payments[0].assetId == unit)) | |
290 | 290 | then { | |
291 | 291 | let amntToGet = { | |
292 | 292 | let @ = ({ | |
322 | 322 | let ex = invoke(WAVES_XTN_EX, "callFunction", ["exchange", [toString(amntToGetTickets)]], [AttachedPayment(unit, amntToPay)]) | |
323 | 323 | if ((ex == ex)) | |
324 | 324 | then { | |
325 | - | let change = (i.payments[0].amount - | |
325 | + | let change = (i.payments[0].amount - amntToPay) | |
326 | 326 | let cEntry = if ((change > 0)) | |
327 | 327 | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
328 | 328 | else nil | |
336 | 336 | else throw("Strict value is not equal to itself.") | |
337 | 337 | } | |
338 | 338 | else $Tuple3(i.payments[0].amount, i.payments[0].assetId, nil) | |
339 | - | let pmtAmount = $ | |
340 | - | let pmtAssetId = $ | |
341 | - | let changeEntry = $ | |
339 | + | let pmtAmount = $t01196513098._1 | |
340 | + | let pmtAssetId = $t01196513098._2 | |
341 | + | let changeEntry = $t01196513098._3 | |
342 | 342 | if ((activeLaunchpadId != launchpadId)) | |
343 | 343 | then throw("There is no active launchpad or this launchpad is ended") | |
344 | 344 | else if ((startHeight > height)) | |
378 | 378 | then { | |
379 | 379 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
380 | 380 | let freezeTokenPerTicket = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenPerTicket)) | |
381 | - | let $ | |
382 | - | let pmtAmountFreeze = $ | |
383 | - | let pmtAssetIdFreeze = $ | |
384 | - | let $ | |
385 | - | let pmtFreezeStrAssetId = $ | |
386 | - | let pmtFreezeAssetName = $ | |
387 | - | let pmtFreezeDecimals = $ | |
381 | + | let $t01494115028 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
382 | + | let pmtAmountFreeze = $t01494115028._1 | |
383 | + | let pmtAssetIdFreeze = $t01494115028._2 | |
384 | + | let $t01504515136 = getAssetInfo(pmtAssetId) | |
385 | + | let pmtFreezeStrAssetId = $t01504515136._1 | |
386 | + | let pmtFreezeAssetName = $t01504515136._2 | |
387 | + | let pmtFreezeDecimals = $t01504515136._3 | |
388 | 388 | let needFreezeTokens = (freezeTokenPerTicket * buyTicketAmount) | |
389 | 389 | if (if ((pmtFreezeStrAssetId != freezeTokenId)) | |
390 | 390 | then true | |
418 | 418 | ||
419 | 419 | @Callable(i) | |
420 | 420 | func commitAccessListSale (launchpadId,refId) = valueOrElse(isActive(), { | |
421 | - | let $ | |
422 | - | let pmtAmount = $ | |
423 | - | let pmtAssetId = $ | |
424 | - | let $ | |
425 | - | let buyAssetId = $ | |
426 | - | let buyAssetStrId = $ | |
427 | - | let buyAssetName = $ | |
428 | - | let buyAssetDecimals = $ | |
421 | + | let $t01722217297 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
422 | + | let pmtAmount = $t01722217297._1 | |
423 | + | let pmtAssetId = $t01722217297._2 | |
424 | + | let $t01730217452 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
425 | + | let buyAssetId = $t01730217452._1 | |
426 | + | let buyAssetStrId = $t01730217452._2 | |
427 | + | let buyAssetName = $t01730217452._3 | |
428 | + | let buyAssetDecimals = $t01730217452._4 | |
429 | 429 | let userUsdnInMarketing = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountBuyAssetInMarketing)), 0) | |
430 | 430 | let usdnInMarketing = valueOrElse(getInteger(this, (toString(launchpadId) + keyAmountBuyAssetInMarketing)), 0) | |
431 | 431 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
432 | 432 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
433 | 433 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
434 | 434 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
435 | - | let $ | |
436 | - | let tokenId = $ | |
437 | - | let tokenStrAssetId = $ | |
438 | - | let tokenAssetName = $ | |
439 | - | let tokenDecimals = $ | |
435 | + | let $t01812118265 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
436 | + | let tokenId = $t01812118265._1 | |
437 | + | let tokenStrAssetId = $t01812118265._2 | |
438 | + | let tokenAssetName = $t01812118265._3 | |
439 | + | let tokenDecimals = $t01812118265._4 | |
440 | 440 | let allocationPriceWithComission = fraction(fraction(tokenPrice, tokensPerAllocation, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
441 | 441 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
442 | 442 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
476 | 476 | ||
477 | 477 | @Callable(i) | |
478 | 478 | func commitHighCompetitionSale (launchpadId,refId) = valueOrElse(isActive(), { | |
479 | - | let $ | |
480 | - | let buyAssetId = $ | |
481 | - | let buyAssetStrId = $ | |
482 | - | let buyAssetName = $ | |
483 | - | let buyAssetDecimals = $ | |
479 | + | let $t02052320673 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
480 | + | let buyAssetId = $t02052320673._1 | |
481 | + | let buyAssetStrId = $t02052320673._2 | |
482 | + | let buyAssetName = $t02052320673._3 | |
483 | + | let buyAssetDecimals = $t02052320673._4 | |
484 | 484 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
485 | 485 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
486 | 486 | let boughtHCTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0) | |
487 | 487 | let highCompetitionSale = valueOrElse(getBoolean(this, (toString(launchpadId) + keyHighCompetitionSale)), false) | |
488 | 488 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
489 | 489 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
490 | - | let $ | |
491 | - | let tokenId = $ | |
492 | - | let tokenStrAssetId = $ | |
493 | - | let tokenAssetName = $ | |
494 | - | let tokenDecimals = $ | |
490 | + | let $t02128321427 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
491 | + | let tokenId = $t02128321427._1 | |
492 | + | let tokenStrAssetId = $t02128321427._2 | |
493 | + | let tokenAssetName = $t02128321427._3 | |
494 | + | let tokenDecimals = $t02128321427._4 | |
495 | 495 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
496 | 496 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)), 100) | |
497 | - | let $ | |
497 | + | let $t02166022793 = if ((i.payments[0].assetId == unit)) | |
498 | 498 | then { | |
499 | 499 | let amntToGet = { | |
500 | 500 | let @ = ({ | |
530 | 530 | let ex = invoke(WAVES_XTN_EX, "callFunction", ["exchange", [toString(amntToGetTickets)]], [AttachedPayment(unit, amntToPay)]) | |
531 | 531 | if ((ex == ex)) | |
532 | 532 | then { | |
533 | - | let change = (i.payments[0].amount - | |
533 | + | let change = (i.payments[0].amount - amntToPay) | |
534 | 534 | let cEntry = if ((change > 0)) | |
535 | 535 | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
536 | 536 | else nil | |
544 | 544 | else throw("Strict value is not equal to itself.") | |
545 | 545 | } | |
546 | 546 | else $Tuple3(i.payments[0].amount, i.payments[0].assetId, nil) | |
547 | - | let pmtAmount = $ | |
548 | - | let pmtAssetId = $ | |
549 | - | let changeEntry = $ | |
547 | + | let pmtAmount = $t02166022793._1 | |
548 | + | let pmtAssetId = $t02166022793._2 | |
549 | + | let changeEntry = $t02166022793._3 | |
550 | 550 | if ((activeLaunchpadId != launchpadId)) | |
551 | 551 | then throw("There is no active launchpad or this launchpad is ended") | |
552 | 552 | else if (!(highCompetitionSale)) | |
598 | 598 | if ((calcHash != savedHash)) | |
599 | 599 | then throw("vrf Height hash not matching") | |
600 | 600 | else { | |
601 | - | let $ | |
602 | - | let buyAssetId = $ | |
603 | - | let buyAssetStrId = $ | |
604 | - | let buyAssetName = $ | |
605 | - | let buyAssetDecimals = $ | |
601 | + | let $t02574625896 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
602 | + | let buyAssetId = $t02574625896._1 | |
603 | + | let buyAssetStrId = $t02574625896._2 | |
604 | + | let buyAssetName = $t02574625896._3 | |
605 | + | let buyAssetDecimals = $t02574625896._4 | |
606 | 606 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
607 | 607 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
608 | 608 | let commissionHC = getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)) | |
647 | 647 | else false) | |
648 | 648 | then throw("You can't claim because you don't buy anything") | |
649 | 649 | else { | |
650 | - | let $ | |
651 | - | let buyAssetId = $ | |
652 | - | let buyAssetStrId = $ | |
653 | - | let buyAssetName = $ | |
654 | - | let buyAssetDecimals = $ | |
650 | + | let $t02898029157 = getAssetInfoFromString(valueOrElse(getString(this, (toString(launchpadId) + keyBuyToken)), toBase58String(USDN))) | |
651 | + | let buyAssetId = $t02898029157._1 | |
652 | + | let buyAssetStrId = $t02898029157._2 | |
653 | + | let buyAssetName = $t02898029157._3 | |
654 | + | let buyAssetDecimals = $t02898029157._4 | |
655 | 655 | let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0) | |
656 | 656 | let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0) | |
657 | 657 | let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0) | |
660 | 660 | let allowedAllocations = min([boughtAllocations, awailableAllocations]) | |
661 | 661 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
662 | 662 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
663 | - | let $ | |
664 | - | let tokenId = $ | |
665 | - | let tokenStrAssetId = $ | |
666 | - | let tokenAssetName = $ | |
667 | - | let tokenDecimals = $ | |
663 | + | let $t03007330217 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
664 | + | let tokenId = $t03007330217._1 | |
665 | + | let tokenStrAssetId = $t03007330217._2 | |
666 | + | let tokenAssetName = $t03007330217._3 | |
667 | + | let tokenDecimals = $t03007330217._4 | |
668 | 668 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
669 | 669 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
670 | 670 | let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket)) | |
759 | 759 | @Callable(i) | |
760 | 760 | func transferBuyAsset (launchpadId,amount) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
761 | 761 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
762 | - | let $ | |
763 | - | let buyAssetId = $ | |
764 | - | let buyAssetStrId = $ | |
765 | - | let buyAssetName = $ | |
766 | - | let buyAssetDecimals = $ | |
762 | + | let $t03638236532 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
763 | + | let buyAssetId = $t03638236532._1 | |
764 | + | let buyAssetStrId = $t03638236532._2 | |
765 | + | let buyAssetName = $t03638236532._3 | |
766 | + | let buyAssetDecimals = $t03638236532._4 | |
767 | 767 | let transferedBuyAsset = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferBuyAsset)), 0) | |
768 | 768 | let inv = if (if ((amount > 0)) | |
769 | 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 $t01196513098 = 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 | 305 | if ((ticketsAmount == 0)) | |
306 | 306 | then throw("Not enought WAVES to buy tickets") | |
307 | 307 | else { | |
308 | 308 | let amntToGetTickets = (ticketsAmount * (ticketPrice + commissionPerTicket)) | |
309 | 309 | let amntToPay = { | |
310 | 310 | let @ = ({ | |
311 | 311 | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouPayREADONLY", [toString(amntToGetTickets), buyAssetId]], nil) | |
312 | 312 | if ($isInstanceOf(@, "List[Any]")) | |
313 | 313 | then @ | |
314 | 314 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
315 | 315 | })[0] | |
316 | 316 | if ($isInstanceOf(@, "Int")) | |
317 | 317 | then @ | |
318 | 318 | else throw(($getType(@) + " couldn't be cast to Int")) | |
319 | 319 | } | |
320 | 320 | if ((amntToPay == amntToPay)) | |
321 | 321 | then { | |
322 | 322 | let ex = invoke(WAVES_XTN_EX, "callFunction", ["exchange", [toString(amntToGetTickets)]], [AttachedPayment(unit, amntToPay)]) | |
323 | 323 | if ((ex == ex)) | |
324 | 324 | then { | |
325 | - | let change = (i.payments[0].amount - | |
325 | + | let change = (i.payments[0].amount - amntToPay) | |
326 | 326 | let cEntry = if ((change > 0)) | |
327 | 327 | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
328 | 328 | else nil | |
329 | 329 | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
330 | 330 | } | |
331 | 331 | else throw("Strict value is not equal to itself.") | |
332 | 332 | } | |
333 | 333 | else throw("Strict value is not equal to itself.") | |
334 | 334 | } | |
335 | 335 | } | |
336 | 336 | else throw("Strict value is not equal to itself.") | |
337 | 337 | } | |
338 | 338 | else $Tuple3(i.payments[0].amount, i.payments[0].assetId, nil) | |
339 | - | let pmtAmount = $ | |
340 | - | let pmtAssetId = $ | |
341 | - | let changeEntry = $ | |
339 | + | let pmtAmount = $t01196513098._1 | |
340 | + | let pmtAssetId = $t01196513098._2 | |
341 | + | let changeEntry = $t01196513098._3 | |
342 | 342 | if ((activeLaunchpadId != launchpadId)) | |
343 | 343 | then throw("There is no active launchpad or this launchpad is ended") | |
344 | 344 | else if ((startHeight > height)) | |
345 | 345 | then throw("Launchpad sale not started yet") | |
346 | 346 | else if ((height > (startHeight + duration))) | |
347 | 347 | then throw("Launchpad sale ended") | |
348 | 348 | else if (if (!(freezeAdditionalToken)) | |
349 | 349 | then if ((size(i.payments) != 1)) | |
350 | 350 | then true | |
351 | 351 | else (pmtAssetId != buyAssetId) | |
352 | 352 | else false) | |
353 | 353 | then throw((("One attached payment in " + buyAssetName) + " expected")) | |
354 | 354 | else if (if (freezeAdditionalToken) | |
355 | 355 | then if ((size(i.payments) != 2)) | |
356 | 356 | then true | |
357 | 357 | else (pmtAssetId != buyAssetId) | |
358 | 358 | else false) | |
359 | 359 | then { | |
360 | 360 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
361 | 361 | throw(((("Two attached payments expected: First in " + buyAssetName) + ", second in ") + freezeTokenId)) | |
362 | 362 | } | |
363 | 363 | else if (if ((0 >= allowedTicketsAmountAll)) | |
364 | 364 | then true | |
365 | 365 | else (0 >= allowedTicketsAmount)) | |
366 | 366 | then throw("Not enought SWOP in staking to buy tickets") | |
367 | 367 | else { | |
368 | 368 | let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket)) | |
369 | 369 | let allowedBuyTicketAmount = min([buyTicketAmount, allowedTicketsAmount]) | |
370 | 370 | let allowedBuyPriceWithComission = (allowedBuyTicketAmount * (ticketPrice + commissionPerTicket)) | |
371 | 371 | let change = (pmtAmount - allowedBuyPriceWithComission) | |
372 | 372 | if ((buyTicketAmount == 0)) | |
373 | 373 | then throw((("Not enought " + buyAssetName) + " to buy tickets")) | |
374 | 374 | else if ((change != 0)) | |
375 | 375 | then throw((((("Wrong payment. To buy " + toString(allowedBuyTicketAmount)) + "tickets you need to pay ") + toString(allowedBuyPriceWithComission)) + buyAssetName)) | |
376 | 376 | else { | |
377 | 377 | let freezeAdditionalEntry = if (freezeAdditionalToken) | |
378 | 378 | then { | |
379 | 379 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
380 | 380 | let freezeTokenPerTicket = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenPerTicket)) | |
381 | - | let $ | |
382 | - | let pmtAmountFreeze = $ | |
383 | - | let pmtAssetIdFreeze = $ | |
384 | - | let $ | |
385 | - | let pmtFreezeStrAssetId = $ | |
386 | - | let pmtFreezeAssetName = $ | |
387 | - | let pmtFreezeDecimals = $ | |
381 | + | let $t01494115028 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
382 | + | let pmtAmountFreeze = $t01494115028._1 | |
383 | + | let pmtAssetIdFreeze = $t01494115028._2 | |
384 | + | let $t01504515136 = getAssetInfo(pmtAssetId) | |
385 | + | let pmtFreezeStrAssetId = $t01504515136._1 | |
386 | + | let pmtFreezeAssetName = $t01504515136._2 | |
387 | + | let pmtFreezeDecimals = $t01504515136._3 | |
388 | 388 | let needFreezeTokens = (freezeTokenPerTicket * buyTicketAmount) | |
389 | 389 | if (if ((pmtFreezeStrAssetId != freezeTokenId)) | |
390 | 390 | then true | |
391 | 391 | else (needFreezeTokens != pmtAmountFreeze)) | |
392 | 392 | then throw((((("You need to add " + toString(needFreezeTokens)) + " ") + pmtFreezeAssetName) + " as a second payment")) | |
393 | 393 | else [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), pmtAmountFreeze)] | |
394 | 394 | } | |
395 | 395 | else nil | |
396 | 396 | let userBoughtTicketsNumbers = valueOrElse(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserTickets)), "") | |
397 | 397 | let lastBoughtTicketNumber = getIntegerValue(this, (toString(launchpadId) + keyTicketLastNumber)) | |
398 | 398 | let boughtRange = ((toString((lastBoughtTicketNumber + 1)) + "-") + toString((lastBoughtTicketNumber + allowedBuyTicketAmount))) | |
399 | 399 | let newUserBoughtTicketsNumbers = (userBoughtTicketsNumbers + (if ((userBoughtTicketsNumbers != "")) | |
400 | 400 | then ("," + boughtRange) | |
401 | 401 | else ("" + boughtRange))) | |
402 | 402 | let inv = if ((buyAssetId == USDN)) | |
403 | 403 | then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
404 | 404 | else 0 | |
405 | 405 | if ((inv == inv)) | |
406 | 406 | then { | |
407 | 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) | |
408 | 408 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
409 | 409 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
410 | 410 | else baseEntry | |
411 | 411 | } | |
412 | 412 | else throw("Strict value is not equal to itself.") | |
413 | 413 | } | |
414 | 414 | } | |
415 | 415 | }) | |
416 | 416 | ||
417 | 417 | ||
418 | 418 | ||
419 | 419 | @Callable(i) | |
420 | 420 | func commitAccessListSale (launchpadId,refId) = valueOrElse(isActive(), { | |
421 | - | let $ | |
422 | - | let pmtAmount = $ | |
423 | - | let pmtAssetId = $ | |
424 | - | let $ | |
425 | - | let buyAssetId = $ | |
426 | - | let buyAssetStrId = $ | |
427 | - | let buyAssetName = $ | |
428 | - | let buyAssetDecimals = $ | |
421 | + | let $t01722217297 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
422 | + | let pmtAmount = $t01722217297._1 | |
423 | + | let pmtAssetId = $t01722217297._2 | |
424 | + | let $t01730217452 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
425 | + | let buyAssetId = $t01730217452._1 | |
426 | + | let buyAssetStrId = $t01730217452._2 | |
427 | + | let buyAssetName = $t01730217452._3 | |
428 | + | let buyAssetDecimals = $t01730217452._4 | |
429 | 429 | let userUsdnInMarketing = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountBuyAssetInMarketing)), 0) | |
430 | 430 | let usdnInMarketing = valueOrElse(getInteger(this, (toString(launchpadId) + keyAmountBuyAssetInMarketing)), 0) | |
431 | 431 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
432 | 432 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
433 | 433 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
434 | 434 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
435 | - | let $ | |
436 | - | let tokenId = $ | |
437 | - | let tokenStrAssetId = $ | |
438 | - | let tokenAssetName = $ | |
439 | - | let tokenDecimals = $ | |
435 | + | let $t01812118265 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
436 | + | let tokenId = $t01812118265._1 | |
437 | + | let tokenStrAssetId = $t01812118265._2 | |
438 | + | let tokenAssetName = $t01812118265._3 | |
439 | + | let tokenDecimals = $t01812118265._4 | |
440 | 440 | let allocationPriceWithComission = fraction(fraction(tokenPrice, tokensPerAllocation, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
441 | 441 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
442 | 442 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
443 | 443 | if ((activeLaunchpadId != launchpadId)) | |
444 | 444 | then throw("There is no active launchpad or this launchpad is ended") | |
445 | 445 | else if ((startHeight > height)) | |
446 | 446 | then throw("Launchpad sale not started yet") | |
447 | 447 | else if ((height > (startHeight + duration))) | |
448 | 448 | then throw("Launchpad sale ended") | |
449 | 449 | else if (if ((size(i.payments) != 1)) | |
450 | 450 | then true | |
451 | 451 | else (pmtAssetId != buyAssetId)) | |
452 | 452 | then throw((("One attached payment in " + buyAssetName) + " expected")) | |
453 | 453 | else if ((boughtAllocations >= maxAllocationsAmount)) | |
454 | 454 | then throw((("You can buy only " + toString(maxAllocationsAmount)) + "allocations")) | |
455 | 455 | else if (if ((allocationPriceWithComission != pmtAmount)) | |
456 | 456 | then ((allocationPriceWithComission * 2) != pmtAmount) | |
457 | 457 | else false) | |
458 | 458 | then throw(((("Wrong payment. You can buy 1 or 2 allocations for " + toString(allocationPriceWithComission)) + buyAssetName) + " per allocation")) | |
459 | 459 | else { | |
460 | 460 | let buyAllocationsAmount = (pmtAmount / allocationPriceWithComission) | |
461 | 461 | let inv = if ((buyAssetId == USDN)) | |
462 | 462 | then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
463 | 463 | else 0 | |
464 | 464 | if ((inv == inv)) | |
465 | 465 | then { | |
466 | 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))] | |
467 | 467 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
468 | 468 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
469 | 469 | else baseEntry | |
470 | 470 | } | |
471 | 471 | else throw("Strict value is not equal to itself.") | |
472 | 472 | } | |
473 | 473 | }) | |
474 | 474 | ||
475 | 475 | ||
476 | 476 | ||
477 | 477 | @Callable(i) | |
478 | 478 | func commitHighCompetitionSale (launchpadId,refId) = valueOrElse(isActive(), { | |
479 | - | let $ | |
480 | - | let buyAssetId = $ | |
481 | - | let buyAssetStrId = $ | |
482 | - | let buyAssetName = $ | |
483 | - | let buyAssetDecimals = $ | |
479 | + | let $t02052320673 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
480 | + | let buyAssetId = $t02052320673._1 | |
481 | + | let buyAssetStrId = $t02052320673._2 | |
482 | + | let buyAssetName = $t02052320673._3 | |
483 | + | let buyAssetDecimals = $t02052320673._4 | |
484 | 484 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
485 | 485 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
486 | 486 | let boughtHCTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0) | |
487 | 487 | let highCompetitionSale = valueOrElse(getBoolean(this, (toString(launchpadId) + keyHighCompetitionSale)), false) | |
488 | 488 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
489 | 489 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
490 | - | let $ | |
491 | - | let tokenId = $ | |
492 | - | let tokenStrAssetId = $ | |
493 | - | let tokenAssetName = $ | |
494 | - | let tokenDecimals = $ | |
490 | + | let $t02128321427 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
491 | + | let tokenId = $t02128321427._1 | |
492 | + | let tokenStrAssetId = $t02128321427._2 | |
493 | + | let tokenAssetName = $t02128321427._3 | |
494 | + | let tokenDecimals = $t02128321427._4 | |
495 | 495 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
496 | 496 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)), 100) | |
497 | - | let $ | |
497 | + | let $t02166022793 = if ((i.payments[0].assetId == unit)) | |
498 | 498 | then { | |
499 | 499 | let amntToGet = { | |
500 | 500 | let @ = ({ | |
501 | 501 | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouGetREADONLY", [toString(i.payments[0].amount), base58'']], nil) | |
502 | 502 | if ($isInstanceOf(@, "List[Any]")) | |
503 | 503 | then @ | |
504 | 504 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
505 | 505 | })[0] | |
506 | 506 | if ($isInstanceOf(@, "Int")) | |
507 | 507 | then @ | |
508 | 508 | else throw(($getType(@) + " couldn't be cast to Int")) | |
509 | 509 | } | |
510 | 510 | if ((amntToGet == amntToGet)) | |
511 | 511 | then { | |
512 | 512 | let ticketsAmount = (amntToGet / (ticketPrice + commissionPerTicket)) | |
513 | 513 | if ((ticketsAmount == 0)) | |
514 | 514 | then throw("Not enought WAVES to buy tickets") | |
515 | 515 | else { | |
516 | 516 | let amntToGetTickets = (ticketsAmount * (ticketPrice + commissionPerTicket)) | |
517 | 517 | let amntToPay = { | |
518 | 518 | let @ = ({ | |
519 | 519 | let @ = invoke(WAVES_XTN_EX, "callFunction", ["howManyYouPayREADONLY", [toString(amntToGetTickets), buyAssetId]], nil) | |
520 | 520 | if ($isInstanceOf(@, "List[Any]")) | |
521 | 521 | then @ | |
522 | 522 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
523 | 523 | })[0] | |
524 | 524 | if ($isInstanceOf(@, "Int")) | |
525 | 525 | then @ | |
526 | 526 | else throw(($getType(@) + " couldn't be cast to Int")) | |
527 | 527 | } | |
528 | 528 | if ((amntToPay == amntToPay)) | |
529 | 529 | then { | |
530 | 530 | let ex = invoke(WAVES_XTN_EX, "callFunction", ["exchange", [toString(amntToGetTickets)]], [AttachedPayment(unit, amntToPay)]) | |
531 | 531 | if ((ex == ex)) | |
532 | 532 | then { | |
533 | - | let change = (i.payments[0].amount - | |
533 | + | let change = (i.payments[0].amount - amntToPay) | |
534 | 534 | let cEntry = if ((change > 0)) | |
535 | 535 | then [ScriptTransfer(i.caller, change, i.payments[0].assetId)] | |
536 | 536 | else nil | |
537 | 537 | $Tuple3(amntToGetTickets, buyAssetId, cEntry) | |
538 | 538 | } | |
539 | 539 | else throw("Strict value is not equal to itself.") | |
540 | 540 | } | |
541 | 541 | else throw("Strict value is not equal to itself.") | |
542 | 542 | } | |
543 | 543 | } | |
544 | 544 | else throw("Strict value is not equal to itself.") | |
545 | 545 | } | |
546 | 546 | else $Tuple3(i.payments[0].amount, i.payments[0].assetId, nil) | |
547 | - | let pmtAmount = $ | |
548 | - | let pmtAssetId = $ | |
549 | - | let changeEntry = $ | |
547 | + | let pmtAmount = $t02166022793._1 | |
548 | + | let pmtAssetId = $t02166022793._2 | |
549 | + | let changeEntry = $t02166022793._3 | |
550 | 550 | if ((activeLaunchpadId != launchpadId)) | |
551 | 551 | then throw("There is no active launchpad or this launchpad is ended") | |
552 | 552 | else if (!(highCompetitionSale)) | |
553 | 553 | then throw("There is no high competition sale for this launchpad") | |
554 | 554 | else if ((startHeight > height)) | |
555 | 555 | then throw("Launchpad sale not started yet") | |
556 | 556 | else if ((height > (startHeight + duration))) | |
557 | 557 | then throw("Launchpad sale ended") | |
558 | 558 | else if (if ((size(i.payments) != 1)) | |
559 | 559 | then true | |
560 | 560 | else (pmtAssetId != buyAssetId)) | |
561 | 561 | then throw((("One attached payment in " + buyAssetName) + " expected")) | |
562 | 562 | else { | |
563 | 563 | let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket)) | |
564 | 564 | let buyPriceWithComission = (buyTicketAmount * (ticketPrice + commissionPerTicket)) | |
565 | 565 | let change = (pmtAmount - buyPriceWithComission) | |
566 | 566 | if ((buyTicketAmount == 0)) | |
567 | 567 | then throw((("Not enought " + buyAssetName) + " to buy tickets")) | |
568 | 568 | else if ((change != 0)) | |
569 | 569 | then throw((((("Wrong payment. To buy " + toString(buyTicketAmount)) + "tickets you need to pay ") + toString(buyPriceWithComission)) + buyAssetName)) | |
570 | 570 | else { | |
571 | 571 | let userBoughtTicketsNumbers = valueOrElse(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCTickets)), "") | |
572 | 572 | let lastBoughtTicketNumber = getIntegerValue(this, (toString(launchpadId) + keyHCTicketLastNumber)) | |
573 | 573 | let boughtRange = ((toString((lastBoughtTicketNumber + 1)) + "-") + toString((lastBoughtTicketNumber + buyTicketAmount))) | |
574 | 574 | let newUserBoughtTicketsNumbers = (userBoughtTicketsNumbers + (if ((userBoughtTicketsNumbers != "")) | |
575 | 575 | then ("," + boughtRange) | |
576 | 576 | else ("" + boughtRange))) | |
577 | 577 | let inv = if ((buyAssetId == USDN)) | |
578 | 578 | then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
579 | 579 | else 0 | |
580 | 580 | if ((inv == inv)) | |
581 | 581 | then { | |
582 | 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) | |
583 | 583 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
584 | 584 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
585 | 585 | else baseEntry | |
586 | 586 | } | |
587 | 587 | else throw("Strict value is not equal to itself.") | |
588 | 588 | } | |
589 | 589 | } | |
590 | 590 | }) | |
591 | 591 | ||
592 | 592 | ||
593 | 593 | ||
594 | 594 | @Callable(i) | |
595 | 595 | func finalise (launchpadId,vrfHeight,secretWord) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
596 | 596 | let savedHash = getStringValue(this, (toString(launchpadId) + keyVerifyHash)) | |
597 | 597 | let calcHash = toBase58String(sha256((toBytes(vrfHeight) + toBytes(secretWord)))) | |
598 | 598 | if ((calcHash != savedHash)) | |
599 | 599 | then throw("vrf Height hash not matching") | |
600 | 600 | else { | |
601 | - | let $ | |
602 | - | let buyAssetId = $ | |
603 | - | let buyAssetStrId = $ | |
604 | - | let buyAssetName = $ | |
605 | - | let buyAssetDecimals = $ | |
601 | + | let $t02574625896 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
602 | + | let buyAssetId = $t02574625896._1 | |
603 | + | let buyAssetStrId = $t02574625896._2 | |
604 | + | let buyAssetName = $t02574625896._3 | |
605 | + | let buyAssetDecimals = $t02574625896._4 | |
606 | 606 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
607 | 607 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
608 | 608 | let commissionHC = getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)) | |
609 | 609 | let transferedBuyAsset = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferBuyAsset)), 0) | |
610 | 610 | let swopfiMembersBuyAssetAmount = getIntegerValue(this, (toString(launchpadId) + keyTotalAmountBuyAssetSold)) | |
611 | 611 | let swopfiHCBuyAssetAmount = valueOrElse(getInteger(this, (toString(launchpadId) + keyTotalAmountBuyAssetSoldHC)), 0) | |
612 | 612 | let swopfiMembersComission = fraction(swopfiMembersBuyAssetAmount, commission, 100) | |
613 | 613 | let swopfiHCComission = fraction(swopfiHCBuyAssetAmount, commissionHC, 100) | |
614 | 614 | let totalAmountBuyAssetInMarketing = getIntegerValue(this, (toString(launchpadId) + keyAmountBuyAssetInMarketingFinalized)) | |
615 | 615 | let marketingComission = fraction(totalAmountBuyAssetInMarketing, commission, 100) | |
616 | 616 | let unstakeAmount = ((((((swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing) + swopfiMembersComission) + marketingComission) + swopfiHCBuyAssetAmount) + swopfiHCComission) - transferedBuyAsset) | |
617 | 617 | if ((transferedBuyAsset > ((swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing) + swopfiHCBuyAssetAmount))) | |
618 | 618 | then throw("Can't transfer negative value to project") | |
619 | 619 | else { | |
620 | 620 | let inv = if ((buyAssetId == USDN)) | |
621 | 621 | then invoke(stakingUSDNAddress, "unlockNeutrino", [unstakeAmount, toBase58String(USDN)], nil) | |
622 | 622 | else 0 | |
623 | 623 | if ((inv == inv)) | |
624 | 624 | then [IntegerEntry((toString(launchpadId) + keyFinaliseHeight), height), ScriptTransfer(projectAddress, (((swopfiMembersBuyAssetAmount + swopfiHCBuyAssetAmount) + totalAmountBuyAssetInMarketing) - transferedBuyAsset), buyAssetId), ScriptTransfer(commissionWallet, ((swopfiMembersComission + marketingComission) + swopfiHCComission), buyAssetId)] | |
625 | 625 | else throw("Strict value is not equal to itself.") | |
626 | 626 | } | |
627 | 627 | } | |
628 | 628 | })) | |
629 | 629 | ||
630 | 630 | ||
631 | 631 | ||
632 | 632 | @Callable(i) | |
633 | 633 | func claim (launchpadId) = valueOrElse(isActive(), { | |
634 | 634 | let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
635 | 635 | let boughtHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0) | |
636 | 636 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
637 | 637 | let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false) | |
638 | 638 | let finalizeHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)), 0) | |
639 | 639 | if ((finalizeHeight == 0)) | |
640 | 640 | then throw("You can't claim because results are not finalized") | |
641 | 641 | else if (userClaimStatus) | |
642 | 642 | then throw("You are already claimed") | |
643 | 643 | else if (if (if ((boughtTickets == 0)) | |
644 | 644 | then (boughtAllocations == 0) | |
645 | 645 | else false) | |
646 | 646 | then (boughtHCTickets == 0) | |
647 | 647 | else false) | |
648 | 648 | then throw("You can't claim because you don't buy anything") | |
649 | 649 | else { | |
650 | - | let $ | |
651 | - | let buyAssetId = $ | |
652 | - | let buyAssetStrId = $ | |
653 | - | let buyAssetName = $ | |
654 | - | let buyAssetDecimals = $ | |
650 | + | let $t02898029157 = getAssetInfoFromString(valueOrElse(getString(this, (toString(launchpadId) + keyBuyToken)), toBase58String(USDN))) | |
651 | + | let buyAssetId = $t02898029157._1 | |
652 | + | let buyAssetStrId = $t02898029157._2 | |
653 | + | let buyAssetName = $t02898029157._3 | |
654 | + | let buyAssetDecimals = $t02898029157._4 | |
655 | 655 | let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0) | |
656 | 656 | let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0) | |
657 | 657 | let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0) | |
658 | 658 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
659 | 659 | let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0) | |
660 | 660 | let allowedAllocations = min([boughtAllocations, awailableAllocations]) | |
661 | 661 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
662 | 662 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
663 | - | let $ | |
664 | - | let tokenId = $ | |
665 | - | let tokenStrAssetId = $ | |
666 | - | let tokenAssetName = $ | |
667 | - | let tokenDecimals = $ | |
663 | + | let $t03007330217 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
664 | + | let tokenId = $t03007330217._1 | |
665 | + | let tokenStrAssetId = $t03007330217._2 | |
666 | + | let tokenAssetName = $t03007330217._3 | |
667 | + | let tokenDecimals = $t03007330217._4 | |
668 | 668 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
669 | 669 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
670 | 670 | let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket)) | |
671 | 671 | let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation) | |
672 | 672 | let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
673 | 673 | let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100) | |
674 | 674 | let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100) | |
675 | 675 | let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0) | |
676 | 676 | if (if (if ((0 > buyAssetForAllocations)) | |
677 | 677 | then true | |
678 | 678 | else (0 > buyAssetForUnwonnedTickets)) | |
679 | 679 | then true | |
680 | 680 | else (0 > buyAssetForHCUnwonnedTickets)) | |
681 | 681 | then throw("Error with allowed allocation param or wonned tickets param please contact support") | |
682 | 682 | else { | |
683 | 683 | let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken) | |
684 | 684 | let transferBuyAsset = if ((returnedBuyAssetAmount > 0)) | |
685 | 685 | then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)] | |
686 | 686 | else nil | |
687 | 687 | let inv = if (if ((returnedBuyAssetAmount > 0)) | |
688 | 688 | then (buyAssetId == USDN) | |
689 | 689 | else false) | |
690 | 690 | then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil) | |
691 | 691 | else 0 | |
692 | 692 | if ((inv == inv)) | |
693 | 693 | then { | |
694 | 694 | let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), "claimAll"), ",") | |
695 | 695 | if ((claimedParams[0] == "claimAll")) | |
696 | 696 | then { | |
697 | 697 | let transferTokens = if ((transferTokensAmount > 0)) | |
698 | 698 | then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)] | |
699 | 699 | else nil | |
700 | 700 | (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset) | |
701 | 701 | } | |
702 | 702 | else if ((claimedParams[0] == "claimPeriod")) | |
703 | 703 | then { | |
704 | 704 | let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0) | |
705 | 705 | let unlockPeriod = value(parseInt(claimedParams[2])) | |
706 | 706 | let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight) | |
707 | 707 | let unlockHeight = (unlockPeriod + blockHeight) | |
708 | 708 | let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100) | |
709 | 709 | let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight)) | |
710 | 710 | then (fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod) - claimedTokens) | |
711 | 711 | else (0 - claimedTokens))) | |
712 | 712 | let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount))) | |
713 | 713 | then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)] | |
714 | 714 | else nil | |
715 | 715 | if (if ((allowedTokensAmount > 0)) | |
716 | 716 | then true | |
717 | 717 | else (returnedBuyAssetAmount > 0)) | |
718 | 718 | then { | |
719 | 719 | let transferTokens = if ((allowedTokensAmount > 0)) | |
720 | 720 | then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)] | |
721 | 721 | else nil | |
722 | 722 | (transferBuyAsset ++ transferTokens) | |
723 | 723 | } | |
724 | 724 | else throw("Nothing to claim") | |
725 | 725 | } | |
726 | 726 | else throw("Unknown claim function") | |
727 | 727 | } | |
728 | 728 | else throw("Strict value is not equal to itself.") | |
729 | 729 | } | |
730 | 730 | } | |
731 | 731 | }) | |
732 | 732 | ||
733 | 733 | ||
734 | 734 | ||
735 | 735 | @Callable(i) | |
736 | 736 | func claimFreezeToken (launchpadId) = valueOrElse(isActive(), { | |
737 | 737 | let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false) | |
738 | 738 | if (!(isDefined(getInteger(this, (toString(launchpadId) + keyFinaliseHeight))))) | |
739 | 739 | then throw("You can't claim because results are not finalized") | |
740 | 740 | else if (!(freezeAdditionalToken)) | |
741 | 741 | then throw("There are no additional token freezing for this launchpad") | |
742 | 742 | else { | |
743 | 743 | let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyFreezeTokenId))) | |
744 | 744 | let userTokensFreezed = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken)), 0) | |
745 | 745 | let startHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyStartHeight)), 0) | |
746 | 746 | let duration = valueOrElse(getInteger(this, (toString(launchpadId) + keyDuration)), 0) | |
747 | 747 | let freezeTokenDuration = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenDuration)) | |
748 | 748 | let blockEndHeight = ((startHeight + duration) + freezeTokenDuration) | |
749 | 749 | if ((userTokensFreezed == 0)) | |
750 | 750 | then throw("You are already claimed your tokens or not paid anything") | |
751 | 751 | else if ((blockEndHeight > height)) | |
752 | 752 | then throw(("Your tokens freezed teel " + toString(blockEndHeight))) | |
753 | 753 | else [ScriptTransfer(i.caller, userTokensFreezed, tokenId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), 0)] | |
754 | 754 | } | |
755 | 755 | }) | |
756 | 756 | ||
757 | 757 | ||
758 | 758 | ||
759 | 759 | @Callable(i) | |
760 | 760 | func transferBuyAsset (launchpadId,amount) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), { | |
761 | 761 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
762 | - | let $ | |
763 | - | let buyAssetId = $ | |
764 | - | let buyAssetStrId = $ | |
765 | - | let buyAssetName = $ | |
766 | - | let buyAssetDecimals = $ | |
762 | + | let $t03638236532 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
763 | + | let buyAssetId = $t03638236532._1 | |
764 | + | let buyAssetStrId = $t03638236532._2 | |
765 | + | let buyAssetName = $t03638236532._3 | |
766 | + | let buyAssetDecimals = $t03638236532._4 | |
767 | 767 | let transferedBuyAsset = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferBuyAsset)), 0) | |
768 | 768 | let inv = if (if ((amount > 0)) | |
769 | 769 | then (buyAssetId == USDN) | |
770 | 770 | else false) | |
771 | 771 | then invoke(stakingUSDNAddress, "unlockNeutrino", [amount, toBase58String(USDN)], nil) | |
772 | 772 | else 0 | |
773 | 773 | if ((inv == inv)) | |
774 | 774 | then [IntegerEntry((toString(launchpadId) + keyTransferBuyAsset), (transferedBuyAsset + amount)), ScriptTransfer(projectAddress, amount, buyAssetId)] | |
775 | 775 | else throw("Strict value is not equal to itself.") | |
776 | 776 | })) | |
777 | 777 | ||
778 | 778 | ||
779 | 779 | ||
780 | 780 | @Callable(i) | |
781 | 781 | func shutdown () = valueOrElse(isAdminCall(i), if (!(active)) | |
782 | 782 | then throw("DApp already inactive") | |
783 | 783 | else [BooleanEntry(keyActive, false)]) | |
784 | 784 | ||
785 | 785 | ||
786 | 786 | ||
787 | 787 | @Callable(i) | |
788 | 788 | func activate () = valueOrElse(isAdminCall(i), if (active) | |
789 | 789 | then throw("DApp already active") | |
790 | 790 | else [BooleanEntry(keyActive, true)]) | |
791 | 791 | ||
792 | 792 | ||
793 | 793 | @Verifier(tx) | |
794 | 794 | func verify () = { | |
795 | 795 | let multiSignedByAdmins = { | |
796 | 796 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
797 | 797 | then 1 | |
798 | 798 | else 0 | |
799 | 799 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
800 | 800 | then 1 | |
801 | 801 | else 0 | |
802 | 802 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
803 | 803 | then 1 | |
804 | 804 | else 0 | |
805 | 805 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
806 | 806 | } | |
807 | 807 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
808 | 808 | then true | |
809 | 809 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
810 | 810 | then true | |
811 | 811 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
812 | 812 | then true | |
813 | 813 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
814 | 814 | match tx { | |
815 | 815 | case dtx: DataTransaction => | |
816 | 816 | if (valueOrElse(getBoolean(oracle, keyLaunchpadDataTransactionStatus), false)) | |
817 | 817 | then signedByAdmin | |
818 | 818 | else false | |
819 | 819 | case _ => | |
820 | 820 | multiSignedByAdmins | |
821 | 821 | } | |
822 | 822 | } | |
823 | 823 |
github/deemru/w8io/026f985 124.48 ms ◑