tx · 6pKcdJdFiJwkFWiJLrW4R2z8BkJUTag7ogm1aFWtXmHS 3MzDGFvPnXVbA4wCacqcVnfVJPwG952KVAg: -0.01400000 Waves 2021.12.21 19:35 [1844271] smart account 3MzDGFvPnXVbA4wCacqcVnfVJPwG952KVAg > SELF 0.00000000 Waves
{ "type": 13, "id": "6pKcdJdFiJwkFWiJLrW4R2z8BkJUTag7ogm1aFWtXmHS", "fee": 1400000, "feeAssetId": null, "timestamp": 1640104529033, "version": 2, "chainId": 84, "sender": "3MzDGFvPnXVbA4wCacqcVnfVJPwG952KVAg", "senderPublicKey": "CViCXhHrygDDAtVc1uFczxe6ANj9tBz5PGQDS1yWZqgy", "proofs": [ "aNbu48tNYxaMEbndA5X4r5TV1ynQzT7rk5PKiRGNmfCxVfJcYLPDViNX4LjwSvgXd7KiFkRJx1JdHn57d8YN7vJ", "3vEggQB86oc2Urq8R5dCmVHLntw5t47My1hAR6p7Nt1hnhVrHdmytpFLonnzPZrPwzVQAR4PVAaf3gQtWZXA5YAp" ], "script": "base64:AAIFAAAAAAAAABwIAhIECgIBCBIDCgEBEgMKAQESBAoCAQESABIAAAAASAAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAD2tleUFkbWluUHViS2V5MQIAAAALYWRtaW5fcHViXzEAAAAAD2tleUFkbWluUHViS2V5MgIAAAALYWRtaW5fcHViXzIAAAAAD2tleUFkbWluUHViS2V5MwIAAAALYWRtaW5fcHViXzMAAAAAIWtleUxhdW5jaHBhZERhdGFUcmFuc2FjdGlvblN0YXR1cwIAAAAhbGF1bmNocGFkX2RhdGFfdHJhbnNhY3Rpb25fc3RhdHVzAAAAABJrZXlMYXVuY2hwYWROZXh0SWQCAAAAEWxhdW5jaHBhZF9uZXh0X2lkAAAAABRrZXlMYXVuY2hwYWRBY3RpdmVJZAIAAAATbGF1bmNocGFkX2FjdGl2ZV9pZAAAAAANa2V5SW5pdENhbGxlcgIAAAALaW5pdF9jYWxsZXIAAAAACmtleUFkZ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AAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTMGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAASYWRtaW5QdWJLZXlTdGFraW5nBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAANkdHgFAAAAByRtYXRjaDADCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABm9yYWNsZQUAAAAha2V5TGF1bmNocGFkRGF0YVRyYW5zYWN0aW9uU3RhdHVzBwUAAAANc2lnbmVkQnlBZG1pbgcFAAAAE211bHRpU2lnbmVkQnlBZG1pbnM6BGWE", "height": 1844271, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A64J1NzcnaKbcUQK3yJVstfDRm3nnbaR4nL1cr66h6Xb Next: 2Y8UoeoSppMRwT3DVT2aFy2n8MS9Px27UVXifkR4gsYG Diff:
Old | New | Differences | |
---|---|---|---|
256 | 256 | else if ((claimedParams[0] == "claimPeriod")) | |
257 | 257 | then { | |
258 | 258 | let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0) | |
259 | - | let startAmount = value(parseInt(claimedParams[ | |
260 | - | let unlockPeriod = value(parseInt(claimedParams[ | |
261 | - | let blockHeight = (value(parseInt(claimedParams[ | |
259 | + | let startAmount = value(parseInt(claimedParams[1])) | |
260 | + | let unlockPeriod = value(parseInt(claimedParams[2])) | |
261 | + | let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight) | |
262 | 262 | let unlockHeight = ((unlockPeriod + finalizeHeight) + blockHeight) | |
263 | - | let allowedTokensAmount = (fraction(transferTokensAmount, value(parseInt(claimedParams[ | |
263 | + | let allowedTokensAmount = (fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100) + (if ((height > blockHeight)) | |
264 | 264 | then fraction(transferTokensAmount, (height - blockHeight), unlockPeriod) | |
265 | 265 | else (0 - claimedTokens))) | |
266 | 266 | let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let keyActive = "active" | |
5 | 5 | ||
6 | 6 | let keyAdminPubKey1 = "admin_pub_1" | |
7 | 7 | ||
8 | 8 | let keyAdminPubKey2 = "admin_pub_2" | |
9 | 9 | ||
10 | 10 | let keyAdminPubKey3 = "admin_pub_3" | |
11 | 11 | ||
12 | 12 | let keyLaunchpadDataTransactionStatus = "launchpad_data_transaction_status" | |
13 | 13 | ||
14 | 14 | let keyLaunchpadNextId = "launchpad_next_id" | |
15 | 15 | ||
16 | 16 | let keyLaunchpadActiveId = "launchpad_active_id" | |
17 | 17 | ||
18 | 18 | let keyInitCaller = "init_caller" | |
19 | 19 | ||
20 | 20 | let keyAddress = "_address" | |
21 | 21 | ||
22 | 22 | let keyInitHeight = "_init_height" | |
23 | 23 | ||
24 | 24 | let keyStartHeight = "_start_height" | |
25 | 25 | ||
26 | 26 | let keyFinaliseHeight = "_finalise_height" | |
27 | 27 | ||
28 | 28 | let keyComission = "_comission" | |
29 | 29 | ||
30 | 30 | let keyAssetId = "_asset_id" | |
31 | 31 | ||
32 | 32 | let keyTotalTokenAmount = "_total_token_amount" | |
33 | 33 | ||
34 | 34 | let keyTotalAmountBuyAssetSold = "_total_buy_asset_sold" | |
35 | 35 | ||
36 | 36 | let keyTokensPerTicket = "_tokens_per_ticket" | |
37 | 37 | ||
38 | 38 | let keyPricePerToken = "_price_per_token" | |
39 | 39 | ||
40 | 40 | let keySwopPerTicket = "_swop_per_ticket" | |
41 | 41 | ||
42 | 42 | let keySwopfiTicketsAmount = "_tickets_swopfi_members" | |
43 | 43 | ||
44 | 44 | let keyCampaignTokensAmount = "_tokens_access_list" | |
45 | 45 | ||
46 | 46 | let keyTokensPerAllocation = "_tokens_per_allocation" | |
47 | 47 | ||
48 | 48 | let keyTicketLastNumber = "_ticket_last_number" | |
49 | 49 | ||
50 | 50 | let keyGovernanceStaked = "_SWOP_amount" | |
51 | 51 | ||
52 | 52 | let keyUserRefId = "_ref_id" | |
53 | 53 | ||
54 | 54 | let keyVerifyHash = "_verify_hash" | |
55 | 55 | ||
56 | 56 | let keyDuration = "_duration" | |
57 | 57 | ||
58 | 58 | let keyAmountBuyAssetInMarketing = "_total_purchased_buy_asset_in_marketing" | |
59 | 59 | ||
60 | 60 | let keyAmountBuyAssetInMarketingFinalized = "_total_purchased_buy_asset_in_marketing_finalized" | |
61 | 61 | ||
62 | 62 | let keyTransferBuyAsset = "_transfer_buy_asset" | |
63 | 63 | ||
64 | 64 | let keyFreezSwopDuration = "_freeze_swop_duration" | |
65 | 65 | ||
66 | 66 | let keyFreezeAdditionalToken = "_freeze_additional_token" | |
67 | 67 | ||
68 | 68 | let keyFreezeTokenId = "_freeze_token_id" | |
69 | 69 | ||
70 | 70 | let keyFreezeTokenDuration = "_freeze_token_duration" | |
71 | 71 | ||
72 | 72 | let keyFreezeTokenPerTicket = "_freeze_token_per_ticket" | |
73 | 73 | ||
74 | 74 | let keyBuyToken = "_buy_token" | |
75 | 75 | ||
76 | 76 | let keyClaimParams = "_claim_params" | |
77 | 77 | ||
78 | 78 | let keyHighCompetitionComission = "_high_competition_comission" | |
79 | 79 | ||
80 | 80 | let keyHighCompetitionSale = "_high_competition_sale" | |
81 | 81 | ||
82 | 82 | let keyHCTicketLastNumber = "_high_competition_ticket_last_number" | |
83 | 83 | ||
84 | 84 | let keyHighCompetitionAmount = "_tickets_high_competition" | |
85 | 85 | ||
86 | 86 | let keyTotalAmountBuyAssetSoldHC = "_total_buy_asset_sold_high_competition" | |
87 | 87 | ||
88 | 88 | let keyUserClaimedTokens = "_claimed_tokens" | |
89 | 89 | ||
90 | 90 | let keyUserClaimedBuyTokens = "_claimed_buy_tokens" | |
91 | 91 | ||
92 | 92 | let keyUserBoughtTicketsAmount = "_bought_tickets" | |
93 | 93 | ||
94 | 94 | let keyUserTickets = "_tickets_number" | |
95 | 95 | ||
96 | 96 | let keyUserHCTickets = "_tickets_number_high_competition" | |
97 | 97 | ||
98 | 98 | let keyUserHCBoughtTicketsAmount = "_bought_tickets_high_competition" | |
99 | 99 | ||
100 | 100 | let keyUserAvailableAllocations = "_available_purchase_marketing" | |
101 | 101 | ||
102 | 102 | let keyUserAmountBuyAssetInMarketing = "_purchased_buy_asset_in_marketing" | |
103 | 103 | ||
104 | 104 | let keyUserBoughtAllocations = "_bought_allocations" | |
105 | 105 | ||
106 | 106 | let keyUserClaimStatus = "_claim_status" | |
107 | 107 | ||
108 | 108 | let keyUserWinnedTicketsAmount = "_tickets_result" | |
109 | 109 | ||
110 | 110 | let keyUserWinnedHighCompetitionTicketsAmount = "_tickets_result_high_competition" | |
111 | 111 | ||
112 | 112 | let keyUserFreezeToken = "_freeze_token_amount" | |
113 | 113 | ||
114 | 114 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
115 | 115 | ||
116 | 116 | let governance = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
117 | 117 | ||
118 | 118 | let commissionWallet = Address(base58'3N2hBdeDEs7wCNA9EY8qv3B6drjgKD64xQG') | |
119 | 119 | ||
120 | 120 | let stakingUSDNAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
121 | 121 | ||
122 | 122 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
123 | 123 | ||
124 | 124 | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
125 | 125 | ||
126 | 126 | let maxAllocationsAmount = 2 | |
127 | 127 | ||
128 | 128 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
129 | 129 | ||
130 | 130 | let activeLaunchpadId = valueOrElse(getIntegerValue(this, keyLaunchpadActiveId), -1) | |
131 | 131 | ||
132 | 132 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
133 | 133 | case string: String => | |
134 | 134 | fromBase58String(string) | |
135 | 135 | case nothing => | |
136 | 136 | throw("Admin public key is empty") | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
141 | 141 | ||
142 | 142 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
143 | 143 | ||
144 | 144 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
145 | 145 | ||
146 | 146 | func getAssetInfo (assetId) = match assetId { | |
147 | 147 | case id: ByteVector => | |
148 | 148 | let stringId = toBase58String(id) | |
149 | 149 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
150 | 150 | $Tuple3(stringId, info.name, info.decimals) | |
151 | 151 | case waves: Unit => | |
152 | 152 | $Tuple3("WAVES", "WAVES", 8) | |
153 | 153 | case _ => | |
154 | 154 | throw("Match error") | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getLaunchpadNextId () = valueOrElse(getInteger(this, keyLaunchpadNextId), 1) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func stakedUsdnAmount () = valueOrElse(getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))), 0) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
165 | 165 | then $Tuple4(unit, "WAVES", "WAVES", 8) | |
166 | 166 | else { | |
167 | 167 | let stringId = assetStr | |
168 | 168 | let id = fromBase58String(assetStr) | |
169 | 169 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
170 | 170 | $Tuple4(id, stringId, info.name, info.decimals) | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(i) | |
175 | 175 | func hashingRandom (launchpadId,hash) = if (!(isActive)) | |
176 | 176 | then throw("DApp is inactive at this moment") | |
177 | 177 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
178 | 178 | then throw("Only admin can call this function") | |
179 | 179 | else [StringEntry((toString(launchpadId) + keyVerifyHash), hash)] | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(i) | |
184 | 184 | func claim (launchpadId) = { | |
185 | 185 | let boughtTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtTicketsAmount)), 0) | |
186 | 186 | let boughtHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserHCBoughtTicketsAmount)), 0) | |
187 | 187 | let boughtAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserBoughtAllocations)), 0) | |
188 | 188 | let userClaimStatus = valueOrElse(getBoolean(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus)), false) | |
189 | 189 | let finalizeHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyFinaliseHeight)), 0) | |
190 | 190 | if (!(isActive)) | |
191 | 191 | then throw("DApp is inactive at this moment") | |
192 | 192 | else if ((finalizeHeight == 0)) | |
193 | 193 | then throw("You can't claim because results are not finalized") | |
194 | 194 | else if (userClaimStatus) | |
195 | 195 | then throw("You are already claimed") | |
196 | 196 | else if (if (if ((boughtTickets == 0)) | |
197 | 197 | then (boughtAllocations == 0) | |
198 | 198 | else false) | |
199 | 199 | then (boughtHCTickets == 0) | |
200 | 200 | else false) | |
201 | 201 | then throw("You can't claim because you don't buy anything") | |
202 | 202 | else { | |
203 | 203 | let $t061266276 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
204 | 204 | let buyAssetId = $t061266276._1 | |
205 | 205 | let buyAssetStrId = $t061266276._2 | |
206 | 206 | let buyAssetName = $t061266276._3 | |
207 | 207 | let buyAssetDecimals = $t061266276._4 | |
208 | 208 | let wonnedTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedTicketsAmount)), 0) | |
209 | 209 | let wonnedHCTickets = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserWinnedHighCompetitionTicketsAmount)), 0) | |
210 | 210 | let awailableAllocations = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserAvailableAllocations)), 0) | |
211 | 211 | let commission = getIntegerValue(this, (toString(launchpadId) + keyComission)) | |
212 | 212 | let allowedAllocations = min([boughtAllocations, awailableAllocations]) | |
213 | 213 | let tokenPrice = getIntegerValue(this, (toString(launchpadId) + keyPricePerToken)) | |
214 | 214 | let tokensPerTicket = getIntegerValue(this, (toString(launchpadId) + keyTokensPerTicket)) | |
215 | 215 | let $t070807224 = getAssetInfoFromString(getStringValue(this, (toString(launchpadId) + keyAssetId))) | |
216 | 216 | let tokenId = $t070807224._1 | |
217 | 217 | let tokenStrAssetId = $t070807224._2 | |
218 | 218 | let tokenAssetName = $t070807224._3 | |
219 | 219 | let tokenDecimals = $t070807224._4 | |
220 | 220 | let ticketPrice = fraction(tokensPerTicket, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)) | |
221 | 221 | let tokensPerAllocation = getIntegerValue(this, (toString(launchpadId) + keyTokensPerAllocation)) | |
222 | 222 | let transferTokensAmount = (((wonnedTickets * tokensPerTicket) + (allowedAllocations * tokensPerAllocation)) + (wonnedHCTickets * tokensPerTicket)) | |
223 | 223 | let notAllowedAllocationsTokens = ((boughtAllocations - allowedAllocations) * tokensPerAllocation) | |
224 | 224 | let buyAssetForAllocations = fraction(fraction(notAllowedAllocationsTokens, tokenPrice, pow(10, 0, tokenDecimals, 0, 0, DOWN)), (100 + commission), 100) | |
225 | 225 | let buyAssetForUnwonnedTickets = fraction(((boughtTickets - wonnedTickets) * ticketPrice), (100 + commission), 100) | |
226 | 226 | let buyAssetForHCUnwonnedTickets = fraction(((boughtHCTickets - wonnedHCTickets) * ticketPrice), (100 + commission), 100) | |
227 | 227 | let claimedBuyToken = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens)), 0) | |
228 | 228 | if (if (if ((0 > buyAssetForAllocations)) | |
229 | 229 | then true | |
230 | 230 | else (0 > buyAssetForUnwonnedTickets)) | |
231 | 231 | then true | |
232 | 232 | else (0 > buyAssetForHCUnwonnedTickets)) | |
233 | 233 | then throw("Error with allowed allocation param or wonned tickets param please contact support") | |
234 | 234 | else { | |
235 | 235 | let returnedBuyAssetAmount = ((buyAssetForUnwonnedTickets + buyAssetForHCUnwonnedTickets) - claimedBuyToken) | |
236 | 236 | let transferBuyAsset = if ((returnedBuyAssetAmount > 0)) | |
237 | 237 | then [ScriptTransfer(i.caller, returnedBuyAssetAmount, buyAssetId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedBuyTokens), returnedBuyAssetAmount)] | |
238 | 238 | else nil | |
239 | 239 | let inv = if (if ((returnedBuyAssetAmount > 0)) | |
240 | 240 | then (buyAssetId == USDN) | |
241 | 241 | else false) | |
242 | 242 | then invoke(stakingUSDNAddress, "unlockNeutrino", [returnedBuyAssetAmount, toBase58String(USDN)], nil) | |
243 | 243 | else 0 | |
244 | 244 | if ((inv == inv)) | |
245 | 245 | then { | |
246 | 246 | let claimedParams = split(valueOrElse(getString(this, (toString(launchpadId) + keyClaimParams)), ""), ",") | |
247 | 247 | if (if ((size(claimedParams) == 0)) | |
248 | 248 | then true | |
249 | 249 | else (claimedParams[0] == "claimAll")) | |
250 | 250 | then { | |
251 | 251 | let transferTokens = if ((transferTokensAmount > 0)) | |
252 | 252 | then [ScriptTransfer(i.caller, transferTokensAmount, tokenId)] | |
253 | 253 | else nil | |
254 | 254 | (([BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), transferTokensAmount)] ++ transferTokens) ++ transferBuyAsset) | |
255 | 255 | } | |
256 | 256 | else if ((claimedParams[0] == "claimPeriod")) | |
257 | 257 | then { | |
258 | 258 | let claimedTokens = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens)), 0) | |
259 | - | let startAmount = value(parseInt(claimedParams[ | |
260 | - | let unlockPeriod = value(parseInt(claimedParams[ | |
261 | - | let blockHeight = (value(parseInt(claimedParams[ | |
259 | + | let startAmount = value(parseInt(claimedParams[1])) | |
260 | + | let unlockPeriod = value(parseInt(claimedParams[2])) | |
261 | + | let blockHeight = (value(parseInt(claimedParams[3])) + finalizeHeight) | |
262 | 262 | let unlockHeight = ((unlockPeriod + finalizeHeight) + blockHeight) | |
263 | - | let allowedTokensAmount = (fraction(transferTokensAmount, value(parseInt(claimedParams[ | |
263 | + | let allowedTokensAmount = (fraction(transferTokensAmount, value(parseInt(claimedParams[1])), 100) + (if ((height > blockHeight)) | |
264 | 264 | then fraction(transferTokensAmount, (height - blockHeight), unlockPeriod) | |
265 | 265 | else (0 - claimedTokens))) | |
266 | 266 | let claimStatusEntry = if ((transferTokensAmount >= (claimedTokens + allowedTokensAmount))) | |
267 | 267 | then [BooleanEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimStatus), true)] | |
268 | 268 | else nil | |
269 | 269 | if (if ((allowedTokensAmount > 0)) | |
270 | 270 | then true | |
271 | 271 | else (returnedBuyAssetAmount > 0)) | |
272 | 272 | then { | |
273 | 273 | let transferTokens = if ((allowedTokensAmount > 0)) | |
274 | 274 | then [IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserClaimedTokens), (claimedTokens + allowedTokensAmount)), ScriptTransfer(i.caller, allowedTokensAmount, tokenId)] | |
275 | 275 | else nil | |
276 | 276 | (transferBuyAsset ++ transferTokens) | |
277 | 277 | } | |
278 | 278 | else throw("Nothing to claim") | |
279 | 279 | } | |
280 | 280 | else throw("Error whith claim params: unknown function") | |
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 claimFreezeToken (launchpadId) = { | |
291 | 291 | let freezeAdditionalToken = valueOrElse(getBoolean(this, (toString(launchpadId) + keyFreezeAdditionalToken)), false) | |
292 | 292 | if (!(isActive)) | |
293 | 293 | then throw("DApp is inactive at this moment") | |
294 | 294 | else if (!(isDefined(getInteger(this, (toString(launchpadId) + keyFinaliseHeight))))) | |
295 | 295 | then throw("You can't claim because results are not finalized") | |
296 | 296 | else if (!(freezeAdditionalToken)) | |
297 | 297 | then throw("There are no additional token freezing for this launchpad") | |
298 | 298 | else { | |
299 | 299 | let tokenId = fromBase58String(getStringValue(this, (toString(launchpadId) + keyFreezeTokenId))) | |
300 | 300 | let userTokensFreezed = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken)), 0) | |
301 | 301 | let startHeight = valueOrElse(getInteger(this, (toString(launchpadId) + keyStartHeight)), 0) | |
302 | 302 | let duration = valueOrElse(getInteger(this, (toString(launchpadId) + keyDuration)), 0) | |
303 | 303 | let freezeTokenDuration = getIntegerValue(this, (toString(launchpadId) + keyFreezeTokenDuration)) | |
304 | 304 | let blockEndHeight = ((startHeight + duration) + freezeTokenDuration) | |
305 | 305 | if ((userTokensFreezed == 0)) | |
306 | 306 | then throw("You are already claimed your tokens or not paid anything") | |
307 | 307 | else if ((blockEndHeight > height)) | |
308 | 308 | then throw(("Your tokens freezed teel " + toString(blockEndHeight))) | |
309 | 309 | else [ScriptTransfer(i.caller, userTokensFreezed, tokenId), IntegerEntry((((toString(i.caller) + "_") + toString(launchpadId)) + keyUserFreezeToken), 0)] | |
310 | 310 | } | |
311 | 311 | } | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | ||
315 | 315 | @Callable(i) | |
316 | 316 | func transferBuyAsset (launchpadId,amount) = if (!(isActive)) | |
317 | 317 | then throw("DApp is inactive") | |
318 | 318 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
319 | 319 | then throw("Only admin can call this function") | |
320 | 320 | else { | |
321 | 321 | let projectAddress = addressFromStringValue(getStringValue(this, (toString(launchpadId) + keyAddress))) | |
322 | 322 | let $t01364513795 = getAssetInfoFromString(value(getString(this, (toString(launchpadId) + keyBuyToken)))) | |
323 | 323 | let buyAssetId = $t01364513795._1 | |
324 | 324 | let buyAssetStrId = $t01364513795._2 | |
325 | 325 | let buyAssetName = $t01364513795._3 | |
326 | 326 | let buyAssetDecimals = $t01364513795._4 | |
327 | 327 | [IntegerEntry((toString(launchpadId) + keyTransferBuyAsset), amount), ScriptTransfer(projectAddress, amount, buyAssetId)] | |
328 | 328 | } | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | ||
332 | 332 | @Callable(i) | |
333 | 333 | func shutdown () = if (!(isActive)) | |
334 | 334 | then throw("DApp already inactive") | |
335 | 335 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
336 | 336 | then throw("Only admin can call this function") | |
337 | 337 | else [BooleanEntry(keyActive, false)] | |
338 | 338 | ||
339 | 339 | ||
340 | 340 | ||
341 | 341 | @Callable(i) | |
342 | 342 | func activate () = if (isActive) | |
343 | 343 | then throw("DApp already active") | |
344 | 344 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
345 | 345 | then throw("Only admin can call this function") | |
346 | 346 | else [BooleanEntry(keyActive, true)] | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | @Verifier(tx) | |
350 | 350 | func verify () = { | |
351 | 351 | let multiSignedByAdmins = { | |
352 | 352 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
353 | 353 | then 1 | |
354 | 354 | else 0 | |
355 | 355 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
356 | 356 | then 1 | |
357 | 357 | else 0 | |
358 | 358 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
359 | 359 | then 1 | |
360 | 360 | else 0 | |
361 | 361 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
362 | 362 | } | |
363 | 363 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
364 | 364 | then true | |
365 | 365 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
366 | 366 | then true | |
367 | 367 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
368 | 368 | then true | |
369 | 369 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
370 | 370 | match tx { | |
371 | 371 | case dtx: DataTransaction => | |
372 | 372 | if (valueOrElse(getBoolean(oracle, keyLaunchpadDataTransactionStatus), false)) | |
373 | 373 | then signedByAdmin | |
374 | 374 | else false | |
375 | 375 | case _ => | |
376 | 376 | multiSignedByAdmins | |
377 | 377 | } | |
378 | 378 | } | |
379 | 379 |
github/deemru/w8io/026f985 70.09 ms ◑