tx · 3t4G5GERYgzUXMfnuYcEKXmpfy9UkCF4JeCctU6btD7c 3MwkjgDrsm5k73WJU9Nbxbx4y2iy3zjQzMi: -0.01400000 Waves 2021.12.13 17:11 [1832587] smart account 3MwkjgDrsm5k73WJU9Nbxbx4y2iy3zjQzMi > SELF 0.00000000 Waves
{ "type": 13, "id": "3t4G5GERYgzUXMfnuYcEKXmpfy9UkCF4JeCctU6btD7c", "fee": 1400000, "feeAssetId": null, "timestamp": 1639404704715, "version": 2, "chainId": 84, "sender": "3MwkjgDrsm5k73WJU9Nbxbx4y2iy3zjQzMi", "senderPublicKey": "FRotxVW1MhTQRDvVbMM4yvYGWzBFvHqvMsonvGeEXQUy", "proofs": [ "63Bm3dwSFHmTLCZDqK9s65mrMrYBoD3NCSMqv1STKgXvsEcSvqo9x7maywUsbRnwHgw45To48i8NChL3CDQ4EPnY", "mAW6d4NQVhmkX17codviDxZvaBnbFVHn9grgeVtYT6Wzkkf817ygz3wqTJ2FqmNvmQT3YRTxAT9S6MrQzxkxV3w" ], "script": "base64:AAIFAAAAAAAAEwkIAhIECgIBCBIDCgEIEhQKEggBAQgBAQEBAQEBARgEAQEEGBIECgIBCBIECgIBCBIECgIBCBIFCgMBAQgSAwoBARIDCgEBEgQKAgEBEgASABoPCgJhMRIJa2V5QWN0aXZlGhUKAmEyEg9rZXlBZG1pblB1YktleTEaFQoCYTMSD2tleUFkbWluUHViS2V5MhoVCgJhNBIPa2V5QWRtaW5QdWJLZXkzGicKAmE1EiFrZXlMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMaGAoCYTYSEmtleUxhdW5jaHBhZE5leHRJZBoaCgJhNxIUa2V5TGF1bmNocGFkQWN0aXZlSWQaEwoCYTgSDWtleUluaXRDYWxsZXIaEAoCYTkSCmtleUFkZHJlc3MaEwoCYjESDWtleUluaXRIZWlnaHQaFAoCYjISDmtleVN0YXJ0SGVpZ2h0GhcKAmIzEhFrZXlGaW5hbGlzZUhlaWdodBoSCgJ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DCQAAAQAAAAIFAAAAAmgxAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAnczBQAAAAJoMQMJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAACZjgFAAAAAmE1BwUAAAACdzIHBQAAAAJ2N8Lrvi0=", "height": 1832587, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DpBnKrkZzLRZvrHzj181W395GwdhwFtgLGMx9USQ7ETa Next: Ee2jxru2Dv1HBbkLEU7kn6KKUVG1ktegyhjEcbgGUkHq Diff:
Old | New | Differences | |
---|---|---|---|
27 | 27 | ||
28 | 28 | let keyComission = "_comission" | |
29 | 29 | ||
30 | - | let keyHighCompetitionComission = "_high_competition_comission" | |
31 | - | ||
32 | 30 | let keyAssetId = "_asset_id" | |
33 | 31 | ||
34 | 32 | let keyTotalTokenAmount = "_total_token_amount" | |
35 | 33 | ||
36 | 34 | let keyTotalAmountBuyAssetSold = "_total_buy_asset_sold" | |
37 | - | ||
38 | - | let keyTotalAmountBuyAssetSoldHC = "_total_buy_asset_sold_high_competition" | |
39 | 35 | ||
40 | 36 | let keyTokensPerTicket = "_tokens_per_ticket" | |
41 | 37 | ||
45 | 41 | ||
46 | 42 | let keySwopfiTicketsAmount = "_tickets_swopfi_members" | |
47 | 43 | ||
48 | - | let keyHCAmount = "_tickets_high_competition" | |
49 | - | ||
50 | 44 | let keyCampaignTokensAmount = "_tokens_access_list" | |
51 | 45 | ||
52 | 46 | let keyTokensPerAllocation = "_tokens_per_allocation" | |
53 | 47 | ||
54 | 48 | let keyTicketLastNumber = "_ticket_last_number_high_competition" | |
55 | - | ||
56 | - | let keyHCTicketLastNumber = "_ticket_last_number" | |
57 | 49 | ||
58 | 50 | let keyGovernanceStaked = "_SWOP_amount" | |
59 | 51 | ||
71 | 63 | ||
72 | 64 | let keyFreezSwopDuration = "_freeze_swop_duration" | |
73 | 65 | ||
74 | - | let keyHighCompetitionSale = "_high_competition_sale" | |
75 | - | ||
76 | 66 | let keyFreezeAdditionalToken = "_freeze_additional_token" | |
77 | 67 | ||
78 | 68 | let keyFreezeTokenId = "_freeze_token_id" | |
85 | 75 | ||
86 | 76 | let keyClaimParams = "_claim_params" | |
87 | 77 | ||
78 | + | let keyHighCompetitionComission = "_high_competition_comission" | |
79 | + | ||
80 | + | let keyHighCompetitionSale = "_high_competition_sale" | |
81 | + | ||
82 | + | let keyHCTicketLastNumber = "_ticket_last_number" | |
83 | + | ||
84 | + | let keyHighCompetitionAmount = "_tickets_high_competition" | |
85 | + | ||
86 | + | let keyTotalAmountBuyAssetSoldHC = "_total_buy_asset_sold_high_competition" | |
87 | + | ||
88 | 88 | let keyUserBoughtTicketsAmount = "_bought_tickets" | |
89 | - | ||
90 | - | let keyUserHCBoughtTicketsAmount = "_bought_tickets_high_competition" | |
91 | 89 | ||
92 | 90 | let keyUserTickets = "_tickets_number" | |
93 | 91 | ||
94 | 92 | let keyUserHCTickets = "_tickets_number_high_competition" | |
93 | + | ||
94 | + | let keyUserHCBoughtTicketsAmount = "_bought_tickets_high_competition" | |
95 | 95 | ||
96 | 96 | let keyUserAvailableAllocations = "_available_purchase_marketing" | |
97 | 97 | ||
199 | 199 | else { | |
200 | 200 | let launchpadId = getLaunchpadNextId() | |
201 | 201 | let launchpadIdStr = toString(launchpadId) | |
202 | - | let $ | |
203 | - | let pmtAmount = $ | |
204 | - | let pmtAssetId = $ | |
205 | - | let $ | |
206 | - | let pmtStrAssetId = $ | |
207 | - | let pmtAssetName = $ | |
208 | - | let pmtDecimals = $ | |
202 | + | let $t063546429 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
203 | + | let pmtAmount = $t063546429._1 | |
204 | + | let pmtAssetId = $t063546429._2 | |
205 | + | let $t064386511 = getAssetInfo(pmtAssetId) | |
206 | + | let pmtStrAssetId = $t064386511._1 | |
207 | + | let pmtAssetName = $t064386511._2 | |
208 | + | let pmtDecimals = $t064386511._3 | |
209 | 209 | let freezeAdditionalEntry = if (freezeAdditionalToken) | |
210 | 210 | then [BooleanEntry((launchpadIdStr + keyFreezeAdditionalToken), true), StringEntry((launchpadIdStr + keyFreezeTokenId), freezeParams[0]), IntegerEntry((launchpadIdStr + keyFreezeTokenDuration), parseIntValue(freezeParams[1])), IntegerEntry((launchpadIdStr + keyFreezeTokenPerTicket), parseIntValue(freezeParams[2]))] | |
211 | 211 | else nil | |
212 | - | ([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 + | |
212 | + | ([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 + 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) | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Callable(i) | |
218 | 218 | func commitSwopfiSale (launchpadId,refId) = { | |
219 | - | let $ | |
220 | - | let pmtAmount = $ | |
221 | - | let pmtAssetId = $ | |
222 | - | let $ | |
223 | - | let buyAssetId = $ | |
224 | - | let buyAssetStrId = $ | |
225 | - | let buyAssetName = $ | |
226 | - | let buyAssetDecimals = $ | |
219 | + | let $t090249099 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
220 | + | let pmtAmount = $t090249099._1 | |
221 | + | let pmtAssetId = $t090249099._2 | |
222 | + | let $t091049254 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
223 | + | let buyAssetId = $t091049254._1 | |
224 | + | let buyAssetStrId = $t091049254._2 | |
225 | + | let buyAssetName = $t091049254._3 | |
226 | + | let buyAssetDecimals = $t091049254._4 | |
227 | 227 | let stakedSwops = valueOrElse(getInteger(governance, (toString(i.caller) + keyGovernanceStaked)), 0) | |
228 | 228 | let allowedTicketsAmountAll = (stakedSwops / getIntegerValue(this, (toString(launchpadId) + keySwopPerTicket))) | |
229 | 229 | let boughtTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
261 | 261 | else { | |
262 | 262 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
263 | 263 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
264 | - | let $ | |
265 | - | let tokenId = $ | |
266 | - | let tokenStrAssetId = $ | |
267 | - | let tokenAssetName = $ | |
268 | - | let tokenDecimals = $ | |
264 | + | let $t01114211286 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
265 | + | let tokenId = $t01114211286._1 | |
266 | + | let tokenStrAssetId = $t01114211286._2 | |
267 | + | let tokenAssetName = $t01114211286._3 | |
268 | + | let tokenDecimals = $t01114211286._4 | |
269 | 269 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
270 | 270 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyComission)), 100) | |
271 | 271 | let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket)) | |
281 | 281 | then { | |
282 | 282 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
283 | 283 | let freezeTokenPerTicket = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenPerTicket)) | |
284 | - | let $ | |
285 | - | let pmtAmountFreeze = $ | |
286 | - | let pmtAssetIdFreeze = $ | |
287 | - | let $ | |
288 | - | let pmtFreezeStrAssetId = $ | |
289 | - | let pmtFreezeAssetName = $ | |
290 | - | let pmtFreezeDecimals = $ | |
284 | + | let $t01245012537 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
285 | + | let pmtAmountFreeze = $t01245012537._1 | |
286 | + | let pmtAssetIdFreeze = $t01245012537._2 | |
287 | + | let $t01255412645 = getAssetInfo(pmtAssetId) | |
288 | + | let pmtFreezeStrAssetId = $t01255412645._1 | |
289 | + | let pmtFreezeAssetName = $t01255412645._2 | |
290 | + | let pmtFreezeDecimals = $t01255412645._3 | |
291 | 291 | let needFreezeTokens = (freezeTokenPerTicket * buyTicketAmount) | |
292 | 292 | if (if ((pmtFreezeStrAssetId != freezeTokenId)) | |
293 | 293 | then true | |
321 | 321 | ||
322 | 322 | @Callable(i) | |
323 | 323 | func commitAccessListSale (launchpadId,refId) = { | |
324 | - | let $ | |
325 | - | let pmtAmount = $ | |
326 | - | let pmtAssetId = $ | |
327 | - | let $ | |
328 | - | let buyAssetId = $ | |
329 | - | let buyAssetStrId = $ | |
330 | - | let buyAssetName = $ | |
331 | - | let buyAssetDecimals = $ | |
324 | + | let $t01469214767 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
325 | + | let pmtAmount = $t01469214767._1 | |
326 | + | let pmtAssetId = $t01469214767._2 | |
327 | + | let $t01477214922 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
328 | + | let buyAssetId = $t01477214922._1 | |
329 | + | let buyAssetStrId = $t01477214922._2 | |
330 | + | let buyAssetName = $t01477214922._3 | |
331 | + | let buyAssetDecimals = $t01477214922._4 | |
332 | 332 | let userUsdnInMarketing = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountBuyAssetInMarketing)), 0) | |
333 | 333 | let usdnInMarketing = valueOrElse(getInteger(this, (toString(launchpadId) + keyAmountBuyAssetInMarketing)), 0) | |
334 | 334 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
335 | 335 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
336 | 336 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
337 | 337 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
338 | - | let $ | |
339 | - | let tokenId = $ | |
340 | - | let tokenStrAssetId = $ | |
341 | - | let tokenAssetName = $ | |
342 | - | let tokenDecimals = $ | |
338 | + | let $t01559115735 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
339 | + | let tokenId = $t01559115735._1 | |
340 | + | let tokenStrAssetId = $t01559115735._2 | |
341 | + | let tokenAssetName = $t01559115735._3 | |
342 | + | let tokenDecimals = $t01559115735._4 | |
343 | 343 | let allocationPriceWithComission = fraction(fraction(tokenPrice, tokensPerAllocation, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
344 | 344 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
345 | 345 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
381 | 381 | ||
382 | 382 | @Callable(i) | |
383 | 383 | func commitHighCompetitionSale (launchpadId,refId) = { | |
384 | - | let $ | |
385 | - | let pmtAmount = $ | |
386 | - | let pmtAssetId = $ | |
387 | - | let $ | |
388 | - | let buyAssetId = $ | |
389 | - | let buyAssetStrId = $ | |
390 | - | let buyAssetName = $ | |
391 | - | let buyAssetDecimals = $ | |
384 | + | let $t01804418119 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
385 | + | let pmtAmount = $t01804418119._1 | |
386 | + | let pmtAssetId = $t01804418119._2 | |
387 | + | let $t01812418274 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
388 | + | let buyAssetId = $t01812418274._1 | |
389 | + | let buyAssetStrId = $t01812418274._2 | |
390 | + | let buyAssetName = $t01812418274._3 | |
391 | + | let buyAssetDecimals = $t01812418274._4 | |
392 | 392 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
393 | 393 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
394 | 394 | let boughtHCTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0) | |
410 | 410 | else { | |
411 | 411 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
412 | 412 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
413 | - | let $ | |
414 | - | let tokenId = $ | |
415 | - | let tokenStrAssetId = $ | |
416 | - | let tokenAssetName = $ | |
417 | - | let tokenDecimals = $ | |
413 | + | let $t01952319667 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
414 | + | let tokenId = $t01952319667._1 | |
415 | + | let tokenStrAssetId = $t01952319667._2 | |
416 | + | let tokenAssetName = $t01952319667._3 | |
417 | + | let tokenDecimals = $t01952319667._4 | |
418 | 418 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
419 | 419 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)), 100) | |
420 | 420 | let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket)) | |
459 | 459 | else if ((calcHash != savedHash)) | |
460 | 460 | then throw("vrf Height hash not matching") | |
461 | 461 | else { | |
462 | - | let $ | |
463 | - | let buyAssetId = $ | |
464 | - | let buyAssetStrId = $ | |
465 | - | let buyAssetName = $ | |
466 | - | let buyAssetDecimals = $ | |
462 | + | let $t02245222602 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
463 | + | let buyAssetId = $t02245222602._1 | |
464 | + | let buyAssetStrId = $t02245222602._2 | |
465 | + | let buyAssetName = $t02245222602._3 | |
466 | + | let buyAssetDecimals = $t02245222602._4 | |
467 | 467 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
468 | 468 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
469 | 469 | let commissionHC = getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)) | |
506 | 506 | else false) | |
507 | 507 | then throw("You can't claim because you don't buy anything") | |
508 | 508 | else { | |
509 | - | let $ | |
510 | - | let buyAssetId = $ | |
511 | - | let buyAssetStrId = $ | |
512 | - | let buyAssetName = $ | |
513 | - | let buyAssetDecimals = $ | |
509 | + | let $t02546125611 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
510 | + | let buyAssetId = $t02546125611._1 | |
511 | + | let buyAssetStrId = $t02546125611._2 | |
512 | + | let buyAssetName = $t02546125611._3 | |
513 | + | let buyAssetDecimals = $t02546125611._4 | |
514 | 514 | let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0) | |
515 | 515 | let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0) | |
516 | 516 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
517 | 517 | let allowedAllocations = min([boughtAllocations, awailableAllocations]) | |
518 | 518 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
519 | 519 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
520 | - | let $ | |
521 | - | let tokenId = $ | |
522 | - | let tokenStrAssetId = $ | |
523 | - | let tokenAssetName = $ | |
524 | - | let tokenDecimals = $ | |
520 | + | let $t02625826402 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
521 | + | let tokenId = $t02625826402._1 | |
522 | + | let tokenStrAssetId = $t02625826402._2 | |
523 | + | let tokenAssetName = $t02625826402._3 | |
524 | + | let tokenDecimals = $t02625826402._4 | |
525 | 525 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
526 | 526 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
527 | 527 | let transferTokensAmount = ((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) | |
587 | 587 | then throw("Only admin can call this function") | |
588 | 588 | else { | |
589 | 589 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
590 | - | let $ | |
591 | - | let buyAssetId = $ | |
592 | - | let buyAssetStrId = $ | |
593 | - | let buyAssetName = $ | |
594 | - | let buyAssetDecimals = $ | |
590 | + | let $t03007430224 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
591 | + | let buyAssetId = $t03007430224._1 | |
592 | + | let buyAssetStrId = $t03007430224._2 | |
593 | + | let buyAssetName = $t03007430224._3 | |
594 | + | let buyAssetDecimals = $t03007430224._4 | |
595 | 595 | [IntegerEntry((toString(launchpadId) + keyTransferBuyAsset), amount), ScriptTransfer(projectAddress, amount, buyAssetId)] | |
596 | 596 | } | |
597 | 597 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let keyActive = "active" | |
5 | 5 | ||
6 | 6 | let keyAdminPubKey1 = "admin_pub_1" | |
7 | 7 | ||
8 | 8 | let keyAdminPubKey2 = "admin_pub_2" | |
9 | 9 | ||
10 | 10 | let keyAdminPubKey3 = "admin_pub_3" | |
11 | 11 | ||
12 | 12 | let keyLaunchpadDataTransactionStatus = "launchpad_data_transaction_status" | |
13 | 13 | ||
14 | 14 | let keyLaunchpadNextId = "launchpad_next_id" | |
15 | 15 | ||
16 | 16 | let keyLaunchpadActiveId = "launchpad_active_id" | |
17 | 17 | ||
18 | 18 | let keyInitCaller = "init_caller" | |
19 | 19 | ||
20 | 20 | let keyAddress = "_address" | |
21 | 21 | ||
22 | 22 | let keyInitHeight = "_init_height" | |
23 | 23 | ||
24 | 24 | let keyStartHeight = "_start_height" | |
25 | 25 | ||
26 | 26 | let keyFinaliseHeight = "_finalise_height" | |
27 | 27 | ||
28 | 28 | let keyComission = "_comission" | |
29 | 29 | ||
30 | - | let keyHighCompetitionComission = "_high_competition_comission" | |
31 | - | ||
32 | 30 | let keyAssetId = "_asset_id" | |
33 | 31 | ||
34 | 32 | let keyTotalTokenAmount = "_total_token_amount" | |
35 | 33 | ||
36 | 34 | let keyTotalAmountBuyAssetSold = "_total_buy_asset_sold" | |
37 | - | ||
38 | - | let keyTotalAmountBuyAssetSoldHC = "_total_buy_asset_sold_high_competition" | |
39 | 35 | ||
40 | 36 | let keyTokensPerTicket = "_tokens_per_ticket" | |
41 | 37 | ||
42 | 38 | let keyPricePerToken = "_price_per_token" | |
43 | 39 | ||
44 | 40 | let keySwopPerTicket = "_swop_per_ticket" | |
45 | 41 | ||
46 | 42 | let keySwopfiTicketsAmount = "_tickets_swopfi_members" | |
47 | 43 | ||
48 | - | let keyHCAmount = "_tickets_high_competition" | |
49 | - | ||
50 | 44 | let keyCampaignTokensAmount = "_tokens_access_list" | |
51 | 45 | ||
52 | 46 | let keyTokensPerAllocation = "_tokens_per_allocation" | |
53 | 47 | ||
54 | 48 | let keyTicketLastNumber = "_ticket_last_number_high_competition" | |
55 | - | ||
56 | - | let keyHCTicketLastNumber = "_ticket_last_number" | |
57 | 49 | ||
58 | 50 | let keyGovernanceStaked = "_SWOP_amount" | |
59 | 51 | ||
60 | 52 | let keyUserRefId = "_ref_id" | |
61 | 53 | ||
62 | 54 | let keyVerifyHash = "_verify_hash" | |
63 | 55 | ||
64 | 56 | let keyDuration = "_duration" | |
65 | 57 | ||
66 | 58 | let keyAmountBuyAssetInMarketing = "_total_purchased_buy_asset_in_marketing" | |
67 | 59 | ||
68 | 60 | let keyAmountBuyAssetInMarketingFinalized = "_total_purchased_buy_asset_in_marketing_finalized" | |
69 | 61 | ||
70 | 62 | let keyTransferBuyAsset = "_transfer_buy_asset" | |
71 | 63 | ||
72 | 64 | let keyFreezSwopDuration = "_freeze_swop_duration" | |
73 | 65 | ||
74 | - | let keyHighCompetitionSale = "_high_competition_sale" | |
75 | - | ||
76 | 66 | let keyFreezeAdditionalToken = "_freeze_additional_token" | |
77 | 67 | ||
78 | 68 | let keyFreezeTokenId = "_freeze_token_id" | |
79 | 69 | ||
80 | 70 | let keyFreezeTokenDuration = "_freeze_token_duration" | |
81 | 71 | ||
82 | 72 | let keyFreezeTokenPerTicket = "_freeze_token_per_ticket" | |
83 | 73 | ||
84 | 74 | let keyBuyToken = "_buy_token" | |
85 | 75 | ||
86 | 76 | let keyClaimParams = "_claim_params" | |
87 | 77 | ||
78 | + | let keyHighCompetitionComission = "_high_competition_comission" | |
79 | + | ||
80 | + | let keyHighCompetitionSale = "_high_competition_sale" | |
81 | + | ||
82 | + | let keyHCTicketLastNumber = "_ticket_last_number" | |
83 | + | ||
84 | + | let keyHighCompetitionAmount = "_tickets_high_competition" | |
85 | + | ||
86 | + | let keyTotalAmountBuyAssetSoldHC = "_total_buy_asset_sold_high_competition" | |
87 | + | ||
88 | 88 | let keyUserBoughtTicketsAmount = "_bought_tickets" | |
89 | - | ||
90 | - | let keyUserHCBoughtTicketsAmount = "_bought_tickets_high_competition" | |
91 | 89 | ||
92 | 90 | let keyUserTickets = "_tickets_number" | |
93 | 91 | ||
94 | 92 | let keyUserHCTickets = "_tickets_number_high_competition" | |
93 | + | ||
94 | + | let keyUserHCBoughtTicketsAmount = "_bought_tickets_high_competition" | |
95 | 95 | ||
96 | 96 | let keyUserAvailableAllocations = "_available_purchase_marketing" | |
97 | 97 | ||
98 | 98 | let keyUserAmountBuyAssetInMarketing = "_purchased_buy_asset_in_marketing" | |
99 | 99 | ||
100 | 100 | let keyUserBoughtAllocations = "_bought_allocations" | |
101 | 101 | ||
102 | 102 | let keyUserClaimStatus = "_claim_status" | |
103 | 103 | ||
104 | 104 | let keyUserWinnedTicketsAmount = "_tickets_result" | |
105 | 105 | ||
106 | 106 | let keyUserFreezeToken = "_freeze_token_amount" | |
107 | 107 | ||
108 | 108 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
109 | 109 | ||
110 | 110 | let governance = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
111 | 111 | ||
112 | 112 | let commissionWallet = Address(base58'3N2hBdeDEs7wCNA9EY8qv3B6drjgKD64xQG') | |
113 | 113 | ||
114 | 114 | let stakingUSDNAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
115 | 115 | ||
116 | 116 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
117 | 117 | ||
118 | 118 | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
119 | 119 | ||
120 | 120 | let maxAllocationsAmount = 2 | |
121 | 121 | ||
122 | 122 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
123 | 123 | ||
124 | 124 | let activeLaunchpadId = valueOrElse(getIntegerValue(this, keyLaunchpadActiveId), -1) | |
125 | 125 | ||
126 | 126 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
127 | 127 | case string: String => | |
128 | 128 | fromBase58String(string) | |
129 | 129 | case nothing => | |
130 | 130 | throw("Admin public key is empty") | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
135 | 135 | ||
136 | 136 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
137 | 137 | ||
138 | 138 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
139 | 139 | ||
140 | 140 | func getAssetInfo (assetId) = match assetId { | |
141 | 141 | case id: ByteVector => | |
142 | 142 | let stringId = toBase58String(id) | |
143 | 143 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
144 | 144 | $Tuple3(stringId, info.name, info.decimals) | |
145 | 145 | case waves: Unit => | |
146 | 146 | $Tuple3("WAVES", "WAVES", 8) | |
147 | 147 | case _ => | |
148 | 148 | throw("Match error") | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func getLaunchpadNextId () = valueOrElse(getInteger(this, keyLaunchpadNextId), 1) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func stakedUsdnAmount () = valueOrElse(getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))), 0) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
159 | 159 | then $Tuple4(unit, "WAVES", "WAVES", 8) | |
160 | 160 | else { | |
161 | 161 | let stringId = assetStr | |
162 | 162 | let id = fromBase58String(assetStr) | |
163 | 163 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
164 | 164 | $Tuple4(id, stringId, info.name, info.decimals) | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | @Callable(i) | |
169 | 169 | func hashingRandom (launchpadId,hash) = if (!(isActive)) | |
170 | 170 | then throw("DApp is inactive at this moment") | |
171 | 171 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
172 | 172 | then throw("Only admin can call this function") | |
173 | 173 | else [StringEntry((toString(launchpadId) + keyVerifyHash), hash)] | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(i) | |
178 | 178 | func initCaller (address) = if (!(isActive)) | |
179 | 179 | then throw("DApp is inactive at this moment") | |
180 | 180 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
181 | 181 | then throw("Only admin can call this function") | |
182 | 182 | else [StringEntry(keyInitCaller, address)] | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | ||
186 | 186 | @Callable(i) | |
187 | 187 | func init (projectAddress,startHeight,duration,buyToken,commission,tokensPerTicket,pricePerToken,swopfiTicketsAmount,campaignTokensAmount,tokensPerAllocation,swopPerTicket,swopFreezeDuration,claimParams,HighCompetitionSale,highCompetitionComission,highCompetitionTicketsAmount,freezeAdditionalToken,freezeParams) = if (!(isActive)) | |
188 | 188 | then throw("DApp is inactive at this moment") | |
189 | 189 | else if ((toString(i.caller) != valueOrElse(getString(this, keyInitCaller), ""))) | |
190 | 190 | then throw("Only project admin can call init function") | |
191 | 191 | else if ((size(i.payments) != 1)) | |
192 | 192 | then throw("One attached payment expected") | |
193 | 193 | else if ((height > startHeight)) | |
194 | 194 | then throw("Start height must be greater than blockchain height") | |
195 | 195 | else if (if (freezeAdditionalToken) | |
196 | 196 | then (size(freezeParams) != 3) | |
197 | 197 | else false) | |
198 | 198 | then throw("Freeze params list must have 3 items") | |
199 | 199 | else { | |
200 | 200 | let launchpadId = getLaunchpadNextId() | |
201 | 201 | let launchpadIdStr = toString(launchpadId) | |
202 | - | let $ | |
203 | - | let pmtAmount = $ | |
204 | - | let pmtAssetId = $ | |
205 | - | let $ | |
206 | - | let pmtStrAssetId = $ | |
207 | - | let pmtAssetName = $ | |
208 | - | let pmtDecimals = $ | |
202 | + | let $t063546429 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
203 | + | let pmtAmount = $t063546429._1 | |
204 | + | let pmtAssetId = $t063546429._2 | |
205 | + | let $t064386511 = getAssetInfo(pmtAssetId) | |
206 | + | let pmtStrAssetId = $t064386511._1 | |
207 | + | let pmtAssetName = $t064386511._2 | |
208 | + | let pmtDecimals = $t064386511._3 | |
209 | 209 | let freezeAdditionalEntry = if (freezeAdditionalToken) | |
210 | 210 | then [BooleanEntry((launchpadIdStr + keyFreezeAdditionalToken), true), StringEntry((launchpadIdStr + keyFreezeTokenId), freezeParams[0]), IntegerEntry((launchpadIdStr + keyFreezeTokenDuration), parseIntValue(freezeParams[1])), IntegerEntry((launchpadIdStr + keyFreezeTokenPerTicket), parseIntValue(freezeParams[2]))] | |
211 | 211 | else nil | |
212 | - | ([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 + | |
212 | + | ([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 + 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) | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Callable(i) | |
218 | 218 | func commitSwopfiSale (launchpadId,refId) = { | |
219 | - | let $ | |
220 | - | let pmtAmount = $ | |
221 | - | let pmtAssetId = $ | |
222 | - | let $ | |
223 | - | let buyAssetId = $ | |
224 | - | let buyAssetStrId = $ | |
225 | - | let buyAssetName = $ | |
226 | - | let buyAssetDecimals = $ | |
219 | + | let $t090249099 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
220 | + | let pmtAmount = $t090249099._1 | |
221 | + | let pmtAssetId = $t090249099._2 | |
222 | + | let $t091049254 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
223 | + | let buyAssetId = $t091049254._1 | |
224 | + | let buyAssetStrId = $t091049254._2 | |
225 | + | let buyAssetName = $t091049254._3 | |
226 | + | let buyAssetDecimals = $t091049254._4 | |
227 | 227 | let stakedSwops = valueOrElse(getInteger(governance, (toString(i.caller) + keyGovernanceStaked)), 0) | |
228 | 228 | let allowedTicketsAmountAll = (stakedSwops / getIntegerValue(this, (toString(launchpadId) + keySwopPerTicket))) | |
229 | 229 | let boughtTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
230 | 230 | let allowedTicketsAmount = (allowedTicketsAmountAll - boughtTicketsAmount) | |
231 | 231 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
232 | 232 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
233 | 233 | let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false) | |
234 | 234 | if (!(isActive)) | |
235 | 235 | then throw("DApp is inactive at this moment") | |
236 | 236 | else if ((activeLaunchpadId != launchpadId)) | |
237 | 237 | then throw("There is no active launchpad or this launchpad is ended") | |
238 | 238 | else if ((startHeight > height)) | |
239 | 239 | then throw("Launchpad sale not started yet") | |
240 | 240 | else if ((height > (startHeight + duration))) | |
241 | 241 | then throw("Launchpad sale ended") | |
242 | 242 | else if (if (!(freezeAdditionalToken)) | |
243 | 243 | then if ((size(i.payments) != 1)) | |
244 | 244 | then true | |
245 | 245 | else (pmtAssetId != buyAssetId) | |
246 | 246 | else false) | |
247 | 247 | then throw((("One attached payment in " + buyAssetName) + " expected")) | |
248 | 248 | else if (if (freezeAdditionalToken) | |
249 | 249 | then if ((size(i.payments) != 2)) | |
250 | 250 | then true | |
251 | 251 | else (pmtAssetId != buyAssetId) | |
252 | 252 | else false) | |
253 | 253 | then { | |
254 | 254 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
255 | 255 | throw(((("Two attached payments expected: First in " + buyAssetName) + ", second in ") + freezeTokenId)) | |
256 | 256 | } | |
257 | 257 | else if (if ((0 >= allowedTicketsAmountAll)) | |
258 | 258 | then true | |
259 | 259 | else (0 >= allowedTicketsAmount)) | |
260 | 260 | then throw("Not enought SWOP in staking to buy tickets") | |
261 | 261 | else { | |
262 | 262 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
263 | 263 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
264 | - | let $ | |
265 | - | let tokenId = $ | |
266 | - | let tokenStrAssetId = $ | |
267 | - | let tokenAssetName = $ | |
268 | - | let tokenDecimals = $ | |
264 | + | let $t01114211286 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
265 | + | let tokenId = $t01114211286._1 | |
266 | + | let tokenStrAssetId = $t01114211286._2 | |
267 | + | let tokenAssetName = $t01114211286._3 | |
268 | + | let tokenDecimals = $t01114211286._4 | |
269 | 269 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
270 | 270 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyComission)), 100) | |
271 | 271 | let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket)) | |
272 | 272 | let allowedBuyTicketAmount = min([buyTicketAmount, allowedTicketsAmount]) | |
273 | 273 | let allowedBuyPriceWithComission = (allowedBuyTicketAmount * (ticketPrice + commissionPerTicket)) | |
274 | 274 | let change = (pmtAmount - allowedBuyPriceWithComission) | |
275 | 275 | if ((buyTicketAmount == 0)) | |
276 | 276 | then throw((("Not enought " + buyAssetName) + " to buy tickets")) | |
277 | 277 | else if ((change != 0)) | |
278 | 278 | then throw((((("Wrong payment. To buy " + toString(allowedBuyTicketAmount)) + "tickets you need to pay ") + toString(allowedBuyPriceWithComission)) + buyAssetName)) | |
279 | 279 | else { | |
280 | 280 | let freezeAdditionalEntry = if (freezeAdditionalToken) | |
281 | 281 | then { | |
282 | 282 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
283 | 283 | let freezeTokenPerTicket = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenPerTicket)) | |
284 | - | let $ | |
285 | - | let pmtAmountFreeze = $ | |
286 | - | let pmtAssetIdFreeze = $ | |
287 | - | let $ | |
288 | - | let pmtFreezeStrAssetId = $ | |
289 | - | let pmtFreezeAssetName = $ | |
290 | - | let pmtFreezeDecimals = $ | |
284 | + | let $t01245012537 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
285 | + | let pmtAmountFreeze = $t01245012537._1 | |
286 | + | let pmtAssetIdFreeze = $t01245012537._2 | |
287 | + | let $t01255412645 = getAssetInfo(pmtAssetId) | |
288 | + | let pmtFreezeStrAssetId = $t01255412645._1 | |
289 | + | let pmtFreezeAssetName = $t01255412645._2 | |
290 | + | let pmtFreezeDecimals = $t01255412645._3 | |
291 | 291 | let needFreezeTokens = (freezeTokenPerTicket * buyTicketAmount) | |
292 | 292 | if (if ((pmtFreezeStrAssetId != freezeTokenId)) | |
293 | 293 | then true | |
294 | 294 | else (needFreezeTokens != pmtAmountFreeze)) | |
295 | 295 | then throw((((("You need to add " + toString(needFreezeTokens)) + " ") + pmtFreezeAssetName) + " as a second payment")) | |
296 | 296 | else [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), pmtAmountFreeze)] | |
297 | 297 | } | |
298 | 298 | else nil | |
299 | 299 | let userBoughtTicketsNumbers = valueOrElse(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserTickets)), "") | |
300 | 300 | let lastBoughtTicketNumber = getIntegerValue(this, (toString(launchpadId) + keyTicketLastNumber)) | |
301 | 301 | let boughtRange = ((toString((lastBoughtTicketNumber + 1)) + "-") + toString((lastBoughtTicketNumber + allowedBuyTicketAmount))) | |
302 | 302 | let newUserBoughtTicketsNumbers = (userBoughtTicketsNumbers + (if ((userBoughtTicketsNumbers != "")) | |
303 | 303 | then ("," + boughtRange) | |
304 | 304 | else ("" + boughtRange))) | |
305 | 305 | let inv = if ((buyAssetId == USDN)) | |
306 | 306 | then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
307 | 307 | else 0 | |
308 | 308 | if ((inv == inv)) | |
309 | 309 | then { | |
310 | 310 | 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) | |
311 | 311 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
312 | 312 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
313 | 313 | else baseEntry | |
314 | 314 | } | |
315 | 315 | else throw("Strict value is not equal to itself.") | |
316 | 316 | } | |
317 | 317 | } | |
318 | 318 | } | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | ||
322 | 322 | @Callable(i) | |
323 | 323 | func commitAccessListSale (launchpadId,refId) = { | |
324 | - | let $ | |
325 | - | let pmtAmount = $ | |
326 | - | let pmtAssetId = $ | |
327 | - | let $ | |
328 | - | let buyAssetId = $ | |
329 | - | let buyAssetStrId = $ | |
330 | - | let buyAssetName = $ | |
331 | - | let buyAssetDecimals = $ | |
324 | + | let $t01469214767 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
325 | + | let pmtAmount = $t01469214767._1 | |
326 | + | let pmtAssetId = $t01469214767._2 | |
327 | + | let $t01477214922 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
328 | + | let buyAssetId = $t01477214922._1 | |
329 | + | let buyAssetStrId = $t01477214922._2 | |
330 | + | let buyAssetName = $t01477214922._3 | |
331 | + | let buyAssetDecimals = $t01477214922._4 | |
332 | 332 | let userUsdnInMarketing = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountBuyAssetInMarketing)), 0) | |
333 | 333 | let usdnInMarketing = valueOrElse(getInteger(this, (toString(launchpadId) + keyAmountBuyAssetInMarketing)), 0) | |
334 | 334 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
335 | 335 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
336 | 336 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
337 | 337 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
338 | - | let $ | |
339 | - | let tokenId = $ | |
340 | - | let tokenStrAssetId = $ | |
341 | - | let tokenAssetName = $ | |
342 | - | let tokenDecimals = $ | |
338 | + | let $t01559115735 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
339 | + | let tokenId = $t01559115735._1 | |
340 | + | let tokenStrAssetId = $t01559115735._2 | |
341 | + | let tokenAssetName = $t01559115735._3 | |
342 | + | let tokenDecimals = $t01559115735._4 | |
343 | 343 | let allocationPriceWithComission = fraction(fraction(tokenPrice, tokensPerAllocation, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
344 | 344 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
345 | 345 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
346 | 346 | if (!(isActive)) | |
347 | 347 | then throw("DApp is inactive at this moment") | |
348 | 348 | else if ((activeLaunchpadId != launchpadId)) | |
349 | 349 | then throw("There is no active launchpad or this launchpad is ended") | |
350 | 350 | else if ((startHeight > height)) | |
351 | 351 | then throw("Launchpad sale not started yet") | |
352 | 352 | else if ((height > (startHeight + duration))) | |
353 | 353 | then throw("Launchpad sale ended") | |
354 | 354 | else if (if ((size(i.payments) != 1)) | |
355 | 355 | then true | |
356 | 356 | else (pmtAssetId != buyAssetId)) | |
357 | 357 | then throw((("One attached payment in " + buyAssetName) + " expected")) | |
358 | 358 | else if ((boughtAllocations >= maxAllocationsAmount)) | |
359 | 359 | then throw((("You can buy only " + toString(maxAllocationsAmount)) + "allocations")) | |
360 | 360 | else if (if ((allocationPriceWithComission != pmtAmount)) | |
361 | 361 | then ((allocationPriceWithComission * 2) != pmtAmount) | |
362 | 362 | else false) | |
363 | 363 | then throw(((("Wrong payment. You can buy 1 or 2 allocations for " + toString(allocationPriceWithComission)) + buyAssetName) + " per allocation")) | |
364 | 364 | else { | |
365 | 365 | let buyAllocationsAmount = (pmtAmount / allocationPriceWithComission) | |
366 | 366 | let inv = if ((buyAssetId == USDN)) | |
367 | 367 | then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
368 | 368 | else 0 | |
369 | 369 | if ((inv == inv)) | |
370 | 370 | then { | |
371 | 371 | 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))] | |
372 | 372 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
373 | 373 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
374 | 374 | else baseEntry | |
375 | 375 | } | |
376 | 376 | else throw("Strict value is not equal to itself.") | |
377 | 377 | } | |
378 | 378 | } | |
379 | 379 | ||
380 | 380 | ||
381 | 381 | ||
382 | 382 | @Callable(i) | |
383 | 383 | func commitHighCompetitionSale (launchpadId,refId) = { | |
384 | - | let $ | |
385 | - | let pmtAmount = $ | |
386 | - | let pmtAssetId = $ | |
387 | - | let $ | |
388 | - | let buyAssetId = $ | |
389 | - | let buyAssetStrId = $ | |
390 | - | let buyAssetName = $ | |
391 | - | let buyAssetDecimals = $ | |
384 | + | let $t01804418119 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
385 | + | let pmtAmount = $t01804418119._1 | |
386 | + | let pmtAssetId = $t01804418119._2 | |
387 | + | let $t01812418274 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
388 | + | let buyAssetId = $t01812418274._1 | |
389 | + | let buyAssetStrId = $t01812418274._2 | |
390 | + | let buyAssetName = $t01812418274._3 | |
391 | + | let buyAssetDecimals = $t01812418274._4 | |
392 | 392 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
393 | 393 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
394 | 394 | let boughtHCTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0) | |
395 | 395 | let highCompetitionSale = valueOrElse(getBoolean(this, (toString(launchpadId) + keyHighCompetitionSale)), false) | |
396 | 396 | if (!(isActive)) | |
397 | 397 | then throw("DApp is inactive at this moment") | |
398 | 398 | else if ((activeLaunchpadId != launchpadId)) | |
399 | 399 | then throw("There is no active launchpad or this launchpad is ended") | |
400 | 400 | else if (!(highCompetitionSale)) | |
401 | 401 | then throw("There is no high competition sale for this launchpad") | |
402 | 402 | else if ((startHeight > height)) | |
403 | 403 | then throw("Launchpad sale not started yet") | |
404 | 404 | else if ((height > (startHeight + duration))) | |
405 | 405 | then throw("Launchpad sale ended") | |
406 | 406 | else if (if ((size(i.payments) != 1)) | |
407 | 407 | then true | |
408 | 408 | else (pmtAssetId != buyAssetId)) | |
409 | 409 | then throw((("One attached payment in " + buyAssetName) + " expected")) | |
410 | 410 | else { | |
411 | 411 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
412 | 412 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
413 | - | let $ | |
414 | - | let tokenId = $ | |
415 | - | let tokenStrAssetId = $ | |
416 | - | let tokenAssetName = $ | |
417 | - | let tokenDecimals = $ | |
413 | + | let $t01952319667 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
414 | + | let tokenId = $t01952319667._1 | |
415 | + | let tokenStrAssetId = $t01952319667._2 | |
416 | + | let tokenAssetName = $t01952319667._3 | |
417 | + | let tokenDecimals = $t01952319667._4 | |
418 | 418 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
419 | 419 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)), 100) | |
420 | 420 | let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket)) | |
421 | 421 | let buyPriceWithComission = (buyTicketAmount * (ticketPrice + commissionPerTicket)) | |
422 | 422 | let change = (pmtAmount - buyPriceWithComission) | |
423 | 423 | if ((buyTicketAmount == 0)) | |
424 | 424 | then throw((("Not enought " + buyAssetName) + " to buy tickets")) | |
425 | 425 | else if ((change != 0)) | |
426 | 426 | then throw((((("Wrong payment. To buy " + toString(buyTicketAmount)) + "tickets you need to pay ") + toString(buyPriceWithComission)) + buyAssetName)) | |
427 | 427 | else { | |
428 | 428 | let userBoughtTicketsNumbers = valueOrElse(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCTickets)), "") | |
429 | 429 | let lastBoughtTicketNumber = getIntegerValue(this, (toString(launchpadId) + keyHCTicketLastNumber)) | |
430 | 430 | let boughtRange = ((toString((lastBoughtTicketNumber + 1)) + "-") + toString((lastBoughtTicketNumber + buyTicketAmount))) | |
431 | 431 | let newUserBoughtTicketsNumbers = (userBoughtTicketsNumbers + (if ((userBoughtTicketsNumbers != "")) | |
432 | 432 | then ("," + boughtRange) | |
433 | 433 | else ("" + boughtRange))) | |
434 | 434 | let inv = if ((buyAssetId == USDN)) | |
435 | 435 | then invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
436 | 436 | else 0 | |
437 | 437 | if ((inv == inv)) | |
438 | 438 | then { | |
439 | 439 | 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)] | |
440 | 440 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
441 | 441 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
442 | 442 | else baseEntry | |
443 | 443 | } | |
444 | 444 | else throw("Strict value is not equal to itself.") | |
445 | 445 | } | |
446 | 446 | } | |
447 | 447 | } | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | ||
451 | 451 | @Callable(i) | |
452 | 452 | func finalise (launchpadId,vrfHeight,secretWord) = { | |
453 | 453 | let savedHash = getStringValue(this, (toString(launchpadId) + keyVerifyHash)) | |
454 | 454 | let calcHash = toBase58String(sha256((toBytes(vrfHeight) + toBytes(secretWord)))) | |
455 | 455 | if (!(isActive)) | |
456 | 456 | then throw("DApp is inactive at this moment") | |
457 | 457 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
458 | 458 | then throw("Only admin can call this function") | |
459 | 459 | else if ((calcHash != savedHash)) | |
460 | 460 | then throw("vrf Height hash not matching") | |
461 | 461 | else { | |
462 | - | let $ | |
463 | - | let buyAssetId = $ | |
464 | - | let buyAssetStrId = $ | |
465 | - | let buyAssetName = $ | |
466 | - | let buyAssetDecimals = $ | |
462 | + | let $t02245222602 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
463 | + | let buyAssetId = $t02245222602._1 | |
464 | + | let buyAssetStrId = $t02245222602._2 | |
465 | + | let buyAssetName = $t02245222602._3 | |
466 | + | let buyAssetDecimals = $t02245222602._4 | |
467 | 467 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
468 | 468 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
469 | 469 | let commissionHC = getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission)) | |
470 | 470 | let transferedBuyAsset = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferBuyAsset)), 0) | |
471 | 471 | let swopfiMembersBuyAssetAmount = getIntegerValue(this, (toString(launchpadId) + keyTotalAmountBuyAssetSold)) | |
472 | 472 | let swopfiHCBuyAssetAmount = valueOrElse(getIntegerValue(this, (toString(launchpadId) + keyTotalAmountBuyAssetSoldHC)), 0) | |
473 | 473 | let swopfiMembersComission = fraction(swopfiMembersBuyAssetAmount, commission, 100) | |
474 | 474 | let swopfiHCComission = fraction(swopfiHCBuyAssetAmount, commissionHC, 100) | |
475 | 475 | let totalAmountBuyAssetInMarketing = getIntegerValue(this, (toString(launchpadId) + keyAmountBuyAssetInMarketingFinalized)) | |
476 | 476 | let marketingComission = fraction(totalAmountBuyAssetInMarketing, commission, 100) | |
477 | 477 | let unstakeAmount = (((((swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing) + swopfiMembersComission) + marketingComission) + swopfiHCBuyAssetAmount) + swopfiHCComission) | |
478 | 478 | if ((transferedBuyAsset > (swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing))) | |
479 | 479 | then throw("Can't transfer negative value to project") | |
480 | 480 | else { | |
481 | 481 | let inv = if ((buyAssetId == USDN)) | |
482 | 482 | then invoke(stakingUSDNAddress, "unlockNeutrino", [unstakeAmount, toBase58String(USDN)], nil) | |
483 | 483 | else 0 | |
484 | 484 | if ((inv == inv)) | |
485 | 485 | then [IntegerEntry((toString(launchpadId) + keyFinaliseHeight), height), ScriptTransfer(projectAddress, ((swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing) - transferedBuyAsset), buyAssetId), ScriptTransfer(commissionWallet, ((swopfiMembersComission + marketingComission) + swopfiHCComission), buyAssetId)] | |
486 | 486 | else throw("Strict value is not equal to itself.") | |
487 | 487 | } | |
488 | 488 | } | |
489 | 489 | } | |
490 | 490 | ||
491 | 491 | ||
492 | 492 | ||
493 | 493 | @Callable(i) | |
494 | 494 | func claim (launchpadId) = { | |
495 | 495 | let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false) | |
496 | 496 | let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
497 | 497 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
498 | 498 | if (!(isActive)) | |
499 | 499 | then throw("DApp is inactive at this moment") | |
500 | 500 | else if (!(isDefined(getInteger(this, (toString(launchpadId) + keyFinaliseHeight))))) | |
501 | 501 | then throw("You can't claim because results are not finalized") | |
502 | 502 | else if (userClaimStatus) | |
503 | 503 | then throw("You are already claimed") | |
504 | 504 | else if (if ((boughtTickets == 0)) | |
505 | 505 | then (boughtAllocations == 0) | |
506 | 506 | else false) | |
507 | 507 | then throw("You can't claim because you don't buy anything") | |
508 | 508 | else { | |
509 | - | let $ | |
510 | - | let buyAssetId = $ | |
511 | - | let buyAssetStrId = $ | |
512 | - | let buyAssetName = $ | |
513 | - | let buyAssetDecimals = $ | |
509 | + | let $t02546125611 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
510 | + | let buyAssetId = $t02546125611._1 | |
511 | + | let buyAssetStrId = $t02546125611._2 | |
512 | + | let buyAssetName = $t02546125611._3 | |
513 | + | let buyAssetDecimals = $t02546125611._4 | |
514 | 514 | let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0) | |
515 | 515 | let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0) | |
516 | 516 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
517 | 517 | let allowedAllocations = min([boughtAllocations, awailableAllocations]) | |
518 | 518 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
519 | 519 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
520 | - | let $ | |
521 | - | let tokenId = $ | |
522 | - | let tokenStrAssetId = $ | |
523 | - | let tokenAssetName = $ | |
524 | - | let tokenDecimals = $ | |
520 | + | let $t02625826402 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
521 | + | let tokenId = $t02625826402._1 | |
522 | + | let tokenStrAssetId = $t02625826402._2 | |
523 | + | let tokenAssetName = $t02625826402._3 | |
524 | + | let tokenDecimals = $t02625826402._4 | |
525 | 525 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
526 | 526 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
527 | 527 | let transferTokensAmount = ((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) | |
528 | 528 | let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation) | |
529 | 529 | let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
530 | 530 | let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100) | |
531 | 531 | if (if ((0 > buyAssetForAllocations)) | |
532 | 532 | then true | |
533 | 533 | else (0 > buyAssetForUnwonnedTickets)) | |
534 | 534 | then throw("Error with allowed allocation param or wonned tickets param please contact support") | |
535 | 535 | else { | |
536 | 536 | let returnedBuyAssetAmount = (buyAssetForUnwonnedTickets + buyAssetForUnwonnedTickets) | |
537 | 537 | let transferUsdn = if ((returnedBuyAssetAmount > 0)) | |
538 | 538 | then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId)] | |
539 | 539 | else nil | |
540 | 540 | let transferTokens = if ((transferTokensAmount > 0)) | |
541 | 541 | then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)] | |
542 | 542 | else nil | |
543 | 543 | let inv = if (if ((returnedBuyAssetAmount > 0)) | |
544 | 544 | then (buyAssetId == USDN) | |
545 | 545 | else false) | |
546 | 546 | then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil) | |
547 | 547 | else 0 | |
548 | 548 | if ((inv == inv)) | |
549 | 549 | then (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)] ++ transferTokens) ++ transferUsdn) | |
550 | 550 | else throw("Strict value is not equal to itself.") | |
551 | 551 | } | |
552 | 552 | } | |
553 | 553 | } | |
554 | 554 | ||
555 | 555 | ||
556 | 556 | ||
557 | 557 | @Callable(i) | |
558 | 558 | func claimFreezeToken (launchpadId) = { | |
559 | 559 | let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false) | |
560 | 560 | if (!(isActive)) | |
561 | 561 | then throw("DApp is inactive at this moment") | |
562 | 562 | else if (!(isDefined(getInteger(this, (toString(launchpadId) + keyFinaliseHeight))))) | |
563 | 563 | then throw("You can't claim because results are not finalized") | |
564 | 564 | else if (!(freezeAdditionalToken)) | |
565 | 565 | then throw("There are no additional token freezing for this launchpad") | |
566 | 566 | else { | |
567 | 567 | let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyFreezeTokenId))) | |
568 | 568 | let userTokensFreezed = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken)), 0) | |
569 | 569 | let startHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyStartHeight)), 0) | |
570 | 570 | let duration = valueOrElse(getInteger(this, (toString(launchpadId) + keyDuration)), 0) | |
571 | 571 | let freezeTokenDuration = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenDuration)) | |
572 | 572 | let blockEndHeight = ((startHeight + duration) + freezeTokenDuration) | |
573 | 573 | if ((userTokensFreezed == 0)) | |
574 | 574 | then throw("You are already claimed your tokens or not paid anything") | |
575 | 575 | else if ((blockEndHeight > height)) | |
576 | 576 | then throw(("Your tokens freezed teel " + toString(blockEndHeight))) | |
577 | 577 | else [ScriptTransfer(i.caller, userTokensFreezed, tokenId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), 0)] | |
578 | 578 | } | |
579 | 579 | } | |
580 | 580 | ||
581 | 581 | ||
582 | 582 | ||
583 | 583 | @Callable(i) | |
584 | 584 | func transferBuyAsset (launchpadId,amount) = if (!(isActive)) | |
585 | 585 | then throw("DApp is inactive") | |
586 | 586 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
587 | 587 | then throw("Only admin can call this function") | |
588 | 588 | else { | |
589 | 589 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
590 | - | let $ | |
591 | - | let buyAssetId = $ | |
592 | - | let buyAssetStrId = $ | |
593 | - | let buyAssetName = $ | |
594 | - | let buyAssetDecimals = $ | |
590 | + | let $t03007430224 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
591 | + | let buyAssetId = $t03007430224._1 | |
592 | + | let buyAssetStrId = $t03007430224._2 | |
593 | + | let buyAssetName = $t03007430224._3 | |
594 | + | let buyAssetDecimals = $t03007430224._4 | |
595 | 595 | [IntegerEntry((toString(launchpadId) + keyTransferBuyAsset), amount), ScriptTransfer(projectAddress, amount, buyAssetId)] | |
596 | 596 | } | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | ||
600 | 600 | @Callable(i) | |
601 | 601 | func shutdown () = if (!(isActive)) | |
602 | 602 | then throw("DApp already inactive") | |
603 | 603 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
604 | 604 | then throw("Only admin can call this function") | |
605 | 605 | else [BooleanEntry(keyActive, false)] | |
606 | 606 | ||
607 | 607 | ||
608 | 608 | ||
609 | 609 | @Callable(i) | |
610 | 610 | func activate () = if (isActive) | |
611 | 611 | then throw("DApp already active") | |
612 | 612 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
613 | 613 | then throw("Only admin can call this function") | |
614 | 614 | else [BooleanEntry(keyActive, true)] | |
615 | 615 | ||
616 | 616 | ||
617 | 617 | @Verifier(tx) | |
618 | 618 | func verify () = { | |
619 | 619 | let multiSignedByAdmins = { | |
620 | 620 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
621 | 621 | then 1 | |
622 | 622 | else 0 | |
623 | 623 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
624 | 624 | then 1 | |
625 | 625 | else 0 | |
626 | 626 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
627 | 627 | then 1 | |
628 | 628 | else 0 | |
629 | 629 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
630 | 630 | } | |
631 | 631 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
632 | 632 | then true | |
633 | 633 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
634 | 634 | then true | |
635 | 635 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
636 | 636 | then true | |
637 | 637 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
638 | 638 | match tx { | |
639 | 639 | case dtx: DataTransaction => | |
640 | 640 | if (valueOrElse(getBoolean(oracle, keyLaunchpadDataTransactionStatus), false)) | |
641 | 641 | then signedByAdmin | |
642 | 642 | else false | |
643 | 643 | case _ => | |
644 | 644 | multiSignedByAdmins | |
645 | 645 | } | |
646 | 646 | } | |
647 | 647 |
github/deemru/w8io/169f3d6 154.51 ms ◑