tx · 7oL5eFKQw6DxtPxjTzUzaFVZUE1iVLvwkjXc12s6obYC

3MzDGFvPnXVbA4wCacqcVnfVJPwG952KVAg:  -0.01400000 Waves

2022.01.21 10:21 [1888373] smart account 3MzDGFvPnXVbA4wCacqcVnfVJPwG952KVAg > SELF 0.00000000 Waves

{ "type": 13, "id": "7oL5eFKQw6DxtPxjTzUzaFVZUE1iVLvwkjXc12s6obYC", "fee": 1400000, "feeAssetId": null, "timestamp": 1642749674064, "version": 2, "chainId": 84, "sender": "3MzDGFvPnXVbA4wCacqcVnfVJPwG952KVAg", "senderPublicKey": "CViCXhHrygDDAtVc1uFczxe6ANj9tBz5PGQDS1yWZqgy", "proofs": [ "hqr2cBiVfcpRbo26uw9xT6GzDyvRvSeeTgRGoJ97QrQ2wyiFbNKRQJaXYuhDVVucrVnXXV1CRWXZf2ehp5eKA4v", "2rJgXRhqbSnHyBgGMAhNshhw3nKX9X8y52XfG9E6rCETbVcEc9osDjmamLgFQGysHFFFbd2ZEDi3JoB89Kx8XF9y" ], "script": "base64:AAIFAAAAAAAAAEQIAhIECgIBCBIDCgEIEhQKEggBAQgBAQEBAQEBARgEAQEEGBIECgIBCBIFCgMBAQgSAwoBARIDCgEBEgQKAgEBEgASAAAAAEoAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAA9rZXlBZG1pblB1YktleTECAAAAC2FkbWluX3B1Yl8xAAAAAA9rZXlBZG1pblB1YktleTICAAAAC2FkbWluX3B1Yl8yAAAAAA9rZXlBZG1pblB1YktleTMCAAAAC2FkbWluX3B1Yl8zAAAAACFrZXlMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMCAAAAIWxhdW5jaHBhZF9kYXRhX3RyYW5zYWN0aW9uX3N0YXR1cwAAAAASa2V5TGF1bmNocGFkTmV4dElkAgAAABFsYXVuY2hwYWRfbmV4dF9pZAAAAAAUa2V5TGF1bmNocGFkQWN0aXZlSWQCAAAAE2xhdW5jaHBhZF9hY3Rpdm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ZG1pbgcFAAAAE211bHRpU2lnbmVkQnlBZG1pbnPTqN8H", "height": 1888373, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F6znBhFUQ7gXKe4GX676MUYrdab9DJsFAAA3LjeSzFWJ Next: 4puStn8Q2sHKhtfHR53pEhkTF7zhMbRQx1oxQSTHYafu Diff:
OldNewDifferences
370370 let finalizeHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)), 0)
371371 if ((finalizeHeight == 0))
372372 then throw("You can't claim because results are not finalized")
373- else if (if (if ((boughtTickets == 0))
374- then (boughtAllocations == 0)
375- else false)
376- then (boughtHCTickets == 0)
377- else false)
378- then throw("You can't claim because you don't buy anything")
379- else {
380- let $t01825718434 = getAssetInfoFromString(valueOrElse(getString(this, (toString(launchpadId) + keyBuyToken)), toBase58String(USDN)))
381- let buyAssetId = $t01825718434._1
382- let buyAssetStrId = $t01825718434._2
383- let buyAssetName = $t01825718434._3
384- let buyAssetDecimals = $t01825718434._4
385- let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0)
386- let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0)
387- let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0)
388- let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
389- let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0)
390- let allowedAllocations = min([boughtAllocations, awailableAllocations])
391- let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken))
392- let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket))
393- let $t01935019494 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId)))
394- let tokenId = $t01935019494._1
395- let tokenStrAssetId = $t01935019494._2
396- let tokenAssetName = $t01935019494._3
397- let tokenDecimals = $t01935019494._4
398- let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN))
399- let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation))
400- let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket))
401- let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation)
402- let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100)
403- let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100)
404- let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100)
405- let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0)
406- if (if (if ((0 > buyAssetForAllocations))
407- then true
408- else (0 > buyAssetForUnwonnedTickets))
409- then true
410- else (0 > buyAssetForHCUnwonnedTickets))
411- then throw("Error with allowed allocation param or wonned tickets param please contact support")
412- else {
413- let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken)
414- let transferBuyAsset = if ((returnedBuyAssetAmount > 0))
415- then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)]
416- else nil
417- let inv = if (if ((returnedBuyAssetAmount > 0))
418- then (buyAssetId == USDN)
419- else false)
420- then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil)
421- else 0
422- if ((inv == inv))
423- then {
424- let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), ""), ",")
425- if (if ((size(claimedParams) == 0))
426- then true
427- else (claimedParams[0] == "claimAll"))
428- then {
429- let transferTokens = if ((transferTokensAmount > 0))
430- then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)]
431- else nil
432- (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset)
433- }
434- else if ((claimedParams[0] == "claimPeriod"))
373+ else if (userClaimStatus)
374+ then throw("You are already claimed")
375+ else if (if (if ((boughtTickets == 0))
376+ then (boughtAllocations == 0)
377+ else false)
378+ then (boughtHCTickets == 0)
379+ else false)
380+ then throw("You can't claim because you don't buy anything")
381+ else {
382+ let $t01825518432 = getAssetInfoFromString(valueOrElse(getString(this, (toString(launchpadId) + keyBuyToken)), toBase58String(USDN)))
383+ let buyAssetId = $t01825518432._1
384+ let buyAssetStrId = $t01825518432._2
385+ let buyAssetName = $t01825518432._3
386+ let buyAssetDecimals = $t01825518432._4
387+ let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0)
388+ let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0)
389+ let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0)
390+ let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
391+ let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0)
392+ let allowedAllocations = min([boughtAllocations, awailableAllocations])
393+ let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken))
394+ let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket))
395+ let $t01934819492 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId)))
396+ let tokenId = $t01934819492._1
397+ let tokenStrAssetId = $t01934819492._2
398+ let tokenAssetName = $t01934819492._3
399+ let tokenDecimals = $t01934819492._4
400+ let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN))
401+ let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation))
402+ let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket))
403+ let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation)
404+ let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100)
405+ let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100)
406+ let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100)
407+ let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0)
408+ if (if (if ((0 > buyAssetForAllocations))
409+ then true
410+ else (0 > buyAssetForUnwonnedTickets))
411+ then true
412+ else (0 > buyAssetForHCUnwonnedTickets))
413+ then throw("Error with allowed allocation param or wonned tickets param please contact support")
414+ else {
415+ let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken)
416+ let transferBuyAsset = if ((returnedBuyAssetAmount > 0))
417+ then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)]
418+ else nil
419+ let inv = if (if ((returnedBuyAssetAmount > 0))
420+ then (buyAssetId == USDN)
421+ else false)
422+ then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil)
423+ else 0
424+ if ((inv == inv))
425+ then {
426+ let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), ""), ",")
427+ if (if ((size(claimedParams) == 0))
428+ then true
429+ else (claimedParams[0] == "claimAll"))
435430 then {
436- let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0)
437- let cl1 = value(claimedParams[0])
438- let unlockPeriod = value(parseInt(claimedParams[2]))
439- let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight)
440- let unlockHeight = ((unlockPeriod + finalizeHeight) + blockHeight)
441- let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100)
442- let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight))
443- then fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod)
444- else (0 - claimedTokens)))
445- let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount)))
446- then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)]
431+ let transferTokens = if ((transferTokensAmount > 0))
432+ then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)]
447433 else nil
448- if (if ((allowedTokensAmount > 0))
449- then true
450- else (returnedBuyAssetAmount > 0))
451- then {
452- let transferTokens = if ((allowedTokensAmount > 0))
453- then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)]
454- else nil
455- (transferBuyAsset ++ transferTokens)
456- }
457- else throw("Nothing to claim")
434+ (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset)
458435 }
459- else throw("Unknown claim function")
460- }
461- else throw("Strict value is not equal to itself.")
462- }
463- }
436+ else if ((claimedParams[0] == "claimPeriod"))
437+ then {
438+ let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0)
439+ let unlockPeriod = value(parseInt(claimedParams[2]))
440+ let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight)
441+ let unlockHeight = (unlockPeriod + blockHeight)
442+ let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100)
443+ let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight))
444+ then (fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod) - claimedTokens)
445+ else (0 - claimedTokens)))
446+ let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount)))
447+ then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)]
448+ else nil
449+ if (if ((allowedTokensAmount > 0))
450+ then true
451+ else (returnedBuyAssetAmount > 0))
452+ then {
453+ let transferTokens = if ((allowedTokensAmount > 0))
454+ then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)]
455+ else nil
456+ (transferBuyAsset ++ transferTokens)
457+ }
458+ else throw("Nothing to claim")
459+ }
460+ else throw("Unknown claim function")
461+ }
462+ else throw("Strict value is not equal to itself.")
463+ }
464+ }
464465 })
465466
466467
492493 @Callable(i)
493494 func transferBuyAsset (launchpadId,amount) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
494495 let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress)))
495- let $t02578525935 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
496- let buyAssetId = $t02578525935._1
497- let buyAssetStrId = $t02578525935._2
498- let buyAssetName = $t02578525935._3
499- let buyAssetDecimals = $t02578525935._4
496+ let $t02573525885 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
497+ let buyAssetId = $t02573525885._1
498+ let buyAssetStrId = $t02573525885._2
499+ let buyAssetName = $t02573525885._3
500+ let buyAssetDecimals = $t02573525885._4
500501 [IntegerEntry((toString(launchpadId) + keyTransferBuyAsset), amount), ScriptTransfer(projectAddress, amount, buyAssetId)]
501502 }))
502503
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let keyActive = "active"
55
66 let keyAdminPubKey1 = "admin_pub_1"
77
88 let keyAdminPubKey2 = "admin_pub_2"
99
1010 let keyAdminPubKey3 = "admin_pub_3"
1111
1212 let keyLaunchpadDataTransactionStatus = "launchpad_data_transaction_status"
1313
1414 let keyLaunchpadNextId = "launchpad_next_id"
1515
1616 let keyLaunchpadActiveId = "launchpad_active_id"
1717
1818 let keyInitCaller = "init_caller"
1919
2020 let keyAddress = "_address"
2121
2222 let keyInitHeight = "_init_height"
2323
2424 let keyStartHeight = "_start_height"
2525
2626 let keyFinaliseHeight = "_finalise_height"
2727
2828 let keyComission = "_comission"
2929
3030 let keyAssetId = "_asset_id"
3131
3232 let keyTotalTokenAmount = "_total_token_amount"
3333
3434 let keyTotalAmountBuyAssetSold = "_total_buy_asset_sold"
3535
3636 let keyTokensPerTicket = "_tokens_per_ticket"
3737
3838 let keyPricePerToken = "_price_per_token"
3939
4040 let keySwopPerTicket = "_swop_per_ticket"
4141
4242 let keySwopfiTicketsAmount = "_tickets_swopfi_members"
4343
4444 let keyCampaignTokensAmount = "_tokens_access_list"
4545
4646 let keyTokensPerAllocation = "_tokens_per_allocation"
4747
4848 let keyTicketLastNumber = "_ticket_last_number"
4949
5050 let keyGovernanceStaked = "_SWOP_amount"
5151
5252 let keyUserRefId = "_ref_id"
5353
5454 let keyVerifyHash = "_verify_hash"
5555
5656 let keyDuration = "_duration"
5757
5858 let keyAmountBuyAssetInMarketing = "_total_purchased_buy_asset_in_marketing"
5959
6060 let keyAmountBuyAssetInMarketingFinalized = "_total_purchased_buy_asset_in_marketing_finalized"
6161
6262 let keyTransferBuyAsset = "_transfer_buy_asset"
6363
6464 let keyFreezSwopDuration = "_freeze_swop_duration"
6565
6666 let keyFreezeAdditionalToken = "_freeze_additional_token"
6767
6868 let keyFreezeTokenId = "_freeze_token_id"
6969
7070 let keyFreezeTokenDuration = "_freeze_token_duration"
7171
7272 let keyFreezeTokenPerTicket = "_freeze_token_per_ticket"
7373
7474 let keyBuyToken = "_buy_token"
7575
7676 let keyClaimParams = "_claim_params"
7777
7878 let keyHighCompetitionComission = "_high_competition_comission"
7979
8080 let keyHighCompetitionSale = "_high_competition_sale"
8181
8282 let keyHCTicketLastNumber = "_high_competition_ticket_last_number"
8383
8484 let keyHighCompetitionAmount = "_tickets_high_competition"
8585
8686 let keyTotalAmountBuyAssetSoldHC = "_total_buy_asset_sold_high_competition"
8787
8888 let keyUserClaimedTokens = "_claimed_tokens"
8989
9090 let keyUserClaimedBuyTokens = "_claimed_buy_tokens"
9191
9292 let keyUserBoughtTicketsAmount = "_bought_tickets"
9393
9494 let keyUserTickets = "_tickets_number"
9595
9696 let keyUserHCTickets = "_tickets_number_high_competition"
9797
9898 let keyUserHCBoughtTicketsAmount = "_bought_tickets_high_competition"
9999
100100 let keyUserAvailableAllocations = "_available_purchase_marketing"
101101
102102 let keyUserAmountBuyAssetInMarketing = "_purchased_buy_asset_in_marketing"
103103
104104 let keyUserBoughtAllocations = "_bought_allocations"
105105
106106 let keyUserClaimStatus = "_claim_status"
107107
108108 let keyUserWinnedTicketsAmount = "_tickets_result"
109109
110110 let keyUserWinnedHighCompetitionTicketsAmount = "_tickets_result_high_competition"
111111
112112 let keyUserFreezeToken = "_freeze_token_amount"
113113
114114 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
115115
116116 let governance = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
117117
118118 let commissionWallet = Address(base58'3N2hBdeDEs7wCNA9EY8qv3B6drjgKD64xQG')
119119
120120 let stakingUSDNAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
121121
122122 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
123123
124124 let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
125125
126126 let maxAllocationsAmount = 2
127127
128128 let activeLaunchpadId = valueOrElse(getIntegerValue(this, keyLaunchpadActiveId), -1)
129129
130130 func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
131131 case string: String =>
132132 fromBase58String(string)
133133 case nothing =>
134134 throw("Admin public key is empty")
135135 }
136136
137137
138138 let adminPubKey1 = getAdminPub(keyAdminPubKey1)
139139
140140 let adminPubKey2 = getAdminPub(keyAdminPubKey2)
141141
142142 let adminPubKey3 = getAdminPub(keyAdminPubKey3)
143143
144144 func getAssetInfo (assetId) = match assetId {
145145 case id: ByteVector =>
146146 let stringId = toBase58String(id)
147147 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
148148 $Tuple3(stringId, info.name, info.decimals)
149149 case waves: Unit =>
150150 $Tuple3("WAVES", "WAVES", 8)
151151 case _ =>
152152 throw("Match error")
153153 }
154154
155155
156156 func getLaunchpadNextId () = valueOrElse(getInteger(this, keyLaunchpadNextId), 1)
157157
158158
159159 func stakedUsdnAmount () = valueOrElse(getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))), 0)
160160
161161
162162 let active = valueOrElse(getBoolean(this, keyActive), true)
163163
164164 func isActive () = if (active)
165165 then unit
166166 else throw("DApp is inactive at this moment")
167167
168168
169169 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
170170 then unit
171171 else throw("Only admin can call this function")
172172
173173
174174 func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES"))
175175 then $Tuple4(unit, "WAVES", "WAVES", 8)
176176 else {
177177 let stringId = assetStr
178178 let id = fromBase58String(assetStr)
179179 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
180180 $Tuple4(id, stringId, info.name, info.decimals)
181181 }
182182
183183
184184 @Callable(i)
185185 func hashingRandom (launchpadId,hash) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [StringEntry((toString(launchpadId) + keyVerifyHash), hash)]))
186186
187187
188188
189189 @Callable(i)
190190 func initCaller (address) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [StringEntry(keyInitCaller, address)]))
191191
192192
193193
194194 @Callable(i)
195195 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), "")))
196196 then throw("Only project admin can call init function")
197197 else if ((size(i.payments) != 1))
198198 then throw("One attached payment expected")
199199 else if ((height > startHeight))
200200 then throw("Start height must be greater than blockchain height")
201201 else if (if (freezeAdditionalToken)
202202 then (size(freezeParams) != 3)
203203 else false)
204204 then throw("Freeze params list must have 3 items")
205205 else {
206206 let launchpadId = getLaunchpadNextId()
207207 let launchpadIdStr = toString(launchpadId)
208208 let $t063846459 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
209209 let pmtAmount = $t063846459._1
210210 let pmtAssetId = $t063846459._2
211211 let $t064686541 = getAssetInfo(pmtAssetId)
212212 let pmtStrAssetId = $t064686541._1
213213 let pmtAssetName = $t064686541._2
214214 let pmtDecimals = $t064686541._3
215215 let freezeAdditionalEntry = if (freezeAdditionalToken)
216216 then [BooleanEntry((launchpadIdStr + keyFreezeAdditionalToken), true), StringEntry((launchpadIdStr + keyFreezeTokenId), freezeParams[0]), IntegerEntry((launchpadIdStr + keyFreezeTokenDuration), parseIntValue(freezeParams[1])), IntegerEntry((launchpadIdStr + keyFreezeTokenPerTicket), parseIntValue(freezeParams[2]))]
217217 else nil
218218 ([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)
219219 })
220220
221221
222222
223223 @Callable(i)
224224 func commitSwopfiSale (launchpadId,refId) = valueOrElse(isActive(), {
225225 let $t091479222 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
226226 let pmtAmount = $t091479222._1
227227 let pmtAssetId = $t091479222._2
228228 let $t092279377 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
229229 let buyAssetId = $t092279377._1
230230 let buyAssetStrId = $t092279377._2
231231 let buyAssetName = $t092279377._3
232232 let buyAssetDecimals = $t092279377._4
233233 let stakedSwops = valueOrElse(getInteger(governance, (toString(i.caller) + keyGovernanceStaked)), 0)
234234 let allowedTicketsAmountAll = (stakedSwops / getIntegerValue(this, (toString(launchpadId) + keySwopPerTicket)))
235235 let boughtTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0)
236236 let allowedTicketsAmount = (allowedTicketsAmountAll - boughtTicketsAmount)
237237 let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight)))
238238 let duration = value(getInteger(this, (toString(launchpadId) + keyDuration)))
239239 let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false)
240240 if ((activeLaunchpadId != launchpadId))
241241 then throw("There is no active launchpad or this launchpad is ended")
242242 else if ((startHeight > height))
243243 then throw("Launchpad sale not started yet")
244244 else if ((height > (startHeight + duration)))
245245 then throw("Launchpad sale ended")
246246 else if (if (!(freezeAdditionalToken))
247247 then if ((size(i.payments) != 1))
248248 then true
249249 else (pmtAssetId != buyAssetId)
250250 else false)
251251 then throw((("One attached payment in " + buyAssetName) + " expected"))
252252 else if (if (freezeAdditionalToken)
253253 then if ((size(i.payments) != 2))
254254 then true
255255 else (pmtAssetId != buyAssetId)
256256 else false)
257257 then {
258258 let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId))
259259 throw(((("Two attached payments expected: First in " + buyAssetName) + ", second in ") + freezeTokenId))
260260 }
261261 else if (if ((0 >= allowedTicketsAmountAll))
262262 then true
263263 else (0 >= allowedTicketsAmount))
264264 then throw("Not enought SWOP in staking to buy tickets")
265265 else {
266266 let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken))
267267 let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket))
268268 let $t01118911333 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId)))
269269 let tokenId = $t01118911333._1
270270 let tokenStrAssetId = $t01118911333._2
271271 let tokenAssetName = $t01118911333._3
272272 let tokenDecimals = $t01118911333._4
273273 let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN))
274274 let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyComission)), 100)
275275 let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket))
276276 let allowedBuyTicketAmount = min([buyTicketAmount, allowedTicketsAmount])
277277 let allowedBuyPriceWithComission = (allowedBuyTicketAmount * (ticketPrice + commissionPerTicket))
278278 let change = (pmtAmount - allowedBuyPriceWithComission)
279279 if ((buyTicketAmount == 0))
280280 then throw((("Not enought " + buyAssetName) + " to buy tickets"))
281281 else if ((change != 0))
282282 then throw((((("Wrong payment. To buy " + toString(allowedBuyTicketAmount)) + "tickets you need to pay ") + toString(allowedBuyPriceWithComission)) + buyAssetName))
283283 else {
284284 let freezeAdditionalEntry = if (freezeAdditionalToken)
285285 then {
286286 let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId))
287287 let freezeTokenPerTicket = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenPerTicket))
288288 let $t01249712584 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
289289 let pmtAmountFreeze = $t01249712584._1
290290 let pmtAssetIdFreeze = $t01249712584._2
291291 let $t01260112692 = getAssetInfo(pmtAssetId)
292292 let pmtFreezeStrAssetId = $t01260112692._1
293293 let pmtFreezeAssetName = $t01260112692._2
294294 let pmtFreezeDecimals = $t01260112692._3
295295 let needFreezeTokens = (freezeTokenPerTicket * buyTicketAmount)
296296 if (if ((pmtFreezeStrAssetId != freezeTokenId))
297297 then true
298298 else (needFreezeTokens != pmtAmountFreeze))
299299 then throw((((("You need to add " + toString(needFreezeTokens)) + " ") + pmtFreezeAssetName) + " as a second payment"))
300300 else [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), pmtAmountFreeze)]
301301 }
302302 else nil
303303 let userBoughtTicketsNumbers = valueOrElse(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserTickets)), "")
304304 let lastBoughtTicketNumber = getIntegerValue(this, (toString(launchpadId) + keyTicketLastNumber))
305305 let boughtRange = ((toString((lastBoughtTicketNumber + 1)) + "-") + toString((lastBoughtTicketNumber + allowedBuyTicketAmount)))
306306 let newUserBoughtTicketsNumbers = (userBoughtTicketsNumbers + (if ((userBoughtTicketsNumbers != ""))
307307 then ("," + boughtRange)
308308 else ("" + boughtRange)))
309309 let inv = if ((buyAssetId == USDN))
310310 then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)])
311311 else 0
312312 if ((inv == inv))
313313 then {
314314 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)
315315 if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId)))))
316316 then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)])
317317 else baseEntry
318318 }
319319 else throw("Strict value is not equal to itself.")
320320 }
321321 }
322322 })
323323
324324
325325
326326 @Callable(i)
327327 func finalise (launchpadId,vrfHeight,secretWord) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
328328 let savedHash = getStringValue(this, (toString(launchpadId) + keyVerifyHash))
329329 let calcHash = toBase58String(sha256((toBytes(vrfHeight) + toBytes(secretWord))))
330330 if ((calcHash != savedHash))
331331 then throw("vrf Height hash not matching")
332332 else {
333333 let $t01506015210 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
334334 let buyAssetId = $t01506015210._1
335335 let buyAssetStrId = $t01506015210._2
336336 let buyAssetName = $t01506015210._3
337337 let buyAssetDecimals = $t01506015210._4
338338 let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress)))
339339 let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
340340 let commissionHC = getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission))
341341 let transferedBuyAsset = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferBuyAsset)), 0)
342342 let swopfiMembersBuyAssetAmount = getIntegerValue(this, (toString(launchpadId) + keyTotalAmountBuyAssetSold))
343343 let swopfiHCBuyAssetAmount = valueOrElse(getIntegerValue(this, (toString(launchpadId) + keyTotalAmountBuyAssetSoldHC)), 0)
344344 let swopfiMembersComission = fraction(swopfiMembersBuyAssetAmount, commission, 100)
345345 let swopfiHCComission = fraction(swopfiHCBuyAssetAmount, commissionHC, 100)
346346 let totalAmountBuyAssetInMarketing = getIntegerValue(this, (toString(launchpadId) + keyAmountBuyAssetInMarketingFinalized))
347347 let marketingComission = fraction(totalAmountBuyAssetInMarketing, commission, 100)
348348 let unstakeAmount = (((((swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing) + swopfiMembersComission) + marketingComission) + swopfiHCBuyAssetAmount) + swopfiHCComission)
349349 if ((transferedBuyAsset > (swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing)))
350350 then throw("Can't transfer negative value to project")
351351 else {
352352 let inv = if ((buyAssetId == USDN))
353353 then invoke(stakingUSDNAddress, "unlockNeutrino", [unstakeAmount, toBase58String(USDN)], nil)
354354 else 0
355355 if ((inv == inv))
356356 then [IntegerEntry((toString(launchpadId) + keyFinaliseHeight), height), ScriptTransfer(projectAddress, (((swopfiMembersBuyAssetAmount + swopfiHCBuyAssetAmount) + totalAmountBuyAssetInMarketing) - transferedBuyAsset), buyAssetId), ScriptTransfer(commissionWallet, ((swopfiMembersComission + marketingComission) + swopfiHCComission), buyAssetId)]
357357 else throw("Strict value is not equal to itself.")
358358 }
359359 }
360360 }))
361361
362362
363363
364364 @Callable(i)
365365 func claim (launchpadId) = valueOrElse(isActive(), {
366366 let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0)
367367 let boughtHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0)
368368 let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0)
369369 let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false)
370370 let finalizeHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)), 0)
371371 if ((finalizeHeight == 0))
372372 then throw("You can't claim because results are not finalized")
373- else if (if (if ((boughtTickets == 0))
374- then (boughtAllocations == 0)
375- else false)
376- then (boughtHCTickets == 0)
377- else false)
378- then throw("You can't claim because you don't buy anything")
379- else {
380- let $t01825718434 = getAssetInfoFromString(valueOrElse(getString(this, (toString(launchpadId) + keyBuyToken)), toBase58String(USDN)))
381- let buyAssetId = $t01825718434._1
382- let buyAssetStrId = $t01825718434._2
383- let buyAssetName = $t01825718434._3
384- let buyAssetDecimals = $t01825718434._4
385- let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0)
386- let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0)
387- let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0)
388- let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
389- let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0)
390- let allowedAllocations = min([boughtAllocations, awailableAllocations])
391- let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken))
392- let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket))
393- let $t01935019494 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId)))
394- let tokenId = $t01935019494._1
395- let tokenStrAssetId = $t01935019494._2
396- let tokenAssetName = $t01935019494._3
397- let tokenDecimals = $t01935019494._4
398- let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN))
399- let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation))
400- let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket))
401- let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation)
402- let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100)
403- let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100)
404- let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100)
405- let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0)
406- if (if (if ((0 > buyAssetForAllocations))
407- then true
408- else (0 > buyAssetForUnwonnedTickets))
409- then true
410- else (0 > buyAssetForHCUnwonnedTickets))
411- then throw("Error with allowed allocation param or wonned tickets param please contact support")
412- else {
413- let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken)
414- let transferBuyAsset = if ((returnedBuyAssetAmount > 0))
415- then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)]
416- else nil
417- let inv = if (if ((returnedBuyAssetAmount > 0))
418- then (buyAssetId == USDN)
419- else false)
420- then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil)
421- else 0
422- if ((inv == inv))
423- then {
424- let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), ""), ",")
425- if (if ((size(claimedParams) == 0))
426- then true
427- else (claimedParams[0] == "claimAll"))
428- then {
429- let transferTokens = if ((transferTokensAmount > 0))
430- then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)]
431- else nil
432- (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset)
433- }
434- else if ((claimedParams[0] == "claimPeriod"))
373+ else if (userClaimStatus)
374+ then throw("You are already claimed")
375+ else if (if (if ((boughtTickets == 0))
376+ then (boughtAllocations == 0)
377+ else false)
378+ then (boughtHCTickets == 0)
379+ else false)
380+ then throw("You can't claim because you don't buy anything")
381+ else {
382+ let $t01825518432 = getAssetInfoFromString(valueOrElse(getString(this, (toString(launchpadId) + keyBuyToken)), toBase58String(USDN)))
383+ let buyAssetId = $t01825518432._1
384+ let buyAssetStrId = $t01825518432._2
385+ let buyAssetName = $t01825518432._3
386+ let buyAssetDecimals = $t01825518432._4
387+ let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0)
388+ let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0)
389+ let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0)
390+ let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
391+ let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0)
392+ let allowedAllocations = min([boughtAllocations, awailableAllocations])
393+ let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken))
394+ let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket))
395+ let $t01934819492 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId)))
396+ let tokenId = $t01934819492._1
397+ let tokenStrAssetId = $t01934819492._2
398+ let tokenAssetName = $t01934819492._3
399+ let tokenDecimals = $t01934819492._4
400+ let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN))
401+ let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation))
402+ let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket))
403+ let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation)
404+ let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100)
405+ let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100)
406+ let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100)
407+ let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0)
408+ if (if (if ((0 > buyAssetForAllocations))
409+ then true
410+ else (0 > buyAssetForUnwonnedTickets))
411+ then true
412+ else (0 > buyAssetForHCUnwonnedTickets))
413+ then throw("Error with allowed allocation param or wonned tickets param please contact support")
414+ else {
415+ let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken)
416+ let transferBuyAsset = if ((returnedBuyAssetAmount > 0))
417+ then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)]
418+ else nil
419+ let inv = if (if ((returnedBuyAssetAmount > 0))
420+ then (buyAssetId == USDN)
421+ else false)
422+ then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil)
423+ else 0
424+ if ((inv == inv))
425+ then {
426+ let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), ""), ",")
427+ if (if ((size(claimedParams) == 0))
428+ then true
429+ else (claimedParams[0] == "claimAll"))
435430 then {
436- let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0)
437- let cl1 = value(claimedParams[0])
438- let unlockPeriod = value(parseInt(claimedParams[2]))
439- let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight)
440- let unlockHeight = ((unlockPeriod + finalizeHeight) + blockHeight)
441- let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100)
442- let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight))
443- then fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod)
444- else (0 - claimedTokens)))
445- let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount)))
446- then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)]
431+ let transferTokens = if ((transferTokensAmount > 0))
432+ then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)]
447433 else nil
448- if (if ((allowedTokensAmount > 0))
449- then true
450- else (returnedBuyAssetAmount > 0))
451- then {
452- let transferTokens = if ((allowedTokensAmount > 0))
453- then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)]
454- else nil
455- (transferBuyAsset ++ transferTokens)
456- }
457- else throw("Nothing to claim")
434+ (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset)
458435 }
459- else throw("Unknown claim function")
460- }
461- else throw("Strict value is not equal to itself.")
462- }
463- }
436+ else if ((claimedParams[0] == "claimPeriod"))
437+ then {
438+ let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0)
439+ let unlockPeriod = value(parseInt(claimedParams[2]))
440+ let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight)
441+ let unlockHeight = (unlockPeriod + blockHeight)
442+ let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100)
443+ let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight))
444+ then (fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod) - claimedTokens)
445+ else (0 - claimedTokens)))
446+ let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount)))
447+ then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)]
448+ else nil
449+ if (if ((allowedTokensAmount > 0))
450+ then true
451+ else (returnedBuyAssetAmount > 0))
452+ then {
453+ let transferTokens = if ((allowedTokensAmount > 0))
454+ then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)]
455+ else nil
456+ (transferBuyAsset ++ transferTokens)
457+ }
458+ else throw("Nothing to claim")
459+ }
460+ else throw("Unknown claim function")
461+ }
462+ else throw("Strict value is not equal to itself.")
463+ }
464+ }
464465 })
465466
466467
467468
468469 @Callable(i)
469470 func claimFreezeToken (launchpadId) = valueOrElse(isActive(), {
470471 let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false)
471472 if (!(isDefined(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)))))
472473 then throw("You can't claim because results are not finalized")
473474 else if (!(freezeAdditionalToken))
474475 then throw("There are no additional token freezing for this launchpad")
475476 else {
476477 let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)))
477478 let userTokensFreezed = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken)), 0)
478479 let startHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyStartHeight)), 0)
479480 let duration = valueOrElse(getInteger(this, (toString(launchpadId) + keyDuration)), 0)
480481 let freezeTokenDuration = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenDuration))
481482 let blockEndHeight = ((startHeight + duration) + freezeTokenDuration)
482483 if ((userTokensFreezed == 0))
483484 then throw("You are already claimed your tokens or not paid anything")
484485 else if ((blockEndHeight > height))
485486 then throw(("Your tokens freezed teel " + toString(blockEndHeight)))
486487 else [ScriptTransfer(i.caller, userTokensFreezed, tokenId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), 0)]
487488 }
488489 })
489490
490491
491492
492493 @Callable(i)
493494 func transferBuyAsset (launchpadId,amount) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
494495 let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress)))
495- let $t02578525935 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
496- let buyAssetId = $t02578525935._1
497- let buyAssetStrId = $t02578525935._2
498- let buyAssetName = $t02578525935._3
499- let buyAssetDecimals = $t02578525935._4
496+ let $t02573525885 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
497+ let buyAssetId = $t02573525885._1
498+ let buyAssetStrId = $t02573525885._2
499+ let buyAssetName = $t02573525885._3
500+ let buyAssetDecimals = $t02573525885._4
500501 [IntegerEntry((toString(launchpadId) + keyTransferBuyAsset), amount), ScriptTransfer(projectAddress, amount, buyAssetId)]
501502 }))
502503
503504
504505
505506 @Callable(i)
506507 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
507508 then throw("DApp already inactive")
508509 else [BooleanEntry(keyActive, false)])
509510
510511
511512
512513 @Callable(i)
513514 func activate () = valueOrElse(isAdminCall(i), if (active)
514515 then throw("DApp already active")
515516 else [BooleanEntry(keyActive, true)])
516517
517518
518519 @Verifier(tx)
519520 func verify () = {
520521 let multiSignedByAdmins = {
521522 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
522523 then 1
523524 else 0
524525 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
525526 then 1
526527 else 0
527528 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
528529 then 1
529530 else 0
530531 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
531532 }
532533 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
533534 then true
534535 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
535536 then true
536537 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
537538 then true
538539 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking)
539540 match tx {
540541 case dtx: DataTransaction =>
541542 if (valueOrElse(getBoolean(oracle, keyLaunchpadDataTransactionStatus), false))
542543 then signedByAdmin
543544 else false
544545 case _ =>
545546 multiSignedByAdmins
546547 }
547548 }
548549

github/deemru/w8io/026f985 
94.37 ms