tx · 2qW17c8JnPrwt2Bw4FoKQzpxMSG4bt4Hu6iqKS9WCJre 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje: -0.03000000 Waves 2022.12.01 17:13 [2341379] smart account 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje > SELF 0.00000000 Waves
{ "type": 13, "id": "2qW17c8JnPrwt2Bw4FoKQzpxMSG4bt4Hu6iqKS9WCJre", "fee": 3000000, "feeAssetId": null, "timestamp": 1669904040586, "version": 1, "sender": "3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje", "senderPublicKey": "8JB75GXEKqxmpXc6KVtT9UNqJ3BBSUZDodYD4DU7CUUB", "proofs": [ "2kZeuwPKcSobcEzghKLh1aaJMvwvtWZb436QK6X8Ae4kALbY7wDedDoVuHssJekbsPmB2Dg1pUj5Ee6H3dXaqck8" ], "script": "base64:AAIFAAAAAAAAEUgIAhIJCgcBAQEBAQgBEgASBAoCCAgSAwoBCBIECgIICBIECgIICBIDCgEIEgAiD2dldFN0cmluZ09yRmFpbCIDa2V5IgNTRVAiCEJVRlNDQUxFIgZzY2FsZTgiCHRocm93RXJyIgNtc2ciCGFzU3RyaW5nIgN2YWwiByRtYXRjaDAiBnZhbFN0ciIdY29udmVydFByaWNlQXNzZXRJbnRvSWRvQXNzZXQiEHByaWNlQXNzZXRBbW91bnQiDnByaWNlQXNzZXRNVUxUIgVwcmljZSIJcHJpY2VNVUxUIgxpZG9Bc3NldE1VTFQiD2JQcmljZUFzc2V0TVVMVCINYklkb0Fzc2V0TVVMVCIOYlByaWNlQXNzZXRCVUYiD2JBbW91bnRBc3NldEJVRiIOSWR4Q2ZnSWRvU3RhcnQiEUlkeENmZ0lkb0R1cmF0aW9uIhBJZHhDZmdDbGFpbVN0YXJ0IhNJZHhDZmdDbGFpbUR1cmF0aW9uIgtJZHhDZmdQcmljZSIPSWR4Q2ZnUHJpY2VNdWx0IhBJZHhDZmdJZG9Bc3NldElkIhJJZHhDZmdJZG9Bc3Nld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AAlgAAAABCQEAAAAFdmFsdWUAAAABBQAAAAJkdwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAACYUgAAAAABQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACZHoBAAAAAmRBAAAAAAQAAAACZEIEAAAAAWoJAQAAAAJjawAAAAADCQAAAQAAAAIFAAAAAWoCAAAACkJ5dGVWZWN0b3IEAAAAAmNxBQAAAAFqBQAAAAJjcQMJAAABAAAAAgUAAAABagIAAAAEVW5pdAgFAAAAAmR6AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACZHoAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJkegAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmRCEWOynw==", "chainId": 84, "height": 2341379, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AJ5U4yWhoE2z8pvAgpY4SyJ1vdDDfrpP3RAsGSELq5Aw Next: 9vixyuM1TkeC73BhoPKFjmGe5HDuqpYom75TB1nRUFaC Diff:
Old | New | Differences | |
---|---|---|---|
134 | 134 | func aD (aE) = makeString(["%s%s", "priceAssetBalance", aE], c) | |
135 | 135 | ||
136 | 136 | ||
137 | - | func aF () = "%s | |
137 | + | func aF (aE) = makeString(["%s%s", "remainingAmount", aE], c) | |
138 | 138 | ||
139 | 139 | ||
140 | - | func aG () = "%s__ | |
140 | + | func aG () = "%s__managerPublicKey" | |
141 | 141 | ||
142 | 142 | ||
143 | - | func aH () = | |
143 | + | func aH () = "%s__pendingManagerPublicKey" | |
144 | 144 | ||
145 | 145 | ||
146 | - | func aI ( | |
146 | + | func aI () = split(a(ah()), c) | |
147 | 147 | ||
148 | 148 | ||
149 | - | func | |
149 | + | func aJ (aK) = split(valueOrElse(getString(aK), Y("0", "0", "0", "0", "0")), c) | |
150 | 150 | ||
151 | 151 | ||
152 | - | func aL ( | |
152 | + | func aL () = aJ(ak()) | |
153 | 153 | ||
154 | 154 | ||
155 | - | func aM (aj) = | |
155 | + | func aM (aj) = aJ(ai(aj)) | |
156 | 156 | ||
157 | 157 | ||
158 | - | ||
158 | + | func aN (aj) = split(a(ai(aj)), c) | |
159 | 159 | ||
160 | - | let aO = 1 | |
161 | 160 | ||
162 | - | let | |
161 | + | let aO = 0 | |
163 | 162 | ||
164 | - | let | |
163 | + | let aP = 1 | |
165 | 164 | ||
166 | - | func aR (b,aS,aT,aU,aV) = { | |
167 | - | let Z = parseIntValue(aS[T]) | |
168 | - | let aa = parseIntValue(aS[U]) | |
169 | - | let ab = parseIntValue(aS[V]) | |
170 | - | let ac = parseIntValue(aS[W]) | |
171 | - | let ad = parseIntValue(aS[X]) | |
172 | - | let aW = (Z + aT[aN]) | |
173 | - | let aX = (aa + aT[aO]) | |
174 | - | let aY = aH() | |
175 | - | let O = aY[D] | |
176 | - | let aZ = value(assetInfo(fromBase58String(O))).decimals | |
177 | - | let ba = fraction(aV, e, pow(10, 0, aZ, 0, 0, DOWN)) | |
178 | - | let bb = ((ab + aT[aP]) - aV) | |
179 | - | let bc = ((ac + aT[aQ]) + ba) | |
180 | - | let bd = if ((0 > aX)) | |
165 | + | let aQ = 2 | |
166 | + | ||
167 | + | let aR = 3 | |
168 | + | ||
169 | + | func aS (b,aT,aU,aV,aW) = { | |
170 | + | let Z = parseIntValue(aT[T]) | |
171 | + | let aa = parseIntValue(aT[U]) | |
172 | + | let ab = parseIntValue(aT[V]) | |
173 | + | let ac = parseIntValue(aT[W]) | |
174 | + | let ad = parseIntValue(aT[X]) | |
175 | + | let aX = (Z + aU[aO]) | |
176 | + | let aY = (aa + aU[aP]) | |
177 | + | let aZ = aI() | |
178 | + | let O = aZ[D] | |
179 | + | let ba = value(assetInfo(fromBase58String(O))).decimals | |
180 | + | let bb = fraction(aW, e, pow(10, 0, ba, 0, 0, DOWN)) | |
181 | + | let bc = ((ab + aU[aQ]) - aW) | |
182 | + | let bd = ((ac + aU[aR]) + bb) | |
183 | + | let be = if ((0 > aY)) | |
181 | 184 | then { | |
182 | - | let | |
183 | - | let | |
185 | + | let bf = ((aX - bc) - bd) | |
186 | + | let bg = if ((0 > bf)) | |
184 | 187 | then 0 | |
185 | - | else | |
186 | - | StringEntry(b, ae( | |
188 | + | else bf | |
189 | + | StringEntry(b, ae(aX, bg, bc, bd, aV)) | |
187 | 190 | } | |
188 | - | else StringEntry(b, ae( | |
189 | - | | |
191 | + | else StringEntry(b, ae(aX, aY, bc, bd, aV)) | |
192 | + | be | |
190 | 193 | } | |
191 | 194 | ||
192 | 195 | ||
193 | - | func | |
196 | + | func bh (aj,m,ag,bi) = StringEntry(al("invest", aj, toBase58String(bi)), af(m, ag)) | |
194 | 197 | ||
195 | 198 | ||
196 | - | func | |
199 | + | func bj (aj,m,ag,bi) = StringEntry(al("claim", aj, toBase58String(bi)), af(m, ag)) | |
197 | 200 | ||
198 | 201 | ||
199 | - | func | |
200 | - | let | |
201 | - | let J = parseIntValue( | |
202 | - | let K = parseIntValue( | |
203 | - | let | |
204 | - | let o = parseIntValue( | |
205 | - | let L = parseIntValue( | |
206 | - | let M = | |
207 | - | let | |
208 | - | let N = parseIntValue( | |
209 | - | let O = | |
210 | - | let | |
211 | - | let P = parseIntValue( | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
202 | + | func bk (bl,aj,bi) = { | |
203 | + | let aZ = aI() | |
204 | + | let J = parseIntValue(aZ[x]) | |
205 | + | let K = parseIntValue(aZ[y]) | |
206 | + | let bm = (J + K) | |
207 | + | let o = parseIntValue(aZ[z]) | |
208 | + | let L = parseIntValue(aZ[A]) | |
209 | + | let M = aZ[B] | |
210 | + | let bn = fromBase58String(M) | |
211 | + | let N = parseIntValue(aZ[C]) | |
212 | + | let O = aZ[D] | |
213 | + | let bo = fromBase58String(O) | |
214 | + | let P = parseIntValue(aZ[E]) | |
215 | + | let bp = toString(aj) | |
216 | + | let bq = aN(bp) | |
217 | + | let br = parseIntValue(bq[T]) | |
218 | + | let bs = parseIntValue(bq[X]) | |
219 | + | let bt = if ((J >= bs)) | |
217 | 220 | then J | |
218 | - | else | |
219 | - | let | |
220 | - | then | |
221 | + | else bs | |
222 | + | let bu = if ((height > bm)) | |
223 | + | then bm | |
221 | 224 | else if ((J > height)) | |
222 | 225 | then J | |
223 | 226 | else height | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | then | |
227 | + | let bv = (bu - bt) | |
228 | + | let bw = fraction(br, bv, K) | |
229 | + | let bx = l(bw, P, o, L, N) | |
230 | + | let by = (bl == O) | |
231 | + | let bz = valueOrElse(getBoolean(ao()), false) | |
232 | + | let bA = [if (!(if (by) | |
233 | + | then bz | |
231 | 234 | else false)) | |
232 | 235 | then true | |
233 | 236 | else throw("USDN claim is disabled")] | |
234 | - | if (( | |
235 | - | then if (( | |
236 | - | then $Tuple6([0, -( | |
237 | - | else if (( | |
238 | - | then $Tuple6([0, -( | |
239 | - | else throw(("unsupported assetId: " + | |
237 | + | if ((bA == bA)) | |
238 | + | then if ((bl == O)) | |
239 | + | then $Tuple6([0, -(bw), bw, 0], bw, bo, bq, bu, [bw, bx]) | |
240 | + | else if ((bl == M)) | |
241 | + | then $Tuple6([0, -(bw), 0, bx], bx, bn, bq, bu, [bw, bx]) | |
242 | + | else throw(("unsupported assetId: " + bl)) | |
240 | 243 | else throw("Strict value is not equal to itself.") | |
241 | 244 | } | |
242 | 245 | ||
243 | 246 | ||
244 | - | func | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
247 | + | func bB (O,bp,bC,bD) = { | |
248 | + | let bE = value(getInteger(aw(O))) | |
249 | + | let bF = value(getInteger(ay(O))) | |
250 | + | let bG = value(getInteger(aq())) | |
251 | + | let bH = valueOrElse(getInteger(ar()), 0) | |
252 | + | let bI = isDefined(getInteger(au(0))) | |
253 | + | let bJ = if ((bH > 0)) | |
251 | 254 | then { | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | + | let bK = value(getInteger(as(bH))) | |
256 | + | let bL = value(getInteger(au(bH))) | |
257 | + | let bM = if ((height > bL)) | |
255 | 258 | then { | |
256 | - | let | |
257 | - | let | |
259 | + | let bN = (bH + 1) | |
260 | + | let bO = if ((height > (bL + bG))) | |
258 | 261 | then { | |
259 | - | let | |
260 | - | if (( | |
261 | - | then ((height - | |
262 | - | else (height - | |
262 | + | let bP = ((height - bL) % bG) | |
263 | + | if ((bP == 0)) | |
264 | + | then ((height - bG) + 1) | |
265 | + | else (height - bP) | |
263 | 266 | } | |
264 | - | else ( | |
265 | - | let | |
266 | - | $Tuple3( | |
267 | + | else (bL + 1) | |
268 | + | let bQ = ((bO + bG) - 1) | |
269 | + | $Tuple3(bN, bO, bQ) | |
267 | 270 | } | |
268 | - | else $Tuple3( | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | $Tuple3( | |
271 | + | else $Tuple3(bH, bK, bL) | |
272 | + | let bN = bM._1 | |
273 | + | let bO = bM._2 | |
274 | + | let bQ = bM._3 | |
275 | + | $Tuple3(bN, bO, bQ) | |
273 | 276 | } | |
274 | - | else if ( | |
277 | + | else if (bI) | |
275 | 278 | then { | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | + | let bR = value(getInteger(as(0))) | |
280 | + | let bS = value(getInteger(au(0))) | |
281 | + | let bT = if ((height > bS)) | |
279 | 282 | then { | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | $Tuple3( | |
283 | + | let bN = (bH + 1) | |
284 | + | let bO = (bS + 1) | |
285 | + | let bQ = ((bO + bG) - 1) | |
286 | + | $Tuple3(bN, bO, bQ) | |
284 | 287 | } | |
285 | - | else $Tuple3( | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | $Tuple3( | |
288 | + | else $Tuple3(bH, bR, bS) | |
289 | + | let bN = bT._1 | |
290 | + | let bO = bT._2 | |
291 | + | let bQ = bT._3 | |
292 | + | $Tuple3(bN, bO, bQ) | |
290 | 293 | } | |
291 | - | else $Tuple3( | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | if ($isInstanceOf( | |
304 | - | then | |
294 | + | else $Tuple3(bH, valueOrElse(getInteger(as(bH)), height), valueOrElse(getInteger(au(bH)), ((height + bG) - 1))) | |
295 | + | let bN = bJ._1 | |
296 | + | let bO = bJ._2 | |
297 | + | let bQ = bJ._3 | |
298 | + | let bU = valueOrElse(getInteger(az(O, bN)), bE) | |
299 | + | let bV = valueOrElse(getInteger(aA(O, bN, bp)), bF) | |
300 | + | let aW = valueOrElse(getInteger(aD(bp)), 0) | |
301 | + | let bW = min([(bC + aW), bU, bV]) | |
302 | + | let bX = value(getInteger(av())) | |
303 | + | let bY = e | |
304 | + | let bZ = { | |
305 | + | let ca = invoke(addressFromStringValue(value(getString(aB()))), "putOneTknV2WithoutTakeFeeREADONLY", [bY, O], nil) | |
306 | + | if ($isInstanceOf(ca, "(Int, Int, Int)")) | |
307 | + | then ca | |
305 | 308 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
306 | 309 | } | |
307 | - | if (( | |
310 | + | if ((bZ == bZ)) | |
308 | 311 | then { | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | if ($isInstanceOf( | |
316 | - | then | |
312 | + | let cb = bZ._3 | |
313 | + | let cc = bZ._2 | |
314 | + | let cd = bZ._1 | |
315 | + | let ce = value(getString(aC())) | |
316 | + | let cf = { | |
317 | + | let ca = invoke(addressFromStringValue(value(getString(aB()))), "getOneTknV2READONLY", [ce, cd], nil) | |
318 | + | if ($isInstanceOf(ca, "(Int, Int)")) | |
319 | + | then ca | |
317 | 320 | else throw("Couldn't cast Any to (Int, Int)") | |
318 | 321 | } | |
319 | - | if (( | |
322 | + | if ((cf == cf)) | |
320 | 323 | then { | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | $Tuple10( | |
324 | + | let cg = cf._2 | |
325 | + | let ch = cf._1 | |
326 | + | let ci = fraction(bY, e, ch) | |
327 | + | let cj = (bQ - height) | |
328 | + | $Tuple10(bW, bU, bV, bD, bX, ci, cj, bN, bO, bQ) | |
326 | 329 | } | |
327 | 330 | else throw("Strict value is not equal to itself.") | |
328 | 331 | } | |
330 | 333 | } | |
331 | 334 | ||
332 | 335 | ||
333 | - | func | |
334 | - | let j = getString( | |
336 | + | func ck () = { | |
337 | + | let j = getString(aG()) | |
335 | 338 | if ($isInstanceOf(j, "String")) | |
336 | 339 | then { | |
337 | - | let | |
338 | - | fromBase58String( | |
340 | + | let cl = j | |
341 | + | fromBase58String(cl) | |
339 | 342 | } | |
340 | 343 | else if ($isInstanceOf(j, "Unit")) | |
341 | 344 | then unit | |
343 | 346 | } | |
344 | 347 | ||
345 | 348 | ||
346 | - | func | |
347 | - | let j = getString( | |
349 | + | func cm () = { | |
350 | + | let j = getString(aH()) | |
348 | 351 | if ($isInstanceOf(j, "String")) | |
349 | 352 | then { | |
350 | - | let | |
351 | - | fromBase58String( | |
353 | + | let cl = j | |
354 | + | fromBase58String(cl) | |
352 | 355 | } | |
353 | 356 | else if ($isInstanceOf(j, "Unit")) | |
354 | 357 | then unit | |
356 | 359 | } | |
357 | 360 | ||
358 | 361 | ||
359 | - | func | |
360 | - | let | |
361 | - | let j = | |
362 | + | func cn (co) = { | |
363 | + | let cp = throw("Permission denied") | |
364 | + | let j = ck() | |
362 | 365 | if ($isInstanceOf(j, "ByteVector")) | |
363 | 366 | then { | |
364 | - | let | |
365 | - | if (( | |
367 | + | let cq = j | |
368 | + | if ((co.callerPublicKey == cq)) | |
366 | 369 | then true | |
367 | - | else | |
370 | + | else cp | |
368 | 371 | } | |
369 | 372 | else if ($isInstanceOf(j, "Unit")) | |
370 | - | then if (( | |
373 | + | then if ((co.caller == this)) | |
371 | 374 | then true | |
372 | - | else | |
375 | + | else cp | |
373 | 376 | else throw("Match error") | |
374 | 377 | } | |
375 | 378 | ||
376 | 379 | ||
377 | - | @Callable( | |
380 | + | @Callable(co) | |
378 | 381 | func constructor (H,I,J,K,o,O,Q) = { | |
379 | 382 | let L = ((100 * 1000) * 1000) | |
380 | - | let | |
383 | + | let cr = (H + I) | |
381 | 384 | if (isDefined(getString(ah()))) | |
382 | 385 | then throw("already initialized") | |
383 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
386 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(co.caller))) | |
384 | 387 | then throw("not authorized") | |
385 | - | else if ((size( | |
388 | + | else if ((size(co.payments) != 1)) | |
386 | 389 | then throw("exactly 1 payment must be attached") | |
387 | - | else if (( | |
390 | + | else if ((cr >= J)) | |
388 | 391 | then throw("claimStart must be greater than idoEnd") | |
389 | 392 | else { | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let M = toBase58String( | |
394 | - | let N = pow(10, 0, | |
395 | - | let | |
396 | - | let | |
397 | - | let P = pow(10, 0, | |
398 | - | let | |
399 | - | let | |
400 | - | [StringEntry(ah(), S(H, I, J, K, o, L, M, N, O, P, Q, | |
393 | + | let cs = value(co.payments[0]) | |
394 | + | let bn = value(cs.assetId) | |
395 | + | let ct = valueOrErrorMessage(assetInfo(bn), "fail to load ido asset info") | |
396 | + | let M = toBase58String(bn) | |
397 | + | let N = pow(10, 0, ct.decimals, 0, 0, DOWN) | |
398 | + | let bo = fromBase58String(O) | |
399 | + | let cu = valueOrErrorMessage(assetInfo(bo), "fail to load price asset info") | |
400 | + | let P = pow(10, 0, cu.decimals, 0, 0, DOWN) | |
401 | + | let cv = aL() | |
402 | + | let cw = [0, 0, 0, 0] | |
403 | + | [StringEntry(ah(), S(H, I, J, K, o, L, M, N, O, P, Q, cs.amount)), aS(ak(), cv, cw, J, 0)] | |
401 | 404 | } | |
402 | 405 | } | |
403 | 406 | ||
404 | 407 | ||
405 | 408 | ||
406 | - | @Callable( | |
409 | + | @Callable(co) | |
407 | 410 | func invest () = { | |
408 | - | let | |
409 | - | let H = parseIntValue( | |
410 | - | let I = parseIntValue( | |
411 | - | let | |
412 | - | let J = parseIntValue( | |
413 | - | let K = parseIntValue( | |
414 | - | let o = parseIntValue( | |
415 | - | let L = parseIntValue( | |
416 | - | let M = | |
417 | - | let | |
418 | - | let N = parseIntValue( | |
419 | - | let O = | |
420 | - | let | |
421 | - | let P = parseIntValue( | |
422 | - | let | |
423 | - | let aj = toString( | |
411 | + | let aZ = aI() | |
412 | + | let H = parseIntValue(aZ[v]) | |
413 | + | let I = parseIntValue(aZ[w]) | |
414 | + | let cr = (H + I) | |
415 | + | let J = parseIntValue(aZ[x]) | |
416 | + | let K = parseIntValue(aZ[y]) | |
417 | + | let o = parseIntValue(aZ[z]) | |
418 | + | let L = parseIntValue(aZ[A]) | |
419 | + | let M = aZ[B] | |
420 | + | let bn = fromBase58String(M) | |
421 | + | let N = parseIntValue(aZ[C]) | |
422 | + | let O = aZ[D] | |
423 | + | let bo = fromBase58String(O) | |
424 | + | let P = parseIntValue(aZ[E]) | |
425 | + | let cx = parseIntValue(aZ[F]) | |
426 | + | let aj = toString(co.caller) | |
424 | 427 | if ((H > height)) | |
425 | 428 | then throw("ido has not been started yet") | |
426 | - | else if ((height > | |
429 | + | else if ((height > cr)) | |
427 | 430 | then throw("ido has been already ended") | |
428 | - | else if ((size( | |
431 | + | else if ((size(co.payments) != 1)) | |
429 | 432 | then throw("exactly 1 payment is expected") | |
430 | 433 | else { | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | if (( | |
435 | - | then throw((("invalid payment asset id: " + toBase58String( | |
434 | + | let cs = value(co.payments[0]) | |
435 | + | let cy = value(cs.assetId) | |
436 | + | let cz = cs.amount | |
437 | + | if ((cy != bo)) | |
438 | + | then throw((("invalid payment asset id: " + toBase58String(cy)) + " is expected")) | |
436 | 439 | else { | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | if (( | |
440 | + | let cA = aM(aj) | |
441 | + | let cv = aL() | |
442 | + | let cB = (parseIntValue(cv[T]) + cz) | |
443 | + | let cC = (cB * 100) | |
444 | + | if ((cC > assetBalance(this, bn))) | |
442 | 445 | then throw("IDO asset has been - sold consider to use smaller payment") | |
443 | 446 | else { | |
444 | - | let | |
445 | - | [ | |
447 | + | let cw = [cz, cz, 0, 0] | |
448 | + | [aS(ai(aj), cA, cw, J, 0), aS(ak(), cv, cw, J, 0), bh(aj, cz, 0, co.transactionId)] | |
446 | 449 | } | |
447 | 450 | } | |
448 | 451 | } | |
450 | 453 | ||
451 | 454 | ||
452 | 455 | ||
453 | - | @Callable( | |
454 | - | func claim ( | |
455 | - | let | |
456 | - | if (( | |
456 | + | @Callable(co) | |
457 | + | func claim (bl,bp) = { | |
458 | + | let cD = toString(co.caller) | |
459 | + | if ((bp != cD)) | |
457 | 460 | then throw("not authorized") | |
458 | 461 | else { | |
459 | - | let | |
460 | - | let O = | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
462 | + | let aZ = aI() | |
463 | + | let O = aZ[D] | |
464 | + | let cE = bk(bl, co.caller, co.transactionId) | |
465 | + | let cw = cE._1 | |
466 | + | let bC = cE._2 | |
467 | + | let cF = cE._3 | |
468 | + | let bq = cE._4 | |
469 | + | let bu = cE._5 | |
470 | + | let cG = cw[aQ] | |
471 | + | let cH = cw[aR] | |
472 | + | let aW = valueOrElse(getInteger(aD(bp)), 0) | |
473 | + | let ba = value(assetInfo(fromBase58String(O))).decimals | |
474 | + | let be = if ((bl == O)) | |
472 | 475 | then { | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
476 | + | let cI = bB(O, bp, bC, cw[aQ]) | |
477 | + | let bW = cI._1 | |
478 | + | let bU = cI._2 | |
479 | + | let bV = cI._3 | |
480 | + | let bD = cI._4 | |
481 | + | let bX = cI._5 | |
482 | + | let ci = cI._6 | |
483 | + | let cj = cI._7 | |
484 | + | let bN = cI._8 | |
485 | + | let bO = cI._9 | |
486 | + | let bQ = cI._10 | |
487 | + | let bA = [if ((bV > 0)) | |
485 | 488 | then true | |
486 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
489 | + | else f("unavailable to claim because user period allowance reached"), if ((bU > 0)) | |
487 | 490 | then true | |
488 | - | else f("unavailable to claim because total period allowance reached"), if (( | |
491 | + | else f("unavailable to claim because total period allowance reached"), if ((bW > 0)) | |
489 | 492 | then true | |
490 | - | else f("nothing to claim"), if (( | |
493 | + | else f("nothing to claim"), if ((bX > ci)) | |
491 | 494 | then true | |
492 | 495 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
493 | - | if (( | |
496 | + | if ((bA == bA)) | |
494 | 497 | then { | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | then [ScriptTransfer( | |
498 | + | let cJ = (bU - bW) | |
499 | + | let cK = (bV - bW) | |
500 | + | let be = if ((aW >= bW)) | |
501 | + | then [ScriptTransfer(co.caller, bW, cF), IntegerEntry(aD(bp), (aW - bW))] | |
499 | 502 | else { | |
500 | - | let cK = ((aV + bB) - bV) | |
501 | - | [ScriptTransfer(cn.caller, bV, cE), aR(ai(bo), bp, cv, bt, 0), aR(ak(), aK(), cv, bt, 0), IntegerEntry(aD(bo), cK)] | |
503 | + | let cL = split(h(invoke(this, "claimREADONLY", [O, bp], nil)), c) | |
504 | + | if ((cL == cL)) | |
505 | + | then { | |
506 | + | let cM = parseIntValue(cL[3]) | |
507 | + | let cN = if ((cM == bW)) | |
508 | + | then { | |
509 | + | let cO = parseIntValue(bq[T]) | |
510 | + | let cP = parseIntValue(bq[U]) | |
511 | + | let cQ = parseIntValue(bq[V]) | |
512 | + | let cR = parseIntValue(bq[W]) | |
513 | + | let cS = parseIntValue(bq[X]) | |
514 | + | let cT = [toString(cO), "0", toString(cQ), toString(cR), toString(cS)] | |
515 | + | let cU = aL() | |
516 | + | let cV = parseIntValue(cU[T]) | |
517 | + | let cW = parseIntValue(cU[U]) | |
518 | + | let cX = parseIntValue(cU[U]) | |
519 | + | let cY = parseIntValue(cU[V]) | |
520 | + | let cZ = parseIntValue(cU[X]) | |
521 | + | let da = (cW - cP) | |
522 | + | let db = [toString(cV), toString(da), toString(cX), toString(cY), toString(cZ)] | |
523 | + | [StringEntry(aF(bp), toString(cP)), aS(ai(bp), cT, cw, bu, 0), aS(ak(), db, cw, bu, 0)] | |
524 | + | } | |
525 | + | else [aS(ai(bp), bq, cw, bu, 0), aS(ak(), aL(), cw, bu, 0)] | |
526 | + | let dc = ((aW + bC) - bW) | |
527 | + | ([ScriptTransfer(co.caller, bW, cF), IntegerEntry(aD(bp), dc)] ++ cN) | |
528 | + | } | |
529 | + | else throw("Strict value is not equal to itself.") | |
502 | 530 | } | |
503 | - | $Tuple2(([IntegerEntry(ar(), | |
531 | + | $Tuple2(([IntegerEntry(ar(), bN), IntegerEntry(as(bN), bO), IntegerEntry(au(bN), bQ), IntegerEntry(az(O, bN), cJ), IntegerEntry(aA(O, bN, bp), cK), bj(bp, bW, cH, co.transactionId)] ++ be), unit) | |
504 | 532 | } | |
505 | 533 | else throw("Strict value is not equal to itself.") | |
506 | 534 | } | |
507 | 535 | else { | |
508 | - | let | |
509 | - | $Tuple2([ScriptTransfer( | |
536 | + | let dd = fraction(aW, e, pow(10, 0, ba, 0, 0, DOWN)) | |
537 | + | $Tuple2([ScriptTransfer(co.caller, (bC + dd), cF), IntegerEntry(aD(bp), 0), aS(ai(bp), bq, cw, bu, aW), aS(ak(), aL(), cw, bu, aW), bj(bp, cG, (cH + dd), co.transactionId)], unit) | |
510 | 538 | } | |
511 | - | | |
539 | + | be | |
512 | 540 | } | |
513 | 541 | } | |
514 | 542 | ||
515 | 543 | ||
516 | 544 | ||
517 | - | @Callable( | |
518 | - | func cleanRemaingAmount ( | |
519 | - | let O = | |
520 | - | let | |
521 | - | if (( | |
545 | + | @Callable(co) | |
546 | + | func cleanRemaingAmount (bp) = { | |
547 | + | let O = aI()[D] | |
548 | + | let cL = split(h(invoke(this, "claimREADONLY", [O, bp], nil)), c) | |
549 | + | if ((cL == cL)) | |
522 | 550 | then { | |
523 | - | let | |
524 | - | let | |
551 | + | let cM = parseIntValue(cL[3]) | |
552 | + | let de = if ((cM == 0)) | |
525 | 553 | then true | |
526 | 554 | else f("user have unclaimed assets") | |
527 | - | if (( | |
555 | + | if ((de == de)) | |
528 | 556 | then { | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
557 | + | let df = split(value(getString(ai(bp))), c) | |
558 | + | let cO = parseIntValue(df[T]) | |
559 | + | let cP = parseIntValue(df[U]) | |
560 | + | let cQ = parseIntValue(df[V]) | |
561 | + | let cR = parseIntValue(df[W]) | |
562 | + | let cS = parseIntValue(df[X]) | |
563 | + | let dg = if ((cP != 0)) | |
536 | 564 | then true | |
537 | 565 | else f("investorRemainingAmount already zero") | |
538 | - | if (( | |
566 | + | if ((dg == dg)) | |
539 | 567 | then { | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | [StringEntry(ai( | |
568 | + | let dh = makeString(["%d%d%d%d%d", toString(cO), "0", toString(cQ), toString(cR), toString(cS)], c) | |
569 | + | let cU = split(value(getString(ak())), c) | |
570 | + | let cV = parseIntValue(cU[T]) | |
571 | + | let cW = parseIntValue(cU[U]) | |
572 | + | let cX = parseIntValue(cU[U]) | |
573 | + | let cY = parseIntValue(cU[V]) | |
574 | + | let cZ = parseIntValue(cU[X]) | |
575 | + | let di = makeString(["%d%d%d%d%d", toString(cV), toString((cW - cP)), toString(cX), toString(cY), toString(cZ)], c) | |
576 | + | [StringEntry(aF(bp), toString(cP)), StringEntry(ai(bp), dh), StringEntry(ak(), di)] | |
549 | 577 | } | |
550 | 578 | else throw("Strict value is not equal to itself.") | |
551 | 579 | } | |
556 | 584 | ||
557 | 585 | ||
558 | 586 | ||
559 | - | @Callable( | |
560 | - | func claimREADONLY ( | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | $Tuple2(nil, makeString(["%s%d%d", | |
587 | + | @Callable(co) | |
588 | + | func claimREADONLY (bl,bp) = { | |
589 | + | let cE = bk(bl, addressFromStringValue(bp), fromBase58String("")) | |
590 | + | let cw = cE._1 | |
591 | + | let bC = cE._2 | |
592 | + | let cF = cE._3 | |
593 | + | let bq = cE._4 | |
594 | + | let bu = cE._5 | |
595 | + | let dj = cE._6 | |
596 | + | let cM = dj[0] | |
597 | + | let dk = dj[1] | |
598 | + | $Tuple2(nil, makeString(["%s%d%d", bp, toString(cM), toString(dk)], c)) | |
571 | 599 | } | |
572 | 600 | ||
573 | 601 | ||
574 | 602 | ||
575 | - | @Callable( | |
576 | - | func claimV2READONLY ( | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let O = | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
603 | + | @Callable(co) | |
604 | + | func claimV2READONLY (bl,bp) = { | |
605 | + | let cE = bk(bl, addressFromStringValue(bp), fromBase58String("")) | |
606 | + | let cw = cE._1 | |
607 | + | let bC = cE._2 | |
608 | + | let cF = cE._3 | |
609 | + | let bq = cE._4 | |
610 | + | let bu = cE._5 | |
611 | + | let dj = cE._6 | |
612 | + | let cM = dj[0] | |
613 | + | let dk = dj[1] | |
614 | + | let aZ = aI() | |
615 | + | let O = aZ[D] | |
616 | + | let aW = valueOrElse(getInteger(aD(bp)), 0) | |
617 | + | let dd = (aW * 100) | |
618 | + | let dl = (dk + dd) | |
619 | + | let dm = bB(O, bp, bC, cw[aQ]) | |
620 | + | let bW = dm._1 | |
621 | + | let bU = dm._2 | |
622 | + | let bV = dm._3 | |
623 | + | let bD = dm._4 | |
624 | + | let bX = dm._5 | |
625 | + | let ci = dm._6 | |
626 | + | let cj = dm._7 | |
627 | + | let bN = dm._8 | |
628 | + | let bO = dm._9 | |
629 | + | let bQ = dm._10 | |
630 | + | let dn = valueOrElse(getInteger(au(bN)), 0) | |
631 | + | let do = (parseIntValue(aN(bp)[V]) - aW) | |
632 | + | let dp = if ((height > dn)) | |
605 | 633 | then { | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | makeString(["%d%d%d%d%d%d", toString( | |
634 | + | let dq = value(getInteger(aq())) | |
635 | + | let dr = value(getInteger(ay(O))) | |
636 | + | let ds = value(getInteger(aw(O))) | |
637 | + | makeString(["%d%d%d%d%d%d", toString(dl), toString(dr), toString(ds), toString(bX), toString(ci), toString(dq), toString(do)], c) | |
610 | 638 | } | |
611 | - | else makeString(["%d%d%d%d%d%d", toString( | |
612 | - | $Tuple2(nil, | |
639 | + | else makeString(["%d%d%d%d%d%d", toString(dl), toString(bW), toString(bU), toString(bX), toString(ci), toString(cj), toString(do)], c) | |
640 | + | $Tuple2(nil, dp) | |
613 | 641 | } | |
614 | 642 | ||
615 | 643 | ||
616 | 644 | ||
617 | - | @Callable( | |
618 | - | func setManager ( | |
619 | - | let | |
620 | - | if (( | |
645 | + | @Callable(co) | |
646 | + | func setManager (dt) = { | |
647 | + | let du = cn(co) | |
648 | + | if ((du == du)) | |
621 | 649 | then { | |
622 | - | let | |
623 | - | if (( | |
624 | - | then [StringEntry( | |
650 | + | let dv = fromBase58String(dt) | |
651 | + | if ((dv == dv)) | |
652 | + | then [StringEntry(aH(), dt)] | |
625 | 653 | else throw("Strict value is not equal to itself.") | |
626 | 654 | } | |
627 | 655 | else throw("Strict value is not equal to itself.") | |
629 | 657 | ||
630 | 658 | ||
631 | 659 | ||
632 | - | @Callable( | |
660 | + | @Callable(co) | |
633 | 661 | func confirmManager () = { | |
634 | - | let | |
635 | - | let | |
662 | + | let dw = cm() | |
663 | + | let dx = if (isDefined(dw)) | |
636 | 664 | then true | |
637 | 665 | else throw("No pending manager") | |
638 | - | if (( | |
666 | + | if ((dx == dx)) | |
639 | 667 | then { | |
640 | - | let | |
668 | + | let dy = if ((co.callerPublicKey == value(dw))) | |
641 | 669 | then true | |
642 | 670 | else throw("You are not pending manager") | |
643 | - | if (( | |
644 | - | then [StringEntry( | |
671 | + | if ((dy == dy)) | |
672 | + | then [StringEntry(aG(), toBase58String(value(dw))), DeleteEntry(aH())] | |
645 | 673 | else throw("Strict value is not equal to itself.") | |
646 | 674 | } | |
647 | 675 | else throw("Strict value is not equal to itself.") | |
648 | 676 | } | |
649 | 677 | ||
650 | 678 | ||
651 | - | @Verifier( | |
652 | - | func | |
653 | - | let | |
654 | - | let j = | |
679 | + | @Verifier(dz) | |
680 | + | func dA () = { | |
681 | + | let dB = { | |
682 | + | let j = ck() | |
655 | 683 | if ($isInstanceOf(j, "ByteVector")) | |
656 | 684 | then { | |
657 | - | let | |
658 | - | | |
685 | + | let cq = j | |
686 | + | cq | |
659 | 687 | } | |
660 | 688 | else if ($isInstanceOf(j, "Unit")) | |
661 | - | then | |
689 | + | then dz.senderPublicKey | |
662 | 690 | else throw("Match error") | |
663 | 691 | } | |
664 | - | sigVerify( | |
692 | + | sigVerify(dz.bodyBytes, dz.proofs[0], dB) | |
665 | 693 | } | |
666 | 694 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrErrorMessage(getString(b), (("mandatory this." + b) + " is not defined")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let c = "__" | |
8 | 8 | ||
9 | 9 | let d = toBigInt(1000000000000000000) | |
10 | 10 | ||
11 | 11 | let e = 100000000 | |
12 | 12 | ||
13 | 13 | func f (g) = throw(makeString(["ido.ride:", g], " ")) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func h (i) = { | |
17 | 17 | let j = i | |
18 | 18 | if ($isInstanceOf(j, "String")) | |
19 | 19 | then { | |
20 | 20 | let k = j | |
21 | 21 | k | |
22 | 22 | } | |
23 | 23 | else throw("fail to cast into String") | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func l (m,n,o,p,q) = { | |
28 | 28 | let r = toBigInt(n) | |
29 | 29 | let s = toBigInt(q) | |
30 | 30 | let t = fraction(toBigInt(m), d, r) | |
31 | 31 | let u = fraction(t, toBigInt(p), toBigInt(o)) | |
32 | 32 | toInt(fraction(u, toBigInt(q), d)) | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | let v = 1 | |
37 | 37 | ||
38 | 38 | let w = 2 | |
39 | 39 | ||
40 | 40 | let x = 3 | |
41 | 41 | ||
42 | 42 | let y = 4 | |
43 | 43 | ||
44 | 44 | let z = 5 | |
45 | 45 | ||
46 | 46 | let A = 6 | |
47 | 47 | ||
48 | 48 | let B = 7 | |
49 | 49 | ||
50 | 50 | let C = 8 | |
51 | 51 | ||
52 | 52 | let D = 9 | |
53 | 53 | ||
54 | 54 | let E = 10 | |
55 | 55 | ||
56 | 56 | let F = 11 | |
57 | 57 | ||
58 | 58 | func G (H,I,J,K,o,L,M,N,O,P,Q,R) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", H, I, J, K, o, L, M, N, O, P, Q, R], c) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func S (H,I,J,K,o,L,M,N,O,P,Q,R) = G(toString(H), toString(I), toString(J), toString(K), toString(o), toString(L), M, toString(N), O, toString(P), toString(Q), toString(R)) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | let T = 1 | |
65 | 65 | ||
66 | 66 | let U = 2 | |
67 | 67 | ||
68 | 68 | let V = 3 | |
69 | 69 | ||
70 | 70 | let W = 4 | |
71 | 71 | ||
72 | 72 | let X = 5 | |
73 | 73 | ||
74 | 74 | func Y (Z,aa,ab,ac,ad) = makeString(["%d%d%d%d%d", Z, aa, ab, ac, ad], c) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func ae (Z,aa,ab,ac,ad) = Y(toString(Z), toString(aa), toString(ab), toString(ac), toString(ad)) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func af (m,ag) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(m), toString(ag)], c) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func ah () = "%s__config" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func ai (aj) = ("%s__" + aj) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func ak () = "%s__totals" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func al (am,aj,an) = makeString(["%s%s%s%s__history", am, aj, an], c) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func ao () = "%s__usdnClaimDisabled" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func ap () = "%s__usdnClaimEndHeight" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func aq () = makeString(["%s", "periodLength"], c) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func ar () = makeString(["%s", "currentPeriod"], c) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func as (at) = makeString(["%s%s", "periodStartHeight", toString(at)], c) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func au (at) = makeString(["%s%s", "periodEndHeight", toString(at)], c) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func av () = makeString(["%s", "usdtPriceAssetAllowableRatio"], c) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func aw (ax) = makeString(["%s%s", "totalPeriodAllowance", ax], c) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func ay (ax) = makeString(["%s%s", "userPeriodAllowance", ax], c) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func az (ax,at) = makeString(["%s%s%s", "periodTotalAvailableToClaim", ax, toString(at)], c) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func aA (ax,at,aj) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", ax, toString(at), aj], c) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func aB () = makeString(["%s", "usdtPriceAssetStablePool"], c) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func aC () = makeString(["%s", "usdtAssetId"], c) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func aD (aE) = makeString(["%s%s", "priceAssetBalance", aE], c) | |
135 | 135 | ||
136 | 136 | ||
137 | - | func aF () = "%s | |
137 | + | func aF (aE) = makeString(["%s%s", "remainingAmount", aE], c) | |
138 | 138 | ||
139 | 139 | ||
140 | - | func aG () = "%s__ | |
140 | + | func aG () = "%s__managerPublicKey" | |
141 | 141 | ||
142 | 142 | ||
143 | - | func aH () = | |
143 | + | func aH () = "%s__pendingManagerPublicKey" | |
144 | 144 | ||
145 | 145 | ||
146 | - | func aI ( | |
146 | + | func aI () = split(a(ah()), c) | |
147 | 147 | ||
148 | 148 | ||
149 | - | func | |
149 | + | func aJ (aK) = split(valueOrElse(getString(aK), Y("0", "0", "0", "0", "0")), c) | |
150 | 150 | ||
151 | 151 | ||
152 | - | func aL ( | |
152 | + | func aL () = aJ(ak()) | |
153 | 153 | ||
154 | 154 | ||
155 | - | func aM (aj) = | |
155 | + | func aM (aj) = aJ(ai(aj)) | |
156 | 156 | ||
157 | 157 | ||
158 | - | ||
158 | + | func aN (aj) = split(a(ai(aj)), c) | |
159 | 159 | ||
160 | - | let aO = 1 | |
161 | 160 | ||
162 | - | let | |
161 | + | let aO = 0 | |
163 | 162 | ||
164 | - | let | |
163 | + | let aP = 1 | |
165 | 164 | ||
166 | - | func aR (b,aS,aT,aU,aV) = { | |
167 | - | let Z = parseIntValue(aS[T]) | |
168 | - | let aa = parseIntValue(aS[U]) | |
169 | - | let ab = parseIntValue(aS[V]) | |
170 | - | let ac = parseIntValue(aS[W]) | |
171 | - | let ad = parseIntValue(aS[X]) | |
172 | - | let aW = (Z + aT[aN]) | |
173 | - | let aX = (aa + aT[aO]) | |
174 | - | let aY = aH() | |
175 | - | let O = aY[D] | |
176 | - | let aZ = value(assetInfo(fromBase58String(O))).decimals | |
177 | - | let ba = fraction(aV, e, pow(10, 0, aZ, 0, 0, DOWN)) | |
178 | - | let bb = ((ab + aT[aP]) - aV) | |
179 | - | let bc = ((ac + aT[aQ]) + ba) | |
180 | - | let bd = if ((0 > aX)) | |
165 | + | let aQ = 2 | |
166 | + | ||
167 | + | let aR = 3 | |
168 | + | ||
169 | + | func aS (b,aT,aU,aV,aW) = { | |
170 | + | let Z = parseIntValue(aT[T]) | |
171 | + | let aa = parseIntValue(aT[U]) | |
172 | + | let ab = parseIntValue(aT[V]) | |
173 | + | let ac = parseIntValue(aT[W]) | |
174 | + | let ad = parseIntValue(aT[X]) | |
175 | + | let aX = (Z + aU[aO]) | |
176 | + | let aY = (aa + aU[aP]) | |
177 | + | let aZ = aI() | |
178 | + | let O = aZ[D] | |
179 | + | let ba = value(assetInfo(fromBase58String(O))).decimals | |
180 | + | let bb = fraction(aW, e, pow(10, 0, ba, 0, 0, DOWN)) | |
181 | + | let bc = ((ab + aU[aQ]) - aW) | |
182 | + | let bd = ((ac + aU[aR]) + bb) | |
183 | + | let be = if ((0 > aY)) | |
181 | 184 | then { | |
182 | - | let | |
183 | - | let | |
185 | + | let bf = ((aX - bc) - bd) | |
186 | + | let bg = if ((0 > bf)) | |
184 | 187 | then 0 | |
185 | - | else | |
186 | - | StringEntry(b, ae( | |
188 | + | else bf | |
189 | + | StringEntry(b, ae(aX, bg, bc, bd, aV)) | |
187 | 190 | } | |
188 | - | else StringEntry(b, ae( | |
189 | - | | |
191 | + | else StringEntry(b, ae(aX, aY, bc, bd, aV)) | |
192 | + | be | |
190 | 193 | } | |
191 | 194 | ||
192 | 195 | ||
193 | - | func | |
196 | + | func bh (aj,m,ag,bi) = StringEntry(al("invest", aj, toBase58String(bi)), af(m, ag)) | |
194 | 197 | ||
195 | 198 | ||
196 | - | func | |
199 | + | func bj (aj,m,ag,bi) = StringEntry(al("claim", aj, toBase58String(bi)), af(m, ag)) | |
197 | 200 | ||
198 | 201 | ||
199 | - | func | |
200 | - | let | |
201 | - | let J = parseIntValue( | |
202 | - | let K = parseIntValue( | |
203 | - | let | |
204 | - | let o = parseIntValue( | |
205 | - | let L = parseIntValue( | |
206 | - | let M = | |
207 | - | let | |
208 | - | let N = parseIntValue( | |
209 | - | let O = | |
210 | - | let | |
211 | - | let P = parseIntValue( | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
202 | + | func bk (bl,aj,bi) = { | |
203 | + | let aZ = aI() | |
204 | + | let J = parseIntValue(aZ[x]) | |
205 | + | let K = parseIntValue(aZ[y]) | |
206 | + | let bm = (J + K) | |
207 | + | let o = parseIntValue(aZ[z]) | |
208 | + | let L = parseIntValue(aZ[A]) | |
209 | + | let M = aZ[B] | |
210 | + | let bn = fromBase58String(M) | |
211 | + | let N = parseIntValue(aZ[C]) | |
212 | + | let O = aZ[D] | |
213 | + | let bo = fromBase58String(O) | |
214 | + | let P = parseIntValue(aZ[E]) | |
215 | + | let bp = toString(aj) | |
216 | + | let bq = aN(bp) | |
217 | + | let br = parseIntValue(bq[T]) | |
218 | + | let bs = parseIntValue(bq[X]) | |
219 | + | let bt = if ((J >= bs)) | |
217 | 220 | then J | |
218 | - | else | |
219 | - | let | |
220 | - | then | |
221 | + | else bs | |
222 | + | let bu = if ((height > bm)) | |
223 | + | then bm | |
221 | 224 | else if ((J > height)) | |
222 | 225 | then J | |
223 | 226 | else height | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | then | |
227 | + | let bv = (bu - bt) | |
228 | + | let bw = fraction(br, bv, K) | |
229 | + | let bx = l(bw, P, o, L, N) | |
230 | + | let by = (bl == O) | |
231 | + | let bz = valueOrElse(getBoolean(ao()), false) | |
232 | + | let bA = [if (!(if (by) | |
233 | + | then bz | |
231 | 234 | else false)) | |
232 | 235 | then true | |
233 | 236 | else throw("USDN claim is disabled")] | |
234 | - | if (( | |
235 | - | then if (( | |
236 | - | then $Tuple6([0, -( | |
237 | - | else if (( | |
238 | - | then $Tuple6([0, -( | |
239 | - | else throw(("unsupported assetId: " + | |
237 | + | if ((bA == bA)) | |
238 | + | then if ((bl == O)) | |
239 | + | then $Tuple6([0, -(bw), bw, 0], bw, bo, bq, bu, [bw, bx]) | |
240 | + | else if ((bl == M)) | |
241 | + | then $Tuple6([0, -(bw), 0, bx], bx, bn, bq, bu, [bw, bx]) | |
242 | + | else throw(("unsupported assetId: " + bl)) | |
240 | 243 | else throw("Strict value is not equal to itself.") | |
241 | 244 | } | |
242 | 245 | ||
243 | 246 | ||
244 | - | func | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
247 | + | func bB (O,bp,bC,bD) = { | |
248 | + | let bE = value(getInteger(aw(O))) | |
249 | + | let bF = value(getInteger(ay(O))) | |
250 | + | let bG = value(getInteger(aq())) | |
251 | + | let bH = valueOrElse(getInteger(ar()), 0) | |
252 | + | let bI = isDefined(getInteger(au(0))) | |
253 | + | let bJ = if ((bH > 0)) | |
251 | 254 | then { | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | + | let bK = value(getInteger(as(bH))) | |
256 | + | let bL = value(getInteger(au(bH))) | |
257 | + | let bM = if ((height > bL)) | |
255 | 258 | then { | |
256 | - | let | |
257 | - | let | |
259 | + | let bN = (bH + 1) | |
260 | + | let bO = if ((height > (bL + bG))) | |
258 | 261 | then { | |
259 | - | let | |
260 | - | if (( | |
261 | - | then ((height - | |
262 | - | else (height - | |
262 | + | let bP = ((height - bL) % bG) | |
263 | + | if ((bP == 0)) | |
264 | + | then ((height - bG) + 1) | |
265 | + | else (height - bP) | |
263 | 266 | } | |
264 | - | else ( | |
265 | - | let | |
266 | - | $Tuple3( | |
267 | + | else (bL + 1) | |
268 | + | let bQ = ((bO + bG) - 1) | |
269 | + | $Tuple3(bN, bO, bQ) | |
267 | 270 | } | |
268 | - | else $Tuple3( | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | $Tuple3( | |
271 | + | else $Tuple3(bH, bK, bL) | |
272 | + | let bN = bM._1 | |
273 | + | let bO = bM._2 | |
274 | + | let bQ = bM._3 | |
275 | + | $Tuple3(bN, bO, bQ) | |
273 | 276 | } | |
274 | - | else if ( | |
277 | + | else if (bI) | |
275 | 278 | then { | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | + | let bR = value(getInteger(as(0))) | |
280 | + | let bS = value(getInteger(au(0))) | |
281 | + | let bT = if ((height > bS)) | |
279 | 282 | then { | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | $Tuple3( | |
283 | + | let bN = (bH + 1) | |
284 | + | let bO = (bS + 1) | |
285 | + | let bQ = ((bO + bG) - 1) | |
286 | + | $Tuple3(bN, bO, bQ) | |
284 | 287 | } | |
285 | - | else $Tuple3( | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | $Tuple3( | |
288 | + | else $Tuple3(bH, bR, bS) | |
289 | + | let bN = bT._1 | |
290 | + | let bO = bT._2 | |
291 | + | let bQ = bT._3 | |
292 | + | $Tuple3(bN, bO, bQ) | |
290 | 293 | } | |
291 | - | else $Tuple3( | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | if ($isInstanceOf( | |
304 | - | then | |
294 | + | else $Tuple3(bH, valueOrElse(getInteger(as(bH)), height), valueOrElse(getInteger(au(bH)), ((height + bG) - 1))) | |
295 | + | let bN = bJ._1 | |
296 | + | let bO = bJ._2 | |
297 | + | let bQ = bJ._3 | |
298 | + | let bU = valueOrElse(getInteger(az(O, bN)), bE) | |
299 | + | let bV = valueOrElse(getInteger(aA(O, bN, bp)), bF) | |
300 | + | let aW = valueOrElse(getInteger(aD(bp)), 0) | |
301 | + | let bW = min([(bC + aW), bU, bV]) | |
302 | + | let bX = value(getInteger(av())) | |
303 | + | let bY = e | |
304 | + | let bZ = { | |
305 | + | let ca = invoke(addressFromStringValue(value(getString(aB()))), "putOneTknV2WithoutTakeFeeREADONLY", [bY, O], nil) | |
306 | + | if ($isInstanceOf(ca, "(Int, Int, Int)")) | |
307 | + | then ca | |
305 | 308 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
306 | 309 | } | |
307 | - | if (( | |
310 | + | if ((bZ == bZ)) | |
308 | 311 | then { | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | if ($isInstanceOf( | |
316 | - | then | |
312 | + | let cb = bZ._3 | |
313 | + | let cc = bZ._2 | |
314 | + | let cd = bZ._1 | |
315 | + | let ce = value(getString(aC())) | |
316 | + | let cf = { | |
317 | + | let ca = invoke(addressFromStringValue(value(getString(aB()))), "getOneTknV2READONLY", [ce, cd], nil) | |
318 | + | if ($isInstanceOf(ca, "(Int, Int)")) | |
319 | + | then ca | |
317 | 320 | else throw("Couldn't cast Any to (Int, Int)") | |
318 | 321 | } | |
319 | - | if (( | |
322 | + | if ((cf == cf)) | |
320 | 323 | then { | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | $Tuple10( | |
324 | + | let cg = cf._2 | |
325 | + | let ch = cf._1 | |
326 | + | let ci = fraction(bY, e, ch) | |
327 | + | let cj = (bQ - height) | |
328 | + | $Tuple10(bW, bU, bV, bD, bX, ci, cj, bN, bO, bQ) | |
326 | 329 | } | |
327 | 330 | else throw("Strict value is not equal to itself.") | |
328 | 331 | } | |
329 | 332 | else throw("Strict value is not equal to itself.") | |
330 | 333 | } | |
331 | 334 | ||
332 | 335 | ||
333 | - | func | |
334 | - | let j = getString( | |
336 | + | func ck () = { | |
337 | + | let j = getString(aG()) | |
335 | 338 | if ($isInstanceOf(j, "String")) | |
336 | 339 | then { | |
337 | - | let | |
338 | - | fromBase58String( | |
340 | + | let cl = j | |
341 | + | fromBase58String(cl) | |
339 | 342 | } | |
340 | 343 | else if ($isInstanceOf(j, "Unit")) | |
341 | 344 | then unit | |
342 | 345 | else throw("Match error") | |
343 | 346 | } | |
344 | 347 | ||
345 | 348 | ||
346 | - | func | |
347 | - | let j = getString( | |
349 | + | func cm () = { | |
350 | + | let j = getString(aH()) | |
348 | 351 | if ($isInstanceOf(j, "String")) | |
349 | 352 | then { | |
350 | - | let | |
351 | - | fromBase58String( | |
353 | + | let cl = j | |
354 | + | fromBase58String(cl) | |
352 | 355 | } | |
353 | 356 | else if ($isInstanceOf(j, "Unit")) | |
354 | 357 | then unit | |
355 | 358 | else throw("Match error") | |
356 | 359 | } | |
357 | 360 | ||
358 | 361 | ||
359 | - | func | |
360 | - | let | |
361 | - | let j = | |
362 | + | func cn (co) = { | |
363 | + | let cp = throw("Permission denied") | |
364 | + | let j = ck() | |
362 | 365 | if ($isInstanceOf(j, "ByteVector")) | |
363 | 366 | then { | |
364 | - | let | |
365 | - | if (( | |
367 | + | let cq = j | |
368 | + | if ((co.callerPublicKey == cq)) | |
366 | 369 | then true | |
367 | - | else | |
370 | + | else cp | |
368 | 371 | } | |
369 | 372 | else if ($isInstanceOf(j, "Unit")) | |
370 | - | then if (( | |
373 | + | then if ((co.caller == this)) | |
371 | 374 | then true | |
372 | - | else | |
375 | + | else cp | |
373 | 376 | else throw("Match error") | |
374 | 377 | } | |
375 | 378 | ||
376 | 379 | ||
377 | - | @Callable( | |
380 | + | @Callable(co) | |
378 | 381 | func constructor (H,I,J,K,o,O,Q) = { | |
379 | 382 | let L = ((100 * 1000) * 1000) | |
380 | - | let | |
383 | + | let cr = (H + I) | |
381 | 384 | if (isDefined(getString(ah()))) | |
382 | 385 | then throw("already initialized") | |
383 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
386 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(co.caller))) | |
384 | 387 | then throw("not authorized") | |
385 | - | else if ((size( | |
388 | + | else if ((size(co.payments) != 1)) | |
386 | 389 | then throw("exactly 1 payment must be attached") | |
387 | - | else if (( | |
390 | + | else if ((cr >= J)) | |
388 | 391 | then throw("claimStart must be greater than idoEnd") | |
389 | 392 | else { | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let M = toBase58String( | |
394 | - | let N = pow(10, 0, | |
395 | - | let | |
396 | - | let | |
397 | - | let P = pow(10, 0, | |
398 | - | let | |
399 | - | let | |
400 | - | [StringEntry(ah(), S(H, I, J, K, o, L, M, N, O, P, Q, | |
393 | + | let cs = value(co.payments[0]) | |
394 | + | let bn = value(cs.assetId) | |
395 | + | let ct = valueOrErrorMessage(assetInfo(bn), "fail to load ido asset info") | |
396 | + | let M = toBase58String(bn) | |
397 | + | let N = pow(10, 0, ct.decimals, 0, 0, DOWN) | |
398 | + | let bo = fromBase58String(O) | |
399 | + | let cu = valueOrErrorMessage(assetInfo(bo), "fail to load price asset info") | |
400 | + | let P = pow(10, 0, cu.decimals, 0, 0, DOWN) | |
401 | + | let cv = aL() | |
402 | + | let cw = [0, 0, 0, 0] | |
403 | + | [StringEntry(ah(), S(H, I, J, K, o, L, M, N, O, P, Q, cs.amount)), aS(ak(), cv, cw, J, 0)] | |
401 | 404 | } | |
402 | 405 | } | |
403 | 406 | ||
404 | 407 | ||
405 | 408 | ||
406 | - | @Callable( | |
409 | + | @Callable(co) | |
407 | 410 | func invest () = { | |
408 | - | let | |
409 | - | let H = parseIntValue( | |
410 | - | let I = parseIntValue( | |
411 | - | let | |
412 | - | let J = parseIntValue( | |
413 | - | let K = parseIntValue( | |
414 | - | let o = parseIntValue( | |
415 | - | let L = parseIntValue( | |
416 | - | let M = | |
417 | - | let | |
418 | - | let N = parseIntValue( | |
419 | - | let O = | |
420 | - | let | |
421 | - | let P = parseIntValue( | |
422 | - | let | |
423 | - | let aj = toString( | |
411 | + | let aZ = aI() | |
412 | + | let H = parseIntValue(aZ[v]) | |
413 | + | let I = parseIntValue(aZ[w]) | |
414 | + | let cr = (H + I) | |
415 | + | let J = parseIntValue(aZ[x]) | |
416 | + | let K = parseIntValue(aZ[y]) | |
417 | + | let o = parseIntValue(aZ[z]) | |
418 | + | let L = parseIntValue(aZ[A]) | |
419 | + | let M = aZ[B] | |
420 | + | let bn = fromBase58String(M) | |
421 | + | let N = parseIntValue(aZ[C]) | |
422 | + | let O = aZ[D] | |
423 | + | let bo = fromBase58String(O) | |
424 | + | let P = parseIntValue(aZ[E]) | |
425 | + | let cx = parseIntValue(aZ[F]) | |
426 | + | let aj = toString(co.caller) | |
424 | 427 | if ((H > height)) | |
425 | 428 | then throw("ido has not been started yet") | |
426 | - | else if ((height > | |
429 | + | else if ((height > cr)) | |
427 | 430 | then throw("ido has been already ended") | |
428 | - | else if ((size( | |
431 | + | else if ((size(co.payments) != 1)) | |
429 | 432 | then throw("exactly 1 payment is expected") | |
430 | 433 | else { | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | if (( | |
435 | - | then throw((("invalid payment asset id: " + toBase58String( | |
434 | + | let cs = value(co.payments[0]) | |
435 | + | let cy = value(cs.assetId) | |
436 | + | let cz = cs.amount | |
437 | + | if ((cy != bo)) | |
438 | + | then throw((("invalid payment asset id: " + toBase58String(cy)) + " is expected")) | |
436 | 439 | else { | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | if (( | |
440 | + | let cA = aM(aj) | |
441 | + | let cv = aL() | |
442 | + | let cB = (parseIntValue(cv[T]) + cz) | |
443 | + | let cC = (cB * 100) | |
444 | + | if ((cC > assetBalance(this, bn))) | |
442 | 445 | then throw("IDO asset has been - sold consider to use smaller payment") | |
443 | 446 | else { | |
444 | - | let | |
445 | - | [ | |
447 | + | let cw = [cz, cz, 0, 0] | |
448 | + | [aS(ai(aj), cA, cw, J, 0), aS(ak(), cv, cw, J, 0), bh(aj, cz, 0, co.transactionId)] | |
446 | 449 | } | |
447 | 450 | } | |
448 | 451 | } | |
449 | 452 | } | |
450 | 453 | ||
451 | 454 | ||
452 | 455 | ||
453 | - | @Callable( | |
454 | - | func claim ( | |
455 | - | let | |
456 | - | if (( | |
456 | + | @Callable(co) | |
457 | + | func claim (bl,bp) = { | |
458 | + | let cD = toString(co.caller) | |
459 | + | if ((bp != cD)) | |
457 | 460 | then throw("not authorized") | |
458 | 461 | else { | |
459 | - | let | |
460 | - | let O = | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
462 | + | let aZ = aI() | |
463 | + | let O = aZ[D] | |
464 | + | let cE = bk(bl, co.caller, co.transactionId) | |
465 | + | let cw = cE._1 | |
466 | + | let bC = cE._2 | |
467 | + | let cF = cE._3 | |
468 | + | let bq = cE._4 | |
469 | + | let bu = cE._5 | |
470 | + | let cG = cw[aQ] | |
471 | + | let cH = cw[aR] | |
472 | + | let aW = valueOrElse(getInteger(aD(bp)), 0) | |
473 | + | let ba = value(assetInfo(fromBase58String(O))).decimals | |
474 | + | let be = if ((bl == O)) | |
472 | 475 | then { | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
476 | + | let cI = bB(O, bp, bC, cw[aQ]) | |
477 | + | let bW = cI._1 | |
478 | + | let bU = cI._2 | |
479 | + | let bV = cI._3 | |
480 | + | let bD = cI._4 | |
481 | + | let bX = cI._5 | |
482 | + | let ci = cI._6 | |
483 | + | let cj = cI._7 | |
484 | + | let bN = cI._8 | |
485 | + | let bO = cI._9 | |
486 | + | let bQ = cI._10 | |
487 | + | let bA = [if ((bV > 0)) | |
485 | 488 | then true | |
486 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
489 | + | else f("unavailable to claim because user period allowance reached"), if ((bU > 0)) | |
487 | 490 | then true | |
488 | - | else f("unavailable to claim because total period allowance reached"), if (( | |
491 | + | else f("unavailable to claim because total period allowance reached"), if ((bW > 0)) | |
489 | 492 | then true | |
490 | - | else f("nothing to claim"), if (( | |
493 | + | else f("nothing to claim"), if ((bX > ci)) | |
491 | 494 | then true | |
492 | 495 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
493 | - | if (( | |
496 | + | if ((bA == bA)) | |
494 | 497 | then { | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | then [ScriptTransfer( | |
498 | + | let cJ = (bU - bW) | |
499 | + | let cK = (bV - bW) | |
500 | + | let be = if ((aW >= bW)) | |
501 | + | then [ScriptTransfer(co.caller, bW, cF), IntegerEntry(aD(bp), (aW - bW))] | |
499 | 502 | else { | |
500 | - | let cK = ((aV + bB) - bV) | |
501 | - | [ScriptTransfer(cn.caller, bV, cE), aR(ai(bo), bp, cv, bt, 0), aR(ak(), aK(), cv, bt, 0), IntegerEntry(aD(bo), cK)] | |
503 | + | let cL = split(h(invoke(this, "claimREADONLY", [O, bp], nil)), c) | |
504 | + | if ((cL == cL)) | |
505 | + | then { | |
506 | + | let cM = parseIntValue(cL[3]) | |
507 | + | let cN = if ((cM == bW)) | |
508 | + | then { | |
509 | + | let cO = parseIntValue(bq[T]) | |
510 | + | let cP = parseIntValue(bq[U]) | |
511 | + | let cQ = parseIntValue(bq[V]) | |
512 | + | let cR = parseIntValue(bq[W]) | |
513 | + | let cS = parseIntValue(bq[X]) | |
514 | + | let cT = [toString(cO), "0", toString(cQ), toString(cR), toString(cS)] | |
515 | + | let cU = aL() | |
516 | + | let cV = parseIntValue(cU[T]) | |
517 | + | let cW = parseIntValue(cU[U]) | |
518 | + | let cX = parseIntValue(cU[U]) | |
519 | + | let cY = parseIntValue(cU[V]) | |
520 | + | let cZ = parseIntValue(cU[X]) | |
521 | + | let da = (cW - cP) | |
522 | + | let db = [toString(cV), toString(da), toString(cX), toString(cY), toString(cZ)] | |
523 | + | [StringEntry(aF(bp), toString(cP)), aS(ai(bp), cT, cw, bu, 0), aS(ak(), db, cw, bu, 0)] | |
524 | + | } | |
525 | + | else [aS(ai(bp), bq, cw, bu, 0), aS(ak(), aL(), cw, bu, 0)] | |
526 | + | let dc = ((aW + bC) - bW) | |
527 | + | ([ScriptTransfer(co.caller, bW, cF), IntegerEntry(aD(bp), dc)] ++ cN) | |
528 | + | } | |
529 | + | else throw("Strict value is not equal to itself.") | |
502 | 530 | } | |
503 | - | $Tuple2(([IntegerEntry(ar(), | |
531 | + | $Tuple2(([IntegerEntry(ar(), bN), IntegerEntry(as(bN), bO), IntegerEntry(au(bN), bQ), IntegerEntry(az(O, bN), cJ), IntegerEntry(aA(O, bN, bp), cK), bj(bp, bW, cH, co.transactionId)] ++ be), unit) | |
504 | 532 | } | |
505 | 533 | else throw("Strict value is not equal to itself.") | |
506 | 534 | } | |
507 | 535 | else { | |
508 | - | let | |
509 | - | $Tuple2([ScriptTransfer( | |
536 | + | let dd = fraction(aW, e, pow(10, 0, ba, 0, 0, DOWN)) | |
537 | + | $Tuple2([ScriptTransfer(co.caller, (bC + dd), cF), IntegerEntry(aD(bp), 0), aS(ai(bp), bq, cw, bu, aW), aS(ak(), aL(), cw, bu, aW), bj(bp, cG, (cH + dd), co.transactionId)], unit) | |
510 | 538 | } | |
511 | - | | |
539 | + | be | |
512 | 540 | } | |
513 | 541 | } | |
514 | 542 | ||
515 | 543 | ||
516 | 544 | ||
517 | - | @Callable( | |
518 | - | func cleanRemaingAmount ( | |
519 | - | let O = | |
520 | - | let | |
521 | - | if (( | |
545 | + | @Callable(co) | |
546 | + | func cleanRemaingAmount (bp) = { | |
547 | + | let O = aI()[D] | |
548 | + | let cL = split(h(invoke(this, "claimREADONLY", [O, bp], nil)), c) | |
549 | + | if ((cL == cL)) | |
522 | 550 | then { | |
523 | - | let | |
524 | - | let | |
551 | + | let cM = parseIntValue(cL[3]) | |
552 | + | let de = if ((cM == 0)) | |
525 | 553 | then true | |
526 | 554 | else f("user have unclaimed assets") | |
527 | - | if (( | |
555 | + | if ((de == de)) | |
528 | 556 | then { | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
557 | + | let df = split(value(getString(ai(bp))), c) | |
558 | + | let cO = parseIntValue(df[T]) | |
559 | + | let cP = parseIntValue(df[U]) | |
560 | + | let cQ = parseIntValue(df[V]) | |
561 | + | let cR = parseIntValue(df[W]) | |
562 | + | let cS = parseIntValue(df[X]) | |
563 | + | let dg = if ((cP != 0)) | |
536 | 564 | then true | |
537 | 565 | else f("investorRemainingAmount already zero") | |
538 | - | if (( | |
566 | + | if ((dg == dg)) | |
539 | 567 | then { | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | [StringEntry(ai( | |
568 | + | let dh = makeString(["%d%d%d%d%d", toString(cO), "0", toString(cQ), toString(cR), toString(cS)], c) | |
569 | + | let cU = split(value(getString(ak())), c) | |
570 | + | let cV = parseIntValue(cU[T]) | |
571 | + | let cW = parseIntValue(cU[U]) | |
572 | + | let cX = parseIntValue(cU[U]) | |
573 | + | let cY = parseIntValue(cU[V]) | |
574 | + | let cZ = parseIntValue(cU[X]) | |
575 | + | let di = makeString(["%d%d%d%d%d", toString(cV), toString((cW - cP)), toString(cX), toString(cY), toString(cZ)], c) | |
576 | + | [StringEntry(aF(bp), toString(cP)), StringEntry(ai(bp), dh), StringEntry(ak(), di)] | |
549 | 577 | } | |
550 | 578 | else throw("Strict value is not equal to itself.") | |
551 | 579 | } | |
552 | 580 | else throw("Strict value is not equal to itself.") | |
553 | 581 | } | |
554 | 582 | else throw("Strict value is not equal to itself.") | |
555 | 583 | } | |
556 | 584 | ||
557 | 585 | ||
558 | 586 | ||
559 | - | @Callable( | |
560 | - | func claimREADONLY ( | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | $Tuple2(nil, makeString(["%s%d%d", | |
587 | + | @Callable(co) | |
588 | + | func claimREADONLY (bl,bp) = { | |
589 | + | let cE = bk(bl, addressFromStringValue(bp), fromBase58String("")) | |
590 | + | let cw = cE._1 | |
591 | + | let bC = cE._2 | |
592 | + | let cF = cE._3 | |
593 | + | let bq = cE._4 | |
594 | + | let bu = cE._5 | |
595 | + | let dj = cE._6 | |
596 | + | let cM = dj[0] | |
597 | + | let dk = dj[1] | |
598 | + | $Tuple2(nil, makeString(["%s%d%d", bp, toString(cM), toString(dk)], c)) | |
571 | 599 | } | |
572 | 600 | ||
573 | 601 | ||
574 | 602 | ||
575 | - | @Callable( | |
576 | - | func claimV2READONLY ( | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let O = | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
603 | + | @Callable(co) | |
604 | + | func claimV2READONLY (bl,bp) = { | |
605 | + | let cE = bk(bl, addressFromStringValue(bp), fromBase58String("")) | |
606 | + | let cw = cE._1 | |
607 | + | let bC = cE._2 | |
608 | + | let cF = cE._3 | |
609 | + | let bq = cE._4 | |
610 | + | let bu = cE._5 | |
611 | + | let dj = cE._6 | |
612 | + | let cM = dj[0] | |
613 | + | let dk = dj[1] | |
614 | + | let aZ = aI() | |
615 | + | let O = aZ[D] | |
616 | + | let aW = valueOrElse(getInteger(aD(bp)), 0) | |
617 | + | let dd = (aW * 100) | |
618 | + | let dl = (dk + dd) | |
619 | + | let dm = bB(O, bp, bC, cw[aQ]) | |
620 | + | let bW = dm._1 | |
621 | + | let bU = dm._2 | |
622 | + | let bV = dm._3 | |
623 | + | let bD = dm._4 | |
624 | + | let bX = dm._5 | |
625 | + | let ci = dm._6 | |
626 | + | let cj = dm._7 | |
627 | + | let bN = dm._8 | |
628 | + | let bO = dm._9 | |
629 | + | let bQ = dm._10 | |
630 | + | let dn = valueOrElse(getInteger(au(bN)), 0) | |
631 | + | let do = (parseIntValue(aN(bp)[V]) - aW) | |
632 | + | let dp = if ((height > dn)) | |
605 | 633 | then { | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | makeString(["%d%d%d%d%d%d", toString( | |
634 | + | let dq = value(getInteger(aq())) | |
635 | + | let dr = value(getInteger(ay(O))) | |
636 | + | let ds = value(getInteger(aw(O))) | |
637 | + | makeString(["%d%d%d%d%d%d", toString(dl), toString(dr), toString(ds), toString(bX), toString(ci), toString(dq), toString(do)], c) | |
610 | 638 | } | |
611 | - | else makeString(["%d%d%d%d%d%d", toString( | |
612 | - | $Tuple2(nil, | |
639 | + | else makeString(["%d%d%d%d%d%d", toString(dl), toString(bW), toString(bU), toString(bX), toString(ci), toString(cj), toString(do)], c) | |
640 | + | $Tuple2(nil, dp) | |
613 | 641 | } | |
614 | 642 | ||
615 | 643 | ||
616 | 644 | ||
617 | - | @Callable( | |
618 | - | func setManager ( | |
619 | - | let | |
620 | - | if (( | |
645 | + | @Callable(co) | |
646 | + | func setManager (dt) = { | |
647 | + | let du = cn(co) | |
648 | + | if ((du == du)) | |
621 | 649 | then { | |
622 | - | let | |
623 | - | if (( | |
624 | - | then [StringEntry( | |
650 | + | let dv = fromBase58String(dt) | |
651 | + | if ((dv == dv)) | |
652 | + | then [StringEntry(aH(), dt)] | |
625 | 653 | else throw("Strict value is not equal to itself.") | |
626 | 654 | } | |
627 | 655 | else throw("Strict value is not equal to itself.") | |
628 | 656 | } | |
629 | 657 | ||
630 | 658 | ||
631 | 659 | ||
632 | - | @Callable( | |
660 | + | @Callable(co) | |
633 | 661 | func confirmManager () = { | |
634 | - | let | |
635 | - | let | |
662 | + | let dw = cm() | |
663 | + | let dx = if (isDefined(dw)) | |
636 | 664 | then true | |
637 | 665 | else throw("No pending manager") | |
638 | - | if (( | |
666 | + | if ((dx == dx)) | |
639 | 667 | then { | |
640 | - | let | |
668 | + | let dy = if ((co.callerPublicKey == value(dw))) | |
641 | 669 | then true | |
642 | 670 | else throw("You are not pending manager") | |
643 | - | if (( | |
644 | - | then [StringEntry( | |
671 | + | if ((dy == dy)) | |
672 | + | then [StringEntry(aG(), toBase58String(value(dw))), DeleteEntry(aH())] | |
645 | 673 | else throw("Strict value is not equal to itself.") | |
646 | 674 | } | |
647 | 675 | else throw("Strict value is not equal to itself.") | |
648 | 676 | } | |
649 | 677 | ||
650 | 678 | ||
651 | - | @Verifier( | |
652 | - | func | |
653 | - | let | |
654 | - | let j = | |
679 | + | @Verifier(dz) | |
680 | + | func dA () = { | |
681 | + | let dB = { | |
682 | + | let j = ck() | |
655 | 683 | if ($isInstanceOf(j, "ByteVector")) | |
656 | 684 | then { | |
657 | - | let | |
658 | - | | |
685 | + | let cq = j | |
686 | + | cq | |
659 | 687 | } | |
660 | 688 | else if ($isInstanceOf(j, "Unit")) | |
661 | - | then | |
689 | + | then dz.senderPublicKey | |
662 | 690 | else throw("Match error") | |
663 | 691 | } | |
664 | - | sigVerify( | |
692 | + | sigVerify(dz.bodyBytes, dz.proofs[0], dB) | |
665 | 693 | } | |
666 | 694 |
github/deemru/w8io/169f3d6 204.68 ms ◑