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