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