tx · 5DJKTBUbZTpSd8zzPtqirMmNwaKcB2TyakNtmBrqe2tf 3MwkjgDrsm5k73WJU9Nbxbx4y2iy3zjQzMi: -0.01400000 Waves 2021.12.14 16:25 [1833982] smart account 3MwkjgDrsm5k73WJU9Nbxbx4y2iy3zjQzMi > SELF 0.00000000 Waves
{ "type": 13, "id": "5DJKTBUbZTpSd8zzPtqirMmNwaKcB2TyakNtmBrqe2tf", "fee": 1400000, "feeAssetId": null, "timestamp": 1639488359447, "version": 2, "chainId": 84, "sender": "3MwkjgDrsm5k73WJU9Nbxbx4y2iy3zjQzMi", "senderPublicKey": "FRotxVW1MhTQRDvVbMM4yvYGWzBFvHqvMsonvGeEXQUy", "proofs": [ "4N6wco3QbcmadetDSNVULb4VjaCpLX4vP6q28n6PgsEwDt6RwXT6a5u2ZCSYDwnh7PpycZYrt91Mykw5YDizVLkD", "4meNtqvrYfdHgUHKqXig1d6uiofujjzaDupEzd1kewQULZKuMgLZKZi5Nqkecy1rbpLpTxhpRZWKN1xXS8gwpqNv" ], "script": "base64:AAIFAAAAAAAAEzoIAhIECgIBCBIDCgEIEhQKEggBAQgBAQEBAQEBARgEAQEEGBIECgIBCBIECgIBCBIECgIBCBIFCgMBAQgSAwoBARIDCgEBEgQKAgEBEgASABoPCgJhMRIJa2V5QWN0aXZlGhUKAmEyEg9rZXlBZG1pblB1YktleTEaFQoCYTMSD2tleUFkbWluUHViS2V5MhoVCgJhNBIPa2V5QWRtaW5QdWJLZXkzGicKAmE1EiFrZXlMYXVuY2hwYWREYXRhVHJhbnNhY3Rpb25TdGF0dXMaGAoCYTYSEmtleUxhdW5jaHBhZE5leHRJZBoaCgJhNxIUa2V5TGF1bmNocGFkQWN0aXZlSWQaEwoCYTgSDWtleUluaXRDYWxsZXIaEAoCYTkSCmtleUFkZHJlc3MaEwoCYjESDWtleUluaXRIZWlnaHQaFAoCYjISDmtleVN0YXJ0SGVpZ2h0GhcKAmIzEhFrZXlGaW5hbGlzZUhlaWdodBoSCg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AAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAACZzUEAAAAAmgyBQAAAAJ0eAMJAAABAAAAAgUAAAACaDICAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAACdzQFAAAAAmgyAwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAJmOQUAAAACYTUHBQAAAAJ3MwcFAAAAAnY4kW6sLA==", "height": 1833982, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 472AGAchqVUaSHUBUBHuXF6feBdwjbsh6bGao5kS8Egc Next: DY7MKkABKfTiV8XzFkqjR1RNnAw25S7FwSQnrGPjGaHq Diff:
Old | New | Differences | |
---|---|---|---|
79 | 79 | ||
80 | 80 | let M = "_high_competition_sale" | |
81 | 81 | ||
82 | - | let N = "_ticket_last_number" | |
82 | + | let N = "_high_competition_ticket_last_number" | |
83 | 83 | ||
84 | 84 | let O = "_tickets_high_competition" | |
85 | 85 | ||
103 | 103 | ||
104 | 104 | let Y = "_tickets_result" | |
105 | 105 | ||
106 | - | let Z = "_ | |
106 | + | let Z = "_tickets_result_high_competition" | |
107 | 107 | ||
108 | - | let aa = | |
108 | + | let aa = "_freeze_token_amount" | |
109 | 109 | ||
110 | - | let ab = Address(base58' | |
110 | + | let ab = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
111 | 111 | ||
112 | - | let ac = Address(base58' | |
112 | + | let ac = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
113 | 113 | ||
114 | - | let ad = Address(base58' | |
114 | + | let ad = Address(base58'3N2hBdeDEs7wCNA9EY8qv3B6drjgKD64xQG') | |
115 | 115 | ||
116 | - | let ae = base58' | |
116 | + | let ae = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
117 | 117 | ||
118 | - | let af = base58' | |
118 | + | let af = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
119 | 119 | ||
120 | - | let ag = | |
120 | + | let ag = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
121 | 121 | ||
122 | - | let ah = | |
122 | + | let ah = 2 | |
123 | 123 | ||
124 | - | let ai = valueOrElse( | |
124 | + | let ai = valueOrElse(getBoolean(this, a), true) | |
125 | 125 | ||
126 | - | func aj (ak) = { | |
127 | - | let al = getString(aa, ak) | |
128 | - | if ($isInstanceOf(al, "String")) | |
126 | + | let aj = valueOrElse(getIntegerValue(this, g), -1) | |
127 | + | ||
128 | + | func ak (al) = { | |
129 | + | let am = getString(ab, al) | |
130 | + | if ($isInstanceOf(am, "String")) | |
129 | 131 | then { | |
130 | - | let | |
131 | - | fromBase58String( | |
132 | + | let an = am | |
133 | + | fromBase58String(an) | |
132 | 134 | } | |
133 | 135 | else { | |
134 | - | let | |
136 | + | let ao = am | |
135 | 137 | throw("Admin public key is empty") | |
136 | 138 | } | |
137 | 139 | } | |
138 | 140 | ||
139 | 141 | ||
140 | - | let | |
142 | + | let ap = ak(b) | |
141 | 143 | ||
142 | - | let | |
144 | + | let aq = ak(c) | |
143 | 145 | ||
144 | - | let | |
146 | + | let ar = ak(d) | |
145 | 147 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ($isInstanceOf( | |
148 | + | func as (at) = { | |
149 | + | let am = at | |
150 | + | if ($isInstanceOf(am, "ByteVector")) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | $Tuple3( | |
152 | + | let au = am | |
153 | + | let av = toBase58String(au) | |
154 | + | let aw = valueOrErrorMessage(assetInfo(au), (("Asset " + av) + " doesn't exist")) | |
155 | + | $Tuple3(av, aw.name, aw.decimals) | |
154 | 156 | } | |
155 | - | else if ($isInstanceOf( | |
157 | + | else if ($isInstanceOf(am, "Unit")) | |
156 | 158 | then { | |
157 | - | let | |
159 | + | let ax = am | |
158 | 160 | $Tuple3("WAVES", "WAVES", 8) | |
159 | 161 | } | |
160 | 162 | else throw("Match error") | |
161 | 163 | } | |
162 | 164 | ||
163 | 165 | ||
164 | - | func | |
166 | + | func ay () = valueOrElse(getInteger(this, f), 1) | |
165 | 167 | ||
166 | 168 | ||
167 | - | func | |
169 | + | func az () = valueOrElse(getInteger(ae, ((("rpd_balance_" + toBase58String(af)) + "_") + toString(this))), 0) | |
168 | 170 | ||
169 | 171 | ||
170 | - | func | |
172 | + | func aA (aB) = if ((aB == "WAVES")) | |
171 | 173 | then $Tuple4(unit, "WAVES", "WAVES", 8) | |
172 | 174 | else { | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | $Tuple4( | |
175 | + | let av = aB | |
176 | + | let au = fromBase58String(aB) | |
177 | + | let aw = valueOrErrorMessage(assetInfo(au), (("Asset " + av) + " doesn't exist")) | |
178 | + | $Tuple4(au, av, aw.name, aw.decimals) | |
177 | 179 | } | |
178 | 180 | ||
179 | 181 | ||
180 | - | @Callable( | |
181 | - | func hashingRandom ( | |
182 | + | @Callable(aC) | |
183 | + | func hashingRandom (aD,aE) = if (!(ai)) | |
182 | 184 | then throw("DApp is inactive at this moment") | |
183 | - | else if (!(containsElement([ | |
185 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
184 | 186 | then throw("Only admin can call this function") | |
185 | - | else [StringEntry((toString( | |
187 | + | else [StringEntry((toString(aD) + z), aE)] | |
186 | 188 | ||
187 | 189 | ||
188 | 190 | ||
189 | - | @Callable( | |
190 | - | func initCaller ( | |
191 | + | @Callable(aC) | |
192 | + | func initCaller (aF) = if (!(ai)) | |
191 | 193 | then throw("DApp is inactive at this moment") | |
192 | - | else if (!(containsElement([ | |
194 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
193 | 195 | then throw("Only admin can call this function") | |
194 | - | else [StringEntry(h, | |
196 | + | else [StringEntry(h, aF)] | |
195 | 197 | ||
196 | 198 | ||
197 | 199 | ||
198 | - | @Callable( | |
199 | - | func init ( | |
200 | + | @Callable(aC) | |
201 | + | func init (aG,aH,aI,aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS,aT,aU,aV,aW,aX) = if (!(ai)) | |
200 | 202 | then throw("DApp is inactive at this moment") | |
201 | - | else if ((toString( | |
203 | + | else if ((toString(aC.caller) != valueOrElse(getString(this, h), ""))) | |
202 | 204 | then throw("Only project admin can call init function") | |
203 | - | else if ((size( | |
205 | + | else if ((size(aC.payments) != 1)) | |
204 | 206 | then throw("One attached payment expected") | |
205 | - | else if ((height > | |
207 | + | else if ((height > aH)) | |
206 | 208 | then throw("Start height must be greater than blockchain height") | |
207 | - | else if (if ( | |
208 | - | then (size( | |
209 | + | else if (if (aW) | |
210 | + | then (size(aX) != 3) | |
209 | 211 | else false) | |
210 | 212 | then throw("Freeze params list must have 3 items") | |
211 | 213 | else { | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | then [BooleanEntry(( | |
214 | + | let aD = ay() | |
215 | + | let aY = toString(aD) | |
216 | + | let aZ = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
217 | + | let ba = aZ._1 | |
218 | + | let bb = aZ._2 | |
219 | + | let bc = as(bb) | |
220 | + | let bd = bc._1 | |
221 | + | let be = bc._2 | |
222 | + | let bf = bc._3 | |
223 | + | let bg = if (aW) | |
224 | + | then [BooleanEntry((aY + F), true), StringEntry((aY + G), aX[0]), IntegerEntry((aY + H), parseIntValue(aX[1])), IntegerEntry((aY + I), parseIntValue(aX[2]))] | |
223 | 225 | else nil | |
224 | - | ([IntegerEntry(( | |
226 | + | ([IntegerEntry((bd + "_launchpad"), aD), IntegerEntry(f, (aD + 1)), StringEntry((aY + i), aG), IntegerEntry((aY + j), height), IntegerEntry((aY + k), aH), IntegerEntry((aY + A), aI), StringEntry((aY + J), aJ), IntegerEntry((aY + E), aR), IntegerEntry((aY + o), ba), StringEntry((aY + n), bd), IntegerEntry((aY + m), aK), IntegerEntry((aY + w), 0), IntegerEntry((aY + q), aL), IntegerEntry((aY + r), aM), IntegerEntry((aY + s), aQ), IntegerEntry((aY + t), aN), IntegerEntry((aY + u), aO), IntegerEntry((aY + v), aP), StringEntry((aY + K), makeString(aS, ",")), BooleanEntry((aY + M), aT), IntegerEntry((aY + L), aU), IntegerEntry((aY + O), aV), IntegerEntry(g, aD), StringEntry(h, "")] ++ bg) | |
225 | 227 | } | |
226 | 228 | ||
227 | 229 | ||
228 | 230 | ||
229 | - | @Callable( | |
230 | - | func commitSwopfiSale ( | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | if (!( | |
231 | + | @Callable(aC) | |
232 | + | func commitSwopfiSale (aD,bh) = { | |
233 | + | let bi = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
234 | + | let ba = bi._1 | |
235 | + | let bb = bi._2 | |
236 | + | let bj = aA(value(getString(this, (toString(aD) + J)))) | |
237 | + | let bk = bj._1 | |
238 | + | let bl = bj._2 | |
239 | + | let bm = bj._3 | |
240 | + | let bn = bj._4 | |
241 | + | let bo = valueOrElse(getInteger(ac, (toString(aC.caller) + x)), 0) | |
242 | + | let bp = (bo / getIntegerValue(this, (toString(aD) + s))) | |
243 | + | let bq = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + Q)), 0) | |
244 | + | let br = (bp - bq) | |
245 | + | let aH = value(getInteger(this, (toString(aD) + k))) | |
246 | + | let aI = value(getInteger(this, (toString(aD) + A))) | |
247 | + | let aW = valueOrElse(getBoolean(this, (toString(aD) + F)), false) | |
248 | + | if (!(ai)) | |
247 | 249 | then throw("DApp is inactive at this moment") | |
248 | - | else if (( | |
250 | + | else if ((aj != aD)) | |
249 | 251 | then throw("There is no active launchpad or this launchpad is ended") | |
250 | - | else if (( | |
252 | + | else if ((aH > height)) | |
251 | 253 | then throw("Launchpad sale not started yet") | |
252 | - | else if ((height > ( | |
254 | + | else if ((height > (aH + aI))) | |
253 | 255 | then throw("Launchpad sale ended") | |
254 | - | else if (if (!( | |
255 | - | then if ((size( | |
256 | + | else if (if (!(aW)) | |
257 | + | then if ((size(aC.payments) != 1)) | |
256 | 258 | then true | |
257 | - | else ( | |
259 | + | else (bb != bk) | |
258 | 260 | else false) | |
259 | - | then throw((("One attached payment in " + | |
260 | - | else if (if ( | |
261 | - | then if ((size( | |
261 | + | then throw((("One attached payment in " + bm) + " expected")) | |
262 | + | else if (if (aW) | |
263 | + | then if ((size(aC.payments) != 2)) | |
262 | 264 | then true | |
263 | - | else ( | |
265 | + | else (bb != bk) | |
264 | 266 | else false) | |
265 | 267 | then { | |
266 | - | let | |
267 | - | throw(((("Two attached payments expected: First in " + | |
268 | + | let bs = getStringValue(this, (toString(aD) + G)) | |
269 | + | throw(((("Two attached payments expected: First in " + bm) + ", second in ") + bs)) | |
268 | 270 | } | |
269 | - | else if (if ((0 >= | |
271 | + | else if (if ((0 >= bp)) | |
270 | 272 | then true | |
271 | - | else (0 >= | |
273 | + | else (0 >= br)) | |
272 | 274 | then throw("Not enought SWOP in staking to buy tickets") | |
273 | 275 | else { | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | if (( | |
288 | - | then throw((("Not enought " + | |
289 | - | else if (( | |
290 | - | then throw((((("Wrong payment. To buy " + toString( | |
276 | + | let bt = getIntegerValue(this, (toString(aD) + r)) | |
277 | + | let aL = getIntegerValue(this, (toString(aD) + q)) | |
278 | + | let bu = aA(getStringValue(this, (toString(aD) + n))) | |
279 | + | let bv = bu._1 | |
280 | + | let bw = bu._2 | |
281 | + | let bx = bu._3 | |
282 | + | let by = bu._4 | |
283 | + | let bz = fraction(aL, bt, pow(10, 0, by, 0, 0, DOWN)) | |
284 | + | let bA = fraction(bz, getIntegerValue(this, (toString(aD) + m)), 100) | |
285 | + | let bB = (ba / (bz + bA)) | |
286 | + | let bC = min([bB, br]) | |
287 | + | let bD = (bC * (bz + bA)) | |
288 | + | let bE = (ba - bD) | |
289 | + | if ((bB == 0)) | |
290 | + | then throw((("Not enought " + bm) + " to buy tickets")) | |
291 | + | else if ((bE != 0)) | |
292 | + | then throw((((("Wrong payment. To buy " + toString(bC)) + "tickets you need to pay ") + toString(bD)) + bm)) | |
291 | 293 | else { | |
292 | - | let | |
294 | + | let bg = if (aW) | |
293 | 295 | then { | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | if (if (( | |
296 | + | let bs = getStringValue(this, (toString(aD) + G)) | |
297 | + | let bF = getIntegerValue(this, (toString(aD) + I)) | |
298 | + | let bG = $Tuple2(aC.payments[1].amount, aC.payments[1].assetId) | |
299 | + | let bH = bG._1 | |
300 | + | let bI = bG._2 | |
301 | + | let bJ = as(bb) | |
302 | + | let bK = bJ._1 | |
303 | + | let bL = bJ._2 | |
304 | + | let bM = bJ._3 | |
305 | + | let bN = (bF * bB) | |
306 | + | if (if ((bK != bs)) | |
305 | 307 | then true | |
306 | - | else ( | |
307 | - | then throw((((("You need to add " + toString( | |
308 | - | else [IntegerEntry((((toString( | |
308 | + | else (bN != bH)) | |
309 | + | then throw((((("You need to add " + toString(bN)) + " ") + bL) + " as a second payment")) | |
310 | + | else [IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + aa), bH)] | |
309 | 311 | } | |
310 | 312 | else nil | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | then ("," + | |
316 | - | else ("" + | |
317 | - | let | |
318 | - | then invoke( | |
313 | + | let bO = valueOrElse(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + R)), "") | |
314 | + | let bP = getIntegerValue(this, (toString(aD) + w)) | |
315 | + | let bQ = ((toString((bP + 1)) + "-") + toString((bP + bC))) | |
316 | + | let bR = (bO + (if ((bO != "")) | |
317 | + | then ("," + bQ) | |
318 | + | else ("" + bQ))) | |
319 | + | let bS = if ((bk == af)) | |
320 | + | then invoke(ae, "lockNeutrino", nil, [AttachedPayment(bb, ba)]) | |
319 | 321 | else 0 | |
320 | - | if (( | |
322 | + | if ((bS == bS)) | |
321 | 323 | then { | |
322 | - | let | |
323 | - | if (!(isDefined(getString(this, (((toString( | |
324 | - | then ( | |
325 | - | else | |
324 | + | let bT = ([IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + Q), (bq + bC)), IntegerEntry((toString(aD) + w), (bP + bC)), StringEntry((((toString(aC.caller) + "_") + toString(aD)) + R), bR)] ++ bg) | |
325 | + | if (!(isDefined(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + y))))) | |
326 | + | then (bT ++ [StringEntry((((toString(aC.caller) + "_") + toString(aD)) + y), bh)]) | |
327 | + | else bT | |
326 | 328 | } | |
327 | 329 | else throw("Strict value is not equal to itself.") | |
328 | 330 | } | |
331 | 333 | ||
332 | 334 | ||
333 | 335 | ||
334 | - | @Callable( | |
335 | - | func commitAccessListSale ( | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | if (!( | |
336 | + | @Callable(aC) | |
337 | + | func commitAccessListSale (aD,bh) = { | |
338 | + | let bU = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
339 | + | let ba = bU._1 | |
340 | + | let bb = bU._2 | |
341 | + | let bV = aA(value(getString(this, (toString(aD) + J)))) | |
342 | + | let bk = bV._1 | |
343 | + | let bl = bV._2 | |
344 | + | let bm = bV._3 | |
345 | + | let bn = bV._4 | |
346 | + | let bW = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + V)), 0) | |
347 | + | let bX = valueOrElse(getInteger(this, (toString(aD) + B)), 0) | |
348 | + | let bY = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + W)), 0) | |
349 | + | let aK = getIntegerValue(this, (toString(aD) + m)) | |
350 | + | let bt = getIntegerValue(this, (toString(aD) + r)) | |
351 | + | let aP = getIntegerValue(this, (toString(aD) + v)) | |
352 | + | let bZ = aA(getStringValue(this, (toString(aD) + n))) | |
353 | + | let bv = bZ._1 | |
354 | + | let bw = bZ._2 | |
355 | + | let bx = bZ._3 | |
356 | + | let by = bZ._4 | |
357 | + | let ca = fraction(fraction(bt, aP, pow(10, 0, by, 0, 0, DOWN)), (100 + aK), 100) | |
358 | + | let aH = value(getInteger(this, (toString(aD) + k))) | |
359 | + | let aI = value(getInteger(this, (toString(aD) + A))) | |
360 | + | if (!(ai)) | |
359 | 361 | then throw("DApp is inactive at this moment") | |
360 | - | else if (( | |
362 | + | else if ((aj != aD)) | |
361 | 363 | then throw("There is no active launchpad or this launchpad is ended") | |
362 | - | else if (( | |
364 | + | else if ((aH > height)) | |
363 | 365 | then throw("Launchpad sale not started yet") | |
364 | - | else if ((height > ( | |
366 | + | else if ((height > (aH + aI))) | |
365 | 367 | then throw("Launchpad sale ended") | |
366 | - | else if (if ((size( | |
368 | + | else if (if ((size(aC.payments) != 1)) | |
367 | 369 | then true | |
368 | - | else ( | |
369 | - | then throw((("One attached payment in " + | |
370 | - | else if (( | |
371 | - | then throw((("You can buy only " + toString( | |
372 | - | else if (if (( | |
373 | - | then (( | |
370 | + | else (bb != bk)) | |
371 | + | then throw((("One attached payment in " + bm) + " expected")) | |
372 | + | else if ((bY >= ah)) | |
373 | + | then throw((("You can buy only " + toString(ah)) + "allocations")) | |
374 | + | else if (if ((ca != ba)) | |
375 | + | then ((ca * 2) != ba) | |
374 | 376 | else false) | |
375 | - | then throw(((("Wrong payment. You can buy 1 or 2 allocations for " + toString( | |
377 | + | then throw(((("Wrong payment. You can buy 1 or 2 allocations for " + toString(ca)) + bm) + " per allocation")) | |
376 | 378 | else { | |
377 | - | let | |
378 | - | let | |
379 | - | then invoke( | |
379 | + | let cb = (ba / ca) | |
380 | + | let bS = if ((bk == af)) | |
381 | + | then invoke(ae, "lockNeutrino", nil, [AttachedPayment(bb, ba)]) | |
380 | 382 | else 0 | |
381 | - | if (( | |
383 | + | if ((bS == bS)) | |
382 | 384 | then { | |
383 | - | let | |
384 | - | if (!(isDefined(getString(this, (((toString( | |
385 | - | then ( | |
386 | - | else | |
385 | + | let bT = [IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + W), (bY + cb)), IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + V), (bW + ba)), IntegerEntry((toString(aD) + B), (bX + ba))] | |
386 | + | if (!(isDefined(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + y))))) | |
387 | + | then (bT ++ [StringEntry((((toString(aC.caller) + "_") + toString(aD)) + y), bh)]) | |
388 | + | else bT | |
387 | 389 | } | |
388 | 390 | else throw("Strict value is not equal to itself.") | |
389 | 391 | } | |
391 | 393 | ||
392 | 394 | ||
393 | 395 | ||
394 | - | @Callable( | |
395 | - | func commitHighCompetitionSale ( | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | if (!( | |
396 | + | @Callable(aC) | |
397 | + | func commitHighCompetitionSale (aD,bh) = { | |
398 | + | let cc = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
399 | + | let ba = cc._1 | |
400 | + | let bb = cc._2 | |
401 | + | let cd = aA(value(getString(this, (toString(aD) + J)))) | |
402 | + | let bk = cd._1 | |
403 | + | let bl = cd._2 | |
404 | + | let bm = cd._3 | |
405 | + | let bn = cd._4 | |
406 | + | let aH = value(getInteger(this, (toString(aD) + k))) | |
407 | + | let aI = value(getInteger(this, (toString(aD) + A))) | |
408 | + | let ce = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + T)), 0) | |
409 | + | let cf = valueOrElse(getBoolean(this, (toString(aD) + M)), false) | |
410 | + | if (!(ai)) | |
409 | 411 | then throw("DApp is inactive at this moment") | |
410 | - | else if (( | |
412 | + | else if ((aj != aD)) | |
411 | 413 | then throw("There is no active launchpad or this launchpad is ended") | |
412 | - | else if (!( | |
414 | + | else if (!(cf)) | |
413 | 415 | then throw("There is no high competition sale for this launchpad") | |
414 | - | else if (( | |
416 | + | else if ((aH > height)) | |
415 | 417 | then throw("Launchpad sale not started yet") | |
416 | - | else if ((height > ( | |
418 | + | else if ((height > (aH + aI))) | |
417 | 419 | then throw("Launchpad sale ended") | |
418 | - | else if (if ((size( | |
420 | + | else if (if ((size(aC.payments) != 1)) | |
419 | 421 | then true | |
420 | - | else ( | |
421 | - | then throw((("One attached payment in " + | |
422 | + | else (bb != bk)) | |
423 | + | then throw((("One attached payment in " + bm) + " expected")) | |
422 | 424 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | if (( | |
436 | - | then throw((("Not enought " + | |
437 | - | else if (( | |
438 | - | then throw((((("Wrong payment. To buy " + toString( | |
425 | + | let bt = getIntegerValue(this, (toString(aD) + r)) | |
426 | + | let aL = getIntegerValue(this, (toString(aD) + q)) | |
427 | + | let cg = aA(getStringValue(this, (toString(aD) + n))) | |
428 | + | let bv = cg._1 | |
429 | + | let bw = cg._2 | |
430 | + | let bx = cg._3 | |
431 | + | let by = cg._4 | |
432 | + | let bz = fraction(aL, bt, pow(10, 0, by, 0, 0, DOWN)) | |
433 | + | let bA = fraction(bz, getIntegerValue(this, (toString(aD) + L)), 100) | |
434 | + | let bB = (ba / (bz + bA)) | |
435 | + | let ch = (bB * (bz + bA)) | |
436 | + | let bE = (ba - ch) | |
437 | + | if ((bB == 0)) | |
438 | + | then throw((("Not enought " + bm) + " to buy tickets")) | |
439 | + | else if ((bE != 0)) | |
440 | + | then throw((((("Wrong payment. To buy " + toString(bB)) + "tickets you need to pay ") + toString(ch)) + bm)) | |
439 | 441 | else { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | then ("," + | |
445 | - | else ("" + | |
446 | - | let | |
447 | - | then invoke( | |
442 | + | let bO = valueOrElse(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + S)), "") | |
443 | + | let bP = getIntegerValue(this, (toString(aD) + N)) | |
444 | + | let bQ = ((toString((bP + 1)) + "-") + toString((bP + bB))) | |
445 | + | let bR = (bO + (if ((bO != "")) | |
446 | + | then ("," + bQ) | |
447 | + | else ("" + bQ))) | |
448 | + | let bS = if ((bk == af)) | |
449 | + | then invoke(ae, "lockNeutrino", nil, [AttachedPayment(bb, ba)]) | |
448 | 450 | else 0 | |
449 | - | if (( | |
451 | + | if ((bS == bS)) | |
450 | 452 | then { | |
451 | - | let | |
452 | - | if (!(isDefined(getString(this, (((toString( | |
453 | - | then ( | |
454 | - | else | |
453 | + | let bT = [IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + T), (ce + bB)), IntegerEntry((toString(aD) + N), (bP + bB)), StringEntry((((toString(aC.caller) + "_") + toString(aD)) + S), bR)] | |
454 | + | if (!(isDefined(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + y))))) | |
455 | + | then (bT ++ [StringEntry((((toString(aC.caller) + "_") + toString(aD)) + y), bh)]) | |
456 | + | else bT | |
455 | 457 | } | |
456 | 458 | else throw("Strict value is not equal to itself.") | |
457 | 459 | } | |
460 | 462 | ||
461 | 463 | ||
462 | 464 | ||
463 | - | @Callable( | |
464 | - | func finalise ( | |
465 | - | let | |
466 | - | let | |
467 | - | if (!( | |
465 | + | @Callable(aC) | |
466 | + | func finalise (aD,ci,cj) = { | |
467 | + | let ck = getStringValue(this, (toString(aD) + z)) | |
468 | + | let cl = toBase58String(sha256((toBytes(ci) + toBytes(cj)))) | |
469 | + | if (!(ai)) | |
468 | 470 | then throw("DApp is inactive at this moment") | |
469 | - | else if (!(containsElement([ | |
471 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
470 | 472 | then throw("Only admin can call this function") | |
471 | - | else if (( | |
473 | + | else if ((cl != ck)) | |
472 | 474 | then throw("vrf Height hash not matching") | |
473 | 475 | else { | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | if (( | |
476 | + | let cm = aA(value(getString(this, (toString(aD) + J)))) | |
477 | + | let bk = cm._1 | |
478 | + | let bl = cm._2 | |
479 | + | let bm = cm._3 | |
480 | + | let bn = cm._4 | |
481 | + | let aG = addressFromStringValue(getStringValue(this, (toString(aD) + i))) | |
482 | + | let aK = getIntegerValue(this, (toString(aD) + m)) | |
483 | + | let cn = getIntegerValue(this, (toString(aD) + L)) | |
484 | + | let co = valueOrElse(getInteger(this, (toString(aD) + D)), 0) | |
485 | + | let cp = getIntegerValue(this, (toString(aD) + p)) | |
486 | + | let cq = valueOrElse(getIntegerValue(this, (toString(aD) + P)), 0) | |
487 | + | let cr = fraction(cp, aK, 100) | |
488 | + | let cs = fraction(cq, cn, 100) | |
489 | + | let ct = getIntegerValue(this, (toString(aD) + C)) | |
490 | + | let cu = fraction(ct, aK, 100) | |
491 | + | let cv = (((((cp + ct) + cr) + cu) + cq) + cs) | |
492 | + | if ((co > (cp + ct))) | |
491 | 493 | then throw("Can't transfer negative value to project") | |
492 | 494 | else { | |
493 | - | let | |
494 | - | then invoke( | |
495 | + | let bS = if ((bk == af)) | |
496 | + | then invoke(ae, "unlockNeutrino", [cv, toBase58String(af)], nil) | |
495 | 497 | else 0 | |
496 | - | if (( | |
497 | - | then [IntegerEntry((toString( | |
498 | + | if ((bS == bS)) | |
499 | + | then [IntegerEntry((toString(aD) + l), height), ScriptTransfer(aG, ((cp + ct) - co), bk), ScriptTransfer(ad, ((cr + cu) + cs), bk)] | |
498 | 500 | else throw("Strict value is not equal to itself.") | |
499 | 501 | } | |
500 | 502 | } | |
502 | 504 | ||
503 | 505 | ||
504 | 506 | ||
505 | - | @Callable( | |
506 | - | func claim ( | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | if (!( | |
507 | + | @Callable(aC) | |
508 | + | func claim (aD) = { | |
509 | + | let cw = valueOrElse(getBoolean(this, (((toString(aC.caller) + "_") + toString(aD)) + X)), false) | |
510 | + | let cx = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + Q)), 0) | |
511 | + | let bY = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + W)), 0) | |
512 | + | if (!(ai)) | |
511 | 513 | then throw("DApp is inactive at this moment") | |
512 | - | else if (!(isDefined(getInteger(this, (toString( | |
514 | + | else if (!(isDefined(getInteger(this, (toString(aD) + l))))) | |
513 | 515 | then throw("You can't claim because results are not finalized") | |
514 | - | else if ( | |
516 | + | else if (cw) | |
515 | 517 | then throw("You are already claimed") | |
516 | - | else if (if (( | |
517 | - | then ( | |
518 | + | else if (if ((cx == 0)) | |
519 | + | then (bY == 0) | |
518 | 520 | else false) | |
519 | 521 | then throw("You can't claim because you don't buy anything") | |
520 | 522 | else { | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | if (if ((0 > | |
523 | + | let cy = aA(value(getString(this, (toString(aD) + J)))) | |
524 | + | let bk = cy._1 | |
525 | + | let bl = cy._2 | |
526 | + | let bm = cy._3 | |
527 | + | let bn = cy._4 | |
528 | + | let cz = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + Y)), 0) | |
529 | + | let cA = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + U)), 0) | |
530 | + | let aK = getIntegerValue(this, (toString(aD) + m)) | |
531 | + | let cB = min([bY, cA]) | |
532 | + | let bt = getIntegerValue(this, (toString(aD) + r)) | |
533 | + | let aL = getIntegerValue(this, (toString(aD) + q)) | |
534 | + | let cC = aA(getStringValue(this, (toString(aD) + n))) | |
535 | + | let bv = cC._1 | |
536 | + | let bw = cC._2 | |
537 | + | let bx = cC._3 | |
538 | + | let by = cC._4 | |
539 | + | let bz = fraction(aL, bt, pow(10, 0, by, 0, 0, DOWN)) | |
540 | + | let aP = getIntegerValue(this, (toString(aD) + v)) | |
541 | + | let cD = ((cz * aL) + (cB * aP)) | |
542 | + | let cE = ((bY - cB) * aP) | |
543 | + | let cF = fraction(fraction(cE, bt, pow(10, 0, by, 0, 0, DOWN)), (100 + aK), 100) | |
544 | + | let cG = fraction(((cx - cz) * bz), (100 + aK), 100) | |
545 | + | if (if ((0 > cF)) | |
544 | 546 | then true | |
545 | - | else (0 > | |
547 | + | else (0 > cG)) | |
546 | 548 | then throw("Error with allowed allocation param or wonned tickets param please contact support") | |
547 | 549 | else { | |
548 | - | let | |
549 | - | let | |
550 | - | then [ScriptTransfer( | |
550 | + | let cH = (cG + cG) | |
551 | + | let cI = if ((cH > 0)) | |
552 | + | then [ScriptTransfer(aC.caller, cH, bk)] | |
551 | 553 | else nil | |
552 | - | let | |
553 | - | then [ScriptTransfer( | |
554 | + | let cJ = if ((cD > 0)) | |
555 | + | then [ScriptTransfer(aC.caller, cD, bv)] | |
554 | 556 | else nil | |
555 | - | let | |
556 | - | then ( | |
557 | + | let bS = if (if ((cH > 0)) | |
558 | + | then (bk == af) | |
557 | 559 | else false) | |
558 | - | then invoke( | |
560 | + | then invoke(ae, "unlockNeutrino", [cH, toBase58String(af)], nil) | |
559 | 561 | else 0 | |
560 | - | if (( | |
561 | - | then (([BooleanEntry((((toString( | |
562 | + | if ((bS == bS)) | |
563 | + | then (([BooleanEntry((((toString(aC.caller) + "_") + toString(aD)) + X), true)] ++ cJ) ++ cI) | |
562 | 564 | else throw("Strict value is not equal to itself.") | |
563 | 565 | } | |
564 | 566 | } | |
566 | 568 | ||
567 | 569 | ||
568 | 570 | ||
569 | - | @Callable( | |
570 | - | func claimFreezeToken ( | |
571 | - | let | |
572 | - | if (!( | |
571 | + | @Callable(aC) | |
572 | + | func claimFreezeToken (aD) = { | |
573 | + | let aW = valueOrElse(getBoolean(this, (toString(aD) + F)), false) | |
574 | + | if (!(ai)) | |
573 | 575 | then throw("DApp is inactive at this moment") | |
574 | - | else if (!(isDefined(getInteger(this, (toString( | |
576 | + | else if (!(isDefined(getInteger(this, (toString(aD) + l))))) | |
575 | 577 | then throw("You can't claim because results are not finalized") | |
576 | - | else if (!( | |
578 | + | else if (!(aW)) | |
577 | 579 | then throw("There are no additional token freezing for this launchpad") | |
578 | 580 | else { | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | if (( | |
581 | + | let bv = fromBase58String(getStringValue(this, (toString(aD) + G))) | |
582 | + | let cK = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + aa)), 0) | |
583 | + | let aH = valueOrElse(getInteger(this, (toString(aD) + k)), 0) | |
584 | + | let aI = valueOrElse(getInteger(this, (toString(aD) + A)), 0) | |
585 | + | let cL = getIntegerValue(this, (toString(aD) + H)) | |
586 | + | let cM = ((aH + aI) + cL) | |
587 | + | if ((cK == 0)) | |
586 | 588 | then throw("You are already claimed your tokens or not paid anything") | |
587 | - | else if (( | |
588 | - | then throw(("Your tokens freezed teel " + toString( | |
589 | - | else [ScriptTransfer( | |
589 | + | else if ((cM > height)) | |
590 | + | then throw(("Your tokens freezed teel " + toString(cM))) | |
591 | + | else [ScriptTransfer(aC.caller, cK, bv), IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + aa), 0)] | |
590 | 592 | } | |
591 | 593 | } | |
592 | 594 | ||
593 | 595 | ||
594 | 596 | ||
595 | - | @Callable( | |
596 | - | func transferBuyAsset ( | |
597 | + | @Callable(aC) | |
598 | + | func transferBuyAsset (aD,cN) = if (!(ai)) | |
597 | 599 | then throw("DApp is inactive") | |
598 | - | else if (!(containsElement([ | |
600 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
599 | 601 | then throw("Only admin can call this function") | |
600 | 602 | else { | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | [IntegerEntry((toString( | |
603 | + | let aG = addressFromStringValue(getStringValue(this, (toString(aD) + i))) | |
604 | + | let cO = aA(value(getString(this, (toString(aD) + J)))) | |
605 | + | let bk = cO._1 | |
606 | + | let bl = cO._2 | |
607 | + | let bm = cO._3 | |
608 | + | let bn = cO._4 | |
609 | + | [IntegerEntry((toString(aD) + D), cN), ScriptTransfer(aG, cN, bk)] | |
608 | 610 | } | |
609 | 611 | ||
610 | 612 | ||
611 | 613 | ||
612 | - | @Callable( | |
613 | - | func shutdown () = if (!( | |
614 | + | @Callable(aC) | |
615 | + | func shutdown () = if (!(ai)) | |
614 | 616 | then throw("DApp already inactive") | |
615 | - | else if (!(containsElement([ | |
617 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
616 | 618 | then throw("Only admin can call this function") | |
617 | 619 | else [BooleanEntry(a, false)] | |
618 | 620 | ||
619 | 621 | ||
620 | 622 | ||
621 | - | @Callable( | |
622 | - | func activate () = if ( | |
623 | + | @Callable(aC) | |
624 | + | func activate () = if (ai) | |
623 | 625 | then throw("DApp already active") | |
624 | - | else if (!(containsElement([ | |
626 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
625 | 627 | then throw("Only admin can call this function") | |
626 | 628 | else [BooleanEntry(a, true)] | |
627 | 629 | ||
628 | 630 | ||
629 | - | @Verifier( | |
630 | - | func | |
631 | - | let | |
632 | - | let | |
631 | + | @Verifier(cP) | |
632 | + | func cQ () = { | |
633 | + | let cR = { | |
634 | + | let cS = if (sigVerify(cP.bodyBytes, cP.proofs[0], ap)) | |
633 | 635 | then 1 | |
634 | 636 | else 0 | |
635 | - | let | |
637 | + | let cT = if (sigVerify(cP.bodyBytes, cP.proofs[1], aq)) | |
636 | 638 | then 1 | |
637 | 639 | else 0 | |
638 | - | let | |
640 | + | let cU = if (sigVerify(cP.bodyBytes, cP.proofs[2], ar)) | |
639 | 641 | then 1 | |
640 | 642 | else 0 | |
641 | - | ((( | |
643 | + | (((cS + cT) + cU) >= 2) | |
642 | 644 | } | |
643 | - | let | |
645 | + | let cV = if (if (if (sigVerify(cP.bodyBytes, cP.proofs[0], ap)) | |
644 | 646 | then true | |
645 | - | else sigVerify( | |
647 | + | else sigVerify(cP.bodyBytes, cP.proofs[0], aq)) | |
646 | 648 | then true | |
647 | - | else sigVerify( | |
649 | + | else sigVerify(cP.bodyBytes, cP.proofs[0], ar)) | |
648 | 650 | then true | |
649 | - | else sigVerify( | |
650 | - | let | |
651 | - | if ($isInstanceOf( | |
651 | + | else sigVerify(cP.bodyBytes, cP.proofs[0], ag) | |
652 | + | let am = cP | |
653 | + | if ($isInstanceOf(am, "DataTransaction")) | |
652 | 654 | then { | |
653 | - | let | |
654 | - | if (valueOrElse(getBoolean( | |
655 | - | then | |
655 | + | let cW = am | |
656 | + | if (valueOrElse(getBoolean(ab, e), false)) | |
657 | + | then cV | |
656 | 658 | else false | |
657 | 659 | } | |
658 | - | else | |
660 | + | else cR | |
659 | 661 | } | |
660 | 662 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "admin_pub_1" | |
7 | 7 | ||
8 | 8 | let c = "admin_pub_2" | |
9 | 9 | ||
10 | 10 | let d = "admin_pub_3" | |
11 | 11 | ||
12 | 12 | let e = "launchpad_data_transaction_status" | |
13 | 13 | ||
14 | 14 | let f = "launchpad_next_id" | |
15 | 15 | ||
16 | 16 | let g = "launchpad_active_id" | |
17 | 17 | ||
18 | 18 | let h = "init_caller" | |
19 | 19 | ||
20 | 20 | let i = "_address" | |
21 | 21 | ||
22 | 22 | let j = "_init_height" | |
23 | 23 | ||
24 | 24 | let k = "_start_height" | |
25 | 25 | ||
26 | 26 | let l = "_finalise_height" | |
27 | 27 | ||
28 | 28 | let m = "_comission" | |
29 | 29 | ||
30 | 30 | let n = "_asset_id" | |
31 | 31 | ||
32 | 32 | let o = "_total_token_amount" | |
33 | 33 | ||
34 | 34 | let p = "_total_buy_asset_sold" | |
35 | 35 | ||
36 | 36 | let q = "_tokens_per_ticket" | |
37 | 37 | ||
38 | 38 | let r = "_price_per_token" | |
39 | 39 | ||
40 | 40 | let s = "_swop_per_ticket" | |
41 | 41 | ||
42 | 42 | let t = "_tickets_swopfi_members" | |
43 | 43 | ||
44 | 44 | let u = "_tokens_access_list" | |
45 | 45 | ||
46 | 46 | let v = "_tokens_per_allocation" | |
47 | 47 | ||
48 | 48 | let w = "_ticket_last_number_high_competition" | |
49 | 49 | ||
50 | 50 | let x = "_SWOP_amount" | |
51 | 51 | ||
52 | 52 | let y = "_ref_id" | |
53 | 53 | ||
54 | 54 | let z = "_verify_hash" | |
55 | 55 | ||
56 | 56 | let A = "_duration" | |
57 | 57 | ||
58 | 58 | let B = "_total_purchased_buy_asset_in_marketing" | |
59 | 59 | ||
60 | 60 | let C = "_total_purchased_buy_asset_in_marketing_finalized" | |
61 | 61 | ||
62 | 62 | let D = "_transfer_buy_asset" | |
63 | 63 | ||
64 | 64 | let E = "_freeze_swop_duration" | |
65 | 65 | ||
66 | 66 | let F = "_freeze_additional_token" | |
67 | 67 | ||
68 | 68 | let G = "_freeze_token_id" | |
69 | 69 | ||
70 | 70 | let H = "_freeze_token_duration" | |
71 | 71 | ||
72 | 72 | let I = "_freeze_token_per_ticket" | |
73 | 73 | ||
74 | 74 | let J = "_buy_token" | |
75 | 75 | ||
76 | 76 | let K = "_claim_params" | |
77 | 77 | ||
78 | 78 | let L = "_high_competition_comission" | |
79 | 79 | ||
80 | 80 | let M = "_high_competition_sale" | |
81 | 81 | ||
82 | - | let N = "_ticket_last_number" | |
82 | + | let N = "_high_competition_ticket_last_number" | |
83 | 83 | ||
84 | 84 | let O = "_tickets_high_competition" | |
85 | 85 | ||
86 | 86 | let P = "_total_buy_asset_sold_high_competition" | |
87 | 87 | ||
88 | 88 | let Q = "_bought_tickets" | |
89 | 89 | ||
90 | 90 | let R = "_tickets_number" | |
91 | 91 | ||
92 | 92 | let S = "_tickets_number_high_competition" | |
93 | 93 | ||
94 | 94 | let T = "_bought_tickets_high_competition" | |
95 | 95 | ||
96 | 96 | let U = "_available_purchase_marketing" | |
97 | 97 | ||
98 | 98 | let V = "_purchased_buy_asset_in_marketing" | |
99 | 99 | ||
100 | 100 | let W = "_bought_allocations" | |
101 | 101 | ||
102 | 102 | let X = "_claim_status" | |
103 | 103 | ||
104 | 104 | let Y = "_tickets_result" | |
105 | 105 | ||
106 | - | let Z = "_ | |
106 | + | let Z = "_tickets_result_high_competition" | |
107 | 107 | ||
108 | - | let aa = | |
108 | + | let aa = "_freeze_token_amount" | |
109 | 109 | ||
110 | - | let ab = Address(base58' | |
110 | + | let ab = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
111 | 111 | ||
112 | - | let ac = Address(base58' | |
112 | + | let ac = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
113 | 113 | ||
114 | - | let ad = Address(base58' | |
114 | + | let ad = Address(base58'3N2hBdeDEs7wCNA9EY8qv3B6drjgKD64xQG') | |
115 | 115 | ||
116 | - | let ae = base58' | |
116 | + | let ae = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
117 | 117 | ||
118 | - | let af = base58' | |
118 | + | let af = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
119 | 119 | ||
120 | - | let ag = | |
120 | + | let ag = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
121 | 121 | ||
122 | - | let ah = | |
122 | + | let ah = 2 | |
123 | 123 | ||
124 | - | let ai = valueOrElse( | |
124 | + | let ai = valueOrElse(getBoolean(this, a), true) | |
125 | 125 | ||
126 | - | func aj (ak) = { | |
127 | - | let al = getString(aa, ak) | |
128 | - | if ($isInstanceOf(al, "String")) | |
126 | + | let aj = valueOrElse(getIntegerValue(this, g), -1) | |
127 | + | ||
128 | + | func ak (al) = { | |
129 | + | let am = getString(ab, al) | |
130 | + | if ($isInstanceOf(am, "String")) | |
129 | 131 | then { | |
130 | - | let | |
131 | - | fromBase58String( | |
132 | + | let an = am | |
133 | + | fromBase58String(an) | |
132 | 134 | } | |
133 | 135 | else { | |
134 | - | let | |
136 | + | let ao = am | |
135 | 137 | throw("Admin public key is empty") | |
136 | 138 | } | |
137 | 139 | } | |
138 | 140 | ||
139 | 141 | ||
140 | - | let | |
142 | + | let ap = ak(b) | |
141 | 143 | ||
142 | - | let | |
144 | + | let aq = ak(c) | |
143 | 145 | ||
144 | - | let | |
146 | + | let ar = ak(d) | |
145 | 147 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ($isInstanceOf( | |
148 | + | func as (at) = { | |
149 | + | let am = at | |
150 | + | if ($isInstanceOf(am, "ByteVector")) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | $Tuple3( | |
152 | + | let au = am | |
153 | + | let av = toBase58String(au) | |
154 | + | let aw = valueOrErrorMessage(assetInfo(au), (("Asset " + av) + " doesn't exist")) | |
155 | + | $Tuple3(av, aw.name, aw.decimals) | |
154 | 156 | } | |
155 | - | else if ($isInstanceOf( | |
157 | + | else if ($isInstanceOf(am, "Unit")) | |
156 | 158 | then { | |
157 | - | let | |
159 | + | let ax = am | |
158 | 160 | $Tuple3("WAVES", "WAVES", 8) | |
159 | 161 | } | |
160 | 162 | else throw("Match error") | |
161 | 163 | } | |
162 | 164 | ||
163 | 165 | ||
164 | - | func | |
166 | + | func ay () = valueOrElse(getInteger(this, f), 1) | |
165 | 167 | ||
166 | 168 | ||
167 | - | func | |
169 | + | func az () = valueOrElse(getInteger(ae, ((("rpd_balance_" + toBase58String(af)) + "_") + toString(this))), 0) | |
168 | 170 | ||
169 | 171 | ||
170 | - | func | |
172 | + | func aA (aB) = if ((aB == "WAVES")) | |
171 | 173 | then $Tuple4(unit, "WAVES", "WAVES", 8) | |
172 | 174 | else { | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | $Tuple4( | |
175 | + | let av = aB | |
176 | + | let au = fromBase58String(aB) | |
177 | + | let aw = valueOrErrorMessage(assetInfo(au), (("Asset " + av) + " doesn't exist")) | |
178 | + | $Tuple4(au, av, aw.name, aw.decimals) | |
177 | 179 | } | |
178 | 180 | ||
179 | 181 | ||
180 | - | @Callable( | |
181 | - | func hashingRandom ( | |
182 | + | @Callable(aC) | |
183 | + | func hashingRandom (aD,aE) = if (!(ai)) | |
182 | 184 | then throw("DApp is inactive at this moment") | |
183 | - | else if (!(containsElement([ | |
185 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
184 | 186 | then throw("Only admin can call this function") | |
185 | - | else [StringEntry((toString( | |
187 | + | else [StringEntry((toString(aD) + z), aE)] | |
186 | 188 | ||
187 | 189 | ||
188 | 190 | ||
189 | - | @Callable( | |
190 | - | func initCaller ( | |
191 | + | @Callable(aC) | |
192 | + | func initCaller (aF) = if (!(ai)) | |
191 | 193 | then throw("DApp is inactive at this moment") | |
192 | - | else if (!(containsElement([ | |
194 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
193 | 195 | then throw("Only admin can call this function") | |
194 | - | else [StringEntry(h, | |
196 | + | else [StringEntry(h, aF)] | |
195 | 197 | ||
196 | 198 | ||
197 | 199 | ||
198 | - | @Callable( | |
199 | - | func init ( | |
200 | + | @Callable(aC) | |
201 | + | func init (aG,aH,aI,aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS,aT,aU,aV,aW,aX) = if (!(ai)) | |
200 | 202 | then throw("DApp is inactive at this moment") | |
201 | - | else if ((toString( | |
203 | + | else if ((toString(aC.caller) != valueOrElse(getString(this, h), ""))) | |
202 | 204 | then throw("Only project admin can call init function") | |
203 | - | else if ((size( | |
205 | + | else if ((size(aC.payments) != 1)) | |
204 | 206 | then throw("One attached payment expected") | |
205 | - | else if ((height > | |
207 | + | else if ((height > aH)) | |
206 | 208 | then throw("Start height must be greater than blockchain height") | |
207 | - | else if (if ( | |
208 | - | then (size( | |
209 | + | else if (if (aW) | |
210 | + | then (size(aX) != 3) | |
209 | 211 | else false) | |
210 | 212 | then throw("Freeze params list must have 3 items") | |
211 | 213 | else { | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | then [BooleanEntry(( | |
214 | + | let aD = ay() | |
215 | + | let aY = toString(aD) | |
216 | + | let aZ = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
217 | + | let ba = aZ._1 | |
218 | + | let bb = aZ._2 | |
219 | + | let bc = as(bb) | |
220 | + | let bd = bc._1 | |
221 | + | let be = bc._2 | |
222 | + | let bf = bc._3 | |
223 | + | let bg = if (aW) | |
224 | + | then [BooleanEntry((aY + F), true), StringEntry((aY + G), aX[0]), IntegerEntry((aY + H), parseIntValue(aX[1])), IntegerEntry((aY + I), parseIntValue(aX[2]))] | |
223 | 225 | else nil | |
224 | - | ([IntegerEntry(( | |
226 | + | ([IntegerEntry((bd + "_launchpad"), aD), IntegerEntry(f, (aD + 1)), StringEntry((aY + i), aG), IntegerEntry((aY + j), height), IntegerEntry((aY + k), aH), IntegerEntry((aY + A), aI), StringEntry((aY + J), aJ), IntegerEntry((aY + E), aR), IntegerEntry((aY + o), ba), StringEntry((aY + n), bd), IntegerEntry((aY + m), aK), IntegerEntry((aY + w), 0), IntegerEntry((aY + q), aL), IntegerEntry((aY + r), aM), IntegerEntry((aY + s), aQ), IntegerEntry((aY + t), aN), IntegerEntry((aY + u), aO), IntegerEntry((aY + v), aP), StringEntry((aY + K), makeString(aS, ",")), BooleanEntry((aY + M), aT), IntegerEntry((aY + L), aU), IntegerEntry((aY + O), aV), IntegerEntry(g, aD), StringEntry(h, "")] ++ bg) | |
225 | 227 | } | |
226 | 228 | ||
227 | 229 | ||
228 | 230 | ||
229 | - | @Callable( | |
230 | - | func commitSwopfiSale ( | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | if (!( | |
231 | + | @Callable(aC) | |
232 | + | func commitSwopfiSale (aD,bh) = { | |
233 | + | let bi = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
234 | + | let ba = bi._1 | |
235 | + | let bb = bi._2 | |
236 | + | let bj = aA(value(getString(this, (toString(aD) + J)))) | |
237 | + | let bk = bj._1 | |
238 | + | let bl = bj._2 | |
239 | + | let bm = bj._3 | |
240 | + | let bn = bj._4 | |
241 | + | let bo = valueOrElse(getInteger(ac, (toString(aC.caller) + x)), 0) | |
242 | + | let bp = (bo / getIntegerValue(this, (toString(aD) + s))) | |
243 | + | let bq = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + Q)), 0) | |
244 | + | let br = (bp - bq) | |
245 | + | let aH = value(getInteger(this, (toString(aD) + k))) | |
246 | + | let aI = value(getInteger(this, (toString(aD) + A))) | |
247 | + | let aW = valueOrElse(getBoolean(this, (toString(aD) + F)), false) | |
248 | + | if (!(ai)) | |
247 | 249 | then throw("DApp is inactive at this moment") | |
248 | - | else if (( | |
250 | + | else if ((aj != aD)) | |
249 | 251 | then throw("There is no active launchpad or this launchpad is ended") | |
250 | - | else if (( | |
252 | + | else if ((aH > height)) | |
251 | 253 | then throw("Launchpad sale not started yet") | |
252 | - | else if ((height > ( | |
254 | + | else if ((height > (aH + aI))) | |
253 | 255 | then throw("Launchpad sale ended") | |
254 | - | else if (if (!( | |
255 | - | then if ((size( | |
256 | + | else if (if (!(aW)) | |
257 | + | then if ((size(aC.payments) != 1)) | |
256 | 258 | then true | |
257 | - | else ( | |
259 | + | else (bb != bk) | |
258 | 260 | else false) | |
259 | - | then throw((("One attached payment in " + | |
260 | - | else if (if ( | |
261 | - | then if ((size( | |
261 | + | then throw((("One attached payment in " + bm) + " expected")) | |
262 | + | else if (if (aW) | |
263 | + | then if ((size(aC.payments) != 2)) | |
262 | 264 | then true | |
263 | - | else ( | |
265 | + | else (bb != bk) | |
264 | 266 | else false) | |
265 | 267 | then { | |
266 | - | let | |
267 | - | throw(((("Two attached payments expected: First in " + | |
268 | + | let bs = getStringValue(this, (toString(aD) + G)) | |
269 | + | throw(((("Two attached payments expected: First in " + bm) + ", second in ") + bs)) | |
268 | 270 | } | |
269 | - | else if (if ((0 >= | |
271 | + | else if (if ((0 >= bp)) | |
270 | 272 | then true | |
271 | - | else (0 >= | |
273 | + | else (0 >= br)) | |
272 | 274 | then throw("Not enought SWOP in staking to buy tickets") | |
273 | 275 | else { | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | if (( | |
288 | - | then throw((("Not enought " + | |
289 | - | else if (( | |
290 | - | then throw((((("Wrong payment. To buy " + toString( | |
276 | + | let bt = getIntegerValue(this, (toString(aD) + r)) | |
277 | + | let aL = getIntegerValue(this, (toString(aD) + q)) | |
278 | + | let bu = aA(getStringValue(this, (toString(aD) + n))) | |
279 | + | let bv = bu._1 | |
280 | + | let bw = bu._2 | |
281 | + | let bx = bu._3 | |
282 | + | let by = bu._4 | |
283 | + | let bz = fraction(aL, bt, pow(10, 0, by, 0, 0, DOWN)) | |
284 | + | let bA = fraction(bz, getIntegerValue(this, (toString(aD) + m)), 100) | |
285 | + | let bB = (ba / (bz + bA)) | |
286 | + | let bC = min([bB, br]) | |
287 | + | let bD = (bC * (bz + bA)) | |
288 | + | let bE = (ba - bD) | |
289 | + | if ((bB == 0)) | |
290 | + | then throw((("Not enought " + bm) + " to buy tickets")) | |
291 | + | else if ((bE != 0)) | |
292 | + | then throw((((("Wrong payment. To buy " + toString(bC)) + "tickets you need to pay ") + toString(bD)) + bm)) | |
291 | 293 | else { | |
292 | - | let | |
294 | + | let bg = if (aW) | |
293 | 295 | then { | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | if (if (( | |
296 | + | let bs = getStringValue(this, (toString(aD) + G)) | |
297 | + | let bF = getIntegerValue(this, (toString(aD) + I)) | |
298 | + | let bG = $Tuple2(aC.payments[1].amount, aC.payments[1].assetId) | |
299 | + | let bH = bG._1 | |
300 | + | let bI = bG._2 | |
301 | + | let bJ = as(bb) | |
302 | + | let bK = bJ._1 | |
303 | + | let bL = bJ._2 | |
304 | + | let bM = bJ._3 | |
305 | + | let bN = (bF * bB) | |
306 | + | if (if ((bK != bs)) | |
305 | 307 | then true | |
306 | - | else ( | |
307 | - | then throw((((("You need to add " + toString( | |
308 | - | else [IntegerEntry((((toString( | |
308 | + | else (bN != bH)) | |
309 | + | then throw((((("You need to add " + toString(bN)) + " ") + bL) + " as a second payment")) | |
310 | + | else [IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + aa), bH)] | |
309 | 311 | } | |
310 | 312 | else nil | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | then ("," + | |
316 | - | else ("" + | |
317 | - | let | |
318 | - | then invoke( | |
313 | + | let bO = valueOrElse(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + R)), "") | |
314 | + | let bP = getIntegerValue(this, (toString(aD) + w)) | |
315 | + | let bQ = ((toString((bP + 1)) + "-") + toString((bP + bC))) | |
316 | + | let bR = (bO + (if ((bO != "")) | |
317 | + | then ("," + bQ) | |
318 | + | else ("" + bQ))) | |
319 | + | let bS = if ((bk == af)) | |
320 | + | then invoke(ae, "lockNeutrino", nil, [AttachedPayment(bb, ba)]) | |
319 | 321 | else 0 | |
320 | - | if (( | |
322 | + | if ((bS == bS)) | |
321 | 323 | then { | |
322 | - | let | |
323 | - | if (!(isDefined(getString(this, (((toString( | |
324 | - | then ( | |
325 | - | else | |
324 | + | let bT = ([IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + Q), (bq + bC)), IntegerEntry((toString(aD) + w), (bP + bC)), StringEntry((((toString(aC.caller) + "_") + toString(aD)) + R), bR)] ++ bg) | |
325 | + | if (!(isDefined(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + y))))) | |
326 | + | then (bT ++ [StringEntry((((toString(aC.caller) + "_") + toString(aD)) + y), bh)]) | |
327 | + | else bT | |
326 | 328 | } | |
327 | 329 | else throw("Strict value is not equal to itself.") | |
328 | 330 | } | |
329 | 331 | } | |
330 | 332 | } | |
331 | 333 | ||
332 | 334 | ||
333 | 335 | ||
334 | - | @Callable( | |
335 | - | func commitAccessListSale ( | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | if (!( | |
336 | + | @Callable(aC) | |
337 | + | func commitAccessListSale (aD,bh) = { | |
338 | + | let bU = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
339 | + | let ba = bU._1 | |
340 | + | let bb = bU._2 | |
341 | + | let bV = aA(value(getString(this, (toString(aD) + J)))) | |
342 | + | let bk = bV._1 | |
343 | + | let bl = bV._2 | |
344 | + | let bm = bV._3 | |
345 | + | let bn = bV._4 | |
346 | + | let bW = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + V)), 0) | |
347 | + | let bX = valueOrElse(getInteger(this, (toString(aD) + B)), 0) | |
348 | + | let bY = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + W)), 0) | |
349 | + | let aK = getIntegerValue(this, (toString(aD) + m)) | |
350 | + | let bt = getIntegerValue(this, (toString(aD) + r)) | |
351 | + | let aP = getIntegerValue(this, (toString(aD) + v)) | |
352 | + | let bZ = aA(getStringValue(this, (toString(aD) + n))) | |
353 | + | let bv = bZ._1 | |
354 | + | let bw = bZ._2 | |
355 | + | let bx = bZ._3 | |
356 | + | let by = bZ._4 | |
357 | + | let ca = fraction(fraction(bt, aP, pow(10, 0, by, 0, 0, DOWN)), (100 + aK), 100) | |
358 | + | let aH = value(getInteger(this, (toString(aD) + k))) | |
359 | + | let aI = value(getInteger(this, (toString(aD) + A))) | |
360 | + | if (!(ai)) | |
359 | 361 | then throw("DApp is inactive at this moment") | |
360 | - | else if (( | |
362 | + | else if ((aj != aD)) | |
361 | 363 | then throw("There is no active launchpad or this launchpad is ended") | |
362 | - | else if (( | |
364 | + | else if ((aH > height)) | |
363 | 365 | then throw("Launchpad sale not started yet") | |
364 | - | else if ((height > ( | |
366 | + | else if ((height > (aH + aI))) | |
365 | 367 | then throw("Launchpad sale ended") | |
366 | - | else if (if ((size( | |
368 | + | else if (if ((size(aC.payments) != 1)) | |
367 | 369 | then true | |
368 | - | else ( | |
369 | - | then throw((("One attached payment in " + | |
370 | - | else if (( | |
371 | - | then throw((("You can buy only " + toString( | |
372 | - | else if (if (( | |
373 | - | then (( | |
370 | + | else (bb != bk)) | |
371 | + | then throw((("One attached payment in " + bm) + " expected")) | |
372 | + | else if ((bY >= ah)) | |
373 | + | then throw((("You can buy only " + toString(ah)) + "allocations")) | |
374 | + | else if (if ((ca != ba)) | |
375 | + | then ((ca * 2) != ba) | |
374 | 376 | else false) | |
375 | - | then throw(((("Wrong payment. You can buy 1 or 2 allocations for " + toString( | |
377 | + | then throw(((("Wrong payment. You can buy 1 or 2 allocations for " + toString(ca)) + bm) + " per allocation")) | |
376 | 378 | else { | |
377 | - | let | |
378 | - | let | |
379 | - | then invoke( | |
379 | + | let cb = (ba / ca) | |
380 | + | let bS = if ((bk == af)) | |
381 | + | then invoke(ae, "lockNeutrino", nil, [AttachedPayment(bb, ba)]) | |
380 | 382 | else 0 | |
381 | - | if (( | |
383 | + | if ((bS == bS)) | |
382 | 384 | then { | |
383 | - | let | |
384 | - | if (!(isDefined(getString(this, (((toString( | |
385 | - | then ( | |
386 | - | else | |
385 | + | let bT = [IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + W), (bY + cb)), IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + V), (bW + ba)), IntegerEntry((toString(aD) + B), (bX + ba))] | |
386 | + | if (!(isDefined(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + y))))) | |
387 | + | then (bT ++ [StringEntry((((toString(aC.caller) + "_") + toString(aD)) + y), bh)]) | |
388 | + | else bT | |
387 | 389 | } | |
388 | 390 | else throw("Strict value is not equal to itself.") | |
389 | 391 | } | |
390 | 392 | } | |
391 | 393 | ||
392 | 394 | ||
393 | 395 | ||
394 | - | @Callable( | |
395 | - | func commitHighCompetitionSale ( | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | if (!( | |
396 | + | @Callable(aC) | |
397 | + | func commitHighCompetitionSale (aD,bh) = { | |
398 | + | let cc = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId) | |
399 | + | let ba = cc._1 | |
400 | + | let bb = cc._2 | |
401 | + | let cd = aA(value(getString(this, (toString(aD) + J)))) | |
402 | + | let bk = cd._1 | |
403 | + | let bl = cd._2 | |
404 | + | let bm = cd._3 | |
405 | + | let bn = cd._4 | |
406 | + | let aH = value(getInteger(this, (toString(aD) + k))) | |
407 | + | let aI = value(getInteger(this, (toString(aD) + A))) | |
408 | + | let ce = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + T)), 0) | |
409 | + | let cf = valueOrElse(getBoolean(this, (toString(aD) + M)), false) | |
410 | + | if (!(ai)) | |
409 | 411 | then throw("DApp is inactive at this moment") | |
410 | - | else if (( | |
412 | + | else if ((aj != aD)) | |
411 | 413 | then throw("There is no active launchpad or this launchpad is ended") | |
412 | - | else if (!( | |
414 | + | else if (!(cf)) | |
413 | 415 | then throw("There is no high competition sale for this launchpad") | |
414 | - | else if (( | |
416 | + | else if ((aH > height)) | |
415 | 417 | then throw("Launchpad sale not started yet") | |
416 | - | else if ((height > ( | |
418 | + | else if ((height > (aH + aI))) | |
417 | 419 | then throw("Launchpad sale ended") | |
418 | - | else if (if ((size( | |
420 | + | else if (if ((size(aC.payments) != 1)) | |
419 | 421 | then true | |
420 | - | else ( | |
421 | - | then throw((("One attached payment in " + | |
422 | + | else (bb != bk)) | |
423 | + | then throw((("One attached payment in " + bm) + " expected")) | |
422 | 424 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | if (( | |
436 | - | then throw((("Not enought " + | |
437 | - | else if (( | |
438 | - | then throw((((("Wrong payment. To buy " + toString( | |
425 | + | let bt = getIntegerValue(this, (toString(aD) + r)) | |
426 | + | let aL = getIntegerValue(this, (toString(aD) + q)) | |
427 | + | let cg = aA(getStringValue(this, (toString(aD) + n))) | |
428 | + | let bv = cg._1 | |
429 | + | let bw = cg._2 | |
430 | + | let bx = cg._3 | |
431 | + | let by = cg._4 | |
432 | + | let bz = fraction(aL, bt, pow(10, 0, by, 0, 0, DOWN)) | |
433 | + | let bA = fraction(bz, getIntegerValue(this, (toString(aD) + L)), 100) | |
434 | + | let bB = (ba / (bz + bA)) | |
435 | + | let ch = (bB * (bz + bA)) | |
436 | + | let bE = (ba - ch) | |
437 | + | if ((bB == 0)) | |
438 | + | then throw((("Not enought " + bm) + " to buy tickets")) | |
439 | + | else if ((bE != 0)) | |
440 | + | then throw((((("Wrong payment. To buy " + toString(bB)) + "tickets you need to pay ") + toString(ch)) + bm)) | |
439 | 441 | else { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | then ("," + | |
445 | - | else ("" + | |
446 | - | let | |
447 | - | then invoke( | |
442 | + | let bO = valueOrElse(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + S)), "") | |
443 | + | let bP = getIntegerValue(this, (toString(aD) + N)) | |
444 | + | let bQ = ((toString((bP + 1)) + "-") + toString((bP + bB))) | |
445 | + | let bR = (bO + (if ((bO != "")) | |
446 | + | then ("," + bQ) | |
447 | + | else ("" + bQ))) | |
448 | + | let bS = if ((bk == af)) | |
449 | + | then invoke(ae, "lockNeutrino", nil, [AttachedPayment(bb, ba)]) | |
448 | 450 | else 0 | |
449 | - | if (( | |
451 | + | if ((bS == bS)) | |
450 | 452 | then { | |
451 | - | let | |
452 | - | if (!(isDefined(getString(this, (((toString( | |
453 | - | then ( | |
454 | - | else | |
453 | + | let bT = [IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + T), (ce + bB)), IntegerEntry((toString(aD) + N), (bP + bB)), StringEntry((((toString(aC.caller) + "_") + toString(aD)) + S), bR)] | |
454 | + | if (!(isDefined(getString(this, (((toString(aC.caller) + "_") + toString(aD)) + y))))) | |
455 | + | then (bT ++ [StringEntry((((toString(aC.caller) + "_") + toString(aD)) + y), bh)]) | |
456 | + | else bT | |
455 | 457 | } | |
456 | 458 | else throw("Strict value is not equal to itself.") | |
457 | 459 | } | |
458 | 460 | } | |
459 | 461 | } | |
460 | 462 | ||
461 | 463 | ||
462 | 464 | ||
463 | - | @Callable( | |
464 | - | func finalise ( | |
465 | - | let | |
466 | - | let | |
467 | - | if (!( | |
465 | + | @Callable(aC) | |
466 | + | func finalise (aD,ci,cj) = { | |
467 | + | let ck = getStringValue(this, (toString(aD) + z)) | |
468 | + | let cl = toBase58String(sha256((toBytes(ci) + toBytes(cj)))) | |
469 | + | if (!(ai)) | |
468 | 470 | then throw("DApp is inactive at this moment") | |
469 | - | else if (!(containsElement([ | |
471 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
470 | 472 | then throw("Only admin can call this function") | |
471 | - | else if (( | |
473 | + | else if ((cl != ck)) | |
472 | 474 | then throw("vrf Height hash not matching") | |
473 | 475 | else { | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | if (( | |
476 | + | let cm = aA(value(getString(this, (toString(aD) + J)))) | |
477 | + | let bk = cm._1 | |
478 | + | let bl = cm._2 | |
479 | + | let bm = cm._3 | |
480 | + | let bn = cm._4 | |
481 | + | let aG = addressFromStringValue(getStringValue(this, (toString(aD) + i))) | |
482 | + | let aK = getIntegerValue(this, (toString(aD) + m)) | |
483 | + | let cn = getIntegerValue(this, (toString(aD) + L)) | |
484 | + | let co = valueOrElse(getInteger(this, (toString(aD) + D)), 0) | |
485 | + | let cp = getIntegerValue(this, (toString(aD) + p)) | |
486 | + | let cq = valueOrElse(getIntegerValue(this, (toString(aD) + P)), 0) | |
487 | + | let cr = fraction(cp, aK, 100) | |
488 | + | let cs = fraction(cq, cn, 100) | |
489 | + | let ct = getIntegerValue(this, (toString(aD) + C)) | |
490 | + | let cu = fraction(ct, aK, 100) | |
491 | + | let cv = (((((cp + ct) + cr) + cu) + cq) + cs) | |
492 | + | if ((co > (cp + ct))) | |
491 | 493 | then throw("Can't transfer negative value to project") | |
492 | 494 | else { | |
493 | - | let | |
494 | - | then invoke( | |
495 | + | let bS = if ((bk == af)) | |
496 | + | then invoke(ae, "unlockNeutrino", [cv, toBase58String(af)], nil) | |
495 | 497 | else 0 | |
496 | - | if (( | |
497 | - | then [IntegerEntry((toString( | |
498 | + | if ((bS == bS)) | |
499 | + | then [IntegerEntry((toString(aD) + l), height), ScriptTransfer(aG, ((cp + ct) - co), bk), ScriptTransfer(ad, ((cr + cu) + cs), bk)] | |
498 | 500 | else throw("Strict value is not equal to itself.") | |
499 | 501 | } | |
500 | 502 | } | |
501 | 503 | } | |
502 | 504 | ||
503 | 505 | ||
504 | 506 | ||
505 | - | @Callable( | |
506 | - | func claim ( | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | if (!( | |
507 | + | @Callable(aC) | |
508 | + | func claim (aD) = { | |
509 | + | let cw = valueOrElse(getBoolean(this, (((toString(aC.caller) + "_") + toString(aD)) + X)), false) | |
510 | + | let cx = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + Q)), 0) | |
511 | + | let bY = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + W)), 0) | |
512 | + | if (!(ai)) | |
511 | 513 | then throw("DApp is inactive at this moment") | |
512 | - | else if (!(isDefined(getInteger(this, (toString( | |
514 | + | else if (!(isDefined(getInteger(this, (toString(aD) + l))))) | |
513 | 515 | then throw("You can't claim because results are not finalized") | |
514 | - | else if ( | |
516 | + | else if (cw) | |
515 | 517 | then throw("You are already claimed") | |
516 | - | else if (if (( | |
517 | - | then ( | |
518 | + | else if (if ((cx == 0)) | |
519 | + | then (bY == 0) | |
518 | 520 | else false) | |
519 | 521 | then throw("You can't claim because you don't buy anything") | |
520 | 522 | else { | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | if (if ((0 > | |
523 | + | let cy = aA(value(getString(this, (toString(aD) + J)))) | |
524 | + | let bk = cy._1 | |
525 | + | let bl = cy._2 | |
526 | + | let bm = cy._3 | |
527 | + | let bn = cy._4 | |
528 | + | let cz = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + Y)), 0) | |
529 | + | let cA = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + U)), 0) | |
530 | + | let aK = getIntegerValue(this, (toString(aD) + m)) | |
531 | + | let cB = min([bY, cA]) | |
532 | + | let bt = getIntegerValue(this, (toString(aD) + r)) | |
533 | + | let aL = getIntegerValue(this, (toString(aD) + q)) | |
534 | + | let cC = aA(getStringValue(this, (toString(aD) + n))) | |
535 | + | let bv = cC._1 | |
536 | + | let bw = cC._2 | |
537 | + | let bx = cC._3 | |
538 | + | let by = cC._4 | |
539 | + | let bz = fraction(aL, bt, pow(10, 0, by, 0, 0, DOWN)) | |
540 | + | let aP = getIntegerValue(this, (toString(aD) + v)) | |
541 | + | let cD = ((cz * aL) + (cB * aP)) | |
542 | + | let cE = ((bY - cB) * aP) | |
543 | + | let cF = fraction(fraction(cE, bt, pow(10, 0, by, 0, 0, DOWN)), (100 + aK), 100) | |
544 | + | let cG = fraction(((cx - cz) * bz), (100 + aK), 100) | |
545 | + | if (if ((0 > cF)) | |
544 | 546 | then true | |
545 | - | else (0 > | |
547 | + | else (0 > cG)) | |
546 | 548 | then throw("Error with allowed allocation param or wonned tickets param please contact support") | |
547 | 549 | else { | |
548 | - | let | |
549 | - | let | |
550 | - | then [ScriptTransfer( | |
550 | + | let cH = (cG + cG) | |
551 | + | let cI = if ((cH > 0)) | |
552 | + | then [ScriptTransfer(aC.caller, cH, bk)] | |
551 | 553 | else nil | |
552 | - | let | |
553 | - | then [ScriptTransfer( | |
554 | + | let cJ = if ((cD > 0)) | |
555 | + | then [ScriptTransfer(aC.caller, cD, bv)] | |
554 | 556 | else nil | |
555 | - | let | |
556 | - | then ( | |
557 | + | let bS = if (if ((cH > 0)) | |
558 | + | then (bk == af) | |
557 | 559 | else false) | |
558 | - | then invoke( | |
560 | + | then invoke(ae, "unlockNeutrino", [cH, toBase58String(af)], nil) | |
559 | 561 | else 0 | |
560 | - | if (( | |
561 | - | then (([BooleanEntry((((toString( | |
562 | + | if ((bS == bS)) | |
563 | + | then (([BooleanEntry((((toString(aC.caller) + "_") + toString(aD)) + X), true)] ++ cJ) ++ cI) | |
562 | 564 | else throw("Strict value is not equal to itself.") | |
563 | 565 | } | |
564 | 566 | } | |
565 | 567 | } | |
566 | 568 | ||
567 | 569 | ||
568 | 570 | ||
569 | - | @Callable( | |
570 | - | func claimFreezeToken ( | |
571 | - | let | |
572 | - | if (!( | |
571 | + | @Callable(aC) | |
572 | + | func claimFreezeToken (aD) = { | |
573 | + | let aW = valueOrElse(getBoolean(this, (toString(aD) + F)), false) | |
574 | + | if (!(ai)) | |
573 | 575 | then throw("DApp is inactive at this moment") | |
574 | - | else if (!(isDefined(getInteger(this, (toString( | |
576 | + | else if (!(isDefined(getInteger(this, (toString(aD) + l))))) | |
575 | 577 | then throw("You can't claim because results are not finalized") | |
576 | - | else if (!( | |
578 | + | else if (!(aW)) | |
577 | 579 | then throw("There are no additional token freezing for this launchpad") | |
578 | 580 | else { | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | if (( | |
581 | + | let bv = fromBase58String(getStringValue(this, (toString(aD) + G))) | |
582 | + | let cK = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(aD)) + aa)), 0) | |
583 | + | let aH = valueOrElse(getInteger(this, (toString(aD) + k)), 0) | |
584 | + | let aI = valueOrElse(getInteger(this, (toString(aD) + A)), 0) | |
585 | + | let cL = getIntegerValue(this, (toString(aD) + H)) | |
586 | + | let cM = ((aH + aI) + cL) | |
587 | + | if ((cK == 0)) | |
586 | 588 | then throw("You are already claimed your tokens or not paid anything") | |
587 | - | else if (( | |
588 | - | then throw(("Your tokens freezed teel " + toString( | |
589 | - | else [ScriptTransfer( | |
589 | + | else if ((cM > height)) | |
590 | + | then throw(("Your tokens freezed teel " + toString(cM))) | |
591 | + | else [ScriptTransfer(aC.caller, cK, bv), IntegerEntry((((toString(aC.caller) + "_") + toString(aD)) + aa), 0)] | |
590 | 592 | } | |
591 | 593 | } | |
592 | 594 | ||
593 | 595 | ||
594 | 596 | ||
595 | - | @Callable( | |
596 | - | func transferBuyAsset ( | |
597 | + | @Callable(aC) | |
598 | + | func transferBuyAsset (aD,cN) = if (!(ai)) | |
597 | 599 | then throw("DApp is inactive") | |
598 | - | else if (!(containsElement([ | |
600 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
599 | 601 | then throw("Only admin can call this function") | |
600 | 602 | else { | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | [IntegerEntry((toString( | |
603 | + | let aG = addressFromStringValue(getStringValue(this, (toString(aD) + i))) | |
604 | + | let cO = aA(value(getString(this, (toString(aD) + J)))) | |
605 | + | let bk = cO._1 | |
606 | + | let bl = cO._2 | |
607 | + | let bm = cO._3 | |
608 | + | let bn = cO._4 | |
609 | + | [IntegerEntry((toString(aD) + D), cN), ScriptTransfer(aG, cN, bk)] | |
608 | 610 | } | |
609 | 611 | ||
610 | 612 | ||
611 | 613 | ||
612 | - | @Callable( | |
613 | - | func shutdown () = if (!( | |
614 | + | @Callable(aC) | |
615 | + | func shutdown () = if (!(ai)) | |
614 | 616 | then throw("DApp already inactive") | |
615 | - | else if (!(containsElement([ | |
617 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
616 | 618 | then throw("Only admin can call this function") | |
617 | 619 | else [BooleanEntry(a, false)] | |
618 | 620 | ||
619 | 621 | ||
620 | 622 | ||
621 | - | @Callable( | |
622 | - | func activate () = if ( | |
623 | + | @Callable(aC) | |
624 | + | func activate () = if (ai) | |
623 | 625 | then throw("DApp already active") | |
624 | - | else if (!(containsElement([ | |
626 | + | else if (!(containsElement([ap, aq, ar], aC.callerPublicKey))) | |
625 | 627 | then throw("Only admin can call this function") | |
626 | 628 | else [BooleanEntry(a, true)] | |
627 | 629 | ||
628 | 630 | ||
629 | - | @Verifier( | |
630 | - | func | |
631 | - | let | |
632 | - | let | |
631 | + | @Verifier(cP) | |
632 | + | func cQ () = { | |
633 | + | let cR = { | |
634 | + | let cS = if (sigVerify(cP.bodyBytes, cP.proofs[0], ap)) | |
633 | 635 | then 1 | |
634 | 636 | else 0 | |
635 | - | let | |
637 | + | let cT = if (sigVerify(cP.bodyBytes, cP.proofs[1], aq)) | |
636 | 638 | then 1 | |
637 | 639 | else 0 | |
638 | - | let | |
640 | + | let cU = if (sigVerify(cP.bodyBytes, cP.proofs[2], ar)) | |
639 | 641 | then 1 | |
640 | 642 | else 0 | |
641 | - | ((( | |
643 | + | (((cS + cT) + cU) >= 2) | |
642 | 644 | } | |
643 | - | let | |
645 | + | let cV = if (if (if (sigVerify(cP.bodyBytes, cP.proofs[0], ap)) | |
644 | 646 | then true | |
645 | - | else sigVerify( | |
647 | + | else sigVerify(cP.bodyBytes, cP.proofs[0], aq)) | |
646 | 648 | then true | |
647 | - | else sigVerify( | |
649 | + | else sigVerify(cP.bodyBytes, cP.proofs[0], ar)) | |
648 | 650 | then true | |
649 | - | else sigVerify( | |
650 | - | let | |
651 | - | if ($isInstanceOf( | |
651 | + | else sigVerify(cP.bodyBytes, cP.proofs[0], ag) | |
652 | + | let am = cP | |
653 | + | if ($isInstanceOf(am, "DataTransaction")) | |
652 | 654 | then { | |
653 | - | let | |
654 | - | if (valueOrElse(getBoolean( | |
655 | - | then | |
655 | + | let cW = am | |
656 | + | if (valueOrElse(getBoolean(ab, e), false)) | |
657 | + | then cV | |
656 | 658 | else false | |
657 | 659 | } | |
658 | - | else | |
660 | + | else cR | |
659 | 661 | } | |
660 | 662 |
github/deemru/w8io/169f3d6 765.07 ms ◑