tx · BrD3yKLCRSTm1M2QvaYNxdP5oXiDN4K79ZVw6yghUNrx 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH: -0.02300000 Waves 2023.03.14 23:47 [2490219] smart account 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH > SELF 0.00000000 Waves
{ "type": 13, "id": "BrD3yKLCRSTm1M2QvaYNxdP5oXiDN4K79ZVw6yghUNrx", "fee": 2300000, "feeAssetId": null, "timestamp": 1678826875132, "version": 2, "chainId": 84, "sender": "3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH", "senderPublicKey": "5JqBVJpMCyD7dJLJttqYjL6CmJc4zahBHSFjFb7qQTga", "proofs": [ "2bAPLWJbAcJgtnGxudWKZ7UWV5FfVXAhacvjUAoB5R2a52D8YzZZRKFGNXKsHQLLw2kJVAfnsahPHP87sTkt7mDY" ], "script": "base64:BgIhCAISBAoCAQESBgoECAgICBIDCgEYEgASAwoBCBIDCgEBRAADU0VQAgFfAA5fbWluTG9ja3BlcmlvZAABAA1fdW5pdERlY2ltYWxzAIDC1y8ADl9taW5Mb2NrQW1vdW50CQBoAgABBQ1fdW5pdERlY2ltYWxzAA5fbWF4TG9ja0Ftb3VudAkAaAIA6AcFDV91bml0RGVjaW1hbHMAA19EdACAuJkpAQRfUHB5AQpsb2NrUGVyaW9kCQBrAwUNX3VuaXREZWNpbWFscwDtAgUKbG9ja1BlcmlvZAANX2luY3JlbWVudFJlZgkAaAIAwIQ9BQ1fdW5pdERlY2ltYWxzAA5fcGVyY2VudGFnZUZlZQkAawMFDV91bml0RGVjaW1hbHMACgBkABpfcGVyY2VudGFnZVJlZHVjdGlvbkZhY3RvcgIpQ3VycmVudF9QZXJjZW50YWdlUmVkdWN0aW9uX0ZhY3Rvcl9Gb3JfTXIAA19NcgIMTWludGluZ19SYXRlAAxfc3Rhd0Fzc2V0SWQCDFN0YXdfQXNzZXRJZAAIX21hbmFnZXICB21hbmFnZXIABF9EZngCA0RmeAAVX2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xdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AJxJXkQ==", "height": 2490219, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CEAU4AETXpN3kKocb6qY3BTECyLTM9JC17jHvzNbSvhf Next: 3F7vGhAhryCexmY6UEx2JvptGAn2849TUBDXxUjqV8Az Diff:
Old | New | Differences | |
---|---|---|---|
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | - | func av () = { | |
256 | - | let | |
257 | - | if (( | |
255 | + | func av (aw) = { | |
256 | + | let U = assetInfo(fromBase58String(aw)) | |
257 | + | if ($isInstanceOf(U, "Asset")) | |
258 | 258 | then { | |
259 | - | let ax = V(N(m), "asset id not previouly defined") | |
260 | - | if ((ax == ax)) | |
259 | + | let ax = U | |
260 | + | true | |
261 | + | } | |
262 | + | else throw(("invalid asset id: " + aw)) | |
263 | + | } | |
264 | + | ||
265 | + | ||
266 | + | func ay () = { | |
267 | + | let az = Y(L(p), "increment index not previously defined") | |
268 | + | if ((az == az)) | |
269 | + | then { | |
270 | + | let aA = V(N(m), "asset id not previouly defined") | |
271 | + | if ((aA == aA)) | |
261 | 272 | then { | |
262 | - | let | |
263 | - | let U = assetInfo(fromBase58String( | |
273 | + | let aB = { | |
274 | + | let U = assetInfo(fromBase58String(aA)) | |
264 | 275 | if ($isInstanceOf(U, "Asset")) | |
265 | 276 | then { | |
266 | - | let | |
267 | - | | |
277 | + | let ax = U | |
278 | + | ax.quantity | |
268 | 279 | } | |
269 | - | else throw(("asset not found for " + | |
280 | + | else throw(("asset not found for " + aA)) | |
270 | 281 | } | |
271 | - | let | |
272 | - | let | |
273 | - | then ( | |
274 | - | else | |
275 | - | let | |
276 | - | if (( | |
277 | - | then | |
282 | + | let aC = (aq((aB - i)) / i) | |
283 | + | let aD = if ((aC > az)) | |
284 | + | then (aC + az) | |
285 | + | else az | |
286 | + | let aE = Y(l, "miniting rate not previously defined") | |
287 | + | if ((aD == az)) | |
288 | + | then aE | |
278 | 289 | else { | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | if (( | |
290 | + | let aF = (Y(k, "reduction factor not previously defined") + 10) | |
291 | + | let aG = (aE - fraction(aE, aF, 100)) | |
292 | + | let aH = aa(l, aG) | |
293 | + | if ((aH == aH)) | |
283 | 294 | then { | |
284 | - | let | |
285 | - | if (( | |
295 | + | let aI = aa(k, aF) | |
296 | + | if ((aI == aI)) | |
286 | 297 | then { | |
287 | - | let | |
288 | - | if (( | |
289 | - | then | |
298 | + | let aJ = aa(p, aD) | |
299 | + | if ((aJ == aJ)) | |
300 | + | then aG | |
290 | 301 | else throw("Strict value is not equal to itself.") | |
291 | 302 | } | |
292 | 303 | else throw("Strict value is not equal to itself.") | |
300 | 311 | } | |
301 | 312 | ||
302 | 313 | ||
303 | - | func | |
304 | - | let | |
305 | - | if (( | |
314 | + | func aK (M) = { | |
315 | + | let aL = V(N(M), "entry not found") | |
316 | + | if ((aL == aL)) | |
306 | 317 | then { | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let ag = if (( | |
311 | - | then | |
312 | - | else if (( | |
313 | - | then parseIntValue( | |
314 | - | else if (( | |
315 | - | then fromBase58String( | |
318 | + | let aM = split(aL, a) | |
319 | + | let aN = takeRight(aM[0], 1) | |
320 | + | let aO = aM[(size(aM) - 1)] | |
321 | + | let ag = if ((aN == "s")) | |
322 | + | then aO | |
323 | + | else if ((aN == "d")) | |
324 | + | then parseIntValue(aO) | |
325 | + | else if ((aN == "b")) | |
326 | + | then fromBase58String(aO) | |
316 | 327 | else throw(("could not parse registry value for " + M)) | |
317 | 328 | ag | |
318 | 329 | } | |
320 | 331 | } | |
321 | 332 | ||
322 | 333 | ||
323 | - | func | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | [aa(I, | |
334 | + | func aP (aQ,aR,aS,aT) = { | |
335 | + | let aU = (Y(L(I), "global waves sum not previously defined") + aQ) | |
336 | + | let aV = (Y(L(H), "gobal staw minted not previously defined") + aR) | |
337 | + | let aW = (Y(L(J), "global stawPL not previously defined") + aS) | |
338 | + | let aX = (Y(L(K), "global index count not previously defined") + aT) | |
339 | + | [aa(I, aU), aa(H, aV), aa(J, aW), aa(K, aX)] | |
329 | 340 | } | |
330 | 341 | ||
331 | 342 | ||
332 | - | func aW (aX,aY,aZ,ba,bb,aO,aP,bc,bd,be,bf,bg,bh) = { | |
333 | - | let bi = makeString([aY, aX, C], a) | |
334 | - | let bj = makeString([aY, aX, w], a) | |
335 | - | let bk = makeString([aY, aX, x], a) | |
336 | - | let bl = makeString([aY, aX, z], a) | |
337 | - | let bm = makeString([aY, aX, A], a) | |
338 | - | let bn = makeString([aY, aX, B], a) | |
339 | - | let bo = makeString([aY, aX, D], a) | |
340 | - | let bp = makeString([aY, aX, y], a) | |
341 | - | let bq = makeString([aY, v], a) | |
342 | - | let br = makeString([aY, u], a) | |
343 | - | let bs = makeString([aY, aX, E], a) | |
344 | - | let bt = makeString([aY, aX, F], a) | |
345 | - | let bu = makeString([aY, aX, G], a) | |
346 | - | let bv = makeString(["%s", aX], a) | |
347 | - | let bw = makeString(["%d", toString(aZ)], a) | |
348 | - | let bx = makeString(["%d", toString(bb)], a) | |
349 | - | let by = makeString(["%d", toString(aO)], a) | |
350 | - | let bz = makeString(["%d", toString(aP)], a) | |
351 | - | let bA = makeString(["%d", toString(bc)], a) | |
352 | - | let bB = makeString(["%d", toString(bd)], a) | |
353 | - | let bC = makeString(["%b", be], a) | |
343 | + | func aY (aZ,ba,bb,bc,bd,aQ,aR,be,bf,bg,bh,bi,bj) = { | |
344 | + | let bk = makeString([ba, aZ, C], a) | |
345 | + | let bl = makeString([ba, aZ, w], a) | |
346 | + | let bm = makeString([ba, aZ, x], a) | |
347 | + | let bn = makeString([ba, aZ, z], a) | |
348 | + | let bo = makeString([ba, aZ, A], a) | |
349 | + | let bp = makeString([ba, aZ, B], a) | |
350 | + | let bq = makeString([ba, aZ, D], a) | |
351 | + | let br = makeString([ba, aZ, y], a) | |
352 | + | let bs = makeString([ba, v], a) | |
353 | + | let bt = makeString([ba, u], a) | |
354 | + | let bu = makeString([ba, aZ, E], a) | |
355 | + | let bv = makeString([ba, aZ, F], a) | |
356 | + | let bw = makeString([ba, aZ, G], a) | |
357 | + | let bx = makeString(["%s", aZ], a) | |
358 | + | let by = makeString(["%d", toString(bb)], a) | |
359 | + | let bz = makeString(["%d", toString(bd)], a) | |
360 | + | let bA = makeString(["%d", toString(aQ)], a) | |
361 | + | let bB = makeString(["%d", toString(aR)], a) | |
362 | + | let bC = makeString(["%d", toString(be)], a) | |
354 | 363 | let bD = makeString(["%d", toString(bf)], a) | |
355 | - | let bE = makeString(["%d", toString(bg)], a) | |
356 | - | let bF = makeString(["%d", toString(ba)], a) | |
357 | - | let bG = makeString(["%d", toString(0)], a) | |
358 | - | let bH = makeString(["%s", bh], a) | |
359 | - | [al(bi, bv), al(bk, bx), ac(br, bE), ac(bq, bD), al(bj, bw), al(bs, bF), al(bl, by), al(bm, bz), ac(bn, bA), ac(bt, bG), al(bo, bB), al(bp, bC), ac(bu, bH)] | |
364 | + | let bE = makeString(["%b", bg], a) | |
365 | + | let bF = makeString(["%d", toString(bh)], a) | |
366 | + | let bG = makeString(["%d", toString(bi)], a) | |
367 | + | let bH = makeString(["%d", toString(bc)], a) | |
368 | + | let bI = makeString(["%d", toString(0)], a) | |
369 | + | let bJ = makeString(["%s", bj], a) | |
370 | + | [al(bk, bx), al(bm, bz), ac(bt, bG), ac(bs, bF), al(bl, by), al(bu, bH), al(bn, bA), al(bo, bB), ac(bp, bC), ac(bv, bI), al(bq, bD), al(br, bE), ac(bw, bJ)] | |
360 | 371 | } | |
361 | 372 | ||
362 | 373 | ||
363 | - | func | |
364 | - | let | |
365 | - | (fraction(c, (f * | |
374 | + | func bK (h,bL) = { | |
375 | + | let bM = ay() | |
376 | + | (fraction(c, (f * bM), g(h)) * bL) | |
366 | 377 | } | |
367 | 378 | ||
368 | 379 | ||
369 | - | func | |
370 | - | let | |
371 | - | (( | |
380 | + | func bN (h,bO) = { | |
381 | + | let bP = fraction(h, 15, 10) | |
382 | + | ((bO / ((h * bP) - h)) * f) | |
372 | 383 | } | |
373 | 384 | ||
374 | 385 | ||
375 | - | func | |
376 | - | let | |
377 | - | [aa(J, ( | |
386 | + | func bQ (bR) = { | |
387 | + | let bS = Y(L(J), "could not get the running StawLP") | |
388 | + | [aa(J, (bS + bR))] | |
378 | 389 | } | |
379 | 390 | ||
380 | 391 | ||
381 | - | func | |
382 | - | let | |
383 | - | [aa(J, ( | |
392 | + | func bT (bR) = { | |
393 | + | let bS = Y(L(J), "could not get the running StawLP") | |
394 | + | [aa(J, (bS - bR))] | |
384 | 395 | } | |
385 | 396 | ||
386 | 397 | ||
387 | - | func | |
388 | - | let | |
389 | - | [aa(I, ( | |
398 | + | func bU (bR) = { | |
399 | + | let bV = Y(L(I), "could not get total locked waves") | |
400 | + | [aa(I, (bV + bR))] | |
390 | 401 | } | |
391 | 402 | ||
392 | 403 | ||
393 | - | func | |
394 | - | let | |
395 | - | [aa(I, ( | |
404 | + | func bW (bR) = { | |
405 | + | let bV = Y(L(I), "could not get total locked waves") | |
406 | + | [aa(I, (bV - bR))] | |
396 | 407 | } | |
397 | 408 | ||
398 | 409 | ||
399 | - | func | |
400 | - | let | |
401 | - | let U = blockInfoByHeight( | |
410 | + | func bX (bY) = { | |
411 | + | let bZ = { | |
412 | + | let U = blockInfoByHeight(bY) | |
402 | 413 | if ($isInstanceOf(U, "BlockInfo")) | |
403 | 414 | then { | |
404 | - | let | |
405 | - | | |
415 | + | let ca = U | |
416 | + | ca.timestamp | |
406 | 417 | } | |
407 | 418 | else throw("counld get timestamp") | |
408 | 419 | } | |
409 | - | | |
420 | + | bZ | |
410 | 421 | } | |
411 | 422 | ||
412 | 423 | ||
413 | 424 | @Callable(ao) | |
414 | - | func getEmission (h, | |
415 | - | let | |
416 | - | if (( | |
417 | - | then $Tuple2(nil, | |
425 | + | func getEmission (h,bO) = { | |
426 | + | let cb = an(ao) | |
427 | + | if ((cb == cb)) | |
428 | + | then $Tuple2(nil, bN(h, bO)) | |
418 | 429 | else throw("Strict value is not equal to itself.") | |
419 | 430 | } | |
420 | 431 | ||
421 | 432 | ||
422 | 433 | ||
423 | 434 | @Callable(ao) | |
424 | - | func init (ap, | |
425 | - | let | |
435 | + | func init (ap,cc,aw,cd) = { | |
436 | + | let ce = if (isDefined(N(n))) | |
426 | 437 | then an(ao) | |
427 | 438 | else true | |
428 | - | if (( | |
439 | + | if ((ce == ce)) | |
429 | 440 | then { | |
430 | - | let | |
431 | - | if (( | |
441 | + | let cb = ar(ap) | |
442 | + | if ((cb == cb)) | |
432 | 443 | then { | |
433 | - | let | |
434 | - | if (( | |
444 | + | let cf = ar(cc) | |
445 | + | if ((cf == cf)) | |
435 | 446 | then { | |
436 | - | let | |
437 | - | if (( | |
447 | + | let cg = ar(cd) | |
448 | + | if ((cg == cg)) | |
438 | 449 | then { | |
439 | - | let cg = S(p, 0) | |
440 | - | let ch = S(k, 0) | |
441 | - | let ci = S(l, c) | |
442 | - | let cj = S(H, 0) | |
443 | - | let ck = S(J, 0) | |
444 | - | let cl = S(K, 0) | |
445 | - | let cm = S(I, 0) | |
446 | - | [af(n, ap), af(o, ca), af(m, cb), af(q, cc), af(p, cg), af(l, ci), af(k, ch), af(I, cm), af(J, ck), af(H, cj)] | |
450 | + | let ch = av(aw) | |
451 | + | if ((ch == ch)) | |
452 | + | then { | |
453 | + | let ci = S(p, 0) | |
454 | + | let cj = S(k, 0) | |
455 | + | let ck = S(l, c) | |
456 | + | let cl = S(H, 0) | |
457 | + | let cm = S(J, 0) | |
458 | + | let cn = S(K, 0) | |
459 | + | let co = S(I, 0) | |
460 | + | [af(n, ap), af(o, cc), af(m, aw), af(q, cd), af(p, ci), af(l, ck), af(k, cj), af(I, co), af(J, cm), af(H, cl)] | |
461 | + | } | |
462 | + | else throw("Strict value is not equal to itself.") | |
447 | 463 | } | |
448 | 464 | else throw("Strict value is not equal to itself.") | |
449 | 465 | } | |
458 | 474 | ||
459 | 475 | @Callable(ao) | |
460 | 476 | func modifyGlobalParams (W) = { | |
461 | - | let | |
462 | - | if (( | |
477 | + | let cb = an(ao) | |
478 | + | if ((cb == cb)) | |
463 | 479 | then { | |
464 | - | let | |
465 | - | if (( | |
480 | + | let cf = ad((size(W) == 2), "[global_key, value] pairs expected") | |
481 | + | if ((cf == cf)) | |
466 | 482 | then { | |
467 | 483 | let M = W[0] | |
468 | - | let | |
469 | - | let U = | |
484 | + | let cp = parseInt(W[1]) | |
485 | + | let U = cp | |
470 | 486 | if ($isInstanceOf(U, "Int")) | |
471 | 487 | then { | |
472 | - | let | |
473 | - | let | |
474 | - | if (( | |
475 | - | then [af(M, | |
488 | + | let aM = U | |
489 | + | let cq = ad((N(M) == unit), (("key " + M) + " not recognized")) | |
490 | + | if ((cq == cq)) | |
491 | + | then [af(M, aM)] | |
476 | 492 | else throw("Strict value is not equal to itself.") | |
477 | 493 | } | |
478 | 494 | else if ($isInstanceOf(U, "Unit")) | |
479 | 495 | then { | |
480 | - | let | |
481 | - | let | |
482 | - | if (( | |
496 | + | let aM = U | |
497 | + | let cq = ad((N(M) == unit), (("key " + M) + " not recognized")) | |
498 | + | if ((cq == cq)) | |
483 | 499 | then { | |
484 | - | let cp = ar(W[1]) | |
485 | - | if ((cp == cp)) | |
486 | - | then [af(M, W[1])] | |
500 | + | let cr = W[1] | |
501 | + | let cs = aK("_manager") | |
502 | + | let ch = { | |
503 | + | let au = cs | |
504 | + | if ($isInstanceOf(au, "String")) | |
505 | + | then { | |
506 | + | let ct = au | |
507 | + | if ((size(ct) == size(cr))) | |
508 | + | then ar(cr) | |
509 | + | else av(cr) | |
510 | + | } | |
511 | + | else throw("value type not supported") | |
512 | + | } | |
513 | + | if ((ch == ch)) | |
514 | + | then [af(M, cr)] | |
487 | 515 | else throw("Strict value is not equal to itself.") | |
488 | 516 | } | |
489 | 517 | else throw("Strict value is not equal to itself.") | |
490 | 518 | } | |
491 | - | else | |
519 | + | else throw(("failed to modify " + W[0])) | |
492 | 520 | } | |
493 | 521 | else throw("Strict value is not equal to itself.") | |
494 | 522 | } | |
499 | 527 | ||
500 | 528 | @Callable(ao) | |
501 | 529 | func revokeLock () = { | |
502 | - | let | |
503 | - | if (( | |
530 | + | let cb = an(ao) | |
531 | + | if ((cb == cb)) | |
504 | 532 | then nil | |
505 | 533 | else throw("Strict value is not equal to itself.") | |
506 | 534 | } | |
508 | 536 | ||
509 | 537 | ||
510 | 538 | @Callable(ao) | |
511 | - | func claim ( | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | if (( | |
539 | + | func claim (aZ) = { | |
540 | + | let cu = toBase58String(ao.caller.bytes) | |
541 | + | let cv = makeString([cu, aZ, z], a) | |
542 | + | let cw = makeString([cu, aZ, w], a) | |
543 | + | let cx = makeString([cu, aZ, y], a) | |
544 | + | let cy = makeString([cu, aZ, E], a) | |
545 | + | let cz = makeString([cu, aZ, F], a) | |
546 | + | let cA = makeString([cu, aZ, B], a) | |
547 | + | let cB = makeString([cu, aZ, z], a) | |
548 | + | let cC = makeString([cu, v], a) | |
549 | + | let cD = makeString([cu, aZ, G], a) | |
550 | + | let cE = makeString([cu, aZ, G], a) | |
551 | + | let cF = Q(I) | |
552 | + | if ((cF == cF)) | |
525 | 553 | then { | |
526 | - | let | |
527 | - | if (( | |
554 | + | let cG = Q(J) | |
555 | + | if ((cG == cG)) | |
528 | 556 | then { | |
529 | - | let | |
530 | - | let U = | |
557 | + | let bg = { | |
558 | + | let U = aK(cx) | |
531 | 559 | if ($isInstanceOf(U, "ByteVector")) | |
532 | 560 | then { | |
533 | - | let | |
534 | - | | |
561 | + | let cH = U | |
562 | + | cH | |
535 | 563 | } | |
536 | 564 | else throw("failed to get lease id") | |
537 | 565 | } | |
538 | - | if (( | |
566 | + | if ((bg == bg)) | |
539 | 567 | then { | |
540 | - | let | |
541 | - | let U = | |
568 | + | let cI = { | |
569 | + | let U = aK(cC) | |
542 | 570 | if ($isInstanceOf(U, "Int")) | |
543 | 571 | then { | |
544 | - | let | |
545 | - | | |
572 | + | let cH = U | |
573 | + | cH | |
546 | 574 | } | |
547 | 575 | else throw("failed to get total waves locked by this address") | |
548 | 576 | } | |
549 | - | if (( | |
577 | + | if ((cI == cI)) | |
550 | 578 | then { | |
551 | - | let | |
552 | - | let U = | |
579 | + | let aQ = { | |
580 | + | let U = aK(cB) | |
553 | 581 | if ($isInstanceOf(U, "Int")) | |
554 | 582 | then { | |
555 | - | let | |
556 | - | | |
583 | + | let cH = U | |
584 | + | cH | |
557 | 585 | } | |
558 | 586 | else throw("failed to get total waves locked") | |
559 | 587 | } | |
560 | - | if (( | |
588 | + | if ((aQ == aQ)) | |
561 | 589 | then { | |
562 | - | let | |
563 | - | let U = | |
590 | + | let cJ = { | |
591 | + | let U = aK(cz) | |
564 | 592 | if ($isInstanceOf(U, "Int")) | |
565 | 593 | then { | |
566 | - | let | |
567 | - | | |
594 | + | let cH = U | |
595 | + | cH | |
568 | 596 | } | |
569 | 597 | else throw("failed to get total waves claimed") | |
570 | 598 | } | |
571 | - | if (( | |
599 | + | if ((cJ == cJ)) | |
572 | 600 | then { | |
573 | - | let | |
574 | - | let U = | |
601 | + | let be = { | |
602 | + | let U = aK(cA) | |
575 | 603 | if ($isInstanceOf(U, "Int")) | |
576 | 604 | then { | |
577 | - | let | |
578 | - | | |
605 | + | let cH = U | |
606 | + | cH | |
579 | 607 | } | |
580 | 608 | else throw("failed to get stawPL") | |
581 | 609 | } | |
582 | - | if (( | |
610 | + | if ((be == be)) | |
583 | 611 | then { | |
584 | - | let | |
585 | - | let U = | |
612 | + | let cK = { | |
613 | + | let U = aK(cy) | |
586 | 614 | if ($isInstanceOf(U, "Int")) | |
587 | 615 | then { | |
588 | - | let | |
589 | - | | |
616 | + | let cH = U | |
617 | + | cH | |
590 | 618 | } | |
591 | 619 | else throw("failed to get lock period timespam") | |
592 | 620 | } | |
593 | - | if (( | |
621 | + | if ((cK == cK)) | |
594 | 622 | then { | |
595 | - | let | |
596 | - | let U = | |
623 | + | let cL = { | |
624 | + | let U = bX(height) | |
597 | 625 | if ($isInstanceOf(U, "Int")) | |
598 | 626 | then { | |
599 | - | let | |
600 | - | | |
627 | + | let cH = U | |
628 | + | cH | |
601 | 629 | } | |
602 | 630 | else throw("failed to get current timestamp") | |
603 | 631 | } | |
604 | - | if (( | |
632 | + | if ((cL == cL)) | |
605 | 633 | then { | |
606 | - | let | |
607 | - | let U = | |
634 | + | let bO = { | |
635 | + | let U = aK(cv) | |
608 | 636 | if ($isInstanceOf(U, "Int")) | |
609 | 637 | then { | |
610 | - | let | |
611 | - | | |
638 | + | let cH = U | |
639 | + | cH | |
612 | 640 | } | |
613 | 641 | else throw("failed to get collateral") | |
614 | 642 | } | |
615 | - | if (( | |
643 | + | if ((bO == bO)) | |
616 | 644 | then { | |
617 | 645 | let h = { | |
618 | - | let U = | |
646 | + | let U = aK(cw) | |
619 | 647 | if ($isInstanceOf(U, "Int")) | |
620 | 648 | then { | |
621 | - | let | |
622 | - | | |
649 | + | let cH = U | |
650 | + | cH | |
623 | 651 | } | |
624 | 652 | else throw("failed to get lockPeriod") | |
625 | 653 | } | |
626 | 654 | if ((h == h)) | |
627 | 655 | then { | |
628 | - | let | |
629 | - | let U = | |
656 | + | let cM = { | |
657 | + | let U = aK(cD) | |
630 | 658 | if ($isInstanceOf(U, "String")) | |
631 | 659 | then { | |
632 | - | let | |
633 | - | | |
660 | + | let cH = U | |
661 | + | cH | |
634 | 662 | } | |
635 | 663 | else throw("failed to get lease state") | |
636 | 664 | } | |
637 | - | if (( | |
665 | + | if ((cM == cM)) | |
638 | 666 | then { | |
639 | - | let | |
640 | - | let U = | |
667 | + | let bj = { | |
668 | + | let U = aK(cE) | |
641 | 669 | if ($isInstanceOf(U, "String")) | |
642 | 670 | then { | |
643 | - | let | |
644 | - | | |
671 | + | let cH = U | |
672 | + | cH | |
645 | 673 | } | |
646 | 674 | else throw("failed to get lease state for user") | |
647 | 675 | } | |
648 | - | if (( | |
676 | + | if ((bj == bj)) | |
649 | 677 | then { | |
650 | - | let | |
651 | - | if (( | |
678 | + | let cb = ad((cK > cL), "lock period for this entry has not elapsed") | |
679 | + | if ((cb == cb)) | |
652 | 680 | then { | |
653 | - | let | |
654 | - | then $Tuple2(LeaseCancel( | |
655 | - | else $Tuple2(ac( | |
656 | - | if (( | |
681 | + | let cN = if ((cM == "leased")) | |
682 | + | then $Tuple2(LeaseCancel(bg), ac(cD, "cancelled")) | |
683 | + | else $Tuple2(ac(cD, "cancelled"), ac(cD, "cancelled")) | |
684 | + | if ((cN == cN)) | |
657 | 685 | then { | |
658 | - | let | |
686 | + | let cf = ad(if ((0 == aQ)) | |
659 | 687 | then true | |
660 | - | else (0 == | |
661 | - | if (( | |
688 | + | else (0 == be), "all claims exhausted for this trx") | |
689 | + | if ((cf == cf)) | |
662 | 690 | then { | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | if (( | |
691 | + | let cO = (bN(h, bO) * f) | |
692 | + | let cP = { | |
693 | + | let cQ = (cL - cK) | |
694 | + | let cR = (cQ / f) | |
695 | + | if ((cR == 0)) | |
668 | 696 | then throw("less than 24hrs before first claim") | |
669 | - | else if ((( | |
697 | + | else if (((cQ % f) != 0)) | |
670 | 698 | then throw("already claimed or less than 24hrs before next claim") | |
671 | - | else if (( | |
699 | + | else if ((cR > h)) | |
672 | 700 | then throw("all claims exhausted") | |
673 | 701 | else { | |
674 | - | let | |
675 | - | let | |
676 | - | if (( | |
702 | + | let cS = (cR * cO) | |
703 | + | let cT = ad((cS == cJ), "can only claim once in 24hrs") | |
704 | + | if ((cT == cT)) | |
677 | 705 | then { | |
678 | - | let | |
679 | - | if (( | |
706 | + | let cU = ad(((cS + cJ) > aQ), "all claims exhausted") | |
707 | + | if ((cU == cU)) | |
680 | 708 | then { | |
681 | - | let | |
682 | - | then | |
683 | - | else ( | |
684 | - | let | |
685 | - | let | |
686 | - | then ( | |
687 | - | else ( | |
688 | - | let | |
689 | - | then ( | |
690 | - | else ( | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | [ | |
709 | + | let cV = if ((cR == 1)) | |
710 | + | then cS | |
711 | + | else (cS - cJ) | |
712 | + | let cW = cS | |
713 | + | let cX = if ((cR == 1)) | |
714 | + | then (aQ - cS) | |
715 | + | else (aQ - (cS - cJ)) | |
716 | + | let cY = if ((cR == 1)) | |
717 | + | then (be - cS) | |
718 | + | else (be - (cS - cJ)) | |
719 | + | let cZ = (cF - cX) | |
720 | + | let da = (cG - cY) | |
721 | + | let db = (cI - cV) | |
722 | + | let bA = makeString(["%d", toString(cX)], a) | |
723 | + | let bC = makeString(["%d", toString(cY)], a) | |
724 | + | let bI = makeString(["%d", toString(cW)], a) | |
725 | + | let dc = makeString(["%d", toString(db)], a) | |
726 | + | [cN._1, cN._2, ac(cB, bA), ac(cA, bC), ac(cz, bI), ac(cC, dc), aa(I, cZ), aa(J, da), ScriptTransfer(Address(ao.caller.bytes), cV, unit)] | |
699 | 727 | } | |
700 | 728 | else throw("Strict value is not equal to itself.") | |
701 | 729 | } | |
702 | 730 | else throw("Strict value is not equal to itself.") | |
703 | 731 | } | |
704 | 732 | } | |
705 | - | if (( | |
706 | - | then | |
733 | + | if ((cP == cP)) | |
734 | + | then cP | |
707 | 735 | else throw("Strict value is not equal to itself.") | |
708 | 736 | } | |
709 | 737 | else throw("Strict value is not equal to itself.") | |
743 | 771 | ||
744 | 772 | @Callable(ao) | |
745 | 773 | func mintStaw (h) = { | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | if (( | |
774 | + | let cu = toBase58String(ao.caller.bytes) | |
775 | + | let dd = toBase58String(ao.transactionId) | |
776 | + | let cb = ad((1 != size(ao.payments)), "no payments attached") | |
777 | + | if ((cb == cb)) | |
750 | 778 | then { | |
751 | - | let | |
779 | + | let cf = if (isDefined(ao.payments[0].assetId)) | |
752 | 780 | then throw("only waves supported") | |
753 | 781 | else true | |
754 | - | if (( | |
782 | + | if ((cf == cf)) | |
755 | 783 | then { | |
756 | - | let | |
757 | - | let | |
784 | + | let de = ao.payments[0].amount | |
785 | + | let cg = if (if ((d > de)) | |
758 | 786 | then true | |
759 | - | else ( | |
787 | + | else (de > e)) | |
760 | 788 | then throw("amount to lock is out of range") | |
761 | 789 | else true | |
762 | - | if (( | |
790 | + | if ((cg == cg)) | |
763 | 791 | then { | |
764 | - | let | |
792 | + | let ch = if ((b > h)) | |
765 | 793 | then throw("minimum of 14 days lock period") | |
766 | 794 | else true | |
767 | - | if (( | |
795 | + | if ((ch == ch)) | |
768 | 796 | then { | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
774 | - | if (( | |
797 | + | let df = bK(h, de) | |
798 | + | let aS = de | |
799 | + | let dg = fraction(df, 10, 100) | |
800 | + | let dh = (df - dg) | |
801 | + | let di = (bX(height) + ai(h)) | |
802 | + | if ((di == di)) | |
775 | 803 | then { | |
776 | - | let | |
777 | - | if (( | |
804 | + | let dj = (Y(L(K), "global index not previously defined") + 1) | |
805 | + | if ((dj == dj)) | |
778 | 806 | then { | |
779 | - | let | |
780 | - | if (( | |
807 | + | let dk = Address(fromBase58String(V(N(o), "dfx not previously defined"))) | |
808 | + | if ((dk == dk)) | |
781 | 809 | then { | |
782 | - | let | |
783 | - | if (( | |
810 | + | let aA = fromBase58String(V(N(m), "asset id not previously defined")) | |
811 | + | if ((aA == aA)) | |
784 | 812 | then { | |
785 | - | let | |
786 | - | if (( | |
813 | + | let dl = Address(fromBase58String(V(N(q), "lease node not previously defined"))) | |
814 | + | if ((dl == dl)) | |
787 | 815 | then { | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let U = | |
816 | + | let dm = makeString([cu, u], a) | |
817 | + | let dn = makeString([cu, v], a) | |
818 | + | let do = { | |
819 | + | let U = aK(dm) | |
792 | 820 | if ($isInstanceOf(U, "Int")) | |
793 | 821 | then { | |
794 | - | let | |
795 | - | ( | |
822 | + | let aM = U | |
823 | + | (aM + 1) | |
796 | 824 | } | |
797 | 825 | else 0 | |
798 | 826 | } | |
799 | - | if (( | |
827 | + | if ((do == do)) | |
800 | 828 | then { | |
801 | - | let | |
802 | - | let U = | |
829 | + | let dp = { | |
830 | + | let U = aK(dn) | |
803 | 831 | if ($isInstanceOf(U, "Int")) | |
804 | 832 | then { | |
805 | - | let | |
806 | - | ( | |
833 | + | let aM = U | |
834 | + | (aM + de) | |
807 | 835 | } | |
808 | - | else | |
836 | + | else de | |
809 | 837 | } | |
810 | - | if (( | |
838 | + | if ((dp == dp)) | |
811 | 839 | then { | |
812 | - | let | |
813 | - | if (( | |
840 | + | let dq = Lease(dl, de) | |
841 | + | if ((dq == dq)) | |
814 | 842 | then { | |
815 | - | let | |
816 | - | if (( | |
817 | - | then (([ | |
843 | + | let dr = toBase58String(calculateLeaseId(dq)) | |
844 | + | if ((dr == dr)) | |
845 | + | then (([dq, ScriptTransfer(dk, dg, aA), ScriptTransfer(Address(ao.caller.bytes), dh, aA)] ++ aY(dd, cu, h, di, dj, de, dh, aS, height, dr, dp, do, "leased")) ++ aP(de, df, aS, dj)) | |
818 | 846 | else throw("Strict value is not equal to itself.") | |
819 | 847 | } | |
820 | 848 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_" | |
5 | 5 | ||
6 | 6 | let b = 1 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = (1 * c) | |
11 | 11 | ||
12 | 12 | let e = (1000 * c) | |
13 | 13 | ||
14 | 14 | let f = 86400000 | |
15 | 15 | ||
16 | 16 | func g (h) = fraction(c, 365, h) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | let i = (1000000 * c) | |
20 | 20 | ||
21 | 21 | let j = fraction(c, 10, 100) | |
22 | 22 | ||
23 | 23 | let k = "Current_PercentageReduction_Factor_For_Mr" | |
24 | 24 | ||
25 | 25 | let l = "Minting_Rate" | |
26 | 26 | ||
27 | 27 | let m = "Staw_AssetId" | |
28 | 28 | ||
29 | 29 | let n = "manager" | |
30 | 30 | ||
31 | 31 | let o = "Dfx" | |
32 | 32 | ||
33 | 33 | let p = "CirculationIncrementIndex" | |
34 | 34 | ||
35 | 35 | let q = "LeaseNode" | |
36 | 36 | ||
37 | 37 | let r = "EmissionAmountClaimed" | |
38 | 38 | ||
39 | 39 | let s = "CanClaimEmissionAmount" | |
40 | 40 | ||
41 | 41 | let t = "WalletAddress" | |
42 | 42 | ||
43 | 43 | let u = "TotalEntryIndexCount" | |
44 | 44 | ||
45 | 45 | let v = "TotalLocked" | |
46 | 46 | ||
47 | 47 | let w = "LockDuration" | |
48 | 48 | ||
49 | 49 | let x = "GlobalLockIndex" | |
50 | 50 | ||
51 | 51 | let y = "LockIdentifier" | |
52 | 52 | ||
53 | 53 | let z = "AmountInWaves" | |
54 | 54 | ||
55 | 55 | let A = "AmountInStaw" | |
56 | 56 | ||
57 | 57 | let B = "AmountInStawLP" | |
58 | 58 | ||
59 | 59 | let C = "TXID" | |
60 | 60 | ||
61 | 61 | let D = "LockAtHeight" | |
62 | 62 | ||
63 | 63 | let E = "LocKPeriodInMilliSec" | |
64 | 64 | ||
65 | 65 | let F = "TotalWavesClaimed" | |
66 | 66 | ||
67 | 67 | let G = "LeaseState" | |
68 | 68 | ||
69 | 69 | let H = "TotalStawMinted" | |
70 | 70 | ||
71 | 71 | let I = "TotalWavesLocked" | |
72 | 72 | ||
73 | 73 | let J = "TotalStawLP" | |
74 | 74 | ||
75 | 75 | let K = "IndexCount" | |
76 | 76 | ||
77 | 77 | func L (M) = getInteger(this, M) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func N (M) = getString(this, M) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func O (M) = getBoolean(this, M) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func P (M) = value(getBoolean(this, M)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func Q (M) = value(getInteger(this, M)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func R (M) = value(getString(this, M)) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func S (M,T) = { | |
96 | 96 | let U = T | |
97 | 97 | if ($isInstanceOf(U, "String")) | |
98 | 98 | then { | |
99 | 99 | let T = U | |
100 | 100 | if (isDefined(N(M))) | |
101 | 101 | then R(M) | |
102 | 102 | else T | |
103 | 103 | } | |
104 | 104 | else if ($isInstanceOf(U, "Int")) | |
105 | 105 | then { | |
106 | 106 | let T = U | |
107 | 107 | if (isDefined(L(M))) | |
108 | 108 | then Q(M) | |
109 | 109 | else T | |
110 | 110 | } | |
111 | 111 | else if ($isInstanceOf(U, "Boolean")) | |
112 | 112 | then { | |
113 | 113 | let T = U | |
114 | 114 | if (isDefined(O(M))) | |
115 | 115 | then P(M) | |
116 | 116 | else T | |
117 | 117 | } | |
118 | 118 | else throw(("value type not supported for " + M)) | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func V (W,X) = { | |
123 | 123 | let U = W | |
124 | 124 | if ($isInstanceOf(U, "String")) | |
125 | 125 | then { | |
126 | 126 | let W = U | |
127 | 127 | W | |
128 | 128 | } | |
129 | 129 | else throw(X) | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func Y (W,X) = { | |
134 | 134 | let U = W | |
135 | 135 | if ($isInstanceOf(U, "Int")) | |
136 | 136 | then { | |
137 | 137 | let W = U | |
138 | 138 | W | |
139 | 139 | } | |
140 | 140 | else throw(X) | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func Z (W,X) = { | |
145 | 145 | let U = W | |
146 | 146 | if ($isInstanceOf(U, "Boolean")) | |
147 | 147 | then { | |
148 | 148 | let W = U | |
149 | 149 | W | |
150 | 150 | } | |
151 | 151 | else throw(X) | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func aa (M,ab) = if ((0 > ab)) | |
156 | 156 | then throw(((("writing negative value " + toString(ab)) + " for key ") + M)) | |
157 | 157 | else IntegerEntry(M, ab) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func ac (M,ab) = if ((" " == ab)) | |
161 | 161 | then throw(("writing an empty string " + ab)) | |
162 | 162 | else StringEntry(M, ab) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ad (ae,X) = if (ae) | |
166 | 166 | then throw(X) | |
167 | 167 | else true | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func af (M,ag) = { | |
171 | 171 | let U = ag | |
172 | 172 | if ($isInstanceOf(U, "Int")) | |
173 | 173 | then { | |
174 | 174 | let ag = U | |
175 | 175 | let ah = makeString(["%d", toString(ag)], a) | |
176 | 176 | ac(M, ah) | |
177 | 177 | } | |
178 | 178 | else if ($isInstanceOf(U, "String")) | |
179 | 179 | then { | |
180 | 180 | let ag = U | |
181 | 181 | let ah = makeString(["%s", ag], a) | |
182 | 182 | ac(M, ah) | |
183 | 183 | } | |
184 | 184 | else if ($isInstanceOf(U, "Boolean")) | |
185 | 185 | then { | |
186 | 186 | let ag = U | |
187 | 187 | let ah = makeString(["%b", toString(ag)], a) | |
188 | 188 | ac(M, ah) | |
189 | 189 | } | |
190 | 190 | else throw("type not supported") | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func ai (aj) = { | |
195 | 195 | let ak = ad((aj >= 0), "invalid locking days!") | |
196 | 196 | if ((ak == ak)) | |
197 | 197 | then (aj * f) | |
198 | 198 | else throw("Strict value is not equal to itself.") | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func al (M,ab) = if (!(isDefined(N(M)))) | |
203 | 203 | then ac(M, ab) | |
204 | 204 | else throw(("entry already initialized: " + M)) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func am (M,ab) = if (!(isDefined(N(M)))) | |
208 | 208 | then aa(M, ab) | |
209 | 209 | else throw((" entry already initialized: " + M)) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func an (ao) = { | |
213 | 213 | let ap = V(N(n), "manager not found") | |
214 | 214 | if ((ap == ap)) | |
215 | 215 | then ad((toBase58String(ao.caller.bytes) != ap), "address not authorized") | |
216 | 216 | else throw("Strict value is not equal to itself.") | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func aq (W) = if ((0 > W)) | |
221 | 221 | then -(W) | |
222 | 222 | else W | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func ar (as) = { | |
226 | 226 | let U = as | |
227 | 227 | if ($isInstanceOf(U, "String")) | |
228 | 228 | then { | |
229 | 229 | let as = U | |
230 | 230 | let at = addressFromString(as) | |
231 | 231 | let au = at | |
232 | 232 | if ($isInstanceOf(au, "Address")) | |
233 | 233 | then { | |
234 | 234 | let at = au | |
235 | 235 | true | |
236 | 236 | } | |
237 | 237 | else throw("invalid address") | |
238 | 238 | } | |
239 | 239 | else if ($isInstanceOf(U, "ByteVector")) | |
240 | 240 | then { | |
241 | 241 | let as = U | |
242 | 242 | let at = addressFromPublicKey(as) | |
243 | 243 | let au = at | |
244 | 244 | if ($isInstanceOf(au, "Address")) | |
245 | 245 | then { | |
246 | 246 | let at = au | |
247 | 247 | true | |
248 | 248 | } | |
249 | 249 | else throw("invalid public key") | |
250 | 250 | } | |
251 | 251 | else throw("invalid input type") | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | - | func av () = { | |
256 | - | let | |
257 | - | if (( | |
255 | + | func av (aw) = { | |
256 | + | let U = assetInfo(fromBase58String(aw)) | |
257 | + | if ($isInstanceOf(U, "Asset")) | |
258 | 258 | then { | |
259 | - | let ax = V(N(m), "asset id not previouly defined") | |
260 | - | if ((ax == ax)) | |
259 | + | let ax = U | |
260 | + | true | |
261 | + | } | |
262 | + | else throw(("invalid asset id: " + aw)) | |
263 | + | } | |
264 | + | ||
265 | + | ||
266 | + | func ay () = { | |
267 | + | let az = Y(L(p), "increment index not previously defined") | |
268 | + | if ((az == az)) | |
269 | + | then { | |
270 | + | let aA = V(N(m), "asset id not previouly defined") | |
271 | + | if ((aA == aA)) | |
261 | 272 | then { | |
262 | - | let | |
263 | - | let U = assetInfo(fromBase58String( | |
273 | + | let aB = { | |
274 | + | let U = assetInfo(fromBase58String(aA)) | |
264 | 275 | if ($isInstanceOf(U, "Asset")) | |
265 | 276 | then { | |
266 | - | let | |
267 | - | | |
277 | + | let ax = U | |
278 | + | ax.quantity | |
268 | 279 | } | |
269 | - | else throw(("asset not found for " + | |
280 | + | else throw(("asset not found for " + aA)) | |
270 | 281 | } | |
271 | - | let | |
272 | - | let | |
273 | - | then ( | |
274 | - | else | |
275 | - | let | |
276 | - | if (( | |
277 | - | then | |
282 | + | let aC = (aq((aB - i)) / i) | |
283 | + | let aD = if ((aC > az)) | |
284 | + | then (aC + az) | |
285 | + | else az | |
286 | + | let aE = Y(l, "miniting rate not previously defined") | |
287 | + | if ((aD == az)) | |
288 | + | then aE | |
278 | 289 | else { | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | if (( | |
290 | + | let aF = (Y(k, "reduction factor not previously defined") + 10) | |
291 | + | let aG = (aE - fraction(aE, aF, 100)) | |
292 | + | let aH = aa(l, aG) | |
293 | + | if ((aH == aH)) | |
283 | 294 | then { | |
284 | - | let | |
285 | - | if (( | |
295 | + | let aI = aa(k, aF) | |
296 | + | if ((aI == aI)) | |
286 | 297 | then { | |
287 | - | let | |
288 | - | if (( | |
289 | - | then | |
298 | + | let aJ = aa(p, aD) | |
299 | + | if ((aJ == aJ)) | |
300 | + | then aG | |
290 | 301 | else throw("Strict value is not equal to itself.") | |
291 | 302 | } | |
292 | 303 | else throw("Strict value is not equal to itself.") | |
293 | 304 | } | |
294 | 305 | else throw("Strict value is not equal to itself.") | |
295 | 306 | } | |
296 | 307 | } | |
297 | 308 | else throw("Strict value is not equal to itself.") | |
298 | 309 | } | |
299 | 310 | else throw("Strict value is not equal to itself.") | |
300 | 311 | } | |
301 | 312 | ||
302 | 313 | ||
303 | - | func | |
304 | - | let | |
305 | - | if (( | |
314 | + | func aK (M) = { | |
315 | + | let aL = V(N(M), "entry not found") | |
316 | + | if ((aL == aL)) | |
306 | 317 | then { | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let ag = if (( | |
311 | - | then | |
312 | - | else if (( | |
313 | - | then parseIntValue( | |
314 | - | else if (( | |
315 | - | then fromBase58String( | |
318 | + | let aM = split(aL, a) | |
319 | + | let aN = takeRight(aM[0], 1) | |
320 | + | let aO = aM[(size(aM) - 1)] | |
321 | + | let ag = if ((aN == "s")) | |
322 | + | then aO | |
323 | + | else if ((aN == "d")) | |
324 | + | then parseIntValue(aO) | |
325 | + | else if ((aN == "b")) | |
326 | + | then fromBase58String(aO) | |
316 | 327 | else throw(("could not parse registry value for " + M)) | |
317 | 328 | ag | |
318 | 329 | } | |
319 | 330 | else throw("Strict value is not equal to itself.") | |
320 | 331 | } | |
321 | 332 | ||
322 | 333 | ||
323 | - | func | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | [aa(I, | |
334 | + | func aP (aQ,aR,aS,aT) = { | |
335 | + | let aU = (Y(L(I), "global waves sum not previously defined") + aQ) | |
336 | + | let aV = (Y(L(H), "gobal staw minted not previously defined") + aR) | |
337 | + | let aW = (Y(L(J), "global stawPL not previously defined") + aS) | |
338 | + | let aX = (Y(L(K), "global index count not previously defined") + aT) | |
339 | + | [aa(I, aU), aa(H, aV), aa(J, aW), aa(K, aX)] | |
329 | 340 | } | |
330 | 341 | ||
331 | 342 | ||
332 | - | func aW (aX,aY,aZ,ba,bb,aO,aP,bc,bd,be,bf,bg,bh) = { | |
333 | - | let bi = makeString([aY, aX, C], a) | |
334 | - | let bj = makeString([aY, aX, w], a) | |
335 | - | let bk = makeString([aY, aX, x], a) | |
336 | - | let bl = makeString([aY, aX, z], a) | |
337 | - | let bm = makeString([aY, aX, A], a) | |
338 | - | let bn = makeString([aY, aX, B], a) | |
339 | - | let bo = makeString([aY, aX, D], a) | |
340 | - | let bp = makeString([aY, aX, y], a) | |
341 | - | let bq = makeString([aY, v], a) | |
342 | - | let br = makeString([aY, u], a) | |
343 | - | let bs = makeString([aY, aX, E], a) | |
344 | - | let bt = makeString([aY, aX, F], a) | |
345 | - | let bu = makeString([aY, aX, G], a) | |
346 | - | let bv = makeString(["%s", aX], a) | |
347 | - | let bw = makeString(["%d", toString(aZ)], a) | |
348 | - | let bx = makeString(["%d", toString(bb)], a) | |
349 | - | let by = makeString(["%d", toString(aO)], a) | |
350 | - | let bz = makeString(["%d", toString(aP)], a) | |
351 | - | let bA = makeString(["%d", toString(bc)], a) | |
352 | - | let bB = makeString(["%d", toString(bd)], a) | |
353 | - | let bC = makeString(["%b", be], a) | |
343 | + | func aY (aZ,ba,bb,bc,bd,aQ,aR,be,bf,bg,bh,bi,bj) = { | |
344 | + | let bk = makeString([ba, aZ, C], a) | |
345 | + | let bl = makeString([ba, aZ, w], a) | |
346 | + | let bm = makeString([ba, aZ, x], a) | |
347 | + | let bn = makeString([ba, aZ, z], a) | |
348 | + | let bo = makeString([ba, aZ, A], a) | |
349 | + | let bp = makeString([ba, aZ, B], a) | |
350 | + | let bq = makeString([ba, aZ, D], a) | |
351 | + | let br = makeString([ba, aZ, y], a) | |
352 | + | let bs = makeString([ba, v], a) | |
353 | + | let bt = makeString([ba, u], a) | |
354 | + | let bu = makeString([ba, aZ, E], a) | |
355 | + | let bv = makeString([ba, aZ, F], a) | |
356 | + | let bw = makeString([ba, aZ, G], a) | |
357 | + | let bx = makeString(["%s", aZ], a) | |
358 | + | let by = makeString(["%d", toString(bb)], a) | |
359 | + | let bz = makeString(["%d", toString(bd)], a) | |
360 | + | let bA = makeString(["%d", toString(aQ)], a) | |
361 | + | let bB = makeString(["%d", toString(aR)], a) | |
362 | + | let bC = makeString(["%d", toString(be)], a) | |
354 | 363 | let bD = makeString(["%d", toString(bf)], a) | |
355 | - | let bE = makeString(["%d", toString(bg)], a) | |
356 | - | let bF = makeString(["%d", toString(ba)], a) | |
357 | - | let bG = makeString(["%d", toString(0)], a) | |
358 | - | let bH = makeString(["%s", bh], a) | |
359 | - | [al(bi, bv), al(bk, bx), ac(br, bE), ac(bq, bD), al(bj, bw), al(bs, bF), al(bl, by), al(bm, bz), ac(bn, bA), ac(bt, bG), al(bo, bB), al(bp, bC), ac(bu, bH)] | |
364 | + | let bE = makeString(["%b", bg], a) | |
365 | + | let bF = makeString(["%d", toString(bh)], a) | |
366 | + | let bG = makeString(["%d", toString(bi)], a) | |
367 | + | let bH = makeString(["%d", toString(bc)], a) | |
368 | + | let bI = makeString(["%d", toString(0)], a) | |
369 | + | let bJ = makeString(["%s", bj], a) | |
370 | + | [al(bk, bx), al(bm, bz), ac(bt, bG), ac(bs, bF), al(bl, by), al(bu, bH), al(bn, bA), al(bo, bB), ac(bp, bC), ac(bv, bI), al(bq, bD), al(br, bE), ac(bw, bJ)] | |
360 | 371 | } | |
361 | 372 | ||
362 | 373 | ||
363 | - | func | |
364 | - | let | |
365 | - | (fraction(c, (f * | |
374 | + | func bK (h,bL) = { | |
375 | + | let bM = ay() | |
376 | + | (fraction(c, (f * bM), g(h)) * bL) | |
366 | 377 | } | |
367 | 378 | ||
368 | 379 | ||
369 | - | func | |
370 | - | let | |
371 | - | (( | |
380 | + | func bN (h,bO) = { | |
381 | + | let bP = fraction(h, 15, 10) | |
382 | + | ((bO / ((h * bP) - h)) * f) | |
372 | 383 | } | |
373 | 384 | ||
374 | 385 | ||
375 | - | func | |
376 | - | let | |
377 | - | [aa(J, ( | |
386 | + | func bQ (bR) = { | |
387 | + | let bS = Y(L(J), "could not get the running StawLP") | |
388 | + | [aa(J, (bS + bR))] | |
378 | 389 | } | |
379 | 390 | ||
380 | 391 | ||
381 | - | func | |
382 | - | let | |
383 | - | [aa(J, ( | |
392 | + | func bT (bR) = { | |
393 | + | let bS = Y(L(J), "could not get the running StawLP") | |
394 | + | [aa(J, (bS - bR))] | |
384 | 395 | } | |
385 | 396 | ||
386 | 397 | ||
387 | - | func | |
388 | - | let | |
389 | - | [aa(I, ( | |
398 | + | func bU (bR) = { | |
399 | + | let bV = Y(L(I), "could not get total locked waves") | |
400 | + | [aa(I, (bV + bR))] | |
390 | 401 | } | |
391 | 402 | ||
392 | 403 | ||
393 | - | func | |
394 | - | let | |
395 | - | [aa(I, ( | |
404 | + | func bW (bR) = { | |
405 | + | let bV = Y(L(I), "could not get total locked waves") | |
406 | + | [aa(I, (bV - bR))] | |
396 | 407 | } | |
397 | 408 | ||
398 | 409 | ||
399 | - | func | |
400 | - | let | |
401 | - | let U = blockInfoByHeight( | |
410 | + | func bX (bY) = { | |
411 | + | let bZ = { | |
412 | + | let U = blockInfoByHeight(bY) | |
402 | 413 | if ($isInstanceOf(U, "BlockInfo")) | |
403 | 414 | then { | |
404 | - | let | |
405 | - | | |
415 | + | let ca = U | |
416 | + | ca.timestamp | |
406 | 417 | } | |
407 | 418 | else throw("counld get timestamp") | |
408 | 419 | } | |
409 | - | | |
420 | + | bZ | |
410 | 421 | } | |
411 | 422 | ||
412 | 423 | ||
413 | 424 | @Callable(ao) | |
414 | - | func getEmission (h, | |
415 | - | let | |
416 | - | if (( | |
417 | - | then $Tuple2(nil, | |
425 | + | func getEmission (h,bO) = { | |
426 | + | let cb = an(ao) | |
427 | + | if ((cb == cb)) | |
428 | + | then $Tuple2(nil, bN(h, bO)) | |
418 | 429 | else throw("Strict value is not equal to itself.") | |
419 | 430 | } | |
420 | 431 | ||
421 | 432 | ||
422 | 433 | ||
423 | 434 | @Callable(ao) | |
424 | - | func init (ap, | |
425 | - | let | |
435 | + | func init (ap,cc,aw,cd) = { | |
436 | + | let ce = if (isDefined(N(n))) | |
426 | 437 | then an(ao) | |
427 | 438 | else true | |
428 | - | if (( | |
439 | + | if ((ce == ce)) | |
429 | 440 | then { | |
430 | - | let | |
431 | - | if (( | |
441 | + | let cb = ar(ap) | |
442 | + | if ((cb == cb)) | |
432 | 443 | then { | |
433 | - | let | |
434 | - | if (( | |
444 | + | let cf = ar(cc) | |
445 | + | if ((cf == cf)) | |
435 | 446 | then { | |
436 | - | let | |
437 | - | if (( | |
447 | + | let cg = ar(cd) | |
448 | + | if ((cg == cg)) | |
438 | 449 | then { | |
439 | - | let cg = S(p, 0) | |
440 | - | let ch = S(k, 0) | |
441 | - | let ci = S(l, c) | |
442 | - | let cj = S(H, 0) | |
443 | - | let ck = S(J, 0) | |
444 | - | let cl = S(K, 0) | |
445 | - | let cm = S(I, 0) | |
446 | - | [af(n, ap), af(o, ca), af(m, cb), af(q, cc), af(p, cg), af(l, ci), af(k, ch), af(I, cm), af(J, ck), af(H, cj)] | |
450 | + | let ch = av(aw) | |
451 | + | if ((ch == ch)) | |
452 | + | then { | |
453 | + | let ci = S(p, 0) | |
454 | + | let cj = S(k, 0) | |
455 | + | let ck = S(l, c) | |
456 | + | let cl = S(H, 0) | |
457 | + | let cm = S(J, 0) | |
458 | + | let cn = S(K, 0) | |
459 | + | let co = S(I, 0) | |
460 | + | [af(n, ap), af(o, cc), af(m, aw), af(q, cd), af(p, ci), af(l, ck), af(k, cj), af(I, co), af(J, cm), af(H, cl)] | |
461 | + | } | |
462 | + | else throw("Strict value is not equal to itself.") | |
447 | 463 | } | |
448 | 464 | else throw("Strict value is not equal to itself.") | |
449 | 465 | } | |
450 | 466 | else throw("Strict value is not equal to itself.") | |
451 | 467 | } | |
452 | 468 | else throw("Strict value is not equal to itself.") | |
453 | 469 | } | |
454 | 470 | else throw("Strict value is not equal to itself.") | |
455 | 471 | } | |
456 | 472 | ||
457 | 473 | ||
458 | 474 | ||
459 | 475 | @Callable(ao) | |
460 | 476 | func modifyGlobalParams (W) = { | |
461 | - | let | |
462 | - | if (( | |
477 | + | let cb = an(ao) | |
478 | + | if ((cb == cb)) | |
463 | 479 | then { | |
464 | - | let | |
465 | - | if (( | |
480 | + | let cf = ad((size(W) == 2), "[global_key, value] pairs expected") | |
481 | + | if ((cf == cf)) | |
466 | 482 | then { | |
467 | 483 | let M = W[0] | |
468 | - | let | |
469 | - | let U = | |
484 | + | let cp = parseInt(W[1]) | |
485 | + | let U = cp | |
470 | 486 | if ($isInstanceOf(U, "Int")) | |
471 | 487 | then { | |
472 | - | let | |
473 | - | let | |
474 | - | if (( | |
475 | - | then [af(M, | |
488 | + | let aM = U | |
489 | + | let cq = ad((N(M) == unit), (("key " + M) + " not recognized")) | |
490 | + | if ((cq == cq)) | |
491 | + | then [af(M, aM)] | |
476 | 492 | else throw("Strict value is not equal to itself.") | |
477 | 493 | } | |
478 | 494 | else if ($isInstanceOf(U, "Unit")) | |
479 | 495 | then { | |
480 | - | let | |
481 | - | let | |
482 | - | if (( | |
496 | + | let aM = U | |
497 | + | let cq = ad((N(M) == unit), (("key " + M) + " not recognized")) | |
498 | + | if ((cq == cq)) | |
483 | 499 | then { | |
484 | - | let cp = ar(W[1]) | |
485 | - | if ((cp == cp)) | |
486 | - | then [af(M, W[1])] | |
500 | + | let cr = W[1] | |
501 | + | let cs = aK("_manager") | |
502 | + | let ch = { | |
503 | + | let au = cs | |
504 | + | if ($isInstanceOf(au, "String")) | |
505 | + | then { | |
506 | + | let ct = au | |
507 | + | if ((size(ct) == size(cr))) | |
508 | + | then ar(cr) | |
509 | + | else av(cr) | |
510 | + | } | |
511 | + | else throw("value type not supported") | |
512 | + | } | |
513 | + | if ((ch == ch)) | |
514 | + | then [af(M, cr)] | |
487 | 515 | else throw("Strict value is not equal to itself.") | |
488 | 516 | } | |
489 | 517 | else throw("Strict value is not equal to itself.") | |
490 | 518 | } | |
491 | - | else | |
519 | + | else throw(("failed to modify " + W[0])) | |
492 | 520 | } | |
493 | 521 | else throw("Strict value is not equal to itself.") | |
494 | 522 | } | |
495 | 523 | else throw("Strict value is not equal to itself.") | |
496 | 524 | } | |
497 | 525 | ||
498 | 526 | ||
499 | 527 | ||
500 | 528 | @Callable(ao) | |
501 | 529 | func revokeLock () = { | |
502 | - | let | |
503 | - | if (( | |
530 | + | let cb = an(ao) | |
531 | + | if ((cb == cb)) | |
504 | 532 | then nil | |
505 | 533 | else throw("Strict value is not equal to itself.") | |
506 | 534 | } | |
507 | 535 | ||
508 | 536 | ||
509 | 537 | ||
510 | 538 | @Callable(ao) | |
511 | - | func claim ( | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | if (( | |
539 | + | func claim (aZ) = { | |
540 | + | let cu = toBase58String(ao.caller.bytes) | |
541 | + | let cv = makeString([cu, aZ, z], a) | |
542 | + | let cw = makeString([cu, aZ, w], a) | |
543 | + | let cx = makeString([cu, aZ, y], a) | |
544 | + | let cy = makeString([cu, aZ, E], a) | |
545 | + | let cz = makeString([cu, aZ, F], a) | |
546 | + | let cA = makeString([cu, aZ, B], a) | |
547 | + | let cB = makeString([cu, aZ, z], a) | |
548 | + | let cC = makeString([cu, v], a) | |
549 | + | let cD = makeString([cu, aZ, G], a) | |
550 | + | let cE = makeString([cu, aZ, G], a) | |
551 | + | let cF = Q(I) | |
552 | + | if ((cF == cF)) | |
525 | 553 | then { | |
526 | - | let | |
527 | - | if (( | |
554 | + | let cG = Q(J) | |
555 | + | if ((cG == cG)) | |
528 | 556 | then { | |
529 | - | let | |
530 | - | let U = | |
557 | + | let bg = { | |
558 | + | let U = aK(cx) | |
531 | 559 | if ($isInstanceOf(U, "ByteVector")) | |
532 | 560 | then { | |
533 | - | let | |
534 | - | | |
561 | + | let cH = U | |
562 | + | cH | |
535 | 563 | } | |
536 | 564 | else throw("failed to get lease id") | |
537 | 565 | } | |
538 | - | if (( | |
566 | + | if ((bg == bg)) | |
539 | 567 | then { | |
540 | - | let | |
541 | - | let U = | |
568 | + | let cI = { | |
569 | + | let U = aK(cC) | |
542 | 570 | if ($isInstanceOf(U, "Int")) | |
543 | 571 | then { | |
544 | - | let | |
545 | - | | |
572 | + | let cH = U | |
573 | + | cH | |
546 | 574 | } | |
547 | 575 | else throw("failed to get total waves locked by this address") | |
548 | 576 | } | |
549 | - | if (( | |
577 | + | if ((cI == cI)) | |
550 | 578 | then { | |
551 | - | let | |
552 | - | let U = | |
579 | + | let aQ = { | |
580 | + | let U = aK(cB) | |
553 | 581 | if ($isInstanceOf(U, "Int")) | |
554 | 582 | then { | |
555 | - | let | |
556 | - | | |
583 | + | let cH = U | |
584 | + | cH | |
557 | 585 | } | |
558 | 586 | else throw("failed to get total waves locked") | |
559 | 587 | } | |
560 | - | if (( | |
588 | + | if ((aQ == aQ)) | |
561 | 589 | then { | |
562 | - | let | |
563 | - | let U = | |
590 | + | let cJ = { | |
591 | + | let U = aK(cz) | |
564 | 592 | if ($isInstanceOf(U, "Int")) | |
565 | 593 | then { | |
566 | - | let | |
567 | - | | |
594 | + | let cH = U | |
595 | + | cH | |
568 | 596 | } | |
569 | 597 | else throw("failed to get total waves claimed") | |
570 | 598 | } | |
571 | - | if (( | |
599 | + | if ((cJ == cJ)) | |
572 | 600 | then { | |
573 | - | let | |
574 | - | let U = | |
601 | + | let be = { | |
602 | + | let U = aK(cA) | |
575 | 603 | if ($isInstanceOf(U, "Int")) | |
576 | 604 | then { | |
577 | - | let | |
578 | - | | |
605 | + | let cH = U | |
606 | + | cH | |
579 | 607 | } | |
580 | 608 | else throw("failed to get stawPL") | |
581 | 609 | } | |
582 | - | if (( | |
610 | + | if ((be == be)) | |
583 | 611 | then { | |
584 | - | let | |
585 | - | let U = | |
612 | + | let cK = { | |
613 | + | let U = aK(cy) | |
586 | 614 | if ($isInstanceOf(U, "Int")) | |
587 | 615 | then { | |
588 | - | let | |
589 | - | | |
616 | + | let cH = U | |
617 | + | cH | |
590 | 618 | } | |
591 | 619 | else throw("failed to get lock period timespam") | |
592 | 620 | } | |
593 | - | if (( | |
621 | + | if ((cK == cK)) | |
594 | 622 | then { | |
595 | - | let | |
596 | - | let U = | |
623 | + | let cL = { | |
624 | + | let U = bX(height) | |
597 | 625 | if ($isInstanceOf(U, "Int")) | |
598 | 626 | then { | |
599 | - | let | |
600 | - | | |
627 | + | let cH = U | |
628 | + | cH | |
601 | 629 | } | |
602 | 630 | else throw("failed to get current timestamp") | |
603 | 631 | } | |
604 | - | if (( | |
632 | + | if ((cL == cL)) | |
605 | 633 | then { | |
606 | - | let | |
607 | - | let U = | |
634 | + | let bO = { | |
635 | + | let U = aK(cv) | |
608 | 636 | if ($isInstanceOf(U, "Int")) | |
609 | 637 | then { | |
610 | - | let | |
611 | - | | |
638 | + | let cH = U | |
639 | + | cH | |
612 | 640 | } | |
613 | 641 | else throw("failed to get collateral") | |
614 | 642 | } | |
615 | - | if (( | |
643 | + | if ((bO == bO)) | |
616 | 644 | then { | |
617 | 645 | let h = { | |
618 | - | let U = | |
646 | + | let U = aK(cw) | |
619 | 647 | if ($isInstanceOf(U, "Int")) | |
620 | 648 | then { | |
621 | - | let | |
622 | - | | |
649 | + | let cH = U | |
650 | + | cH | |
623 | 651 | } | |
624 | 652 | else throw("failed to get lockPeriod") | |
625 | 653 | } | |
626 | 654 | if ((h == h)) | |
627 | 655 | then { | |
628 | - | let | |
629 | - | let U = | |
656 | + | let cM = { | |
657 | + | let U = aK(cD) | |
630 | 658 | if ($isInstanceOf(U, "String")) | |
631 | 659 | then { | |
632 | - | let | |
633 | - | | |
660 | + | let cH = U | |
661 | + | cH | |
634 | 662 | } | |
635 | 663 | else throw("failed to get lease state") | |
636 | 664 | } | |
637 | - | if (( | |
665 | + | if ((cM == cM)) | |
638 | 666 | then { | |
639 | - | let | |
640 | - | let U = | |
667 | + | let bj = { | |
668 | + | let U = aK(cE) | |
641 | 669 | if ($isInstanceOf(U, "String")) | |
642 | 670 | then { | |
643 | - | let | |
644 | - | | |
671 | + | let cH = U | |
672 | + | cH | |
645 | 673 | } | |
646 | 674 | else throw("failed to get lease state for user") | |
647 | 675 | } | |
648 | - | if (( | |
676 | + | if ((bj == bj)) | |
649 | 677 | then { | |
650 | - | let | |
651 | - | if (( | |
678 | + | let cb = ad((cK > cL), "lock period for this entry has not elapsed") | |
679 | + | if ((cb == cb)) | |
652 | 680 | then { | |
653 | - | let | |
654 | - | then $Tuple2(LeaseCancel( | |
655 | - | else $Tuple2(ac( | |
656 | - | if (( | |
681 | + | let cN = if ((cM == "leased")) | |
682 | + | then $Tuple2(LeaseCancel(bg), ac(cD, "cancelled")) | |
683 | + | else $Tuple2(ac(cD, "cancelled"), ac(cD, "cancelled")) | |
684 | + | if ((cN == cN)) | |
657 | 685 | then { | |
658 | - | let | |
686 | + | let cf = ad(if ((0 == aQ)) | |
659 | 687 | then true | |
660 | - | else (0 == | |
661 | - | if (( | |
688 | + | else (0 == be), "all claims exhausted for this trx") | |
689 | + | if ((cf == cf)) | |
662 | 690 | then { | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | if (( | |
691 | + | let cO = (bN(h, bO) * f) | |
692 | + | let cP = { | |
693 | + | let cQ = (cL - cK) | |
694 | + | let cR = (cQ / f) | |
695 | + | if ((cR == 0)) | |
668 | 696 | then throw("less than 24hrs before first claim") | |
669 | - | else if ((( | |
697 | + | else if (((cQ % f) != 0)) | |
670 | 698 | then throw("already claimed or less than 24hrs before next claim") | |
671 | - | else if (( | |
699 | + | else if ((cR > h)) | |
672 | 700 | then throw("all claims exhausted") | |
673 | 701 | else { | |
674 | - | let | |
675 | - | let | |
676 | - | if (( | |
702 | + | let cS = (cR * cO) | |
703 | + | let cT = ad((cS == cJ), "can only claim once in 24hrs") | |
704 | + | if ((cT == cT)) | |
677 | 705 | then { | |
678 | - | let | |
679 | - | if (( | |
706 | + | let cU = ad(((cS + cJ) > aQ), "all claims exhausted") | |
707 | + | if ((cU == cU)) | |
680 | 708 | then { | |
681 | - | let | |
682 | - | then | |
683 | - | else ( | |
684 | - | let | |
685 | - | let | |
686 | - | then ( | |
687 | - | else ( | |
688 | - | let | |
689 | - | then ( | |
690 | - | else ( | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | [ | |
709 | + | let cV = if ((cR == 1)) | |
710 | + | then cS | |
711 | + | else (cS - cJ) | |
712 | + | let cW = cS | |
713 | + | let cX = if ((cR == 1)) | |
714 | + | then (aQ - cS) | |
715 | + | else (aQ - (cS - cJ)) | |
716 | + | let cY = if ((cR == 1)) | |
717 | + | then (be - cS) | |
718 | + | else (be - (cS - cJ)) | |
719 | + | let cZ = (cF - cX) | |
720 | + | let da = (cG - cY) | |
721 | + | let db = (cI - cV) | |
722 | + | let bA = makeString(["%d", toString(cX)], a) | |
723 | + | let bC = makeString(["%d", toString(cY)], a) | |
724 | + | let bI = makeString(["%d", toString(cW)], a) | |
725 | + | let dc = makeString(["%d", toString(db)], a) | |
726 | + | [cN._1, cN._2, ac(cB, bA), ac(cA, bC), ac(cz, bI), ac(cC, dc), aa(I, cZ), aa(J, da), ScriptTransfer(Address(ao.caller.bytes), cV, unit)] | |
699 | 727 | } | |
700 | 728 | else throw("Strict value is not equal to itself.") | |
701 | 729 | } | |
702 | 730 | else throw("Strict value is not equal to itself.") | |
703 | 731 | } | |
704 | 732 | } | |
705 | - | if (( | |
706 | - | then | |
733 | + | if ((cP == cP)) | |
734 | + | then cP | |
707 | 735 | else throw("Strict value is not equal to itself.") | |
708 | 736 | } | |
709 | 737 | else throw("Strict value is not equal to itself.") | |
710 | 738 | } | |
711 | 739 | else throw("Strict value is not equal to itself.") | |
712 | 740 | } | |
713 | 741 | else throw("Strict value is not equal to itself.") | |
714 | 742 | } | |
715 | 743 | else throw("Strict value is not equal to itself.") | |
716 | 744 | } | |
717 | 745 | else throw("Strict value is not equal to itself.") | |
718 | 746 | } | |
719 | 747 | else throw("Strict value is not equal to itself.") | |
720 | 748 | } | |
721 | 749 | else throw("Strict value is not equal to itself.") | |
722 | 750 | } | |
723 | 751 | else throw("Strict value is not equal to itself.") | |
724 | 752 | } | |
725 | 753 | else throw("Strict value is not equal to itself.") | |
726 | 754 | } | |
727 | 755 | else throw("Strict value is not equal to itself.") | |
728 | 756 | } | |
729 | 757 | else throw("Strict value is not equal to itself.") | |
730 | 758 | } | |
731 | 759 | else throw("Strict value is not equal to itself.") | |
732 | 760 | } | |
733 | 761 | else throw("Strict value is not equal to itself.") | |
734 | 762 | } | |
735 | 763 | else throw("Strict value is not equal to itself.") | |
736 | 764 | } | |
737 | 765 | else throw("Strict value is not equal to itself.") | |
738 | 766 | } | |
739 | 767 | else throw("Strict value is not equal to itself.") | |
740 | 768 | } | |
741 | 769 | ||
742 | 770 | ||
743 | 771 | ||
744 | 772 | @Callable(ao) | |
745 | 773 | func mintStaw (h) = { | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | if (( | |
774 | + | let cu = toBase58String(ao.caller.bytes) | |
775 | + | let dd = toBase58String(ao.transactionId) | |
776 | + | let cb = ad((1 != size(ao.payments)), "no payments attached") | |
777 | + | if ((cb == cb)) | |
750 | 778 | then { | |
751 | - | let | |
779 | + | let cf = if (isDefined(ao.payments[0].assetId)) | |
752 | 780 | then throw("only waves supported") | |
753 | 781 | else true | |
754 | - | if (( | |
782 | + | if ((cf == cf)) | |
755 | 783 | then { | |
756 | - | let | |
757 | - | let | |
784 | + | let de = ao.payments[0].amount | |
785 | + | let cg = if (if ((d > de)) | |
758 | 786 | then true | |
759 | - | else ( | |
787 | + | else (de > e)) | |
760 | 788 | then throw("amount to lock is out of range") | |
761 | 789 | else true | |
762 | - | if (( | |
790 | + | if ((cg == cg)) | |
763 | 791 | then { | |
764 | - | let | |
792 | + | let ch = if ((b > h)) | |
765 | 793 | then throw("minimum of 14 days lock period") | |
766 | 794 | else true | |
767 | - | if (( | |
795 | + | if ((ch == ch)) | |
768 | 796 | then { | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
774 | - | if (( | |
797 | + | let df = bK(h, de) | |
798 | + | let aS = de | |
799 | + | let dg = fraction(df, 10, 100) | |
800 | + | let dh = (df - dg) | |
801 | + | let di = (bX(height) + ai(h)) | |
802 | + | if ((di == di)) | |
775 | 803 | then { | |
776 | - | let | |
777 | - | if (( | |
804 | + | let dj = (Y(L(K), "global index not previously defined") + 1) | |
805 | + | if ((dj == dj)) | |
778 | 806 | then { | |
779 | - | let | |
780 | - | if (( | |
807 | + | let dk = Address(fromBase58String(V(N(o), "dfx not previously defined"))) | |
808 | + | if ((dk == dk)) | |
781 | 809 | then { | |
782 | - | let | |
783 | - | if (( | |
810 | + | let aA = fromBase58String(V(N(m), "asset id not previously defined")) | |
811 | + | if ((aA == aA)) | |
784 | 812 | then { | |
785 | - | let | |
786 | - | if (( | |
813 | + | let dl = Address(fromBase58String(V(N(q), "lease node not previously defined"))) | |
814 | + | if ((dl == dl)) | |
787 | 815 | then { | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let U = | |
816 | + | let dm = makeString([cu, u], a) | |
817 | + | let dn = makeString([cu, v], a) | |
818 | + | let do = { | |
819 | + | let U = aK(dm) | |
792 | 820 | if ($isInstanceOf(U, "Int")) | |
793 | 821 | then { | |
794 | - | let | |
795 | - | ( | |
822 | + | let aM = U | |
823 | + | (aM + 1) | |
796 | 824 | } | |
797 | 825 | else 0 | |
798 | 826 | } | |
799 | - | if (( | |
827 | + | if ((do == do)) | |
800 | 828 | then { | |
801 | - | let | |
802 | - | let U = | |
829 | + | let dp = { | |
830 | + | let U = aK(dn) | |
803 | 831 | if ($isInstanceOf(U, "Int")) | |
804 | 832 | then { | |
805 | - | let | |
806 | - | ( | |
833 | + | let aM = U | |
834 | + | (aM + de) | |
807 | 835 | } | |
808 | - | else | |
836 | + | else de | |
809 | 837 | } | |
810 | - | if (( | |
838 | + | if ((dp == dp)) | |
811 | 839 | then { | |
812 | - | let | |
813 | - | if (( | |
840 | + | let dq = Lease(dl, de) | |
841 | + | if ((dq == dq)) | |
814 | 842 | then { | |
815 | - | let | |
816 | - | if (( | |
817 | - | then (([ | |
843 | + | let dr = toBase58String(calculateLeaseId(dq)) | |
844 | + | if ((dr == dr)) | |
845 | + | then (([dq, ScriptTransfer(dk, dg, aA), ScriptTransfer(Address(ao.caller.bytes), dh, aA)] ++ aY(dd, cu, h, di, dj, de, dh, aS, height, dr, dp, do, "leased")) ++ aP(de, df, aS, dj)) | |
818 | 846 | else throw("Strict value is not equal to itself.") | |
819 | 847 | } | |
820 | 848 | else throw("Strict value is not equal to itself.") | |
821 | 849 | } | |
822 | 850 | else throw("Strict value is not equal to itself.") | |
823 | 851 | } | |
824 | 852 | else throw("Strict value is not equal to itself.") | |
825 | 853 | } | |
826 | 854 | else throw("Strict value is not equal to itself.") | |
827 | 855 | } | |
828 | 856 | else throw("Strict value is not equal to itself.") | |
829 | 857 | } | |
830 | 858 | else throw("Strict value is not equal to itself.") | |
831 | 859 | } | |
832 | 860 | else throw("Strict value is not equal to itself.") | |
833 | 861 | } | |
834 | 862 | else throw("Strict value is not equal to itself.") | |
835 | 863 | } | |
836 | 864 | else throw("Strict value is not equal to itself.") | |
837 | 865 | } | |
838 | 866 | else throw("Strict value is not equal to itself.") | |
839 | 867 | } | |
840 | 868 | else throw("Strict value is not equal to itself.") | |
841 | 869 | } | |
842 | 870 | else throw("Strict value is not equal to itself.") | |
843 | 871 | } | |
844 | 872 | ||
845 | 873 |
github/deemru/w8io/169f3d6 488.56 ms ◑