tx · 59ScimVV9rdyddhpeKirTdauibTBLhEQFL2usea7BG5p 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv: -0.02600000 Waves 2022.11.02 21:29 [2299853] smart account 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv > SELF 0.00000000 Waves
{ "type": 13, "id": "59ScimVV9rdyddhpeKirTdauibTBLhEQFL2usea7BG5p", "fee": 2600000, "feeAssetId": null, "timestamp": 1667413841300, "version": 1, "sender": "3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv", "senderPublicKey": "39YkRD2qWXTcdNBr4CbDnm8g8SAB2FKVaDeGYahcFHHx", "proofs": [ "2rkYSbR113vDxEEkcvLGwYukzM9ErKr49JC5EPhQTChRNrF6tG1soVS8KTEZhWPdGXBFdCeDB89oYbm7Q1MjuaWG" ], "script": "base64:AAIFAAAAAAAADp8IAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIAIg9nZXRTdHJpbmdPckZhaWwiA2tleSIDU0VQIghCVUZTQ0FMRSIGc2NhbGU4Igh0aHJvd0VyciIDbXNnIh1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldCIQcHJpY2VBc3NldEFtb3VudCIOcHJpY2VBc3NldE1VTFQiBXByaWNlIglwcmljZU1VTFQiDGlkb0Fzc2V0TVVMVCIPYlByaWNlQXNzZXRNVUxUIg1iSWRvQXNzZXRNVUxUIg5iUHJpY2VBc3NldEJVRiIPYkFtb3VudEFzc2V0QlVGIg5JZHhDZmdJZG9TdGFydCIRSWR4Q2ZnSWRvRHVyYXRpb24iEElkeENmZ0NsYWltU3RhcnQiE0lkeENmZ0NsYWltRHVyYXRpb24iC0lkeENmZ1ByaWNlIg9JZHhDZmdQcmljZU11bHQiEElkeENmZ0lkb0Fzc2V0SWQiEklkeENmZ0lkb0Fzc2V0TXVsdCISSWR4Q2ZnUHJpY2VBc3NldElkIhRJZHhDZmdQcmljZUFzc2V0TXVsd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", "spentComplexity": 0 } View: original | compacted Prev: Cy3hdSkUx6YmxG5dz5XdSYPLpyEd6bHuZtm9A481kpf7 Next: 5skf8CndkAFADhnL9cHsKLMtQSpeeYuqLowaanmBB4k9 Diff:
Old | New | Differences | |
---|---|---|---|
239 | 239 | let bx = value(getInteger(au(K))) | |
240 | 240 | let by = value(getInteger(am())) | |
241 | 241 | let bz = valueOrElse(getInteger(an()), 0) | |
242 | - | let bA = if ((bz > 0)) | |
242 | + | let bA = isDefined(getInteger(aq(0))) | |
243 | + | let bB = if ((bz > 0)) | |
243 | 244 | then { | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
245 | + | let bC = value(getInteger(ao((bz - 1)))) | |
246 | + | let bD = value(getInteger(aq((bz - 1)))) | |
247 | + | let bE = if ((height > bD)) | |
247 | 248 | then { | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | $Tuple3( | |
249 | + | let bF = (bz + 1) | |
250 | + | let bG = (bD + 1) | |
251 | + | let bH = ((bG + by) - 1) | |
252 | + | $Tuple3(bF, bG, bH) | |
252 | 253 | } | |
253 | - | else $Tuple3(bz, | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | $Tuple3( | |
254 | + | else $Tuple3(bz, bC, bD) | |
255 | + | let bF = bE._1 | |
256 | + | let bG = bE._2 | |
257 | + | let bH = bE._3 | |
258 | + | $Tuple3(bF, bG, bH) | |
258 | 259 | } | |
259 | - | else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1))) | |
260 | - | let bE = bA._1 | |
261 | - | let bF = bA._2 | |
262 | - | let bG = bA._3 | |
263 | - | let bH = valueOrElse(getInteger(av(K, bE)), bw) | |
264 | - | let bI = valueOrElse(getInteger(aw(K, bE, be)), bx) | |
265 | - | let bJ = valueOrElse(getInteger(az(be)), 0) | |
266 | - | let bK = min([(bu + bJ), bH, bI]) | |
267 | - | let bL = value(getInteger(ar())) | |
268 | - | let bM = e | |
269 | - | let bN = { | |
270 | - | let bO = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bM, K], nil) | |
271 | - | if ($isInstanceOf(bO, "(Int, Int, Int)")) | |
272 | - | then bO | |
260 | + | else if (bA) | |
261 | + | then { | |
262 | + | let bI = value(getInteger(ao(0))) | |
263 | + | let bJ = value(getInteger(aq(0))) | |
264 | + | let bK = if ((height > bJ)) | |
265 | + | then { | |
266 | + | let bF = (bz + 1) | |
267 | + | let bG = (bJ + 1) | |
268 | + | let bH = ((bG + by) - 1) | |
269 | + | $Tuple3(bF, bG, bH) | |
270 | + | } | |
271 | + | else $Tuple3(bz, bI, bJ) | |
272 | + | let bF = bK._1 | |
273 | + | let bG = bK._2 | |
274 | + | let bH = bK._3 | |
275 | + | $Tuple3(bF, bG, bH) | |
276 | + | } | |
277 | + | else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1))) | |
278 | + | let bF = bB._1 | |
279 | + | let bG = bB._2 | |
280 | + | let bH = bB._3 | |
281 | + | let bL = valueOrElse(getInteger(av(K, bF)), bw) | |
282 | + | let bM = valueOrElse(getInteger(aw(K, bF, be)), bx) | |
283 | + | let bN = valueOrElse(getInteger(az(be)), 0) | |
284 | + | let bO = min([(bu + bN), bL, bM]) | |
285 | + | let bP = value(getInteger(ar())) | |
286 | + | let bQ = e | |
287 | + | let bR = { | |
288 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bQ, K], nil) | |
289 | + | if ($isInstanceOf(bS, "(Int, Int, Int)")) | |
290 | + | then bS | |
273 | 291 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
274 | 292 | } | |
275 | - | if (( | |
293 | + | if ((bR == bR)) | |
276 | 294 | then { | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | if ($isInstanceOf( | |
284 | - | then | |
295 | + | let bT = bR._3 | |
296 | + | let bU = bR._2 | |
297 | + | let bV = bR._1 | |
298 | + | let bW = value(getString(ay())) | |
299 | + | let bX = { | |
300 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bW, bV], nil) | |
301 | + | if ($isInstanceOf(bS, "(Int, Int)")) | |
302 | + | then bS | |
285 | 303 | else throw("Couldn't cast Any to (Int, Int)") | |
286 | 304 | } | |
287 | - | if (( | |
305 | + | if ((bX == bX)) | |
288 | 306 | then { | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | $Tuple10( | |
307 | + | let bY = bX._2 | |
308 | + | let bZ = bX._1 | |
309 | + | let ca = fraction(bZ, bQ, e) | |
310 | + | let cb = (bH - height) | |
311 | + | $Tuple10(bO, bL, bM, bv, bP, ca, cb, bF, bG, bH) | |
294 | 312 | } | |
295 | 313 | else throw("Strict value is not equal to itself.") | |
296 | 314 | } | |
298 | 316 | } | |
299 | 317 | ||
300 | 318 | ||
301 | - | func | |
319 | + | func cc () = { | |
302 | 320 | let bq = getString(aB()) | |
303 | 321 | if ($isInstanceOf(bq, "String")) | |
304 | 322 | then { | |
305 | - | let | |
306 | - | fromBase58String( | |
323 | + | let cd = bq | |
324 | + | fromBase58String(cd) | |
307 | 325 | } | |
308 | 326 | else if ($isInstanceOf(bq, "Unit")) | |
309 | 327 | then unit | |
311 | 329 | } | |
312 | 330 | ||
313 | 331 | ||
314 | - | func | |
332 | + | func ce () = { | |
315 | 333 | let bq = getString(aC()) | |
316 | 334 | if ($isInstanceOf(bq, "String")) | |
317 | 335 | then { | |
318 | - | let | |
319 | - | fromBase58String( | |
336 | + | let cd = bq | |
337 | + | fromBase58String(cd) | |
320 | 338 | } | |
321 | 339 | else if ($isInstanceOf(bq, "Unit")) | |
322 | 340 | then unit | |
324 | 342 | } | |
325 | 343 | ||
326 | 344 | ||
327 | - | func | |
328 | - | let | |
329 | - | let bq = | |
345 | + | func cf (cg) = { | |
346 | + | let ch = throw("Permission denied") | |
347 | + | let bq = cc() | |
330 | 348 | if ($isInstanceOf(bq, "ByteVector")) | |
331 | 349 | then { | |
332 | - | let | |
333 | - | if (( | |
350 | + | let ci = bq | |
351 | + | if ((cg.callerPublicKey == ci)) | |
334 | 352 | then true | |
335 | - | else | |
353 | + | else ch | |
336 | 354 | } | |
337 | 355 | else if ($isInstanceOf(bq, "Unit")) | |
338 | - | then if (( | |
356 | + | then if ((cg.caller == this)) | |
339 | 357 | then true | |
340 | - | else | |
358 | + | else ch | |
341 | 359 | else throw("Match error") | |
342 | 360 | } | |
343 | 361 | ||
344 | 362 | ||
345 | - | @Callable( | |
363 | + | @Callable(cg) | |
346 | 364 | func constructor (D,E,F,G,k,K,M) = { | |
347 | 365 | let H = ((100 * 1000) * 1000) | |
348 | - | let | |
366 | + | let cj = (D + E) | |
349 | 367 | if (isDefined(getString(ad()))) | |
350 | 368 | then throw("already initialized") | |
351 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
369 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(cg.caller))) | |
352 | 370 | then throw("not authorized") | |
353 | - | else if ((size( | |
371 | + | else if ((size(cg.payments) != 1)) | |
354 | 372 | then throw("exactly 1 payment must be attached") | |
355 | - | else if (( | |
373 | + | else if ((cj >= F)) | |
356 | 374 | then throw("claimStart must be greater than idoEnd") | |
357 | 375 | else { | |
358 | - | let | |
359 | - | let bc = value( | |
360 | - | let | |
376 | + | let ck = value(cg.payments[0]) | |
377 | + | let bc = value(ck.assetId) | |
378 | + | let cl = valueOrErrorMessage(assetInfo(bc), "fail to load ido asset info") | |
361 | 379 | let I = toBase58String(bc) | |
362 | - | let J = pow(10, 0, | |
380 | + | let J = pow(10, 0, cl.decimals, 0, 0, DOWN) | |
363 | 381 | let bd = fromBase58String(K) | |
364 | - | let | |
365 | - | let L = pow(10, 0, | |
366 | - | let | |
367 | - | let | |
368 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
382 | + | let cm = valueOrErrorMessage(assetInfo(bd), "fail to load price asset info") | |
383 | + | let L = pow(10, 0, cm.decimals, 0, 0, DOWN) | |
384 | + | let cn = aG() | |
385 | + | let co = [0, 0, 0, 0] | |
386 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, ck.amount)), aN(ag(), cn, co, F)] | |
369 | 387 | } | |
370 | 388 | } | |
371 | 389 | ||
372 | 390 | ||
373 | 391 | ||
374 | - | @Callable( | |
392 | + | @Callable(cg) | |
375 | 393 | func invest () = { | |
376 | 394 | let ba = aD() | |
377 | 395 | let D = parseIntValue(ba[r]) | |
378 | 396 | let E = parseIntValue(ba[s]) | |
379 | - | let | |
397 | + | let cj = (D + E) | |
380 | 398 | let F = parseIntValue(ba[t]) | |
381 | 399 | let G = parseIntValue(ba[u]) | |
382 | 400 | let k = parseIntValue(ba[v]) | |
387 | 405 | let K = ba[z] | |
388 | 406 | let bd = fromBase58String(K) | |
389 | 407 | let L = parseIntValue(ba[A]) | |
390 | - | let | |
391 | - | let af = toString( | |
408 | + | let cp = parseIntValue(ba[B]) | |
409 | + | let af = toString(cg.caller) | |
392 | 410 | if ((D > height)) | |
393 | 411 | then throw("ido has not been started yet") | |
394 | - | else if ((height > | |
412 | + | else if ((height > cj)) | |
395 | 413 | then throw("ido has been already ended") | |
396 | - | else if ((size( | |
414 | + | else if ((size(cg.payments) != 1)) | |
397 | 415 | then throw("exactly 1 payment is expected") | |
398 | 416 | else { | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | if (( | |
403 | - | then throw((("invalid payment asset id: " + toBase58String( | |
417 | + | let ck = value(cg.payments[0]) | |
418 | + | let cq = value(ck.assetId) | |
419 | + | let cr = ck.amount | |
420 | + | if ((cq != bd)) | |
421 | + | then throw((("invalid payment asset id: " + toBase58String(cq)) + " is expected")) | |
404 | 422 | else { | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | if (( | |
423 | + | let cs = aH(af) | |
424 | + | let cn = aG() | |
425 | + | let ct = (parseIntValue(cn[P]) + cr) | |
426 | + | let cu = (ct * 100) | |
427 | + | if ((cu > assetBalance(this, bc))) | |
410 | 428 | then throw("IDO asset has been - sold consider to use smaller payment") | |
411 | 429 | else { | |
412 | - | let | |
413 | - | [aN(ae(af), | |
430 | + | let co = [cr, cr, 0, 0] | |
431 | + | [aN(ae(af), cs, co, F), aN(ag(), cn, co, F), aV(af, cr, 0, cg.transactionId)] | |
414 | 432 | } | |
415 | 433 | } | |
416 | 434 | } | |
418 | 436 | ||
419 | 437 | ||
420 | 438 | ||
421 | - | @Callable( | |
439 | + | @Callable(cg) | |
422 | 440 | func claim (aZ,be) = { | |
423 | - | let | |
424 | - | if ((be != | |
441 | + | let cv = toString(cg.caller) | |
442 | + | if ((be != cv)) | |
425 | 443 | then throw("not authorized") | |
426 | 444 | else { | |
427 | 445 | let ba = aD() | |
428 | 446 | let K = ba[z] | |
429 | - | let | |
430 | - | let | |
431 | - | let bu = | |
432 | - | let | |
433 | - | let bf = | |
434 | - | let bj = | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
447 | + | let cw = aY(aZ, cg.caller, cg.transactionId) | |
448 | + | let co = cw._1 | |
449 | + | let bu = cw._2 | |
450 | + | let cx = cw._3 | |
451 | + | let bf = cw._4 | |
452 | + | let bj = cw._5 | |
453 | + | let cy = co[aL] | |
454 | + | let cz = co[aM] | |
455 | + | let cA = if ((aZ == K)) | |
438 | 456 | then { | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let bv = | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let bs = [if (( | |
457 | + | let cB = bt(K, be, bu, co[aL]) | |
458 | + | let bO = cB._1 | |
459 | + | let bL = cB._2 | |
460 | + | let bM = cB._3 | |
461 | + | let bv = cB._4 | |
462 | + | let bP = cB._5 | |
463 | + | let ca = cB._6 | |
464 | + | let cb = cB._7 | |
465 | + | let bF = cB._8 | |
466 | + | let bG = cB._9 | |
467 | + | let bH = cB._10 | |
468 | + | let bs = [if ((bO > 0)) | |
451 | 469 | then true | |
452 | - | else f(makeString(["nothing to claim", toString( | |
470 | + | else f(makeString(["nothing to claim", toString(bO), toString(bL), toString(bM), toString(bv), toString(bP), toString(ca), toString(cb), toString(bF), toString(bG), toString(bH)], c)), if ((bM > 0)) | |
453 | 471 | then true | |
454 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
472 | + | else f("unavailable to claim because user period allowance reached"), if ((bL > 0)) | |
455 | 473 | then true | |
456 | - | else f("unavailable to claim because total period allowance reached"), if (( | |
474 | + | else f("unavailable to claim because total period allowance reached"), if ((bP > ca)) | |
457 | 475 | then true | |
458 | 476 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
459 | 477 | if ((bs == bs)) | |
460 | 478 | then { | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | then [ScriptTransfer( | |
479 | + | let bN = valueOrElse(getInteger(az(be)), 0) | |
480 | + | let cC = (bL - bO) | |
481 | + | let cD = (bM - bO) | |
482 | + | let cA = if ((bN >= bO)) | |
483 | + | then [ScriptTransfer(cg.caller, bO, cx), IntegerEntry(az(be), (bN - bO))] | |
466 | 484 | else { | |
467 | - | let | |
468 | - | [ScriptTransfer( | |
485 | + | let cE = ((bN + bu) - bO) | |
486 | + | [ScriptTransfer(cg.caller, bO, cx), aN(ae(be), bf, co, bj), aN(ag(), aG(), co, bj), IntegerEntry(az(be), cE)] | |
469 | 487 | } | |
470 | - | $Tuple2(([IntegerEntry(an(), | |
488 | + | $Tuple2(([IntegerEntry(an(), bF), IntegerEntry(ao(bF), bG), IntegerEntry(aq(bF), bH), IntegerEntry(av(K, bF), cC), IntegerEntry(aw(K, bF, be), cD), aX(be, bO, cz, cg.transactionId)] ++ cA), unit) | |
471 | 489 | } | |
472 | 490 | else throw("Strict value is not equal to itself.") | |
473 | 491 | } | |
474 | - | else $Tuple2([ScriptTransfer( | |
475 | - | | |
492 | + | else $Tuple2([ScriptTransfer(cg.caller, bu, cx), aN(ae(be), bf, co, bj), aN(ag(), aG(), co, bj), aX(be, cy, cz, cg.transactionId)], unit) | |
493 | + | cA | |
476 | 494 | } | |
477 | 495 | } | |
478 | 496 | ||
479 | 497 | ||
480 | 498 | ||
481 | - | @Callable( | |
499 | + | @Callable(cg) | |
482 | 500 | func claimREADONLY (aZ,be) = { | |
483 | - | let | |
484 | - | let | |
485 | - | let bu = | |
486 | - | let | |
487 | - | let bf = | |
488 | - | let bj = | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | $Tuple2(nil, makeString(["%s%d%d", be, toString( | |
501 | + | let cw = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
502 | + | let co = cw._1 | |
503 | + | let bu = cw._2 | |
504 | + | let cx = cw._3 | |
505 | + | let bf = cw._4 | |
506 | + | let bj = cw._5 | |
507 | + | let cF = cw._6 | |
508 | + | let cG = cF[0] | |
509 | + | let cH = cF[1] | |
510 | + | $Tuple2(nil, makeString(["%s%d%d", be, toString(cG), toString(cH)], c)) | |
493 | 511 | } | |
494 | 512 | ||
495 | 513 | ||
496 | 514 | ||
497 | - | @Callable( | |
515 | + | @Callable(cg) | |
498 | 516 | func claimV2READONLY (aZ,be) = { | |
499 | - | let | |
500 | - | let | |
501 | - | let bu = | |
502 | - | let | |
503 | - | let bf = | |
504 | - | let bj = | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
517 | + | let cw = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
518 | + | let co = cw._1 | |
519 | + | let bu = cw._2 | |
520 | + | let cx = cw._3 | |
521 | + | let bf = cw._4 | |
522 | + | let bj = cw._5 | |
523 | + | let cF = cw._6 | |
524 | + | let cG = cF[0] | |
525 | + | let cH = cF[1] | |
508 | 526 | let ba = aD() | |
509 | 527 | let K = ba[z] | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let bv = | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
528 | + | let cI = bt(K, be, bu, co[aL]) | |
529 | + | let bO = cI._1 | |
530 | + | let bL = cI._2 | |
531 | + | let bM = cI._3 | |
532 | + | let bv = cI._4 | |
533 | + | let bP = cI._5 | |
534 | + | let ca = cI._6 | |
535 | + | let cb = cI._7 | |
536 | + | let bF = cI._8 | |
537 | + | let bG = cI._9 | |
538 | + | let bH = cI._10 | |
539 | + | let cJ = value(getInteger(aq(bF))) | |
540 | + | let cK = if ((height > cJ)) | |
523 | 541 | then { | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | makeString(["%d%d%d%d%d%d", toString( | |
542 | + | let cL = value(getInteger(am())) | |
543 | + | let cM = value(getInteger(au(K))) | |
544 | + | let cN = value(getInteger(as(K))) | |
545 | + | makeString(["%d%d%d%d%d%d", toString(cH), toString(cM), toString(cN), toString(bP), toString(ca), toString(cL)], c) | |
528 | 546 | } | |
529 | - | else makeString(["%d%d%d%d%d%d", toString( | |
530 | - | $Tuple2(nil, | |
547 | + | else makeString(["%d%d%d%d%d%d", toString(cH), toString(bO), toString(bL), toString(bP), toString(ca), toString(cb)], c) | |
548 | + | $Tuple2(nil, cK) | |
531 | 549 | } | |
532 | 550 | ||
533 | 551 | ||
534 | 552 | ||
535 | - | @Callable( | |
536 | - | func setManager ( | |
537 | - | let | |
538 | - | if (( | |
553 | + | @Callable(cg) | |
554 | + | func setManager (cO) = { | |
555 | + | let cP = cf(cg) | |
556 | + | if ((cP == cP)) | |
539 | 557 | then { | |
540 | - | let | |
541 | - | if (( | |
542 | - | then [StringEntry(aC(), | |
558 | + | let cQ = fromBase58String(cO) | |
559 | + | if ((cQ == cQ)) | |
560 | + | then [StringEntry(aC(), cO)] | |
543 | 561 | else throw("Strict value is not equal to itself.") | |
544 | 562 | } | |
545 | 563 | else throw("Strict value is not equal to itself.") | |
547 | 565 | ||
548 | 566 | ||
549 | 567 | ||
550 | - | @Callable( | |
568 | + | @Callable(cg) | |
551 | 569 | func confirmManager () = { | |
552 | - | let | |
553 | - | let | |
570 | + | let cR = ce() | |
571 | + | let cS = if (isDefined(cR)) | |
554 | 572 | then true | |
555 | 573 | else throw("No pending manager") | |
556 | - | if (( | |
574 | + | if ((cS == cS)) | |
557 | 575 | then { | |
558 | - | let | |
576 | + | let cT = if ((cg.callerPublicKey == value(cR))) | |
559 | 577 | then true | |
560 | 578 | else throw("You are not pending manager") | |
561 | - | if (( | |
562 | - | then [StringEntry(aB(), toBase58String(value( | |
579 | + | if ((cT == cT)) | |
580 | + | then [StringEntry(aB(), toBase58String(value(cR))), DeleteEntry(aC())] | |
563 | 581 | else throw("Strict value is not equal to itself.") | |
564 | 582 | } | |
565 | 583 | else throw("Strict value is not equal to itself.") | |
566 | 584 | } | |
567 | 585 | ||
568 | 586 | ||
569 | - | @Verifier( | |
570 | - | func | |
571 | - | let | |
572 | - | let bq = | |
587 | + | @Verifier(cU) | |
588 | + | func cV () = { | |
589 | + | let cW = { | |
590 | + | let bq = cc() | |
573 | 591 | if ($isInstanceOf(bq, "ByteVector")) | |
574 | 592 | then { | |
575 | - | let | |
576 | - | | |
593 | + | let ci = bq | |
594 | + | ci | |
577 | 595 | } | |
578 | 596 | else if ($isInstanceOf(bq, "Unit")) | |
579 | - | then | |
597 | + | then cU.senderPublicKey | |
580 | 598 | else throw("Match error") | |
581 | 599 | } | |
582 | - | sigVerify( | |
600 | + | sigVerify(cU.bodyBytes, cU.proofs[0], cW) | |
583 | 601 | } | |
584 | 602 |
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) = { | |
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 aR = (V + aP[aJ]) | |
162 | 162 | let aS = (W + aP[aK]) | |
163 | 163 | let aT = (X + aP[aL]) | |
164 | 164 | let aU = (Y + aP[aM]) | |
165 | 165 | if ((0 > aS)) | |
166 | 166 | then throw("invalid math") | |
167 | 167 | else StringEntry(b, aa(aR, aS, aT, aU, aQ)) | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func aV (af,i,ac,aW) = StringEntry(ah("invest", af, toBase58String(aW)), ab(i, ac)) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aX (af,i,ac,aW) = StringEntry(ah("claim", af, toBase58String(aW)), ab(i, ac)) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aY (aZ,af,aW) = { | |
178 | 178 | let ba = aD() | |
179 | 179 | let F = parseIntValue(ba[t]) | |
180 | 180 | let G = parseIntValue(ba[u]) | |
181 | 181 | let bb = (F + G) | |
182 | 182 | let k = parseIntValue(ba[v]) | |
183 | 183 | let H = parseIntValue(ba[w]) | |
184 | 184 | let I = ba[x] | |
185 | 185 | let bc = fromBase58String(I) | |
186 | 186 | let J = parseIntValue(ba[y]) | |
187 | 187 | let K = ba[z] | |
188 | 188 | let bd = fromBase58String(K) | |
189 | 189 | let L = parseIntValue(ba[A]) | |
190 | 190 | let be = toString(af) | |
191 | 191 | let bf = aI(be) | |
192 | 192 | let bg = parseIntValue(bf[P]) | |
193 | 193 | let bh = parseIntValue(bf[T]) | |
194 | 194 | let bi = if ((F >= bh)) | |
195 | 195 | then F | |
196 | 196 | else bh | |
197 | 197 | let bj = if ((height > bb)) | |
198 | 198 | then bb | |
199 | 199 | else if ((F > height)) | |
200 | 200 | then F | |
201 | 201 | else height | |
202 | 202 | let bk = (bj - bi) | |
203 | 203 | let bl = fraction(bg, bk, G) | |
204 | 204 | let bm = h(bl, L, k, H, J) | |
205 | 205 | let bn = (aZ == K) | |
206 | 206 | let bo = valueOrElse(getBoolean(ak()), false) | |
207 | 207 | let bp = { | |
208 | 208 | let bq = getInteger(al()) | |
209 | 209 | if ($isInstanceOf(bq, "Int")) | |
210 | 210 | then { | |
211 | 211 | let br = bq | |
212 | 212 | (height > br) | |
213 | 213 | } | |
214 | 214 | else if ($isInstanceOf(bq, "Unit")) | |
215 | 215 | then false | |
216 | 216 | else throw("Match error") | |
217 | 217 | } | |
218 | 218 | let bs = [if (!(if (bn) | |
219 | 219 | then bo | |
220 | 220 | else false)) | |
221 | 221 | then true | |
222 | 222 | else throw("USDN claim is disabled"), if (!(if (bn) | |
223 | 223 | then bp | |
224 | 224 | else false)) | |
225 | 225 | then true | |
226 | 226 | else throw("USDN claim is ended")] | |
227 | 227 | if ((bs == bs)) | |
228 | 228 | then if ((aZ == K)) | |
229 | 229 | then $Tuple6([0, -(bl), bl, 0], bl, bd, bf, bj, [bl, bm]) | |
230 | 230 | else if ((aZ == I)) | |
231 | 231 | then $Tuple6([0, -(bl), 0, bm], bm, bc, bf, bj, [bl, bm]) | |
232 | 232 | else throw(("unsupported assetId: " + aZ)) | |
233 | 233 | else throw("Strict value is not equal to itself.") | |
234 | 234 | } | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func bt (K,be,bu,bv) = { | |
238 | 238 | let bw = value(getInteger(as(K))) | |
239 | 239 | let bx = value(getInteger(au(K))) | |
240 | 240 | let by = value(getInteger(am())) | |
241 | 241 | let bz = valueOrElse(getInteger(an()), 0) | |
242 | - | let bA = if ((bz > 0)) | |
242 | + | let bA = isDefined(getInteger(aq(0))) | |
243 | + | let bB = if ((bz > 0)) | |
243 | 244 | then { | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
245 | + | let bC = value(getInteger(ao((bz - 1)))) | |
246 | + | let bD = value(getInteger(aq((bz - 1)))) | |
247 | + | let bE = if ((height > bD)) | |
247 | 248 | then { | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | $Tuple3( | |
249 | + | let bF = (bz + 1) | |
250 | + | let bG = (bD + 1) | |
251 | + | let bH = ((bG + by) - 1) | |
252 | + | $Tuple3(bF, bG, bH) | |
252 | 253 | } | |
253 | - | else $Tuple3(bz, | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | $Tuple3( | |
254 | + | else $Tuple3(bz, bC, bD) | |
255 | + | let bF = bE._1 | |
256 | + | let bG = bE._2 | |
257 | + | let bH = bE._3 | |
258 | + | $Tuple3(bF, bG, bH) | |
258 | 259 | } | |
259 | - | else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1))) | |
260 | - | let bE = bA._1 | |
261 | - | let bF = bA._2 | |
262 | - | let bG = bA._3 | |
263 | - | let bH = valueOrElse(getInteger(av(K, bE)), bw) | |
264 | - | let bI = valueOrElse(getInteger(aw(K, bE, be)), bx) | |
265 | - | let bJ = valueOrElse(getInteger(az(be)), 0) | |
266 | - | let bK = min([(bu + bJ), bH, bI]) | |
267 | - | let bL = value(getInteger(ar())) | |
268 | - | let bM = e | |
269 | - | let bN = { | |
270 | - | let bO = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bM, K], nil) | |
271 | - | if ($isInstanceOf(bO, "(Int, Int, Int)")) | |
272 | - | then bO | |
260 | + | else if (bA) | |
261 | + | then { | |
262 | + | let bI = value(getInteger(ao(0))) | |
263 | + | let bJ = value(getInteger(aq(0))) | |
264 | + | let bK = if ((height > bJ)) | |
265 | + | then { | |
266 | + | let bF = (bz + 1) | |
267 | + | let bG = (bJ + 1) | |
268 | + | let bH = ((bG + by) - 1) | |
269 | + | $Tuple3(bF, bG, bH) | |
270 | + | } | |
271 | + | else $Tuple3(bz, bI, bJ) | |
272 | + | let bF = bK._1 | |
273 | + | let bG = bK._2 | |
274 | + | let bH = bK._3 | |
275 | + | $Tuple3(bF, bG, bH) | |
276 | + | } | |
277 | + | else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1))) | |
278 | + | let bF = bB._1 | |
279 | + | let bG = bB._2 | |
280 | + | let bH = bB._3 | |
281 | + | let bL = valueOrElse(getInteger(av(K, bF)), bw) | |
282 | + | let bM = valueOrElse(getInteger(aw(K, bF, be)), bx) | |
283 | + | let bN = valueOrElse(getInteger(az(be)), 0) | |
284 | + | let bO = min([(bu + bN), bL, bM]) | |
285 | + | let bP = value(getInteger(ar())) | |
286 | + | let bQ = e | |
287 | + | let bR = { | |
288 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bQ, K], nil) | |
289 | + | if ($isInstanceOf(bS, "(Int, Int, Int)")) | |
290 | + | then bS | |
273 | 291 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
274 | 292 | } | |
275 | - | if (( | |
293 | + | if ((bR == bR)) | |
276 | 294 | then { | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | if ($isInstanceOf( | |
284 | - | then | |
295 | + | let bT = bR._3 | |
296 | + | let bU = bR._2 | |
297 | + | let bV = bR._1 | |
298 | + | let bW = value(getString(ay())) | |
299 | + | let bX = { | |
300 | + | let bS = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bW, bV], nil) | |
301 | + | if ($isInstanceOf(bS, "(Int, Int)")) | |
302 | + | then bS | |
285 | 303 | else throw("Couldn't cast Any to (Int, Int)") | |
286 | 304 | } | |
287 | - | if (( | |
305 | + | if ((bX == bX)) | |
288 | 306 | then { | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | $Tuple10( | |
307 | + | let bY = bX._2 | |
308 | + | let bZ = bX._1 | |
309 | + | let ca = fraction(bZ, bQ, e) | |
310 | + | let cb = (bH - height) | |
311 | + | $Tuple10(bO, bL, bM, bv, bP, ca, cb, bF, bG, bH) | |
294 | 312 | } | |
295 | 313 | else throw("Strict value is not equal to itself.") | |
296 | 314 | } | |
297 | 315 | else throw("Strict value is not equal to itself.") | |
298 | 316 | } | |
299 | 317 | ||
300 | 318 | ||
301 | - | func | |
319 | + | func cc () = { | |
302 | 320 | let bq = getString(aB()) | |
303 | 321 | if ($isInstanceOf(bq, "String")) | |
304 | 322 | then { | |
305 | - | let | |
306 | - | fromBase58String( | |
323 | + | let cd = bq | |
324 | + | fromBase58String(cd) | |
307 | 325 | } | |
308 | 326 | else if ($isInstanceOf(bq, "Unit")) | |
309 | 327 | then unit | |
310 | 328 | else throw("Match error") | |
311 | 329 | } | |
312 | 330 | ||
313 | 331 | ||
314 | - | func | |
332 | + | func ce () = { | |
315 | 333 | let bq = getString(aC()) | |
316 | 334 | if ($isInstanceOf(bq, "String")) | |
317 | 335 | then { | |
318 | - | let | |
319 | - | fromBase58String( | |
336 | + | let cd = bq | |
337 | + | fromBase58String(cd) | |
320 | 338 | } | |
321 | 339 | else if ($isInstanceOf(bq, "Unit")) | |
322 | 340 | then unit | |
323 | 341 | else throw("Match error") | |
324 | 342 | } | |
325 | 343 | ||
326 | 344 | ||
327 | - | func | |
328 | - | let | |
329 | - | let bq = | |
345 | + | func cf (cg) = { | |
346 | + | let ch = throw("Permission denied") | |
347 | + | let bq = cc() | |
330 | 348 | if ($isInstanceOf(bq, "ByteVector")) | |
331 | 349 | then { | |
332 | - | let | |
333 | - | if (( | |
350 | + | let ci = bq | |
351 | + | if ((cg.callerPublicKey == ci)) | |
334 | 352 | then true | |
335 | - | else | |
353 | + | else ch | |
336 | 354 | } | |
337 | 355 | else if ($isInstanceOf(bq, "Unit")) | |
338 | - | then if (( | |
356 | + | then if ((cg.caller == this)) | |
339 | 357 | then true | |
340 | - | else | |
358 | + | else ch | |
341 | 359 | else throw("Match error") | |
342 | 360 | } | |
343 | 361 | ||
344 | 362 | ||
345 | - | @Callable( | |
363 | + | @Callable(cg) | |
346 | 364 | func constructor (D,E,F,G,k,K,M) = { | |
347 | 365 | let H = ((100 * 1000) * 1000) | |
348 | - | let | |
366 | + | let cj = (D + E) | |
349 | 367 | if (isDefined(getString(ad()))) | |
350 | 368 | then throw("already initialized") | |
351 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
369 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(cg.caller))) | |
352 | 370 | then throw("not authorized") | |
353 | - | else if ((size( | |
371 | + | else if ((size(cg.payments) != 1)) | |
354 | 372 | then throw("exactly 1 payment must be attached") | |
355 | - | else if (( | |
373 | + | else if ((cj >= F)) | |
356 | 374 | then throw("claimStart must be greater than idoEnd") | |
357 | 375 | else { | |
358 | - | let | |
359 | - | let bc = value( | |
360 | - | let | |
376 | + | let ck = value(cg.payments[0]) | |
377 | + | let bc = value(ck.assetId) | |
378 | + | let cl = valueOrErrorMessage(assetInfo(bc), "fail to load ido asset info") | |
361 | 379 | let I = toBase58String(bc) | |
362 | - | let J = pow(10, 0, | |
380 | + | let J = pow(10, 0, cl.decimals, 0, 0, DOWN) | |
363 | 381 | let bd = fromBase58String(K) | |
364 | - | let | |
365 | - | let L = pow(10, 0, | |
366 | - | let | |
367 | - | let | |
368 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
382 | + | let cm = valueOrErrorMessage(assetInfo(bd), "fail to load price asset info") | |
383 | + | let L = pow(10, 0, cm.decimals, 0, 0, DOWN) | |
384 | + | let cn = aG() | |
385 | + | let co = [0, 0, 0, 0] | |
386 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, ck.amount)), aN(ag(), cn, co, F)] | |
369 | 387 | } | |
370 | 388 | } | |
371 | 389 | ||
372 | 390 | ||
373 | 391 | ||
374 | - | @Callable( | |
392 | + | @Callable(cg) | |
375 | 393 | func invest () = { | |
376 | 394 | let ba = aD() | |
377 | 395 | let D = parseIntValue(ba[r]) | |
378 | 396 | let E = parseIntValue(ba[s]) | |
379 | - | let | |
397 | + | let cj = (D + E) | |
380 | 398 | let F = parseIntValue(ba[t]) | |
381 | 399 | let G = parseIntValue(ba[u]) | |
382 | 400 | let k = parseIntValue(ba[v]) | |
383 | 401 | let H = parseIntValue(ba[w]) | |
384 | 402 | let I = ba[x] | |
385 | 403 | let bc = fromBase58String(I) | |
386 | 404 | let J = parseIntValue(ba[y]) | |
387 | 405 | let K = ba[z] | |
388 | 406 | let bd = fromBase58String(K) | |
389 | 407 | let L = parseIntValue(ba[A]) | |
390 | - | let | |
391 | - | let af = toString( | |
408 | + | let cp = parseIntValue(ba[B]) | |
409 | + | let af = toString(cg.caller) | |
392 | 410 | if ((D > height)) | |
393 | 411 | then throw("ido has not been started yet") | |
394 | - | else if ((height > | |
412 | + | else if ((height > cj)) | |
395 | 413 | then throw("ido has been already ended") | |
396 | - | else if ((size( | |
414 | + | else if ((size(cg.payments) != 1)) | |
397 | 415 | then throw("exactly 1 payment is expected") | |
398 | 416 | else { | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | if (( | |
403 | - | then throw((("invalid payment asset id: " + toBase58String( | |
417 | + | let ck = value(cg.payments[0]) | |
418 | + | let cq = value(ck.assetId) | |
419 | + | let cr = ck.amount | |
420 | + | if ((cq != bd)) | |
421 | + | then throw((("invalid payment asset id: " + toBase58String(cq)) + " is expected")) | |
404 | 422 | else { | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | if (( | |
423 | + | let cs = aH(af) | |
424 | + | let cn = aG() | |
425 | + | let ct = (parseIntValue(cn[P]) + cr) | |
426 | + | let cu = (ct * 100) | |
427 | + | if ((cu > assetBalance(this, bc))) | |
410 | 428 | then throw("IDO asset has been - sold consider to use smaller payment") | |
411 | 429 | else { | |
412 | - | let | |
413 | - | [aN(ae(af), | |
430 | + | let co = [cr, cr, 0, 0] | |
431 | + | [aN(ae(af), cs, co, F), aN(ag(), cn, co, F), aV(af, cr, 0, cg.transactionId)] | |
414 | 432 | } | |
415 | 433 | } | |
416 | 434 | } | |
417 | 435 | } | |
418 | 436 | ||
419 | 437 | ||
420 | 438 | ||
421 | - | @Callable( | |
439 | + | @Callable(cg) | |
422 | 440 | func claim (aZ,be) = { | |
423 | - | let | |
424 | - | if ((be != | |
441 | + | let cv = toString(cg.caller) | |
442 | + | if ((be != cv)) | |
425 | 443 | then throw("not authorized") | |
426 | 444 | else { | |
427 | 445 | let ba = aD() | |
428 | 446 | let K = ba[z] | |
429 | - | let | |
430 | - | let | |
431 | - | let bu = | |
432 | - | let | |
433 | - | let bf = | |
434 | - | let bj = | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
447 | + | let cw = aY(aZ, cg.caller, cg.transactionId) | |
448 | + | let co = cw._1 | |
449 | + | let bu = cw._2 | |
450 | + | let cx = cw._3 | |
451 | + | let bf = cw._4 | |
452 | + | let bj = cw._5 | |
453 | + | let cy = co[aL] | |
454 | + | let cz = co[aM] | |
455 | + | let cA = if ((aZ == K)) | |
438 | 456 | then { | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let bv = | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let bs = [if (( | |
457 | + | let cB = bt(K, be, bu, co[aL]) | |
458 | + | let bO = cB._1 | |
459 | + | let bL = cB._2 | |
460 | + | let bM = cB._3 | |
461 | + | let bv = cB._4 | |
462 | + | let bP = cB._5 | |
463 | + | let ca = cB._6 | |
464 | + | let cb = cB._7 | |
465 | + | let bF = cB._8 | |
466 | + | let bG = cB._9 | |
467 | + | let bH = cB._10 | |
468 | + | let bs = [if ((bO > 0)) | |
451 | 469 | then true | |
452 | - | else f(makeString(["nothing to claim", toString( | |
470 | + | else f(makeString(["nothing to claim", toString(bO), toString(bL), toString(bM), toString(bv), toString(bP), toString(ca), toString(cb), toString(bF), toString(bG), toString(bH)], c)), if ((bM > 0)) | |
453 | 471 | then true | |
454 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
472 | + | else f("unavailable to claim because user period allowance reached"), if ((bL > 0)) | |
455 | 473 | then true | |
456 | - | else f("unavailable to claim because total period allowance reached"), if (( | |
474 | + | else f("unavailable to claim because total period allowance reached"), if ((bP > ca)) | |
457 | 475 | then true | |
458 | 476 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
459 | 477 | if ((bs == bs)) | |
460 | 478 | then { | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | then [ScriptTransfer( | |
479 | + | let bN = valueOrElse(getInteger(az(be)), 0) | |
480 | + | let cC = (bL - bO) | |
481 | + | let cD = (bM - bO) | |
482 | + | let cA = if ((bN >= bO)) | |
483 | + | then [ScriptTransfer(cg.caller, bO, cx), IntegerEntry(az(be), (bN - bO))] | |
466 | 484 | else { | |
467 | - | let | |
468 | - | [ScriptTransfer( | |
485 | + | let cE = ((bN + bu) - bO) | |
486 | + | [ScriptTransfer(cg.caller, bO, cx), aN(ae(be), bf, co, bj), aN(ag(), aG(), co, bj), IntegerEntry(az(be), cE)] | |
469 | 487 | } | |
470 | - | $Tuple2(([IntegerEntry(an(), | |
488 | + | $Tuple2(([IntegerEntry(an(), bF), IntegerEntry(ao(bF), bG), IntegerEntry(aq(bF), bH), IntegerEntry(av(K, bF), cC), IntegerEntry(aw(K, bF, be), cD), aX(be, bO, cz, cg.transactionId)] ++ cA), unit) | |
471 | 489 | } | |
472 | 490 | else throw("Strict value is not equal to itself.") | |
473 | 491 | } | |
474 | - | else $Tuple2([ScriptTransfer( | |
475 | - | | |
492 | + | else $Tuple2([ScriptTransfer(cg.caller, bu, cx), aN(ae(be), bf, co, bj), aN(ag(), aG(), co, bj), aX(be, cy, cz, cg.transactionId)], unit) | |
493 | + | cA | |
476 | 494 | } | |
477 | 495 | } | |
478 | 496 | ||
479 | 497 | ||
480 | 498 | ||
481 | - | @Callable( | |
499 | + | @Callable(cg) | |
482 | 500 | func claimREADONLY (aZ,be) = { | |
483 | - | let | |
484 | - | let | |
485 | - | let bu = | |
486 | - | let | |
487 | - | let bf = | |
488 | - | let bj = | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | $Tuple2(nil, makeString(["%s%d%d", be, toString( | |
501 | + | let cw = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
502 | + | let co = cw._1 | |
503 | + | let bu = cw._2 | |
504 | + | let cx = cw._3 | |
505 | + | let bf = cw._4 | |
506 | + | let bj = cw._5 | |
507 | + | let cF = cw._6 | |
508 | + | let cG = cF[0] | |
509 | + | let cH = cF[1] | |
510 | + | $Tuple2(nil, makeString(["%s%d%d", be, toString(cG), toString(cH)], c)) | |
493 | 511 | } | |
494 | 512 | ||
495 | 513 | ||
496 | 514 | ||
497 | - | @Callable( | |
515 | + | @Callable(cg) | |
498 | 516 | func claimV2READONLY (aZ,be) = { | |
499 | - | let | |
500 | - | let | |
501 | - | let bu = | |
502 | - | let | |
503 | - | let bf = | |
504 | - | let bj = | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
517 | + | let cw = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
518 | + | let co = cw._1 | |
519 | + | let bu = cw._2 | |
520 | + | let cx = cw._3 | |
521 | + | let bf = cw._4 | |
522 | + | let bj = cw._5 | |
523 | + | let cF = cw._6 | |
524 | + | let cG = cF[0] | |
525 | + | let cH = cF[1] | |
508 | 526 | let ba = aD() | |
509 | 527 | let K = ba[z] | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let bv = | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
528 | + | let cI = bt(K, be, bu, co[aL]) | |
529 | + | let bO = cI._1 | |
530 | + | let bL = cI._2 | |
531 | + | let bM = cI._3 | |
532 | + | let bv = cI._4 | |
533 | + | let bP = cI._5 | |
534 | + | let ca = cI._6 | |
535 | + | let cb = cI._7 | |
536 | + | let bF = cI._8 | |
537 | + | let bG = cI._9 | |
538 | + | let bH = cI._10 | |
539 | + | let cJ = value(getInteger(aq(bF))) | |
540 | + | let cK = if ((height > cJ)) | |
523 | 541 | then { | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | makeString(["%d%d%d%d%d%d", toString( | |
542 | + | let cL = value(getInteger(am())) | |
543 | + | let cM = value(getInteger(au(K))) | |
544 | + | let cN = value(getInteger(as(K))) | |
545 | + | makeString(["%d%d%d%d%d%d", toString(cH), toString(cM), toString(cN), toString(bP), toString(ca), toString(cL)], c) | |
528 | 546 | } | |
529 | - | else makeString(["%d%d%d%d%d%d", toString( | |
530 | - | $Tuple2(nil, | |
547 | + | else makeString(["%d%d%d%d%d%d", toString(cH), toString(bO), toString(bL), toString(bP), toString(ca), toString(cb)], c) | |
548 | + | $Tuple2(nil, cK) | |
531 | 549 | } | |
532 | 550 | ||
533 | 551 | ||
534 | 552 | ||
535 | - | @Callable( | |
536 | - | func setManager ( | |
537 | - | let | |
538 | - | if (( | |
553 | + | @Callable(cg) | |
554 | + | func setManager (cO) = { | |
555 | + | let cP = cf(cg) | |
556 | + | if ((cP == cP)) | |
539 | 557 | then { | |
540 | - | let | |
541 | - | if (( | |
542 | - | then [StringEntry(aC(), | |
558 | + | let cQ = fromBase58String(cO) | |
559 | + | if ((cQ == cQ)) | |
560 | + | then [StringEntry(aC(), cO)] | |
543 | 561 | else throw("Strict value is not equal to itself.") | |
544 | 562 | } | |
545 | 563 | else throw("Strict value is not equal to itself.") | |
546 | 564 | } | |
547 | 565 | ||
548 | 566 | ||
549 | 567 | ||
550 | - | @Callable( | |
568 | + | @Callable(cg) | |
551 | 569 | func confirmManager () = { | |
552 | - | let | |
553 | - | let | |
570 | + | let cR = ce() | |
571 | + | let cS = if (isDefined(cR)) | |
554 | 572 | then true | |
555 | 573 | else throw("No pending manager") | |
556 | - | if (( | |
574 | + | if ((cS == cS)) | |
557 | 575 | then { | |
558 | - | let | |
576 | + | let cT = if ((cg.callerPublicKey == value(cR))) | |
559 | 577 | then true | |
560 | 578 | else throw("You are not pending manager") | |
561 | - | if (( | |
562 | - | then [StringEntry(aB(), toBase58String(value( | |
579 | + | if ((cT == cT)) | |
580 | + | then [StringEntry(aB(), toBase58String(value(cR))), DeleteEntry(aC())] | |
563 | 581 | else throw("Strict value is not equal to itself.") | |
564 | 582 | } | |
565 | 583 | else throw("Strict value is not equal to itself.") | |
566 | 584 | } | |
567 | 585 | ||
568 | 586 | ||
569 | - | @Verifier( | |
570 | - | func | |
571 | - | let | |
572 | - | let bq = | |
587 | + | @Verifier(cU) | |
588 | + | func cV () = { | |
589 | + | let cW = { | |
590 | + | let bq = cc() | |
573 | 591 | if ($isInstanceOf(bq, "ByteVector")) | |
574 | 592 | then { | |
575 | - | let | |
576 | - | | |
593 | + | let ci = bq | |
594 | + | ci | |
577 | 595 | } | |
578 | 596 | else if ($isInstanceOf(bq, "Unit")) | |
579 | - | then | |
597 | + | then cU.senderPublicKey | |
580 | 598 | else throw("Match error") | |
581 | 599 | } | |
582 | - | sigVerify( | |
600 | + | sigVerify(cU.bodyBytes, cU.proofs[0], cW) | |
583 | 601 | } | |
584 | 602 |
github/deemru/w8io/026f985 149.68 ms ◑