tx · DcRRXPC9An5oauLZNbBTY73FSnUZ4jvrGHERrfYqzg2k 3MwkjgDrsm5k73WJU9Nbxbx4y2iy3zjQzMi: -0.01400000 Waves 2021.10.11 15:36 [1741624] smart account 3MwkjgDrsm5k73WJU9Nbxbx4y2iy3zjQzMi > SELF 0.00000000 Waves
{ "type": 13, "id": "DcRRXPC9An5oauLZNbBTY73FSnUZ4jvrGHERrfYqzg2k", "fee": 1400000, "feeAssetId": null, "timestamp": 1633955794462, "version": 2, "chainId": 84, "sender": "3MwkjgDrsm5k73WJU9Nbxbx4y2iy3zjQzMi", "senderPublicKey": "FRotxVW1MhTQRDvVbMM4yvYGWzBFvHqvMsonvGeEXQUy", "proofs": [ "3xFm54TCwwmSv7WbQAggFHEjXdyMcXB2qf8snuGs1TWMKgd2paXQQdYedz8FsSxehdcYKxH2mUYFDsagkHYwJtLd", "4U5nFStxxu8MJeho7VL9iw5c45EZb9rR8KzEEVRpGwPcqiCaXGpXBqFhBTK68G4xeVxTGZ4WpEufy6CF1rkpcMH9" ], "script": "base64:AAIFAAAAAAAAADYIAhIECgIBCBIDCgEIEgsKCQgBAQEBAQEBARIECgIBCBIECgIBCBIFCgMBAQgSAwoBARIAEgAAAAAzAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAPa2V5QWRtaW5QdWJLZXkxAgAAAAthZG1pbl9wdWJfMQAAAAAPa2V5QWRtaW5QdWJLZXkyAgAAAAthZG1pbl9wdWJfMgAAAAAPa2V5QWRtaW5QdWJLZXkzAgAAAAthZG1pbl9wdWJfMwAAAAAha2V5TGF1bmNocGFkRGF0YVRyYW5zYWN0aW9uU3RhdHVzAgAAACFsYXVuY2hwYWRfZGF0YV90cmFuc2FjdGlvbl9zdGF0dXMAAAAAEmtleUxhdW5jaHBhZE5leHRJZAIAAAARbGF1bmNocGFkX25leHRfaWQAAAAAFGtleUxhdW5jaHBhZEFjdGl2ZUlkAgAAABNsYXVuY2hwYWRfYWN0aXZlX2lkAAAAAA1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N0aW9uU3RhdHVzBwUAAAANc2lnbmVkQnlBZG1pbgcFAAAAE211bHRpU2lnbmVkQnlBZG1pbnMNC983", "height": 1741624, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: WqEpG95zVnBWB2bdvakdjCyBDwjnhAM1tKSKdxetDnb Next: 6tm7zJc4GGydmLiJYJt5CYYCXc4veASTmeJtgCKmncu7 Diff:
Old | New | Differences | |
---|---|---|---|
151 | 151 | then throw("One attached payment expected") | |
152 | 152 | else if ((height > startHeight)) | |
153 | 153 | then throw("Start height must be greater than blockchain height") | |
154 | - | else { | |
155 | - | let $t045004573 = getAssetInfo(pmtAssetId) | |
156 | - | let pmtStrAssetId = $t045004573._1 | |
157 | - | let pmtAssetName = $t045004573._2 | |
158 | - | let pmtDecimals = $t045004573._3 | |
159 | - | let launchpadId = getLaunchpadNextId() | |
160 | - | let launchpadIdStr = toString(launchpadId) | |
154 | + | else if ((startHeight > height)) | |
155 | + | then throw("debug: startHeight > height") | |
156 | + | else { | |
157 | + | let $t045934666 = getAssetInfo(pmtAssetId) | |
158 | + | let pmtStrAssetId = $t045934666._1 | |
159 | + | let pmtAssetName = $t045934666._2 | |
160 | + | let pmtDecimals = $t045934666._3 | |
161 | + | let launchpadId = getLaunchpadNextId() | |
162 | + | let launchpadIdStr = toString(launchpadId) | |
161 | 163 | [IntegerEntry((pmtStrAssetId + "_launchpad"), launchpadId), IntegerEntry(keyLaunchpadNextId, (launchpadId + 1)), StringEntry((launchpadIdStr + keyAddress), projectAddress), IntegerEntry((launchpadIdStr + keyStartHeight), startHeight), IntegerEntry((launchpadIdStr + keyDuration), lauchpadDuration), IntegerEntry((launchpadIdStr + keyTotalTokenAmount), pmtAmount), StringEntry((launchpadIdStr + keyStatus), "active"), 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), IntegerEntry(keyLaunchpadActiveId, launchpadId), StringEntry(keyInitCaller, "")] | |
162 | - | } | |
164 | + | } | |
163 | 165 | } | |
164 | 166 | ||
165 | 167 | ||
166 | 168 | ||
167 | 169 | @Callable(i) | |
168 | 170 | func commitSwopfiSale (launchpadId,refId) = { | |
169 | - | let $ | |
170 | - | let pmtAmount = $ | |
171 | - | let pmtAssetId = $ | |
171 | + | let $t061576232 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
172 | + | let pmtAmount = $t061576232._1 | |
173 | + | let pmtAssetId = $t061576232._2 | |
172 | 174 | let stakedSwops = valueOrElse(getInteger(governance, (toString(i.caller) + keyGovernanceStaked)), 0) | |
173 | 175 | let allowedTicketsAmountAll = (stakedSwops / getIntegerValue(this, (toString(launchpadId) + keySwopPerTicket))) | |
174 | 176 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
213 | 215 | ||
214 | 216 | @Callable(i) | |
215 | 217 | func commitAccessListSale (launchpadId,refId) = { | |
216 | - | let $ | |
217 | - | let pmtAmount = $ | |
218 | - | let pmtAssetId = $ | |
218 | + | let $t091619236 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
219 | + | let pmtAmount = $t091619236._1 | |
220 | + | let pmtAssetId = $t091619236._2 | |
219 | 221 | let userUsdnInMarketing = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountUSDNInMarketing)), 0) | |
220 | 222 | let usdnInMarketing = valueOrElse(getInteger(this, (toString(launchpadId) + keyAmountUSDNInMarketing)), 0) | |
221 | 223 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) |
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 keyStartHeight = "_start_height" | |
23 | 23 | ||
24 | 24 | let keyStatus = "_status" | |
25 | 25 | ||
26 | 26 | let keyComission = "_comission" | |
27 | 27 | ||
28 | 28 | let keyAssetId = "_asset_id" | |
29 | 29 | ||
30 | 30 | let keyTotalTokenAmount = "_total_token_amount" | |
31 | 31 | ||
32 | 32 | let keyTotalAmountUsdnSold = "_total_usdn_sold" | |
33 | 33 | ||
34 | 34 | let keyTokensPerTicket = "_tokens_per_ticket" | |
35 | 35 | ||
36 | 36 | let keyPricePerToken = "_price_per_token" | |
37 | 37 | ||
38 | 38 | let keySwopPerTicket = "_swop_per_ticket" | |
39 | 39 | ||
40 | 40 | let keySwopfiTicketsAmount = "_tickets_swopfi_members" | |
41 | 41 | ||
42 | 42 | let keyCampaignTokensAmount = "_tokens_access_list" | |
43 | 43 | ||
44 | 44 | let keyTokensPerAllocation = "_tokens_per_allocation" | |
45 | 45 | ||
46 | 46 | let keyTicketLastNumber = "_ticket_last_number" | |
47 | 47 | ||
48 | 48 | let keyGovernanceStaked = "_SWOP_amount" | |
49 | 49 | ||
50 | 50 | let keyUserRefId = "_ref_id" | |
51 | 51 | ||
52 | 52 | let keyVerifyHash = "_verify_hash" | |
53 | 53 | ||
54 | 54 | let keyDuration = "_duration" | |
55 | 55 | ||
56 | 56 | let keyFinalise = "_finalse" | |
57 | 57 | ||
58 | 58 | let keyAmountUSDNInMarketing = "_total_purchased_usdn_in_marketing" | |
59 | 59 | ||
60 | 60 | let keyAmountUSDNInMarketingFinalized = "_total_purchased_usdn_in_marketing_finalized" | |
61 | 61 | ||
62 | 62 | let keyUserBoughtTicketsAmount = "_bought_tickets" | |
63 | 63 | ||
64 | 64 | let keyUserTickets = "_tickets_number" | |
65 | 65 | ||
66 | 66 | let keyUserAvailableAllocations = "_available_purchase_marketing" | |
67 | 67 | ||
68 | 68 | let keyUserAmountUSDNInMarketing = "_purchased_usdn_in_marketing" | |
69 | 69 | ||
70 | 70 | let keyUserBoughtAllocations = "_bought_allocations" | |
71 | 71 | ||
72 | 72 | let keyUserClaimStatus = "_claim_status" | |
73 | 73 | ||
74 | 74 | let keyUserWinnedTiketsAmount = "_tickets_result" | |
75 | 75 | ||
76 | 76 | let lauchpadDuration = 1440 | |
77 | 77 | ||
78 | 78 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
79 | 79 | ||
80 | 80 | let governance = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
81 | 81 | ||
82 | 82 | let commissionWallet = Address(base58'3N2hBdeDEs7wCNA9EY8qv3B6drjgKD64xQG') | |
83 | 83 | ||
84 | 84 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
85 | 85 | ||
86 | 86 | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
87 | 87 | ||
88 | 88 | let maxAllocationsAmount = 2 | |
89 | 89 | ||
90 | 90 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
91 | 91 | ||
92 | 92 | let activeLaunchpadId = valueOrElse(getIntegerValue(this, keyLaunchpadActiveId), -1) | |
93 | 93 | ||
94 | 94 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
95 | 95 | case string: String => | |
96 | 96 | fromBase58String(string) | |
97 | 97 | case nothing => | |
98 | 98 | throw("Admin public key is empty") | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
103 | 103 | ||
104 | 104 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
105 | 105 | ||
106 | 106 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
107 | 107 | ||
108 | 108 | func getAssetInfo (assetId) = match assetId { | |
109 | 109 | case id: ByteVector => | |
110 | 110 | let stringId = toBase58String(id) | |
111 | 111 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
112 | 112 | $Tuple3(stringId, info.name, info.decimals) | |
113 | 113 | case waves: Unit => | |
114 | 114 | $Tuple3("WAVES", "WAVES", 8) | |
115 | 115 | case _ => | |
116 | 116 | throw("Match error") | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getLaunchpadNextId () = valueOrElse(getInteger(this, keyLaunchpadNextId), 1) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | @Callable(i) | |
124 | 124 | func hashingRandom (launchpadId,hash) = if (!(isActive)) | |
125 | 125 | then throw("DApp is inactive at this moment") | |
126 | 126 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
127 | 127 | then throw("Only admin can call this function") | |
128 | 128 | else [StringEntry((toString(launchpadId) + keyVerifyHash), hash)] | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(i) | |
133 | 133 | func initCaller (address) = if (!(isActive)) | |
134 | 134 | then throw("DApp is inactive at this moment") | |
135 | 135 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
136 | 136 | then throw("Only admin can call this function") | |
137 | 137 | else [StringEntry(keyInitCaller, address)] | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | ||
141 | 141 | @Callable(i) | |
142 | 142 | func init (projectAddress,startHeight,commission,tokensPerTicket,pricePerToken,swopfiTicketsAmount,campaignTokensAmount,tokensPerAllocation,swopPerTicket) = { | |
143 | 143 | let $t039114072 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
144 | 144 | let pmtAmount = $t039114072._1 | |
145 | 145 | let pmtAssetId = $t039114072._2 | |
146 | 146 | if (!(isActive)) | |
147 | 147 | then throw("DApp is inactive at this moment") | |
148 | 148 | else if ((valueOrElse(getStringValue(keyInitCaller), "") == toString(i.caller))) | |
149 | 149 | then throw("Only project admin can call init function") | |
150 | 150 | else if ((size(i.payments) != 1)) | |
151 | 151 | then throw("One attached payment expected") | |
152 | 152 | else if ((height > startHeight)) | |
153 | 153 | then throw("Start height must be greater than blockchain height") | |
154 | - | else { | |
155 | - | let $t045004573 = getAssetInfo(pmtAssetId) | |
156 | - | let pmtStrAssetId = $t045004573._1 | |
157 | - | let pmtAssetName = $t045004573._2 | |
158 | - | let pmtDecimals = $t045004573._3 | |
159 | - | let launchpadId = getLaunchpadNextId() | |
160 | - | let launchpadIdStr = toString(launchpadId) | |
154 | + | else if ((startHeight > height)) | |
155 | + | then throw("debug: startHeight > height") | |
156 | + | else { | |
157 | + | let $t045934666 = getAssetInfo(pmtAssetId) | |
158 | + | let pmtStrAssetId = $t045934666._1 | |
159 | + | let pmtAssetName = $t045934666._2 | |
160 | + | let pmtDecimals = $t045934666._3 | |
161 | + | let launchpadId = getLaunchpadNextId() | |
162 | + | let launchpadIdStr = toString(launchpadId) | |
161 | 163 | [IntegerEntry((pmtStrAssetId + "_launchpad"), launchpadId), IntegerEntry(keyLaunchpadNextId, (launchpadId + 1)), StringEntry((launchpadIdStr + keyAddress), projectAddress), IntegerEntry((launchpadIdStr + keyStartHeight), startHeight), IntegerEntry((launchpadIdStr + keyDuration), lauchpadDuration), IntegerEntry((launchpadIdStr + keyTotalTokenAmount), pmtAmount), StringEntry((launchpadIdStr + keyStatus), "active"), 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), IntegerEntry(keyLaunchpadActiveId, launchpadId), StringEntry(keyInitCaller, "")] | |
162 | - | } | |
164 | + | } | |
163 | 165 | } | |
164 | 166 | ||
165 | 167 | ||
166 | 168 | ||
167 | 169 | @Callable(i) | |
168 | 170 | func commitSwopfiSale (launchpadId,refId) = { | |
169 | - | let $ | |
170 | - | let pmtAmount = $ | |
171 | - | let pmtAssetId = $ | |
171 | + | let $t061576232 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
172 | + | let pmtAmount = $t061576232._1 | |
173 | + | let pmtAssetId = $t061576232._2 | |
172 | 174 | let stakedSwops = valueOrElse(getInteger(governance, (toString(i.caller) + keyGovernanceStaked)), 0) | |
173 | 175 | let allowedTicketsAmountAll = (stakedSwops / getIntegerValue(this, (toString(launchpadId) + keySwopPerTicket))) | |
174 | 176 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
175 | 177 | let commissionInUSDN = fraction(pmtAmount, commission, 100) | |
176 | 178 | let boughtTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
177 | 179 | let allowedTicketsAmount = (allowedTicketsAmountAll - boughtTicketsAmount) | |
178 | 180 | if (!(isActive)) | |
179 | 181 | then throw("DApp is inactive at this moment") | |
180 | 182 | else if ((activeLaunchpadId != launchpadId)) | |
181 | 183 | then throw("There is no active launchpad or this launchpad is ended") | |
182 | 184 | else if (if ((size(i.payments) != 1)) | |
183 | 185 | then true | |
184 | 186 | else (pmtAssetId != USDN)) | |
185 | 187 | then throw("One attached payment in USDN expected") | |
186 | 188 | else if (if ((0 >= allowedTicketsAmountAll)) | |
187 | 189 | then true | |
188 | 190 | else (0 >= allowedTicketsAmount)) | |
189 | 191 | then throw("Not enought SWOP in staking to buy tickets") | |
190 | 192 | else { | |
191 | 193 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
192 | 194 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
193 | 195 | let ticketPrice = (tokensPerTicket * tokenPrice) | |
194 | 196 | let buyTicketAmount = ((pmtAmount - commissionInUSDN) / ticketPrice) | |
195 | 197 | let allowedBuyTicketAmount = min([buyTicketAmount, allowedTicketsAmount]) | |
196 | 198 | let allowedBuyPrice = (allowedBuyTicketAmount * ticketPrice) | |
197 | 199 | let allowedBuyPriceWithComission = (allowedBuyPrice + fraction(allowedBuyPrice, commission, 100)) | |
198 | 200 | let change = (pmtAmount - allowedBuyPriceWithComission) | |
199 | 201 | let userBoughtTicketsNumbers = valueOrElse(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserTickets)), "") | |
200 | 202 | let lastBoughtTickerNumber = getIntegerValue(this, (toString(launchpadId) + keyTicketLastNumber)) | |
201 | 203 | let boughtRange = ((toString((lastBoughtTickerNumber + 1)) + "-") + toString((lastBoughtTickerNumber + allowedBuyTicketAmount))) | |
202 | 204 | let newUserBoughtTicketsNumbers = (userBoughtTicketsNumbers + (if ((userBoughtTicketsNumbers != "")) | |
203 | 205 | then "," | |
204 | 206 | else ("" + boughtRange))) | |
205 | 207 | let baseEntry = [StringEntry(((toString(i.caller) + toString(launchpadId)) + keyUserRefId), refId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount), (boughtTicketsAmount + allowedBuyTicketAmount)), IntegerEntry((toString(launchpadId) + keyTicketLastNumber), (lastBoughtTickerNumber + allowedBuyTicketAmount)), StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserTickets), newUserBoughtTicketsNumbers)] | |
206 | 208 | if ((change > 0)) | |
207 | 209 | then (baseEntry ++ [ScriptTransfer(i.caller, change, pmtAssetId)]) | |
208 | 210 | else baseEntry | |
209 | 211 | } | |
210 | 212 | } | |
211 | 213 | ||
212 | 214 | ||
213 | 215 | ||
214 | 216 | @Callable(i) | |
215 | 217 | func commitAccessListSale (launchpadId,refId) = { | |
216 | - | let $ | |
217 | - | let pmtAmount = $ | |
218 | - | let pmtAssetId = $ | |
218 | + | let $t091619236 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
219 | + | let pmtAmount = $t091619236._1 | |
220 | + | let pmtAssetId = $t091619236._2 | |
219 | 221 | let userUsdnInMarketing = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountUSDNInMarketing)), 0) | |
220 | 222 | let usdnInMarketing = valueOrElse(getInteger(this, (toString(launchpadId) + keyAmountUSDNInMarketing)), 0) | |
221 | 223 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
222 | 224 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
223 | 225 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
224 | 226 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
225 | 227 | let allocationPrice = (tokenPrice * tokensPerAllocation) | |
226 | 228 | let allocationPriceWithComission = (allocationPrice + fraction(allocationPrice, commission, 100)) | |
227 | 229 | if (!(isActive)) | |
228 | 230 | then throw("DApp is inactive at this moment") | |
229 | 231 | else if ((activeLaunchpadId != launchpadId)) | |
230 | 232 | then throw("There is no active launchpad or this launchpad is ended") | |
231 | 233 | else if (if ((size(i.payments) != 1)) | |
232 | 234 | then true | |
233 | 235 | else (pmtAssetId != USDN)) | |
234 | 236 | then throw("One attached payment in USDN expected") | |
235 | 237 | else if ((boughtAllocations >= maxAllocationsAmount)) | |
236 | 238 | then throw((("You can buy only " + toString(maxAllocationsAmount)) + "allocations")) | |
237 | 239 | else if (if ((allocationPriceWithComission != pmtAmount)) | |
238 | 240 | then ((allocationPriceWithComission * 2) != pmtAmount) | |
239 | 241 | else false) | |
240 | 242 | then throw((("Wrong payment. You can buy 1 or 2 allocations for " + toString((allocationPriceWithComission / 1000000))) + " USDN per allocation")) | |
241 | 243 | else { | |
242 | 244 | let buyAllocationsAmount = (pmtAmount / allocationPriceWithComission) | |
243 | 245 | [StringEntry(((toString(i.caller) + toString(launchpadId)) + keyUserRefId), refId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations), (boughtAllocations + buyAllocationsAmount)), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountUSDNInMarketing), (userUsdnInMarketing + pmtAmount)), IntegerEntry((toString(launchpadId) + keyAmountUSDNInMarketing), (usdnInMarketing + pmtAmount))] | |
244 | 246 | } | |
245 | 247 | } | |
246 | 248 | ||
247 | 249 | ||
248 | 250 | ||
249 | 251 | @Callable(i) | |
250 | 252 | func finalise (launchpadId,vrfHeight,secretWord) = { | |
251 | 253 | let savedHash = getStringValue(this, (toString(launchpadId) + keyVerifyHash)) | |
252 | 254 | let calcHash = toBase58String(sha256((toBytes(vrfHeight) + toBytes(secretWord)))) | |
253 | 255 | if (!(isActive)) | |
254 | 256 | then throw("DApp is inactive at this moment") | |
255 | 257 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
256 | 258 | then throw("Only admin can call this function") | |
257 | 259 | else if ((calcHash != savedHash)) | |
258 | 260 | then throw("vrf Height hash not matching") | |
259 | 261 | else { | |
260 | 262 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
261 | 263 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
262 | 264 | let swopfiMembersUsdnAmount = getIntegerValue(this, (toString(launchpadId) + keyTotalAmountUsdnSold)) | |
263 | 265 | let swopfiMembersComission = fraction(swopfiMembersUsdnAmount, commission, 100) | |
264 | 266 | let totalAmountUsdnInMarketing = getIntegerValue(this, (toString(launchpadId) + keyAmountUSDNInMarketingFinalized)) | |
265 | 267 | let marketingComission = fraction(totalAmountUsdnInMarketing, commission, 100) | |
266 | 268 | [BooleanEntry((toString(launchpadId) + keyFinalise), true), ScriptTransfer(projectAddress, (swopfiMembersUsdnAmount + totalAmountUsdnInMarketing), USDN), ScriptTransfer(commissionWallet, (swopfiMembersComission + marketingComission), USDN)] | |
267 | 269 | } | |
268 | 270 | } | |
269 | 271 | ||
270 | 272 | ||
271 | 273 | ||
272 | 274 | @Callable(i) | |
273 | 275 | func claim (launchpadId) = { | |
274 | 276 | let userClaimStatus = getBooleanValue(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)) | |
275 | 277 | let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
276 | 278 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
277 | 279 | if (!(isActive)) | |
278 | 280 | then throw("DApp is inactive at this moment") | |
279 | 281 | else if (userClaimStatus) | |
280 | 282 | then throw("You are already claimed") | |
281 | 283 | else if (if ((boughtTickets == 0)) | |
282 | 284 | then (boughtAllocations == 0) | |
283 | 285 | else false) | |
284 | 286 | then throw("You can't claim because you don't buy enething") | |
285 | 287 | else { | |
286 | 288 | let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
287 | 289 | let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTiketsAmount)), 0) | |
288 | 290 | let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0) | |
289 | 291 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
290 | 292 | let allowedAllocations = min([boughtAllocations, awailableAllocations]) | |
291 | 293 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
292 | 294 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
293 | 295 | let ticketPrice = (tokensPerTicket * tokenPrice) | |
294 | 296 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
295 | 297 | let transferTokensAmount = ((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) | |
296 | 298 | let usdnForAllocations = fraction((boughtAllocations - allowedAllocations), (100 + commission), 100) | |
297 | 299 | let usdnForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100) | |
298 | 300 | let returnedUsdnAmount = (usdnForAllocations + usdnForUnwonnedTickets) | |
299 | 301 | let transferUsdn = if ((returnedUsdnAmount > 0)) | |
300 | 302 | then [ScriptTransfer(i.caller, returnedUsdnAmount, USDN)] | |
301 | 303 | else nil | |
302 | 304 | let transferTokens = if ((transferTokensAmount > 0)) | |
303 | 305 | then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)] | |
304 | 306 | else nil | |
305 | 307 | (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)] ++ transferTokens) ++ transferUsdn) | |
306 | 308 | } | |
307 | 309 | } | |
308 | 310 | ||
309 | 311 | ||
310 | 312 | ||
311 | 313 | @Callable(i) | |
312 | 314 | func shutdown () = if (!(isActive)) | |
313 | 315 | then throw("DApp alredy inactive") | |
314 | 316 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
315 | 317 | then throw("Only admin can call this function") | |
316 | 318 | else [BooleanEntry(keyActive, false)] | |
317 | 319 | ||
318 | 320 | ||
319 | 321 | ||
320 | 322 | @Callable(i) | |
321 | 323 | func activate () = if (isActive) | |
322 | 324 | then throw("DApp alredy active") | |
323 | 325 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
324 | 326 | then throw("Only admin can call this function") | |
325 | 327 | else [BooleanEntry(keyActive, true)] | |
326 | 328 | ||
327 | 329 | ||
328 | 330 | @Verifier(tx) | |
329 | 331 | func verify () = { | |
330 | 332 | let multiSignedByAdmins = { | |
331 | 333 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
332 | 334 | then 1 | |
333 | 335 | else 0 | |
334 | 336 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
335 | 337 | then 1 | |
336 | 338 | else 0 | |
337 | 339 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
338 | 340 | then 1 | |
339 | 341 | else 0 | |
340 | 342 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
341 | 343 | } | |
342 | 344 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
343 | 345 | then true | |
344 | 346 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
345 | 347 | then true | |
346 | 348 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
347 | 349 | then true | |
348 | 350 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
349 | 351 | match tx { | |
350 | 352 | case dtx: DataTransaction => | |
351 | 353 | if (valueOrElse(getBoolean(oracle, keyLaunchpadDataTransactionStatus), false)) | |
352 | 354 | then signedByAdmin | |
353 | 355 | else false | |
354 | 356 | case _ => | |
355 | 357 | multiSignedByAdmins | |
356 | 358 | } | |
357 | 359 | } | |
358 | 360 |
github/deemru/w8io/169f3d6 73.61 ms ◑