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