tx · BaH64fDeNGdLZ1SqfFrfDdTs4gHaytNDdvg9HooKch7T

3MzDGFvPnXVbA4wCacqcVnfVJPwG952KVAg:  -0.01400000 Waves

2022.01.31 23:57 [1903623] smart account 3MzDGFvPnXVbA4wCacqcVnfVJPwG952KVAg > SELF 0.00000000 Waves

{ "type": 13, "id": "BaH64fDeNGdLZ1SqfFrfDdTs4gHaytNDdvg9HooKch7T", "fee": 1400000, "feeAssetId": null, "timestamp": 1643662632822, "version": 2, "chainId": 84, "sender": "3MzDGFvPnXVbA4wCacqcVnfVJPwG952KVAg", "senderPublicKey": "CViCXhHrygDDAtVc1uFczxe6ANj9tBz5PGQDS1yWZqgy", "proofs": [ "2oRFsLiyVGRTapLKKKsnRfS6zZAsM3kxH6cuERS9ces9xHcgij1v89h4zvpZaMAFwsxkAb5gvd7z3mradz48hY2c", "2bx3MxdTHFop9RFXWRGtDnzx6mSm8EKKCh8gCdLCkSxrBqnhLXTZYL3MRUxS1PFZKes2yHbnxxt1cCymT91xsFSj" ], "script": "base64:AAIFAAAAAAAAAD4IAhIECgIBCBIDCgEIEhQKEggBAQgBAQEBAQEBARgEAQEEGBIFCgMBAQgSAwoBARIDCgEBEgQKAgEBEgASAAAAAEoAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAA9rZXlBZG1pblB1YktleTECAAAAC2FkbWluX3B1Yl8xAAAAAA9rZXlBZG1pblB1YktleTICAAAAC2FkbWluX3B1Yl8yAAAAAA9rZXlBZG1pblB1YktleTMCAAAAC2FkbWluX3B1Yl8zAAAAACFrZXlMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMCAAAAIWxhdW5jaHBhZF9kYXRhX3RyYW5zYWN0aW9uX3N0YXR1cwAAAAASa2V5TGF1bmNocGFkTmV4dElkAgAAABFsYXVuY2hwYWRfbmV4dF9pZAAAAAAUa2V5TGF1bmNocGFkQWN0aXZlSWQCAAAAE2xhdW5jaHBhZF9hY3RpdmVfaWQAAAAADWtleUlu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V5MVNpZ25lZAUAAAASYWRtaW5QdWJLZXkyU2lnbmVkBQAAABJhZG1pblB1YktleTNTaWduZWQAAAAAAAAAAAIEAAAADXNpZ25lZEJ5QWRtaW4DAwMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTEGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkyBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MwYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABJhZG1pblB1YktleVN0YWtpbmcEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAA2R0eAUAAAAHJG1hdGNoMAMJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAGb3JhY2xlBQAAACFrZXlMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMHBQAAAA1zaWduZWRCeUFkbWluBwUAAAATbXVsdGlTaWduZWRCeUFkbWlucwWoHqc=", "height": 1903623, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DZNJFuK6zD8TuFN7M5hWtthFyY2jLkaNdYj3M7yhS84v Next: 5RofsqUgwjdLnYx266Y4D3nAt3Uw3Ts4R4pUbkdRBGRa Diff:
OldNewDifferences
260260
261261 @Callable(i)
262262 func claim (launchpadId) = valueOrElse(isActive(), {
263- let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0)
264- let boughtHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0)
265- let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0)
266- let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false)
267- let finalizeHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)), 0)
268263 let testtt = value(getString(this, (toString(launchpadId) + keyBuyToken)))
269- if ((finalizeHeight == 0))
270- then throw("You can't claim because results are not finalized")
271- else if (userClaimStatus)
272- then throw("You are already claimed")
273- else if (if (if (if ((boughtTickets == 0))
274- then (boughtAllocations == 0)
275- else false)
276- then (boughtHCTickets == 0)
277- else false)
278- then (testtt == "empty")
279- else false)
280- then throw("You can't claim because you don't buy anything")
281- else {
282- let $t01278612936 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
283- let buyAssetId = $t01278612936._1
284- let buyAssetStrId = $t01278612936._2
285- let buyAssetName = $t01278612936._3
286- let buyAssetDecimals = $t01278612936._4
287- let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0)
288- let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0)
289- let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0)
290- let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
291- let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0)
292- let allowedAllocations = min([boughtAllocations, awailableAllocations])
293- let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken))
294- let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket))
295- let $t01385213996 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId)))
296- let tokenId = $t01385213996._1
297- let tokenStrAssetId = $t01385213996._2
298- let tokenAssetName = $t01385213996._3
299- let tokenDecimals = $t01385213996._4
300- let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN))
301- let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation))
302- let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket))
303- let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation)
304- let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100)
305- let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100)
306- let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100)
307- let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0)
308- if (if (if ((0 > buyAssetForAllocations))
309- then true
310- else (0 > buyAssetForUnwonnedTickets))
311- then true
312- else (0 > buyAssetForHCUnwonnedTickets))
313- then throw("Error with allowed allocation param or wonned tickets param please contact support")
264+ if ((testtt == "empty"))
265+ then throw("You can't claim because you don't buy anything")
266+ else {
267+ let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0)
268+ let boughtHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0)
269+ let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0)
270+ let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false)
271+ let finalizeHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)), 0)
272+ if ((finalizeHeight == 0))
273+ then throw("You can't claim because results are not finalized")
274+ else if (userClaimStatus)
275+ then throw("You are already claimed")
276+ else if (if (if ((boughtTickets == 0))
277+ then (boughtAllocations == 0)
278+ else false)
279+ then (boughtHCTickets == 0)
280+ else false)
281+ then throw("You can't claim because you don't buy anything")
314282 else {
315- let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken)
316- let transferBuyAsset = if ((returnedBuyAssetAmount > 0))
317- then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)]
318- else nil
319- let inv = if (if ((returnedBuyAssetAmount > 0))
320- then (buyAssetId == USDN)
321- else false)
322- then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil)
323- else 0
324- if ((inv == inv))
325- then {
326- let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), ""), ",")
327- if (if ((size(claimedParams) == 0))
328- then true
329- else (claimedParams[0] == "claimAll"))
283+ let $t01287713027 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
284+ let buyAssetId = $t01287713027._1
285+ let buyAssetStrId = $t01287713027._2
286+ let buyAssetName = $t01287713027._3
287+ let buyAssetDecimals = $t01287713027._4
288+ let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0)
289+ let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0)
290+ let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0)
291+ let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
292+ let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0)
293+ let allowedAllocations = min([boughtAllocations, awailableAllocations])
294+ let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken))
295+ let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket))
296+ let $t01394314087 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId)))
297+ let tokenId = $t01394314087._1
298+ let tokenStrAssetId = $t01394314087._2
299+ let tokenAssetName = $t01394314087._3
300+ let tokenDecimals = $t01394314087._4
301+ let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN))
302+ let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation))
303+ let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket))
304+ let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation)
305+ let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100)
306+ let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100)
307+ let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100)
308+ let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0)
309+ if (if (if ((0 > buyAssetForAllocations))
310+ then true
311+ else (0 > buyAssetForUnwonnedTickets))
312+ then true
313+ else (0 > buyAssetForHCUnwonnedTickets))
314+ then throw("Error with allowed allocation param or wonned tickets param please contact support")
315+ else {
316+ let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken)
317+ let transferBuyAsset = if ((returnedBuyAssetAmount > 0))
318+ then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)]
319+ else nil
320+ let inv = if (if ((returnedBuyAssetAmount > 0))
321+ then (buyAssetId == USDN)
322+ else false)
323+ then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil)
324+ else 0
325+ if ((inv == inv))
330326 then {
331- let transferTokens = if ((transferTokensAmount > 0))
332- then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)]
333- else nil
334- (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset)
327+ let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), ""), ",")
328+ if (if ((size(claimedParams) == 0))
329+ then true
330+ else (claimedParams[0] == "claimAll"))
331+ then {
332+ let transferTokens = if ((transferTokensAmount > 0))
333+ then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)]
334+ else nil
335+ (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset)
336+ }
337+ else if ((claimedParams[0] == "claimPeriod"))
338+ then {
339+ let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0)
340+ let unlockPeriod = value(parseInt(claimedParams[2]))
341+ let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight)
342+ let unlockHeight = (unlockPeriod + blockHeight)
343+ let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100)
344+ let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight))
345+ then (fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod) - claimedTokens)
346+ else (0 - claimedTokens)))
347+ let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount)))
348+ then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)]
349+ else nil
350+ if (if ((allowedTokensAmount > 0))
351+ then true
352+ else (returnedBuyAssetAmount > 0))
353+ then {
354+ let transferTokens = if ((allowedTokensAmount > 0))
355+ then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)]
356+ else nil
357+ (transferBuyAsset ++ transferTokens)
358+ }
359+ else throw("Nothing to claim")
360+ }
361+ else throw("Unknown claim function")
335362 }
336- else if ((claimedParams[0] == "claimPeriod"))
337- then {
338- let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0)
339- let unlockPeriod = value(parseInt(claimedParams[2]))
340- let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight)
341- let unlockHeight = (unlockPeriod + blockHeight)
342- let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100)
343- let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight))
344- then (fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod) - claimedTokens)
345- else (0 - claimedTokens)))
346- let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount)))
347- then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)]
348- else nil
349- if (if ((allowedTokensAmount > 0))
350- then true
351- else (returnedBuyAssetAmount > 0))
352- then {
353- let transferTokens = if ((allowedTokensAmount > 0))
354- then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)]
355- else nil
356- (transferBuyAsset ++ transferTokens)
357- }
358- else throw("Nothing to claim")
359- }
360- else throw("Unknown claim function")
363+ else throw("Strict value is not equal to itself.")
361364 }
362- else throw("Strict value is not equal to itself.")
363365 }
364- }
366+ }
365367 })
366368
367369
393395 @Callable(i)
394396 func transferBuyAsset (launchpadId,amount) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
395397 let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress)))
396- let $t02020220352 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
397- let buyAssetId = $t02020220352._1
398- let buyAssetStrId = $t02020220352._2
399- let buyAssetName = $t02020220352._3
400- let buyAssetDecimals = $t02020220352._4
398+ let $t02029320443 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
399+ let buyAssetId = $t02029320443._1
400+ let buyAssetStrId = $t02029320443._2
401+ let buyAssetName = $t02029320443._3
402+ let buyAssetDecimals = $t02029320443._4
401403 [IntegerEntry((toString(launchpadId) + keyTransferBuyAsset), amount), ScriptTransfer(projectAddress, amount, buyAssetId)]
402404 }))
403405
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let keyActive = "active"
55
66 let keyAdminPubKey1 = "admin_pub_1"
77
88 let keyAdminPubKey2 = "admin_pub_2"
99
1010 let keyAdminPubKey3 = "admin_pub_3"
1111
1212 let keyLaunchpadDataTransactionStatus = "launchpad_data_transaction_status"
1313
1414 let keyLaunchpadNextId = "launchpad_next_id"
1515
1616 let keyLaunchpadActiveId = "launchpad_active_id"
1717
1818 let keyInitCaller = "init_caller"
1919
2020 let keyAddress = "_address"
2121
2222 let keyInitHeight = "_init_height"
2323
2424 let keyStartHeight = "_start_height"
2525
2626 let keyFinaliseHeight = "_finalise_height"
2727
2828 let keyComission = "_comission"
2929
3030 let keyAssetId = "_asset_id"
3131
3232 let keyTotalTokenAmount = "_total_token_amount"
3333
3434 let keyTotalAmountBuyAssetSold = "_total_buy_asset_sold"
3535
3636 let keyTokensPerTicket = "_tokens_per_ticket"
3737
3838 let keyPricePerToken = "_price_per_token"
3939
4040 let keySwopPerTicket = "_swop_per_ticket"
4141
4242 let keySwopfiTicketsAmount = "_tickets_swopfi_members"
4343
4444 let keyCampaignTokensAmount = "_tokens_access_list"
4545
4646 let keyTokensPerAllocation = "_tokens_per_allocation"
4747
4848 let keyTicketLastNumber = "_ticket_last_number"
4949
5050 let keyGovernanceStaked = "_SWOP_amount"
5151
5252 let keyUserRefId = "_ref_id"
5353
5454 let keyVerifyHash = "_verify_hash"
5555
5656 let keyDuration = "_duration"
5757
5858 let keyAmountBuyAssetInMarketing = "_total_purchased_buy_asset_in_marketing"
5959
6060 let keyAmountBuyAssetInMarketingFinalized = "_total_purchased_buy_asset_in_marketing_finalized"
6161
6262 let keyTransferBuyAsset = "_transfer_buy_asset"
6363
6464 let keyFreezSwopDuration = "_freeze_swop_duration"
6565
6666 let keyFreezeAdditionalToken = "_freeze_additional_token"
6767
6868 let keyFreezeTokenId = "_freeze_token_id"
6969
7070 let keyFreezeTokenDuration = "_freeze_token_duration"
7171
7272 let keyFreezeTokenPerTicket = "_freeze_token_per_ticket"
7373
7474 let keyBuyToken = "_buy_token"
7575
7676 let keyClaimParams = "_claim_params"
7777
7878 let keyHighCompetitionComission = "_high_competition_comission"
7979
8080 let keyHighCompetitionSale = "_high_competition_sale"
8181
8282 let keyHCTicketLastNumber = "_high_competition_ticket_last_number"
8383
8484 let keyHighCompetitionAmount = "_tickets_high_competition"
8585
8686 let keyTotalAmountBuyAssetSoldHC = "_total_buy_asset_sold_high_competition"
8787
8888 let keyUserClaimedTokens = "_claimed_tokens"
8989
9090 let keyUserClaimedBuyTokens = "_claimed_buy_tokens"
9191
9292 let keyUserBoughtTicketsAmount = "_bought_tickets"
9393
9494 let keyUserTickets = "_tickets_number"
9595
9696 let keyUserHCTickets = "_tickets_number_high_competition"
9797
9898 let keyUserHCBoughtTicketsAmount = "_bought_tickets_high_competition"
9999
100100 let keyUserAvailableAllocations = "_available_purchase_marketing"
101101
102102 let keyUserAmountBuyAssetInMarketing = "_purchased_buy_asset_in_marketing"
103103
104104 let keyUserBoughtAllocations = "_bought_allocations"
105105
106106 let keyUserClaimStatus = "_claim_status"
107107
108108 let keyUserWinnedTicketsAmount = "_tickets_result"
109109
110110 let keyUserWinnedHighCompetitionTicketsAmount = "_tickets_result_high_competition"
111111
112112 let keyUserFreezeToken = "_freeze_token_amount"
113113
114114 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
115115
116116 let governance = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
117117
118118 let commissionWallet = Address(base58'3N2hBdeDEs7wCNA9EY8qv3B6drjgKD64xQG')
119119
120120 let stakingUSDNAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
121121
122122 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
123123
124124 let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
125125
126126 let maxAllocationsAmount = 2
127127
128128 let activeLaunchpadId = valueOrElse(getIntegerValue(this, keyLaunchpadActiveId), -1)
129129
130130 func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
131131 case string: String =>
132132 fromBase58String(string)
133133 case nothing =>
134134 throw("Admin public key is empty")
135135 }
136136
137137
138138 let adminPubKey1 = getAdminPub(keyAdminPubKey1)
139139
140140 let adminPubKey2 = getAdminPub(keyAdminPubKey2)
141141
142142 let adminPubKey3 = getAdminPub(keyAdminPubKey3)
143143
144144 func getAssetInfo (assetId) = match assetId {
145145 case id: ByteVector =>
146146 let stringId = toBase58String(id)
147147 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
148148 $Tuple3(stringId, info.name, info.decimals)
149149 case waves: Unit =>
150150 $Tuple3("WAVES", "WAVES", 8)
151151 case _ =>
152152 throw("Match error")
153153 }
154154
155155
156156 func getLaunchpadNextId () = valueOrElse(getInteger(this, keyLaunchpadNextId), 1)
157157
158158
159159 func stakedUsdnAmount () = valueOrElse(getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))), 0)
160160
161161
162162 let active = valueOrElse(getBoolean(this, keyActive), true)
163163
164164 func isActive () = if (active)
165165 then unit
166166 else throw("DApp is inactive at this moment")
167167
168168
169169 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
170170 then unit
171171 else throw("Only admin can call this function")
172172
173173
174174 func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES"))
175175 then $Tuple4(unit, "WAVES", "WAVES", 8)
176176 else {
177177 let stringId = assetStr
178178 let assetId = valueOrElse(fromBase58String(assetStr), USDN)
179179 let info = valueOrErrorMessage(assetInfo(assetId), (("Asset " + stringId) + " doesn't exist"))
180180 $Tuple4(assetId, stringId, info.name, info.decimals)
181181 }
182182
183183
184184 @Callable(i)
185185 func hashingRandom (launchpadId,hash) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [StringEntry((toString(launchpadId) + keyVerifyHash), hash)]))
186186
187187
188188
189189 @Callable(i)
190190 func initCaller (address) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [StringEntry(keyInitCaller, address)]))
191191
192192
193193
194194 @Callable(i)
195195 func init (projectAddress,startHeight,duration,buyToken,commission,tokensPerTicket,pricePerToken,swopfiTicketsAmount,campaignTokensAmount,tokensPerAllocation,swopPerTicket,swopFreezeDuration,claimParams,HighCompetitionSale,highCompetitionComission,highCompetitionTicketsAmount,freezeAdditionalToken,freezeParams) = valueOrElse(isActive(), if ((toString(i.caller) != valueOrElse(getString(this, keyInitCaller), "")))
196196 then throw("Only project admin can call init function")
197197 else if ((size(i.payments) != 1))
198198 then throw("One attached payment expected")
199199 else if ((height > startHeight))
200200 then throw("Start height must be greater than blockchain height")
201201 else if (if (freezeAdditionalToken)
202202 then (size(freezeParams) != 3)
203203 else false)
204204 then throw("Freeze params list must have 3 items")
205205 else {
206206 let launchpadId = getLaunchpadNextId()
207207 let launchpadIdStr = toString(launchpadId)
208208 let $t064356510 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
209209 let pmtAmount = $t064356510._1
210210 let pmtAssetId = $t064356510._2
211211 let $t065196592 = getAssetInfo(pmtAssetId)
212212 let pmtStrAssetId = $t065196592._1
213213 let pmtAssetName = $t065196592._2
214214 let pmtDecimals = $t065196592._3
215215 let freezeAdditionalEntry = if (freezeAdditionalToken)
216216 then [BooleanEntry((launchpadIdStr + keyFreezeAdditionalToken), true), StringEntry((launchpadIdStr + keyFreezeTokenId), freezeParams[0]), IntegerEntry((launchpadIdStr + keyFreezeTokenDuration), parseIntValue(freezeParams[1])), IntegerEntry((launchpadIdStr + keyFreezeTokenPerTicket), parseIntValue(freezeParams[2]))]
217217 else nil
218218 ([IntegerEntry((pmtStrAssetId + "_launchpad"), launchpadId), IntegerEntry(keyLaunchpadNextId, (launchpadId + 1)), StringEntry((launchpadIdStr + keyAddress), projectAddress), IntegerEntry((launchpadIdStr + keyInitHeight), height), IntegerEntry((launchpadIdStr + keyStartHeight), startHeight), IntegerEntry((launchpadIdStr + keyDuration), duration), StringEntry((launchpadIdStr + keyBuyToken), buyToken), IntegerEntry((launchpadIdStr + keyFreezSwopDuration), swopFreezeDuration), IntegerEntry((launchpadIdStr + keyTotalTokenAmount), pmtAmount), StringEntry((launchpadIdStr + keyAssetId), pmtStrAssetId), IntegerEntry((launchpadIdStr + keyComission), commission), IntegerEntry((launchpadIdStr + keyTicketLastNumber), 0), IntegerEntry((launchpadIdStr + keyHCTicketLastNumber), 0), IntegerEntry((launchpadIdStr + keyTokensPerTicket), tokensPerTicket), IntegerEntry((launchpadIdStr + keyPricePerToken), pricePerToken), IntegerEntry((launchpadIdStr + keySwopPerTicket), swopPerTicket), IntegerEntry((launchpadIdStr + keySwopfiTicketsAmount), swopfiTicketsAmount), IntegerEntry((launchpadIdStr + keyCampaignTokensAmount), campaignTokensAmount), IntegerEntry((launchpadIdStr + keyTokensPerAllocation), tokensPerAllocation), StringEntry((launchpadIdStr + keyClaimParams), makeString(claimParams, ",")), BooleanEntry((launchpadIdStr + keyHighCompetitionSale), HighCompetitionSale), IntegerEntry((launchpadIdStr + keyHighCompetitionComission), highCompetitionComission), IntegerEntry((launchpadIdStr + keyHighCompetitionAmount), highCompetitionTicketsAmount), IntegerEntry(keyLaunchpadActiveId, launchpadId), StringEntry(keyInitCaller, "")] ++ freezeAdditionalEntry)
219219 })
220220
221221
222222
223223 @Callable(i)
224224 func finalise (launchpadId,vrfHeight,secretWord) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
225225 let savedHash = getStringValue(this, (toString(launchpadId) + keyVerifyHash))
226226 let calcHash = toBase58String(sha256((toBytes(vrfHeight) + toBytes(secretWord))))
227227 if ((calcHash != savedHash))
228228 then throw("vrf Height hash not matching")
229229 else {
230230 let $t094989648 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
231231 let buyAssetId = $t094989648._1
232232 let buyAssetStrId = $t094989648._2
233233 let buyAssetName = $t094989648._3
234234 let buyAssetDecimals = $t094989648._4
235235 let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress)))
236236 let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
237237 let commissionHC = getIntegerValue(this, (toString(launchpadId) + keyHighCompetitionComission))
238238 let transferedBuyAsset = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferBuyAsset)), 0)
239239 let swopfiMembersBuyAssetAmount = getIntegerValue(this, (toString(launchpadId) + keyTotalAmountBuyAssetSold))
240240 let swopfiHCBuyAssetAmount = valueOrElse(getIntegerValue(this, (toString(launchpadId) + keyTotalAmountBuyAssetSoldHC)), 0)
241241 let swopfiMembersComission = fraction(swopfiMembersBuyAssetAmount, commission, 100)
242242 let swopfiHCComission = fraction(swopfiHCBuyAssetAmount, commissionHC, 100)
243243 let totalAmountBuyAssetInMarketing = getIntegerValue(this, (toString(launchpadId) + keyAmountBuyAssetInMarketingFinalized))
244244 let marketingComission = fraction(totalAmountBuyAssetInMarketing, commission, 100)
245245 let unstakeAmount = (((((swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing) + swopfiMembersComission) + marketingComission) + swopfiHCBuyAssetAmount) + swopfiHCComission)
246246 if ((transferedBuyAsset > (swopfiMembersBuyAssetAmount + totalAmountBuyAssetInMarketing)))
247247 then throw("Can't transfer negative value to project")
248248 else {
249249 let inv = if ((buyAssetId == USDN))
250250 then invoke(stakingUSDNAddress, "unlockNeutrino", [unstakeAmount, toBase58String(USDN)], nil)
251251 else 0
252252 if ((inv == inv))
253253 then [IntegerEntry((toString(launchpadId) + keyFinaliseHeight), height), ScriptTransfer(projectAddress, (((swopfiMembersBuyAssetAmount + swopfiHCBuyAssetAmount) + totalAmountBuyAssetInMarketing) - transferedBuyAsset), buyAssetId), ScriptTransfer(commissionWallet, ((swopfiMembersComission + marketingComission) + swopfiHCComission), buyAssetId)]
254254 else throw("Strict value is not equal to itself.")
255255 }
256256 }
257257 }))
258258
259259
260260
261261 @Callable(i)
262262 func claim (launchpadId) = valueOrElse(isActive(), {
263- let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0)
264- let boughtHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0)
265- let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0)
266- let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false)
267- let finalizeHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)), 0)
268263 let testtt = value(getString(this, (toString(launchpadId) + keyBuyToken)))
269- if ((finalizeHeight == 0))
270- then throw("You can't claim because results are not finalized")
271- else if (userClaimStatus)
272- then throw("You are already claimed")
273- else if (if (if (if ((boughtTickets == 0))
274- then (boughtAllocations == 0)
275- else false)
276- then (boughtHCTickets == 0)
277- else false)
278- then (testtt == "empty")
279- else false)
280- then throw("You can't claim because you don't buy anything")
281- else {
282- let $t01278612936 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
283- let buyAssetId = $t01278612936._1
284- let buyAssetStrId = $t01278612936._2
285- let buyAssetName = $t01278612936._3
286- let buyAssetDecimals = $t01278612936._4
287- let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0)
288- let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0)
289- let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0)
290- let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
291- let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0)
292- let allowedAllocations = min([boughtAllocations, awailableAllocations])
293- let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken))
294- let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket))
295- let $t01385213996 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId)))
296- let tokenId = $t01385213996._1
297- let tokenStrAssetId = $t01385213996._2
298- let tokenAssetName = $t01385213996._3
299- let tokenDecimals = $t01385213996._4
300- let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN))
301- let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation))
302- let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket))
303- let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation)
304- let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100)
305- let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100)
306- let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100)
307- let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0)
308- if (if (if ((0 > buyAssetForAllocations))
309- then true
310- else (0 > buyAssetForUnwonnedTickets))
311- then true
312- else (0 > buyAssetForHCUnwonnedTickets))
313- then throw("Error with allowed allocation param or wonned tickets param please contact support")
264+ if ((testtt == "empty"))
265+ then throw("You can't claim because you don't buy anything")
266+ else {
267+ let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0)
268+ let boughtHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0)
269+ let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0)
270+ let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false)
271+ let finalizeHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)), 0)
272+ if ((finalizeHeight == 0))
273+ then throw("You can't claim because results are not finalized")
274+ else if (userClaimStatus)
275+ then throw("You are already claimed")
276+ else if (if (if ((boughtTickets == 0))
277+ then (boughtAllocations == 0)
278+ else false)
279+ then (boughtHCTickets == 0)
280+ else false)
281+ then throw("You can't claim because you don't buy anything")
314282 else {
315- let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken)
316- let transferBuyAsset = if ((returnedBuyAssetAmount > 0))
317- then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)]
318- else nil
319- let inv = if (if ((returnedBuyAssetAmount > 0))
320- then (buyAssetId == USDN)
321- else false)
322- then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil)
323- else 0
324- if ((inv == inv))
325- then {
326- let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), ""), ",")
327- if (if ((size(claimedParams) == 0))
328- then true
329- else (claimedParams[0] == "claimAll"))
283+ let $t01287713027 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
284+ let buyAssetId = $t01287713027._1
285+ let buyAssetStrId = $t01287713027._2
286+ let buyAssetName = $t01287713027._3
287+ let buyAssetDecimals = $t01287713027._4
288+ let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0)
289+ let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0)
290+ let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0)
291+ let commission = getIntegerValue(this, (toString(launchpadId) + keyComission))
292+ let commissionHC = valueOrElse(getInteger(this, (toString(launchpadId) + keyHighCompetitionComission)), 0)
293+ let allowedAllocations = min([boughtAllocations, awailableAllocations])
294+ let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken))
295+ let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket))
296+ let $t01394314087 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId)))
297+ let tokenId = $t01394314087._1
298+ let tokenStrAssetId = $t01394314087._2
299+ let tokenAssetName = $t01394314087._3
300+ let tokenDecimals = $t01394314087._4
301+ let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN))
302+ let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation))
303+ let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket))
304+ let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation)
305+ let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100)
306+ let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100)
307+ let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commissionHC), 100)
308+ let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0)
309+ if (if (if ((0 > buyAssetForAllocations))
310+ then true
311+ else (0 > buyAssetForUnwonnedTickets))
312+ then true
313+ else (0 > buyAssetForHCUnwonnedTickets))
314+ then throw("Error with allowed allocation param or wonned tickets param please contact support")
315+ else {
316+ let returnedBuyAssetAmount = (((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) + buyAssetForAllocations) - claimedBuyToken)
317+ let transferBuyAsset = if ((returnedBuyAssetAmount > 0))
318+ then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)]
319+ else nil
320+ let inv = if (if ((returnedBuyAssetAmount > 0))
321+ then (buyAssetId == USDN)
322+ else false)
323+ then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil)
324+ else 0
325+ if ((inv == inv))
330326 then {
331- let transferTokens = if ((transferTokensAmount > 0))
332- then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)]
333- else nil
334- (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset)
327+ let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), ""), ",")
328+ if (if ((size(claimedParams) == 0))
329+ then true
330+ else (claimedParams[0] == "claimAll"))
331+ then {
332+ let transferTokens = if ((transferTokensAmount > 0))
333+ then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)]
334+ else nil
335+ (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset)
336+ }
337+ else if ((claimedParams[0] == "claimPeriod"))
338+ then {
339+ let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0)
340+ let unlockPeriod = value(parseInt(claimedParams[2]))
341+ let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight)
342+ let unlockHeight = (unlockPeriod + blockHeight)
343+ let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100)
344+ let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight))
345+ then (fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod) - claimedTokens)
346+ else (0 - claimedTokens)))
347+ let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount)))
348+ then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)]
349+ else nil
350+ if (if ((allowedTokensAmount > 0))
351+ then true
352+ else (returnedBuyAssetAmount > 0))
353+ then {
354+ let transferTokens = if ((allowedTokensAmount > 0))
355+ then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)]
356+ else nil
357+ (transferBuyAsset ++ transferTokens)
358+ }
359+ else throw("Nothing to claim")
360+ }
361+ else throw("Unknown claim function")
335362 }
336- else if ((claimedParams[0] == "claimPeriod"))
337- then {
338- let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0)
339- let unlockPeriod = value(parseInt(claimedParams[2]))
340- let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight)
341- let unlockHeight = (unlockPeriod + blockHeight)
342- let allowedStartAmount = fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100)
343- let allowedTokensAmount = (allowedStartAmount + (if ((height > blockHeight))
344- then (fraction((transferTokensAmount - allowedStartAmount), (min([height, unlockHeight]) - blockHeight), unlockPeriod) - claimedTokens)
345- else (0 - claimedTokens)))
346- let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount)))
347- then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)]
348- else nil
349- if (if ((allowedTokensAmount > 0))
350- then true
351- else (returnedBuyAssetAmount > 0))
352- then {
353- let transferTokens = if ((allowedTokensAmount > 0))
354- then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)]
355- else nil
356- (transferBuyAsset ++ transferTokens)
357- }
358- else throw("Nothing to claim")
359- }
360- else throw("Unknown claim function")
363+ else throw("Strict value is not equal to itself.")
361364 }
362- else throw("Strict value is not equal to itself.")
363365 }
364- }
366+ }
365367 })
366368
367369
368370
369371 @Callable(i)
370372 func claimFreezeToken (launchpadId) = valueOrElse(isActive(), {
371373 let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false)
372374 if (!(isDefined(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)))))
373375 then throw("You can't claim because results are not finalized")
374376 else if (!(freezeAdditionalToken))
375377 then throw("There are no additional token freezing for this launchpad")
376378 else {
377379 let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)))
378380 let userTokensFreezed = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken)), 0)
379381 let startHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyStartHeight)), 0)
380382 let duration = valueOrElse(getInteger(this, (toString(launchpadId) + keyDuration)), 0)
381383 let freezeTokenDuration = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenDuration))
382384 let blockEndHeight = ((startHeight + duration) + freezeTokenDuration)
383385 if ((userTokensFreezed == 0))
384386 then throw("You are already claimed your tokens or not paid anything")
385387 else if ((blockEndHeight > height))
386388 then throw(("Your tokens freezed teel " + toString(blockEndHeight)))
387389 else [ScriptTransfer(i.caller, userTokensFreezed, tokenId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), 0)]
388390 }
389391 })
390392
391393
392394
393395 @Callable(i)
394396 func transferBuyAsset (launchpadId,amount) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
395397 let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress)))
396- let $t02020220352 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
397- let buyAssetId = $t02020220352._1
398- let buyAssetStrId = $t02020220352._2
399- let buyAssetName = $t02020220352._3
400- let buyAssetDecimals = $t02020220352._4
398+ let $t02029320443 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken))))
399+ let buyAssetId = $t02029320443._1
400+ let buyAssetStrId = $t02029320443._2
401+ let buyAssetName = $t02029320443._3
402+ let buyAssetDecimals = $t02029320443._4
401403 [IntegerEntry((toString(launchpadId) + keyTransferBuyAsset), amount), ScriptTransfer(projectAddress, amount, buyAssetId)]
402404 }))
403405
404406
405407
406408 @Callable(i)
407409 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
408410 then throw("DApp already inactive")
409411 else [BooleanEntry(keyActive, false)])
410412
411413
412414
413415 @Callable(i)
414416 func activate () = valueOrElse(isAdminCall(i), if (active)
415417 then throw("DApp already active")
416418 else [BooleanEntry(keyActive, true)])
417419
418420
419421 @Verifier(tx)
420422 func verify () = {
421423 let multiSignedByAdmins = {
422424 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
423425 then 1
424426 else 0
425427 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
426428 then 1
427429 else 0
428430 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
429431 then 1
430432 else 0
431433 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
432434 }
433435 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
434436 then true
435437 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
436438 then true
437439 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
438440 then true
439441 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking)
440442 match tx {
441443 case dtx: DataTransaction =>
442444 if (valueOrElse(getBoolean(oracle, keyLaunchpadDataTransactionStatus), false))
443445 then signedByAdmin
444446 else false
445447 case _ =>
446448 multiSignedByAdmins
447449 }
448450 }
449451

github/deemru/w8io/026f985 
76.65 ms