tx · B4Sp6GZSovJ8Y6RHqkHnGdA47WXgRSGjQoNgqjSfUZvB 3N6FpEuUHmeNdCqw6zrsG1sWUiYxcgt3Fi8: -0.01400000 Waves 2022.01.20 14:57 [1887213] smart account 3N6FpEuUHmeNdCqw6zrsG1sWUiYxcgt3Fi8 > SELF 0.00000000 Waves
{ "type": 13, "id": "B4Sp6GZSovJ8Y6RHqkHnGdA47WXgRSGjQoNgqjSfUZvB", "fee": 1400000, "feeAssetId": null, "timestamp": 1642679865604, "version": 2, "chainId": 84, "sender": "3N6FpEuUHmeNdCqw6zrsG1sWUiYxcgt3Fi8", "senderPublicKey": "91tSEeeFTcTDm7hrj7TW55MhxabX8j5DhiNrCDwwZ7D1", "proofs": [ "5Vz7KBAfAPTi7MaUxq6Lk889yWMBxppqgPAguue6dpe5JWHUh8kFcLRr9rTFv1UTC4FoZ1oPa9Qi14kR5213PRwP", "22aKNDQ3z4TPW9eFkWWcnuwUgqaatrV7Qzcjn8VZqcNimUPxxeSYpzZEL7af5aC3iXfEjVKFXoaR8ZrBNL2fijRG" ], "script": "base64:AAIFAAAAAAAAAEQIAhIECgIBCBIDCgEIEg4KDAgBAQEBAQEBAQEEGBIECgIBCBIECgIBCBIFCgMBAQgSAwoBARIDCgEBEgQKAgEBEgASAAAAADwAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAA9rZXlBZG1pblB1YktleTECAAAAC2FkbWluX3B1Yl8xAAAAAA9rZXlBZG1pblB1YktleTICAAAAC2FkbWluX3B1Yl8yAAAAAA9rZXlBZG1pblB1YktleTMCAAAAC2FkbWluX3B1Yl8zAAAAACFrZXlMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMCAAAAIWxhdW5jaHBhZF9kYXRhX3RyYW5zYWN0aW9uX3N0YXR1cwAAAAASa2V5TGF1bmNocGFkTmV4dElkAgAAABFsYXVuY2hwYWRfbmV4dF9pZAAAAAAUa2V5TGF1bmNocGFkQWN0aXZlSWQCAAAAE2x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B9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTMGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAASYWRtaW5QdWJLZXlTdGFraW5nBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAANkdHgFAAAAByRtYXRjaDADCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABm9yYWNsZQUAAAAha2V5TGF1bmNocGFkRGF0YVRyYW5zYWN0aW9uU3RhdHVzBwUAAAANc2lnbmVkQnlBZG1pbgcFAAAAE211bHRpU2lnbmVkQnlBZG1pbnNol9vl", "height": 1887213, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C7U7z5EC2UnovnacNwcfudffPKVFKnTAGtBdq217Dkr3 Next: EuJYYTKqHMkM4Rd1WzQ6nvR6YmE5QCtYAwRJXSaEytNE Full:
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 keyTotalAmountUsdnSold = "_total_usdn_sold" | |
35 | 35 | ||
36 | 36 | let keyTokensPerTicket = "_tokens_per_ticket" | |
37 | 37 | ||
38 | 38 | let keyPricePerToken = "_price_per_token" | |
39 | 39 | ||
40 | 40 | let keySwopPerTicket = "_swop_per_ticket" | |
41 | 41 | ||
42 | 42 | let keySwopfiTicketsAmount = "_tickets_swopfi_members" | |
43 | 43 | ||
44 | 44 | let keyCampaignTokensAmount = "_tokens_access_list" | |
45 | 45 | ||
46 | 46 | let keyTokensPerAllocation = "_tokens_per_allocation" | |
47 | 47 | ||
48 | 48 | let keyTicketLastNumber = "_ticket_last_number" | |
49 | 49 | ||
50 | 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 keyAmountUSDNInMarketing = "_total_purchased_usdn_in_marketing" | |
59 | 59 | ||
60 | 60 | let keyAmountUSDNInMarketingFinalized = "_total_purchased_usdn_in_marketing_finalized" | |
61 | 61 | ||
62 | 62 | let keyTransferUsd = "_transfer_usd" | |
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 keyUserBoughtTicketsAmount = "_bought_tickets" | |
75 | 75 | ||
76 | 76 | let keyUserTickets = "_tickets_number" | |
77 | 77 | ||
78 | 78 | let keyUserAvailableAllocations = "_available_purchase_marketing" | |
79 | 79 | ||
80 | 80 | let keyUserAmountUSDNInMarketing = "_purchased_usdn_in_marketing" | |
81 | 81 | ||
82 | 82 | let keyUserBoughtAllocations = "_bought_allocations" | |
83 | 83 | ||
84 | 84 | let keyUserClaimStatus = "_claim_status" | |
85 | 85 | ||
86 | 86 | let keyUserWinnedTicketsAmount = "_tickets_result" | |
87 | 87 | ||
88 | 88 | let keyUserFreezeToken = "_freeze_token_amount" | |
89 | 89 | ||
90 | 90 | let lauchpadDuration = 10000 | |
91 | 91 | ||
92 | 92 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
93 | 93 | ||
94 | 94 | let governance = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
95 | 95 | ||
96 | 96 | let commissionWallet = Address(base58'3N2hBdeDEs7wCNA9EY8qv3B6drjgKD64xQG') | |
97 | 97 | ||
98 | 98 | let stakingUSDNAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
99 | 99 | ||
100 | 100 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
101 | 101 | ||
102 | 102 | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
103 | 103 | ||
104 | 104 | let maxAllocationsAmount = 2 | |
105 | 105 | ||
106 | 106 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
107 | 107 | ||
108 | 108 | let activeLaunchpadId = valueOrElse(getIntegerValue(this, keyLaunchpadActiveId), -1) | |
109 | 109 | ||
110 | 110 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
111 | 111 | case string: String => | |
112 | 112 | fromBase58String(string) | |
113 | 113 | case nothing => | |
114 | 114 | throw("Admin public key is empty") | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
119 | 119 | ||
120 | 120 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
121 | 121 | ||
122 | 122 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
123 | 123 | ||
124 | 124 | func getAssetInfo (assetId) = match assetId { | |
125 | 125 | case id: ByteVector => | |
126 | 126 | let stringId = toBase58String(id) | |
127 | 127 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
128 | 128 | $Tuple3(stringId, info.name, info.decimals) | |
129 | 129 | case waves: Unit => | |
130 | 130 | $Tuple3("WAVES", "WAVES", 8) | |
131 | 131 | case _ => | |
132 | 132 | throw("Match error") | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func getLaunchpadNextId () = valueOrElse(getInteger(this, keyLaunchpadNextId), 1) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func stakedUsdnAmount () = valueOrElse(getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))), 0) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(i) | |
143 | 143 | func hashingRandom (launchpadId,hash) = if (!(isActive)) | |
144 | 144 | then throw("DApp is inactive at this moment") | |
145 | 145 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
146 | 146 | then throw("Only admin can call this function") | |
147 | 147 | else [StringEntry((toString(launchpadId) + keyVerifyHash), hash)] | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | ||
151 | 151 | @Callable(i) | |
152 | 152 | func initCaller (address) = if (!(isActive)) | |
153 | 153 | then throw("DApp is inactive at this moment") | |
154 | 154 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
155 | 155 | then throw("Only admin can call this function") | |
156 | 156 | else [StringEntry(keyInitCaller, address)] | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | ||
160 | 160 | @Callable(i) | |
161 | 161 | func init (projectAddress,startHeight,commission,tokensPerTicket,pricePerToken,swopfiTicketsAmount,campaignTokensAmount,tokensPerAllocation,swopPerTicket,swopFreezeDuration,freezeAdditionalToken,freezeParams) = if (!(isActive)) | |
162 | 162 | then throw("DApp is inactive at this moment") | |
163 | 163 | else if ((toString(i.caller) != valueOrElse(getString(this, keyInitCaller), ""))) | |
164 | 164 | then throw("Only project admin can call init function") | |
165 | 165 | else if ((size(i.payments) != 1)) | |
166 | 166 | then throw("One attached payment expected") | |
167 | 167 | else if ((height > startHeight)) | |
168 | 168 | then throw("Start height must be greater than blockchain height") | |
169 | 169 | else if (if (freezeAdditionalToken) | |
170 | 170 | then (size(freezeParams) != 3) | |
171 | 171 | else false) | |
172 | 172 | then throw("Freeze params list must have 3 items") | |
173 | 173 | else { | |
174 | 174 | let launchpadId = getLaunchpadNextId() | |
175 | 175 | let launchpadIdStr = toString(launchpadId) | |
176 | 176 | let $t053095384 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
177 | 177 | let pmtAmount = $t053095384._1 | |
178 | 178 | let pmtAssetId = $t053095384._2 | |
179 | 179 | let $t053935466 = getAssetInfo(pmtAssetId) | |
180 | 180 | let pmtStrAssetId = $t053935466._1 | |
181 | 181 | let pmtAssetName = $t053935466._2 | |
182 | 182 | let pmtDecimals = $t053935466._3 | |
183 | 183 | let freezeAdditionalEntry = if (freezeAdditionalToken) | |
184 | 184 | then [BooleanEntry((launchpadIdStr + keyFreezeAdditionalToken), true), StringEntry((launchpadIdStr + keyFreezeTokenId), freezeParams[0]), IntegerEntry((launchpadIdStr + keyFreezeTokenDuration), parseIntValue(freezeParams[1])), IntegerEntry((launchpadIdStr + keyFreezeTokenPerTicket), parseIntValue(freezeParams[2]))] | |
185 | 185 | else nil | |
186 | 186 | ([IntegerEntry((pmtStrAssetId + "_launchpad"), launchpadId), IntegerEntry(keyLaunchpadNextId, (launchpadId + 1)), StringEntry((launchpadIdStr + keyAddress), projectAddress), IntegerEntry((launchpadIdStr + keyInitHeight), height), IntegerEntry((launchpadIdStr + keyStartHeight), startHeight), IntegerEntry((launchpadIdStr + keyDuration), lauchpadDuration), 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), IntegerEntry(keyLaunchpadActiveId, launchpadId), StringEntry(keyInitCaller, "")] ++ freezeAdditionalEntry) | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | ||
191 | 191 | @Callable(i) | |
192 | 192 | func commitSwopfiSale (launchpadId,refId) = { | |
193 | 193 | let $t075377612 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
194 | 194 | let pmtAmount = $t075377612._1 | |
195 | 195 | let pmtAssetId = $t075377612._2 | |
196 | 196 | let stakedSwops = valueOrElse(getInteger(governance, (toString(i.caller) + keyGovernanceStaked)), 0) | |
197 | 197 | let allowedTicketsAmountAll = (stakedSwops / getIntegerValue(this, (toString(launchpadId) + keySwopPerTicket))) | |
198 | 198 | let boughtTicketsAmount = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
199 | 199 | let allowedTicketsAmount = (allowedTicketsAmountAll - boughtTicketsAmount) | |
200 | 200 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
201 | 201 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
202 | 202 | let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false) | |
203 | 203 | if (!(isActive)) | |
204 | 204 | then throw("DApp is inactive at this moment") | |
205 | 205 | else if ((activeLaunchpadId != launchpadId)) | |
206 | 206 | then throw("There is no active launchpad or this launchpad is ended") | |
207 | 207 | else if ((startHeight > height)) | |
208 | 208 | then throw("Launchpad sale not started yet") | |
209 | 209 | else if ((height > (startHeight + duration))) | |
210 | 210 | then throw("Launchpad sale ended") | |
211 | 211 | else if (if (!(freezeAdditionalToken)) | |
212 | 212 | then if ((size(i.payments) != 1)) | |
213 | 213 | then true | |
214 | 214 | else (pmtAssetId != USDN) | |
215 | 215 | else false) | |
216 | 216 | then throw("One attached payment in USDN expected") | |
217 | 217 | else if (if (freezeAdditionalToken) | |
218 | 218 | then if ((size(i.payments) != 2)) | |
219 | 219 | then true | |
220 | 220 | else (pmtAssetId != USDN) | |
221 | 221 | else false) | |
222 | 222 | then { | |
223 | 223 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
224 | 224 | throw(("Two attached payments expected: First in USDN, second in " + freezeTokenId)) | |
225 | 225 | } | |
226 | 226 | else if (if ((0 >= allowedTicketsAmountAll)) | |
227 | 227 | then true | |
228 | 228 | else (0 >= allowedTicketsAmount)) | |
229 | 229 | then throw("Not enought SWOP in staking to buy tickets") | |
230 | 230 | else { | |
231 | 231 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
232 | 232 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
233 | 233 | let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
234 | 234 | let $t095549630 = getAssetInfo(tokenId) | |
235 | 235 | let tokenStrAssetId = $t095549630._1 | |
236 | 236 | let tokenAssetName = $t095549630._2 | |
237 | 237 | let tokenDecimals = $t095549630._3 | |
238 | 238 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
239 | 239 | let commissionPerTicket = fraction(ticketPrice, getIntegerValue(this, (toString(launchpadId) + keyComission)), 100) | |
240 | 240 | let buyTicketAmount = (pmtAmount / (ticketPrice + commissionPerTicket)) | |
241 | 241 | let allowedBuyTicketAmount = min([buyTicketAmount, allowedTicketsAmount]) | |
242 | 242 | let allowedBuyPriceWithComission = (allowedBuyTicketAmount * (ticketPrice + commissionPerTicket)) | |
243 | 243 | let change = (pmtAmount - allowedBuyPriceWithComission) | |
244 | 244 | if ((buyTicketAmount == 0)) | |
245 | 245 | then throw("Not enought USDN to buy tickets") | |
246 | 246 | else if ((change != 0)) | |
247 | 247 | then throw((((("Wrong payment. To buy " + toString(allowedBuyTicketAmount)) + "tickets you need to pay ") + toString(allowedBuyPriceWithComission)) + "USDN")) | |
248 | 248 | else { | |
249 | 249 | let freezeAdditionalEntry = if (freezeAdditionalToken) | |
250 | 250 | then { | |
251 | 251 | let freezeTokenId = getStringValue(this, (toString(launchpadId) + keyFreezeTokenId)) | |
252 | 252 | let freezeTokenPerTicket = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenPerTicket)) | |
253 | 253 | let $t01077210859 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
254 | 254 | let pmtAmountFreeze = $t01077210859._1 | |
255 | 255 | let pmtAssetIdFreeze = $t01077210859._2 | |
256 | 256 | let $t01087610967 = getAssetInfo(pmtAssetId) | |
257 | 257 | let pmtFreezeStrAssetId = $t01087610967._1 | |
258 | 258 | let pmtFreezeAssetName = $t01087610967._2 | |
259 | 259 | let pmtFreezeDecimals = $t01087610967._3 | |
260 | 260 | let needFreezeTokens = (freezeTokenPerTicket * buyTicketAmount) | |
261 | 261 | if (if ((pmtFreezeStrAssetId != freezeTokenId)) | |
262 | 262 | then true | |
263 | 263 | else (needFreezeTokens != pmtAmountFreeze)) | |
264 | 264 | then throw((((("You need to add " + toString(needFreezeTokens)) + " ") + pmtFreezeAssetName) + " as a second payment")) | |
265 | 265 | else [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), pmtAmountFreeze)] | |
266 | 266 | } | |
267 | 267 | else nil | |
268 | 268 | let userBoughtTicketsNumbers = valueOrElse(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserTickets)), "") | |
269 | 269 | let lastBoughtTicketNumber = getIntegerValue(this, (toString(launchpadId) + keyTicketLastNumber)) | |
270 | 270 | let boughtRange = ((toString((lastBoughtTicketNumber + 1)) + "-") + toString((lastBoughtTicketNumber + allowedBuyTicketAmount))) | |
271 | 271 | let newUserBoughtTicketsNumbers = (userBoughtTicketsNumbers + (if ((userBoughtTicketsNumbers != "")) | |
272 | 272 | then ("," + boughtRange) | |
273 | 273 | else ("" + boughtRange))) | |
274 | 274 | let inv = invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
275 | 275 | if ((inv == inv)) | |
276 | 276 | then { | |
277 | 277 | 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) | |
278 | 278 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
279 | 279 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
280 | 280 | else baseEntry | |
281 | 281 | } | |
282 | 282 | else throw("Strict value is not equal to itself.") | |
283 | 283 | } | |
284 | 284 | } | |
285 | 285 | } | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | ||
289 | 289 | @Callable(i) | |
290 | 290 | func commitAccessListSale (launchpadId,refId) = { | |
291 | 291 | let $t01295413029 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
292 | 292 | let pmtAmount = $t01295413029._1 | |
293 | 293 | let pmtAssetId = $t01295413029._2 | |
294 | 294 | let userUsdnInMarketing = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountUSDNInMarketing)), 0) | |
295 | 295 | let usdnInMarketing = valueOrElse(getInteger(this, (toString(launchpadId) + keyAmountUSDNInMarketing)), 0) | |
296 | 296 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
297 | 297 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
298 | 298 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
299 | 299 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
300 | 300 | let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
301 | 301 | let $t01378413860 = getAssetInfo(tokenId) | |
302 | 302 | let tokenStrAssetId = $t01378413860._1 | |
303 | 303 | let tokenAssetName = $t01378413860._2 | |
304 | 304 | let tokenDecimals = $t01378413860._3 | |
305 | 305 | let allocationPriceWithComission = fraction(fraction(tokenPrice, tokensPerAllocation, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
306 | 306 | let startHeight = value(getInteger(this, (toString(launchpadId) + keyStartHeight))) | |
307 | 307 | let duration = value(getInteger(this, (toString(launchpadId) + keyDuration))) | |
308 | 308 | if (!(isActive)) | |
309 | 309 | then throw("DApp is inactive at this moment") | |
310 | 310 | else if ((activeLaunchpadId != launchpadId)) | |
311 | 311 | then throw("There is no active launchpad or this launchpad is ended") | |
312 | 312 | else if ((startHeight > height)) | |
313 | 313 | then throw("Launchpad sale not started yet") | |
314 | 314 | else if ((height > (startHeight + duration))) | |
315 | 315 | then throw("Launchpad sale ended") | |
316 | 316 | else if (if ((size(i.payments) != 1)) | |
317 | 317 | then true | |
318 | 318 | else (pmtAssetId != USDN)) | |
319 | 319 | then throw("One attached payment in USDN expected") | |
320 | 320 | else if ((boughtAllocations >= maxAllocationsAmount)) | |
321 | 321 | then throw((("You can buy only " + toString(maxAllocationsAmount)) + "allocations")) | |
322 | 322 | else if (if ((allocationPriceWithComission != pmtAmount)) | |
323 | 323 | then ((allocationPriceWithComission * 2) != pmtAmount) | |
324 | 324 | else false) | |
325 | 325 | then throw((("Wrong payment. You can buy 1 or 2 allocations for " + toString(allocationPriceWithComission)) + " USDN per allocation")) | |
326 | 326 | else { | |
327 | 327 | let buyAllocationsAmount = (pmtAmount / allocationPriceWithComission) | |
328 | 328 | let inv = invoke(stakingUSDNAddress, "lockNeutrino", nil, [AttachedPayment(pmtAssetId, pmtAmount)]) | |
329 | 329 | if ((inv == inv)) | |
330 | 330 | then { | |
331 | 331 | let baseEntry = [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations), (boughtAllocations + buyAllocationsAmount)), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAmountUSDNInMarketing), (userUsdnInMarketing + pmtAmount)), IntegerEntry((toString(launchpadId) + keyAmountUSDNInMarketing), (usdnInMarketing + pmtAmount))] | |
332 | 332 | if (!(isDefined(getString(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId))))) | |
333 | 333 | then (baseEntry ++ [StringEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserRefId), refId)]) | |
334 | 334 | else baseEntry | |
335 | 335 | } | |
336 | 336 | else throw("Strict value is not equal to itself.") | |
337 | 337 | } | |
338 | 338 | } | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | ||
342 | 342 | @Callable(i) | |
343 | 343 | func finalise (launchpadId,vrfHeight,secretWord) = { | |
344 | 344 | let savedHash = getStringValue(this, (toString(launchpadId) + keyVerifyHash)) | |
345 | 345 | let calcHash = toBase58String(sha256((toBytes(vrfHeight) + toBytes(secretWord)))) | |
346 | 346 | if (!(isActive)) | |
347 | 347 | then throw("DApp is inactive at this moment") | |
348 | 348 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
349 | 349 | then throw("Only admin can call this function") | |
350 | 350 | else if ((calcHash != savedHash)) | |
351 | 351 | then throw("vrf Height hash not matching") | |
352 | 352 | else { | |
353 | 353 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
354 | 354 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
355 | 355 | let transferedUsdn = valueOrElse(getInteger(this, (toString(launchpadId) + keyTransferUsd)), 0) | |
356 | 356 | let swopfiMembersUsdnAmount = getIntegerValue(this, (toString(launchpadId) + keyTotalAmountUsdnSold)) | |
357 | 357 | let swopfiMembersComission = fraction(swopfiMembersUsdnAmount, commission, 100) | |
358 | 358 | let totalAmountUsdnInMarketing = getIntegerValue(this, (toString(launchpadId) + keyAmountUSDNInMarketingFinalized)) | |
359 | 359 | let marketingComission = fraction(totalAmountUsdnInMarketing, commission, 100) | |
360 | 360 | let unstakeAmount = (((swopfiMembersUsdnAmount + totalAmountUsdnInMarketing) + swopfiMembersComission) + marketingComission) | |
361 | 361 | if ((transferedUsdn > (swopfiMembersUsdnAmount + totalAmountUsdnInMarketing))) | |
362 | 362 | then throw("Can't transfer negative value to project") | |
363 | 363 | else { | |
364 | 364 | let inv = invoke(stakingUSDNAddress, "unlockNeutrino", [unstakeAmount, toBase58String(USDN)], nil) | |
365 | 365 | if ((inv == inv)) | |
366 | 366 | then [IntegerEntry((toString(launchpadId) + keyFinaliseHeight), height), ScriptTransfer(projectAddress, ((swopfiMembersUsdnAmount + totalAmountUsdnInMarketing) - transferedUsdn), USDN), ScriptTransfer(commissionWallet, (swopfiMembersComission + marketingComission), USDN)] | |
367 | 367 | else throw("Strict value is not equal to itself.") | |
368 | 368 | } | |
369 | 369 | } | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | ||
374 | 374 | @Callable(i) | |
375 | 375 | func claim (launchpadId) = { | |
376 | 376 | let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false) | |
377 | 377 | let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
378 | 378 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
379 | 379 | if (!(isActive)) | |
380 | 380 | then throw("DApp is inactive at this moment") | |
381 | 381 | else if (!(isDefined(getInteger(this, (toString(launchpadId) + keyFinaliseHeight))))) | |
382 | 382 | then throw("You can't claim because results are not finalized") | |
383 | 383 | else if (userClaimStatus) | |
384 | 384 | then throw("You are already claimed") | |
385 | 385 | else if (if ((boughtTickets == 0)) | |
386 | 386 | then (boughtAllocations == 0) | |
387 | 387 | else false) | |
388 | 388 | then throw("You can't claim because you don't buy anything") | |
389 | 389 | else { | |
390 | 390 | let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
391 | 391 | let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0) | |
392 | 392 | let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0) | |
393 | 393 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
394 | 394 | let allowedAllocations = min([boughtAllocations, awailableAllocations]) | |
395 | 395 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
396 | 396 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
397 | 397 | let $t01963419710 = getAssetInfo(tokenId) | |
398 | 398 | let tokenStrAssetId = $t01963419710._1 | |
399 | 399 | let tokenAssetName = $t01963419710._2 | |
400 | 400 | let tokenDecimals = $t01963419710._3 | |
401 | 401 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
402 | 402 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
403 | 403 | let transferTokensAmount = ((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) | |
404 | 404 | let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation) | |
405 | 405 | let usdnForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
406 | 406 | let usdnForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100) | |
407 | 407 | if (if ((0 > usdnForAllocations)) | |
408 | 408 | then true | |
409 | 409 | else (0 > usdnForUnwonnedTickets)) | |
410 | 410 | then throw("Error with allowed allocation param or wonned tickets param please contact support") | |
411 | 411 | else { | |
412 | 412 | let returnedUsdnAmount = (usdnForAllocations + usdnForUnwonnedTickets) | |
413 | 413 | let transferUsdn = if ((returnedUsdnAmount > 0)) | |
414 | 414 | then [ScriptTransfer(i.caller, returnedUsdnAmount, USDN)] | |
415 | 415 | else nil | |
416 | 416 | let transferTokens = if ((transferTokensAmount > 0)) | |
417 | 417 | then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)] | |
418 | 418 | else nil | |
419 | 419 | let inv = if ((returnedUsdnAmount > 0)) | |
420 | 420 | then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedUsdnAmount, toBase58String(USDN)], nil) | |
421 | 421 | else 0 | |
422 | 422 | if ((inv == inv)) | |
423 | 423 | then (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)] ++ transferTokens) ++ transferUsdn) | |
424 | 424 | else throw("Strict value is not equal to itself.") | |
425 | 425 | } | |
426 | 426 | } | |
427 | 427 | } | |
428 | 428 | ||
429 | 429 | ||
430 | 430 | ||
431 | 431 | @Callable(i) | |
432 | 432 | func claimFreezeToken (launchpadId) = { | |
433 | 433 | let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false) | |
434 | 434 | if (!(isActive)) | |
435 | 435 | then throw("DApp is inactive at this moment") | |
436 | 436 | else if (!(isDefined(getInteger(this, (toString(launchpadId) + keyFinaliseHeight))))) | |
437 | 437 | then throw("You can't claim because results are not finalized") | |
438 | 438 | else if (!(freezeAdditionalToken)) | |
439 | 439 | then throw("There are no additional token freezing for this launchpad") | |
440 | 440 | else { | |
441 | 441 | let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyFreezeTokenId))) | |
442 | 442 | let userTokensFreezed = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken)), 0) | |
443 | 443 | let startHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyStartHeight)), 0) | |
444 | 444 | let duration = valueOrElse(getInteger(this, (toString(launchpadId) + keyDuration)), 0) | |
445 | 445 | let freezeTokenDuration = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenDuration)) | |
446 | 446 | let blockEndHeight = ((startHeight + duration) + freezeTokenDuration) | |
447 | 447 | if ((userTokensFreezed == 0)) | |
448 | 448 | then throw("You are already claimed your tokens or not paid anything") | |
449 | 449 | else if ((blockEndHeight > height)) | |
450 | 450 | then throw(("Your tokens freezed teel " + toString(blockEndHeight))) | |
451 | 451 | else [ScriptTransfer(i.caller, userTokensFreezed, tokenId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), 0)] | |
452 | 452 | } | |
453 | 453 | } | |
454 | 454 | ||
455 | 455 | ||
456 | 456 | ||
457 | 457 | @Callable(i) | |
458 | 458 | func transferUsd (launchpadId,amountUsdn) = if (!(isActive)) | |
459 | 459 | then throw("DApp is inactive") | |
460 | 460 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
461 | 461 | then throw("Only admin can call this function") | |
462 | 462 | else { | |
463 | 463 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
464 | 464 | [IntegerEntry((toString(launchpadId) + keyTransferUsd), amountUsdn), ScriptTransfer(projectAddress, amountUsdn, USDN)] | |
465 | 465 | } | |
466 | 466 | ||
467 | 467 | ||
468 | 468 | ||
469 | 469 | @Callable(i) | |
470 | 470 | func shutdown () = if (!(isActive)) | |
471 | 471 | then throw("DApp already inactive") | |
472 | 472 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
473 | 473 | then throw("Only admin can call this function") | |
474 | 474 | else [BooleanEntry(keyActive, false)] | |
475 | 475 | ||
476 | 476 | ||
477 | 477 | ||
478 | 478 | @Callable(i) | |
479 | 479 | func activate () = if (isActive) | |
480 | 480 | then throw("DApp already active") | |
481 | 481 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
482 | 482 | then throw("Only admin can call this function") | |
483 | 483 | else [BooleanEntry(keyActive, true)] | |
484 | 484 | ||
485 | 485 | ||
486 | 486 | @Verifier(tx) | |
487 | 487 | func verify () = { | |
488 | 488 | let multiSignedByAdmins = { | |
489 | 489 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
490 | 490 | then 1 | |
491 | 491 | else 0 | |
492 | 492 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
493 | 493 | then 1 | |
494 | 494 | else 0 | |
495 | 495 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
496 | 496 | then 1 | |
497 | 497 | else 0 | |
498 | 498 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
499 | 499 | } | |
500 | 500 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
501 | 501 | then true | |
502 | 502 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
503 | 503 | then true | |
504 | 504 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
505 | 505 | then true | |
506 | 506 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
507 | 507 | match tx { | |
508 | 508 | case dtx: DataTransaction => | |
509 | 509 | if (valueOrElse(getBoolean(oracle, keyLaunchpadDataTransactionStatus), false)) | |
510 | 510 | then signedByAdmin | |
511 | 511 | else false | |
512 | 512 | case _ => | |
513 | 513 | multiSignedByAdmins | |
514 | 514 | } | |
515 | 515 | } | |
516 | 516 |
github/deemru/w8io/026f985 67.90 ms ◑