tx · 8otCbNPTA6D5g3bgxP5T9BvpCRGbS1nmvZMbfwNY3Lcn 3N8rwRVNrxgqwFiVCNyX2Zyy6Lzgd1fDctN: -0.01400000 Waves 2022.01.13 17:57 [1877332] smart account 3N8rwRVNrxgqwFiVCNyX2Zyy6Lzgd1fDctN > SELF 0.00000000 Waves
{ "type": 13, "id": "8otCbNPTA6D5g3bgxP5T9BvpCRGbS1nmvZMbfwNY3Lcn", "fee": 1400000, "feeAssetId": null, "timestamp": 1642085922779, "version": 2, "chainId": 84, "sender": "3N8rwRVNrxgqwFiVCNyX2Zyy6Lzgd1fDctN", "senderPublicKey": "2SGdJb3x9Ak59xjRyHMHFxLvh6dC5m37urdsBJy3f6TU", "proofs": [ "3FiKqZFxyeLasDc6oKMqjPkZxNH69cAQ6KhDLCC991yJ99E4K1NATtmc7awKTzUvpRtCBDpKDtYgD1SB8DGzzwaT", "g9zmoYYSMUG2Rv7raC5vngBXmjBT9MTdaxb8gPcnJtxN6xAJBPPEe5dvVx8qveDcT8hQFro5vWRGRNjmJjd7nXy" ], "script": "base64:AAIFAAAAAAAAACYIAhIAEgMKAQESBAoCAQESABIECgIBARIAEgASABIFCgMEAQgSAAAAAFEAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYW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kbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAAAAANpbnYFAAAAByRtYXRjaDAEAAAAE2NhbGxUYWtlSW50b0FjY291bnQDCQAAAAAAAAIIBQAAAANpbnYAAAAEZEFwcAUAAAAEdGhpcwkAAAAAAAACCAUAAAADaW52AAAACGZ1bmN0aW9uAgAAABl0YWtlSW50b0FjY291bnRFeHRyYUZ1bmRzBwQAAAANc2lnbmVkQnlBZG1pbgMDAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MQYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTIGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkzBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACmFkbVN0YWtpbmcDAwUAAAATY2FsbFRha2VJbnRvQWNjb3VudAUAAAANc2lnbmVkQnlBZG1pbgcGBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zKwyHCQ==", "height": 1877332, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9CCaQKPy8sF9RDApJzp4xjeFPExFh1fM3x9vB3fxLMFm Next: none Diff:
Old | New | Differences | |
---|---|---|---|
37 | 37 | ||
38 | 38 | let keyAdminPubKey3 = "admin_pub_3" | |
39 | 39 | ||
40 | - | let USDNToWavesExchanger = Address(base58' | |
40 | + | let USDNToWavesExchanger = Address(base58'3PHaNgomBkrvEL2QnuJarQVJa71wjw9qiqG') | |
41 | 41 | ||
42 | - | let oracle = Address(base58' | |
42 | + | let oracle = Address(base58'3PEbqViERCoKnmcSULh6n2aiMvUdSQdCsom') | |
43 | 43 | ||
44 | 44 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
45 | 45 | case string: String => | |
59 | 59 | ||
60 | 60 | let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
61 | 61 | ||
62 | - | let govAddr = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
63 | - | ||
64 | - | let stakingAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
62 | + | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
65 | 63 | ||
66 | 64 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
67 | 65 | ||
293 | 291 | ||
294 | 292 | func calcStakingParams (stake,amount,assetId) = if (stake) | |
295 | 293 | then { | |
296 | - | let $ | |
297 | - | let call = $ | |
298 | - | let stakingAddr = $ | |
294 | + | let $t087598825 = calcStakingFuncAndAddres(stake, assetId) | |
295 | + | let call = $t087598825._1 | |
296 | + | let stakingAddr = $t087598825._2 | |
299 | 297 | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
300 | 298 | } | |
301 | 299 | else { | |
302 | - | let $ | |
303 | - | let call = $ | |
304 | - | let stakingAddr = $ | |
300 | + | let $t089118977 = calcStakingFuncAndAddres(stake, assetId) | |
301 | + | let call = $t089118977._1 | |
302 | + | let stakingAddr = $t089118977._2 | |
305 | 303 | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
306 | 304 | } | |
307 | 305 | ||
308 | 306 | ||
309 | 307 | @Callable(i) | |
310 | 308 | func init () = { | |
311 | - | let $ | |
312 | - | let pmtAmountA = $ | |
313 | - | let pmtAssetIdA = $ | |
314 | - | let $ | |
315 | - | let pmtAmountB = $ | |
316 | - | let pmtAssetIdB = $ | |
317 | - | let $ | |
318 | - | let pmtStrAssetIdA = $ | |
319 | - | let pmtAssetNameA = $ | |
320 | - | let pmtDecimalsA = $ | |
321 | - | let $ | |
322 | - | let pmtStrAssetIdB = $ | |
323 | - | let pmtAssetNameB = $ | |
324 | - | let pmtDecimalsB = $ | |
309 | + | let $t090829159 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
310 | + | let pmtAmountA = $t090829159._1 | |
311 | + | let pmtAssetIdA = $t090829159._2 | |
312 | + | let $t091649241 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
313 | + | let pmtAmountB = $t091649241._1 | |
314 | + | let pmtAssetIdB = $t091649241._2 | |
315 | + | let $t092469323 = getAssetInfo(pmtAssetIdA) | |
316 | + | let pmtStrAssetIdA = $t092469323._1 | |
317 | + | let pmtAssetNameA = $t092469323._2 | |
318 | + | let pmtDecimalsA = $t092469323._3 | |
319 | + | let $t093289405 = getAssetInfo(pmtAssetIdB) | |
320 | + | let pmtStrAssetIdB = $t093289405._1 | |
321 | + | let pmtAssetNameB = $t093289405._2 | |
322 | + | let pmtDecimalsB = $t093289405._3 | |
325 | 323 | if (isDefined(getBoolean(this, kActive))) | |
326 | 324 | then throwIsActive() | |
327 | 325 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
358 | 356 | let pmtAssetIdB = i.payments[1].assetId | |
359 | 357 | let pmtAmountA = i.payments[0].amount | |
360 | 358 | let pmtAmountB = i.payments[1].amount | |
361 | - | let $ | |
362 | - | let pmtStrAssetIdA = $ | |
363 | - | let pmtAssetNameA = $ | |
364 | - | let pmtDecimalsA = $ | |
365 | - | let $ | |
366 | - | let pmtStrAssetIdB = $ | |
367 | - | let pmtAssetNameB = $ | |
368 | - | let pmtDecimalsB = $ | |
359 | + | let $t01192111998 = getAssetInfo(pmtAssetIdA) | |
360 | + | let pmtStrAssetIdA = $t01192111998._1 | |
361 | + | let pmtAssetNameA = $t01192111998._2 | |
362 | + | let pmtDecimalsA = $t01192111998._3 | |
363 | + | let $t01200312197 = getAssetInfo(pmtAssetIdB) | |
364 | + | let pmtStrAssetIdB = $t01200312197._1 | |
365 | + | let pmtAssetNameB = $t01200312197._2 | |
366 | + | let pmtDecimalsB = $t01200312197._3 | |
369 | 367 | let tokenRatio = fraction(fraction(scale8, balanceA, pmtAmountA), scale3, fraction(scale8, balanceB, pmtAmountB)) | |
370 | 368 | let ratioShareTokensInA = fraction(scale8, pmtAmountA, balanceA) | |
371 | 369 | let ratioShareTokensInB = fraction(scale8, pmtAmountB, balanceB) | |
412 | 410 | ||
413 | 411 | @Callable(i) | |
414 | 412 | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = { | |
415 | - | let $ | |
416 | - | let pmtAmount = $ | |
417 | - | let pmtAssetId = $ | |
418 | - | let $ | |
419 | - | let pmtStrAssetId = $ | |
420 | - | let pmtAssetName = $ | |
421 | - | let pmtDecimals = $ | |
413 | + | let $t01449614571 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
414 | + | let pmtAmount = $t01449614571._1 | |
415 | + | let pmtAssetId = $t01449614571._2 | |
416 | + | let $t01457614649 = getAssetInfo(pmtAssetId) | |
417 | + | let pmtStrAssetId = $t01457614649._1 | |
418 | + | let pmtAssetName = $t01457614649._2 | |
419 | + | let pmtDecimals = $t01457614649._3 | |
422 | 420 | let pmtMinThreshold = 5000000 | |
423 | 421 | let thresholdValueForMinTolerance = 50000000 | |
424 | 422 | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
440 | 438 | else false) | |
441 | 439 | then throwAssets() | |
442 | 440 | else { | |
443 | - | let $ | |
441 | + | let $t01566116426 = if ((pmtAssetId == assetIdA)) | |
444 | 442 | then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB) | |
445 | 443 | else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount)) | |
446 | - | let virtualReplenishA = $ | |
447 | - | let virtualReplenishB = $ | |
448 | - | let balanceAfterSwapA = $ | |
449 | - | let balanceAfterSwapB = $ | |
450 | - | let invariantCalculated = $ | |
451 | - | let newBalanceA = $ | |
452 | - | let newBalanceB = $ | |
444 | + | let virtualReplenishA = $t01566116426._1 | |
445 | + | let virtualReplenishB = $t01566116426._2 | |
446 | + | let balanceAfterSwapA = $t01566116426._3 | |
447 | + | let balanceAfterSwapB = $t01566116426._4 | |
448 | + | let invariantCalculated = $t01566116426._5 | |
449 | + | let newBalanceA = $t01566116426._6 | |
450 | + | let newBalanceB = $t01566116426._7 | |
453 | 451 | let newBalanceEntry = if ((pmtAssetId == assetIdA)) | |
454 | 452 | then IntegerEntry(kBalanceA, newBalanceA) | |
455 | 453 | else IntegerEntry(kBalanceB, newBalanceB) | |
489 | 487 | ||
490 | 488 | @Callable(i) | |
491 | 489 | func withdraw () = { | |
492 | - | let $ | |
493 | - | let pmtAmount = $ | |
494 | - | let pmtAssetId = $ | |
490 | + | let $t01865218795 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
491 | + | let pmtAmount = $t01865218795._1 | |
492 | + | let pmtAssetId = $t01865218795._2 | |
495 | 493 | let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply) | |
496 | 494 | let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply) | |
497 | 495 | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
524 | 522 | ||
525 | 523 | @Callable(i) | |
526 | 524 | func exchange (estimatedAmountToReceive,minAmountToReceive) = { | |
527 | - | let $ | |
528 | - | let pmtAmount = $ | |
529 | - | let pmtAssetId = $ | |
525 | + | let $t02030920384 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
526 | + | let pmtAmount = $t02030920384._1 | |
527 | + | let pmtAssetId = $t02030920384._2 | |
530 | 528 | if (!(isActive)) | |
531 | 529 | then throwIsInactive() | |
532 | 530 | else if ((0 >= estimatedAmountToReceive)) | |
554 | 552 | let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId) | |
555 | 553 | let governanceReward = fraction(amount, feeGovernance, feeScale6) | |
556 | 554 | let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6) | |
557 | - | let $ | |
555 | + | let $t02180622068 = if ((pmtAssetId == assetIdA)) | |
558 | 556 | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward)) | |
559 | 557 | else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount)) | |
560 | - | let newBalanceA = $ | |
561 | - | let newBalanceB = $ | |
558 | + | let newBalanceA = $t02180622068._1 | |
559 | + | let newBalanceB = $t02180622068._2 | |
562 | 560 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
563 | 561 | if (if ((dAppThresholdAmount > newBalanceA)) | |
564 | 562 | then true | |
565 | 563 | else (dAppThresholdAmount > newBalanceB)) | |
566 | 564 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
567 | 565 | else { | |
568 | - | let $ | |
569 | - | let pmtStrAssetId = $ | |
570 | - | let pmtAssetName = $ | |
571 | - | let pmtDecimals = $ | |
572 | - | let $ | |
573 | - | let sendStrAssetId = $ | |
574 | - | let sendAssetName = $ | |
575 | - | let sendDecimals = $ | |
566 | + | let $t02236622439 = getAssetInfo(pmtAssetId) | |
567 | + | let pmtStrAssetId = $t02236622439._1 | |
568 | + | let pmtAssetName = $t02236622439._2 | |
569 | + | let pmtDecimals = $t02236622439._3 | |
570 | + | let $t02245222529 = getAssetInfo(sendAssetId) | |
571 | + | let sendStrAssetId = $t02245222529._1 | |
572 | + | let sendAssetName = $t02245222529._2 | |
573 | + | let sendDecimals = $t02245222529._3 | |
576 | 574 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetId)) | |
577 | 575 | then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil) | |
578 | 576 | else 0 | |
582 | 580 | then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil) | |
583 | 581 | else 0 | |
584 | 582 | if ((stake2 == stake2)) | |
585 | - | then [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer( | |
583 | + | then [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(walletAddress, governanceReward, sendAssetId)] | |
586 | 584 | else throw("Strict value is not equal to itself.") | |
587 | 585 | } | |
588 | 586 | else throw("Strict value is not equal to itself.") | |
611 | 609 | ||
612 | 610 | ||
613 | 611 | @Callable(i) | |
614 | - | func takeIntoAccountExtraFunds (amountLeave) = { | |
615 | - | let uncountableA = (accountBalanceWithStakedA - balanceA) | |
616 | - | let uncountableB = (accountBalanceWithStakedB - balanceB) | |
617 | - | let amountEnrollA = (uncountableA - (if ((assetIdA == unit)) | |
618 | - | then amountLeave | |
619 | - | else 0)) | |
620 | - | let amountEnrollB = (uncountableB - (if ((assetIdB == unit)) | |
621 | - | then amountLeave | |
622 | - | else 0)) | |
612 | + | func takeIntoAccountExtraFunds () = { | |
613 | + | let amountEnrollA = (accountBalanceWithStakedA - balanceA) | |
614 | + | let amountEnrollB = (accountBalanceWithStakedB - balanceB) | |
623 | 615 | let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB)) | |
624 | 616 | if (!(isActive)) | |
625 | 617 | then throwIsInactive() | |
626 | - | else if ((i.caller != this)) | |
627 | - | then throwOnlyAdmin() | |
628 | - | else if ((0 > amountLeave)) | |
629 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
630 | - | else if (if ((0 > uncountableA)) | |
631 | - | then true | |
632 | - | else (0 > uncountableB)) | |
633 | - | then suspend("Enroll amount negative") | |
634 | - | else if (if ((0 > amountEnrollA)) | |
635 | - | then true | |
636 | - | else (0 > amountEnrollB)) | |
637 | - | then throw("Too large amountLeave") | |
638 | - | else { | |
639 | - | let stake1 = if (if (containsElement(stakingAssets, strAssetIdA)) | |
640 | - | then (amountEnrollA > 0) | |
641 | - | else false) | |
642 | - | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
643 | - | else 0 | |
644 | - | if ((stake1 == stake1)) | |
645 | - | then { | |
646 | - | let stake2 = if (if (containsElement(stakingAssets, strAssetIdB)) | |
647 | - | then (amountEnrollB > 0) | |
648 | - | else false) | |
649 | - | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
650 | - | else 0 | |
651 | - | if ((stake2 == stake2)) | |
652 | - | then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
653 | - | else throw("Strict value is not equal to itself.") | |
654 | - | } | |
655 | - | else throw("Strict value is not equal to itself.") | |
656 | - | } | |
618 | + | else if ((i.caller != walletAddress)) | |
619 | + | then throw("Only the wallet can call this function") | |
620 | + | else if (if ((0 > amountEnrollA)) | |
621 | + | then true | |
622 | + | else (0 > amountEnrollB)) | |
623 | + | then suspend("Enroll amount negative") | |
624 | + | else if (if ((amountEnrollA == 0)) | |
625 | + | then (amountEnrollB == 0) | |
626 | + | else false) | |
627 | + | then throw("No money to take") | |
628 | + | else { | |
629 | + | let stake1 = if (if (containsElement(stakingAssets, strAssetIdA)) | |
630 | + | then (amountEnrollA > 0) | |
631 | + | else false) | |
632 | + | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
633 | + | else 0 | |
634 | + | if ((stake1 == stake1)) | |
635 | + | then { | |
636 | + | let stake2 = if (if (containsElement(stakingAssets, strAssetIdB)) | |
637 | + | then (amountEnrollB > 0) | |
638 | + | else false) | |
639 | + | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
640 | + | else 0 | |
641 | + | if ((stake2 == stake2)) | |
642 | + | then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
643 | + | else throw("Strict value is not equal to itself.") | |
644 | + | } | |
645 | + | else throw("Strict value is not equal to itself.") | |
646 | + | } | |
657 | 647 | } | |
658 | 648 | ||
659 | 649 | ||
662 | 652 | func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this)) | |
663 | 653 | then throw("Only contract itself can invoke this function") | |
664 | 654 | else { | |
665 | - | let $ | |
666 | - | let call = $ | |
667 | - | let addr = $ | |
668 | - | let params = $ | |
669 | - | let payments = $ | |
655 | + | let $t02559125694 = calcStakingParams(stake, amount, fromBase58String(assetIdString)) | |
656 | + | let call = $t02559125694._1 | |
657 | + | let addr = $t02559125694._2 | |
658 | + | let params = $t02559125694._3 | |
659 | + | let payments = $t02559125694._4 | |
670 | 660 | let inv = invoke(addr, call, params, payments) | |
671 | 661 | if ((inv == inv)) | |
672 | 662 | then nil |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "2.0.0" | |
5 | 5 | ||
6 | 6 | let kVersion = "version" | |
7 | 7 | ||
8 | 8 | let kActive = "active" | |
9 | 9 | ||
10 | 10 | let kAssetIdA = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let kAssetIdB = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let kBalanceA = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let kBalanceB = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let kShareAssetId = "share_asset_id" | |
19 | 19 | ||
20 | 20 | let kShareAssetSupply = "share_asset_supply" | |
21 | 21 | ||
22 | 22 | let kFee = "commission" | |
23 | 23 | ||
24 | 24 | let kFeeScaleDelimiter = "commission_scale_delimiter" | |
25 | 25 | ||
26 | 26 | let kInvariant = "invariant" | |
27 | 27 | ||
28 | 28 | let kCause = "shutdown_cause" | |
29 | 29 | ||
30 | 30 | let keyUSDNNSBTAddress = "staking_usdnnsbt_address" | |
31 | 31 | ||
32 | 32 | let keyEURNAddress = "staking_eurn_address" | |
33 | 33 | ||
34 | 34 | let keyAdminPubKey1 = "admin_pub_1" | |
35 | 35 | ||
36 | 36 | let keyAdminPubKey2 = "admin_pub_2" | |
37 | 37 | ||
38 | 38 | let keyAdminPubKey3 = "admin_pub_3" | |
39 | 39 | ||
40 | - | let USDNToWavesExchanger = Address(base58' | |
40 | + | let USDNToWavesExchanger = Address(base58'3PHaNgomBkrvEL2QnuJarQVJa71wjw9qiqG') | |
41 | 41 | ||
42 | - | let oracle = Address(base58' | |
42 | + | let oracle = Address(base58'3PEbqViERCoKnmcSULh6n2aiMvUdSQdCsom') | |
43 | 43 | ||
44 | 44 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
45 | 45 | case string: String => | |
46 | 46 | fromBase58String(string) | |
47 | 47 | case nothing => | |
48 | 48 | throw("Admin public key is empty") | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
53 | 53 | ||
54 | 54 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
55 | 55 | ||
56 | 56 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
57 | 57 | ||
58 | 58 | let admStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
59 | 59 | ||
60 | 60 | let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
61 | 61 | ||
62 | - | let govAddr = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
63 | - | ||
64 | - | let stakingAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
62 | + | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
65 | 63 | ||
66 | 64 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
67 | 65 | ||
68 | 66 | let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
69 | 67 | ||
70 | 68 | let stakingAssets = [toBase58String(USDN), toBase58String(EURN)] | |
71 | 69 | ||
72 | 70 | let stakingUSDNNSBTAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyUSDNNSBTAddress), "no usdn staking address"))) | |
73 | 71 | ||
74 | 72 | let stakingEURNAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyEURNAddress), "no usdn staking address"))) | |
75 | 73 | ||
76 | 74 | let isActive = getBooleanValue(this, kActive) | |
77 | 75 | ||
78 | 76 | let strAssetIdA = getStringValue(this, kAssetIdA) | |
79 | 77 | ||
80 | 78 | let strAssetIdB = getStringValue(this, kAssetIdB) | |
81 | 79 | ||
82 | 80 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
83 | 81 | then unit | |
84 | 82 | else fromBase58String(strAssetIdA) | |
85 | 83 | ||
86 | 84 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
87 | 85 | then unit | |
88 | 86 | else fromBase58String(strAssetIdB) | |
89 | 87 | ||
90 | 88 | let assetNameA = match assetIdA { | |
91 | 89 | case id: ByteVector => | |
92 | 90 | value(assetInfo(id)).name | |
93 | 91 | case waves: Unit => | |
94 | 92 | "WAVES" | |
95 | 93 | case _ => | |
96 | 94 | throw("Match error") | |
97 | 95 | } | |
98 | 96 | ||
99 | 97 | let assetNameB = match assetIdB { | |
100 | 98 | case id: ByteVector => | |
101 | 99 | value(assetInfo(id)).name | |
102 | 100 | case waves: Unit => | |
103 | 101 | "WAVES" | |
104 | 102 | case _ => | |
105 | 103 | throw("Match error") | |
106 | 104 | } | |
107 | 105 | ||
108 | 106 | let balanceA = getIntegerValue(this, kBalanceA) | |
109 | 107 | ||
110 | 108 | let balanceB = getIntegerValue(this, kBalanceB) | |
111 | 109 | ||
112 | 110 | let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId)) | |
113 | 111 | ||
114 | 112 | let shareAssetSupply = getIntegerValue(this, kShareAssetSupply) | |
115 | 113 | ||
116 | 114 | let invariant = getIntegerValue(this, kInvariant) | |
117 | 115 | ||
118 | 116 | let fee = 500 | |
119 | 117 | ||
120 | 118 | let feeGovernance = 200 | |
121 | 119 | ||
122 | 120 | let feeScale6 = 1000000 | |
123 | 121 | ||
124 | 122 | let scale3 = 1000 | |
125 | 123 | ||
126 | 124 | let scale8 = 100000000 | |
127 | 125 | ||
128 | 126 | let scale12 = 1000000000000 | |
129 | 127 | ||
130 | 128 | let slippageScale3 = 1000 | |
131 | 129 | ||
132 | 130 | let digits8 = 8 | |
133 | 131 | ||
134 | 132 | let dAppThreshold = 50 | |
135 | 133 | ||
136 | 134 | let dAppThresholdScale2 = 100 | |
137 | 135 | ||
138 | 136 | let exchangeRatioLimitMin = 90000000 | |
139 | 137 | ||
140 | 138 | let exchangeRatioLimitMax = 110000000 | |
141 | 139 | ||
142 | 140 | let alpha = 50 | |
143 | 141 | ||
144 | 142 | let alphaDigits = 2 | |
145 | 143 | ||
146 | 144 | let beta = 46000000 | |
147 | 145 | ||
148 | 146 | func accountBalance (assetId) = match assetId { | |
149 | 147 | case id: ByteVector => | |
150 | 148 | assetBalance(this, id) | |
151 | 149 | case waves: Unit => | |
152 | 150 | wavesBalance(this).available | |
153 | 151 | case _ => | |
154 | 152 | throw("Match error") | |
155 | 153 | } | |
156 | 154 | ||
157 | 155 | ||
158 | 156 | func stakedAmount (assetId) = { | |
159 | 157 | let stakedAmountCalculated = match assetId { | |
160 | 158 | case aId: ByteVector => | |
161 | 159 | if ((aId == USDN)) | |
162 | 160 | then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
163 | 161 | else if ((aId == EURN)) | |
164 | 162 | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this))) | |
165 | 163 | else 0 | |
166 | 164 | case _: Unit => | |
167 | 165 | 0 | |
168 | 166 | case _ => | |
169 | 167 | throw("Match error") | |
170 | 168 | } | |
171 | 169 | match stakedAmountCalculated { | |
172 | 170 | case i: Int => | |
173 | 171 | i | |
174 | 172 | case _ => | |
175 | 173 | 0 | |
176 | 174 | } | |
177 | 175 | } | |
178 | 176 | ||
179 | 177 | ||
180 | 178 | let stakedAmountA = stakedAmount(assetIdA) | |
181 | 179 | ||
182 | 180 | let stakedAmountB = stakedAmount(assetIdB) | |
183 | 181 | ||
184 | 182 | let availableBalanceA = (balanceA - stakedAmountA) | |
185 | 183 | ||
186 | 184 | let availableBalanceB = (balanceB - stakedAmountB) | |
187 | 185 | ||
188 | 186 | let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA) | |
189 | 187 | ||
190 | 188 | let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB) | |
191 | 189 | ||
192 | 190 | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
193 | 191 | then (accountBalanceWithStakedB >= balanceB) | |
194 | 192 | else false | |
195 | 193 | ||
196 | 194 | func skewness (x,y) = (((fraction(scale12, x, y) + fraction(scale12, y, x)) / 2) / 10000) | |
197 | 195 | ||
198 | 196 | ||
199 | 197 | func invariantCalc (x,y) = { | |
200 | 198 | let sk = skewness(x, y) | |
201 | 199 | (fraction((x + y), scale8, pow(sk, digits8, alpha, alphaDigits, digits8, CEILING)) + (2 * fraction(pow(fraction(x, y, scale8), 0, 5, 1, (digits8 / 2), DOWN), pow((sk - beta), digits8, alpha, alphaDigits, digits8, DOWN), scale8))) | |
202 | 200 | } | |
203 | 201 | ||
204 | 202 | ||
205 | 203 | func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = { | |
206 | 204 | let slippageValue = (scale8 - ((scale8 * 1) / 10000000)) | |
207 | 205 | let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount) | |
208 | 206 | let x = (balanceA + tokenReceiveAmount) | |
209 | 207 | let y = (balanceB + tokenReceiveAmount) | |
210 | 208 | let invariantNew = if ((tokenId == assetIdA)) | |
211 | 209 | then invariantCalc(x, (balanceB - amountToSendEstimated)) | |
212 | 210 | else if ((tokenId == assetIdB)) | |
213 | 211 | then invariantCalc((balanceA - amountToSendEstimated), y) | |
214 | 212 | else throw("Wrong asset in payment") | |
215 | 213 | let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew) | |
216 | 214 | func getStepAmount (acc,step) = if ((acc == -1)) | |
217 | 215 | then { | |
218 | 216 | let amountToSend = (amountToSendEstimated - ((step * deltaBetweenMaxAndMinSendValue) / 5)) | |
219 | 217 | let stepInvariant = if ((tokenId == assetIdA)) | |
220 | 218 | then invariantCalc(x, (balanceB - amountToSend)) | |
221 | 219 | else invariantCalc((balanceA - amountToSend), y) | |
222 | 220 | if ((stepInvariant > invariant)) | |
223 | 221 | then amountToSend | |
224 | 222 | else -1 | |
225 | 223 | } | |
226 | 224 | else acc | |
227 | 225 | ||
228 | 226 | let stepAmount = { | |
229 | 227 | let $l = [1, 2, 3, 4, 5] | |
230 | 228 | let $s = size($l) | |
231 | 229 | let $acc0 = -1 | |
232 | 230 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
233 | 231 | then $a | |
234 | 232 | else getStepAmount($a, $l[$i]) | |
235 | 233 | ||
236 | 234 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
237 | 235 | then $a | |
238 | 236 | else throw("List size exceeds 5") | |
239 | 237 | ||
240 | 238 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
241 | 239 | } | |
242 | 240 | if ((0 > stepAmount)) | |
243 | 241 | then throw("something went wrong while working with amountToSend") | |
244 | 242 | else if (if ((invariantEstimatedRatio > slippageValue)) | |
245 | 243 | then (invariantNew > invariant) | |
246 | 244 | else false) | |
247 | 245 | then amountToSendEstimated | |
248 | 246 | else stepAmount | |
249 | 247 | } | |
250 | 248 | ||
251 | 249 | ||
252 | 250 | func getAssetInfo (assetId) = match assetId { | |
253 | 251 | case id: ByteVector => | |
254 | 252 | let stringId = toBase58String(id) | |
255 | 253 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
256 | 254 | $Tuple3(stringId, info.name, info.decimals) | |
257 | 255 | case waves: Unit => | |
258 | 256 | $Tuple3("WAVES", "WAVES", 8) | |
259 | 257 | case _ => | |
260 | 258 | throw("Match error") | |
261 | 259 | } | |
262 | 260 | ||
263 | 261 | ||
264 | 262 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
265 | 263 | ||
266 | 264 | ||
267 | 265 | func throwIsActive () = throw("DApp is already active") | |
268 | 266 | ||
269 | 267 | ||
270 | 268 | func throwIsInactive () = throw("DApp is inactive at this moment") | |
271 | 269 | ||
272 | 270 | ||
273 | 271 | func throwOnlyAdmin () = throw("Only admin can call this function") | |
274 | 272 | ||
275 | 273 | ||
276 | 274 | func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
277 | 275 | ||
278 | 276 | ||
279 | 277 | func throwThreshold (threshold,amountA,amountB) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(threshold)) + ": ") + toString(amountA)) + " ") + assetNameA) + ", ") + toString(amountB)) + " ") + assetNameB)) | |
280 | 278 | ||
281 | 279 | ||
282 | 280 | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
283 | 281 | ||
284 | 282 | ||
285 | 283 | func calcStakingFuncAndAddres (stake,assetId) = if (stake) | |
286 | 284 | then if ((assetId == USDN)) | |
287 | 285 | then $Tuple2("lockNeutrino", stakingUSDNNSBTAddress) | |
288 | 286 | else $Tuple2("startStaking", stakingEURNAddress) | |
289 | 287 | else if ((assetId == USDN)) | |
290 | 288 | then $Tuple2("unlockNeutrino", stakingUSDNNSBTAddress) | |
291 | 289 | else $Tuple2("stopStaking", stakingEURNAddress) | |
292 | 290 | ||
293 | 291 | ||
294 | 292 | func calcStakingParams (stake,amount,assetId) = if (stake) | |
295 | 293 | then { | |
296 | - | let $ | |
297 | - | let call = $ | |
298 | - | let stakingAddr = $ | |
294 | + | let $t087598825 = calcStakingFuncAndAddres(stake, assetId) | |
295 | + | let call = $t087598825._1 | |
296 | + | let stakingAddr = $t087598825._2 | |
299 | 297 | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
300 | 298 | } | |
301 | 299 | else { | |
302 | - | let $ | |
303 | - | let call = $ | |
304 | - | let stakingAddr = $ | |
300 | + | let $t089118977 = calcStakingFuncAndAddres(stake, assetId) | |
301 | + | let call = $t089118977._1 | |
302 | + | let stakingAddr = $t089118977._2 | |
305 | 303 | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
306 | 304 | } | |
307 | 305 | ||
308 | 306 | ||
309 | 307 | @Callable(i) | |
310 | 308 | func init () = { | |
311 | - | let $ | |
312 | - | let pmtAmountA = $ | |
313 | - | let pmtAssetIdA = $ | |
314 | - | let $ | |
315 | - | let pmtAmountB = $ | |
316 | - | let pmtAssetIdB = $ | |
317 | - | let $ | |
318 | - | let pmtStrAssetIdA = $ | |
319 | - | let pmtAssetNameA = $ | |
320 | - | let pmtDecimalsA = $ | |
321 | - | let $ | |
322 | - | let pmtStrAssetIdB = $ | |
323 | - | let pmtAssetNameB = $ | |
324 | - | let pmtDecimalsB = $ | |
309 | + | let $t090829159 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
310 | + | let pmtAmountA = $t090829159._1 | |
311 | + | let pmtAssetIdA = $t090829159._2 | |
312 | + | let $t091649241 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
313 | + | let pmtAmountB = $t091649241._1 | |
314 | + | let pmtAssetIdB = $t091649241._2 | |
315 | + | let $t092469323 = getAssetInfo(pmtAssetIdA) | |
316 | + | let pmtStrAssetIdA = $t092469323._1 | |
317 | + | let pmtAssetNameA = $t092469323._2 | |
318 | + | let pmtDecimalsA = $t092469323._3 | |
319 | + | let $t093289405 = getAssetInfo(pmtAssetIdB) | |
320 | + | let pmtStrAssetIdB = $t093289405._1 | |
321 | + | let pmtAssetNameB = $t093289405._2 | |
322 | + | let pmtDecimalsB = $t093289405._3 | |
325 | 323 | if (isDefined(getBoolean(this, kActive))) | |
326 | 324 | then throwIsActive() | |
327 | 325 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
328 | 326 | then throw("Assets must be different") | |
329 | 327 | else { | |
330 | 328 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
331 | 329 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
332 | 330 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
333 | 331 | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
334 | 332 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
335 | 333 | let shareIssueId = calculateAssetId(shareIssue) | |
336 | 334 | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
337 | 335 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
338 | 336 | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
339 | 337 | else 0 | |
340 | 338 | if ((stake1 == stake1)) | |
341 | 339 | then { | |
342 | 340 | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
343 | 341 | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
344 | 342 | else 0 | |
345 | 343 | if ((stake2 == stake2)) | |
346 | 344 | then [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, fee), IntegerEntry(kFeeScaleDelimiter, feeScale6), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] | |
347 | 345 | else throw("Strict value is not equal to itself.") | |
348 | 346 | } | |
349 | 347 | else throw("Strict value is not equal to itself.") | |
350 | 348 | } | |
351 | 349 | } | |
352 | 350 | ||
353 | 351 | ||
354 | 352 | ||
355 | 353 | @Callable(i) | |
356 | 354 | func replenishWithTwoTokens (slippageTolerance) = { | |
357 | 355 | let pmtAssetIdA = i.payments[0].assetId | |
358 | 356 | let pmtAssetIdB = i.payments[1].assetId | |
359 | 357 | let pmtAmountA = i.payments[0].amount | |
360 | 358 | let pmtAmountB = i.payments[1].amount | |
361 | - | let $ | |
362 | - | let pmtStrAssetIdA = $ | |
363 | - | let pmtAssetNameA = $ | |
364 | - | let pmtDecimalsA = $ | |
365 | - | let $ | |
366 | - | let pmtStrAssetIdB = $ | |
367 | - | let pmtAssetNameB = $ | |
368 | - | let pmtDecimalsB = $ | |
359 | + | let $t01192111998 = getAssetInfo(pmtAssetIdA) | |
360 | + | let pmtStrAssetIdA = $t01192111998._1 | |
361 | + | let pmtAssetNameA = $t01192111998._2 | |
362 | + | let pmtDecimalsA = $t01192111998._3 | |
363 | + | let $t01200312197 = getAssetInfo(pmtAssetIdB) | |
364 | + | let pmtStrAssetIdB = $t01200312197._1 | |
365 | + | let pmtAssetNameB = $t01200312197._2 | |
366 | + | let pmtDecimalsB = $t01200312197._3 | |
369 | 367 | let tokenRatio = fraction(fraction(scale8, balanceA, pmtAmountA), scale3, fraction(scale8, balanceB, pmtAmountB)) | |
370 | 368 | let ratioShareTokensInA = fraction(scale8, pmtAmountA, balanceA) | |
371 | 369 | let ratioShareTokensInB = fraction(scale8, pmtAmountB, balanceB) | |
372 | 370 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
373 | 371 | let invariantCalculated = invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB)) | |
374 | 372 | if (!(isActive)) | |
375 | 373 | then throwIsInactive() | |
376 | 374 | else if (if ((0 > slippageTolerance)) | |
377 | 375 | then true | |
378 | 376 | else (slippageTolerance > 10)) | |
379 | 377 | then throw("Slippage tolerance must be <= 1%") | |
380 | 378 | else if ((size(i.payments) != 2)) | |
381 | 379 | then throw("Two attached assets expected") | |
382 | 380 | else if (if ((pmtAssetIdA != assetIdA)) | |
383 | 381 | then true | |
384 | 382 | else (pmtAssetIdB != assetIdB)) | |
385 | 383 | then throwAssets() | |
386 | 384 | else if (if ((((scale3 * (slippageScale3 - slippageTolerance)) / slippageScale3) > tokenRatio)) | |
387 | 385 | then true | |
388 | 386 | else (tokenRatio > ((scale3 * (slippageScale3 + slippageTolerance)) / slippageScale3))) | |
389 | 387 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
390 | 388 | else if ((shareTokenToPayAmount == 0)) | |
391 | 389 | then throw("Too small amount to replenish") | |
392 | 390 | else if (!(hasEnoughBalance)) | |
393 | 391 | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
394 | 392 | else { | |
395 | 393 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
396 | 394 | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
397 | 395 | else 0 | |
398 | 396 | if ((stake1 == stake1)) | |
399 | 397 | then { | |
400 | 398 | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
401 | 399 | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
402 | 400 | else 0 | |
403 | 401 | if ((stake2 == stake2)) | |
404 | 402 | then [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalculated), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
405 | 403 | else throw("Strict value is not equal to itself.") | |
406 | 404 | } | |
407 | 405 | else throw("Strict value is not equal to itself.") | |
408 | 406 | } | |
409 | 407 | } | |
410 | 408 | ||
411 | 409 | ||
412 | 410 | ||
413 | 411 | @Callable(i) | |
414 | 412 | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = { | |
415 | - | let $ | |
416 | - | let pmtAmount = $ | |
417 | - | let pmtAssetId = $ | |
418 | - | let $ | |
419 | - | let pmtStrAssetId = $ | |
420 | - | let pmtAssetName = $ | |
421 | - | let pmtDecimals = $ | |
413 | + | let $t01449614571 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
414 | + | let pmtAmount = $t01449614571._1 | |
415 | + | let pmtAssetId = $t01449614571._2 | |
416 | + | let $t01457614649 = getAssetInfo(pmtAssetId) | |
417 | + | let pmtStrAssetId = $t01457614649._1 | |
418 | + | let pmtAssetName = $t01457614649._2 | |
419 | + | let pmtDecimals = $t01457614649._3 | |
422 | 420 | let pmtMinThreshold = 5000000 | |
423 | 421 | let thresholdValueForMinTolerance = 50000000 | |
424 | 422 | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
425 | 423 | then 100000 | |
426 | 424 | else 1 | |
427 | 425 | let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000)) | |
428 | 426 | let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000)) | |
429 | 427 | let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000)) | |
430 | 428 | if (!(isActive)) | |
431 | 429 | then throwIsInactive() | |
432 | 430 | else if ((pmtMinThreshold > pmtAmount)) | |
433 | 431 | then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens")) | |
434 | 432 | else if ((size(i.payments) != 1)) | |
435 | 433 | then throw("One attached payment expected") | |
436 | 434 | else if (!(hasEnoughBalance)) | |
437 | 435 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
438 | 436 | else if (if ((pmtAssetId != assetIdA)) | |
439 | 437 | then (pmtAssetId != assetIdB) | |
440 | 438 | else false) | |
441 | 439 | then throwAssets() | |
442 | 440 | else { | |
443 | - | let $ | |
441 | + | let $t01566116426 = if ((pmtAssetId == assetIdA)) | |
444 | 442 | then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB) | |
445 | 443 | else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount)) | |
446 | - | let virtualReplenishA = $ | |
447 | - | let virtualReplenishB = $ | |
448 | - | let balanceAfterSwapA = $ | |
449 | - | let balanceAfterSwapB = $ | |
450 | - | let invariantCalculated = $ | |
451 | - | let newBalanceA = $ | |
452 | - | let newBalanceB = $ | |
444 | + | let virtualReplenishA = $t01566116426._1 | |
445 | + | let virtualReplenishB = $t01566116426._2 | |
446 | + | let balanceAfterSwapA = $t01566116426._3 | |
447 | + | let balanceAfterSwapB = $t01566116426._4 | |
448 | + | let invariantCalculated = $t01566116426._5 | |
449 | + | let newBalanceA = $t01566116426._6 | |
450 | + | let newBalanceB = $t01566116426._7 | |
453 | 451 | let newBalanceEntry = if ((pmtAssetId == assetIdA)) | |
454 | 452 | then IntegerEntry(kBalanceA, newBalanceA) | |
455 | 453 | else IntegerEntry(kBalanceB, newBalanceB) | |
456 | 454 | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
457 | 455 | let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew) | |
458 | 456 | let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB)) | |
459 | 457 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
460 | 458 | if (if ((slippageValueMinForSwap >= invariantEstimatedRatio)) | |
461 | 459 | then true | |
462 | 460 | else (invariant > invariantNew)) | |
463 | 461 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
464 | 462 | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
465 | 463 | then true | |
466 | 464 | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
467 | 465 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
468 | 466 | else if (if ((dAppThresholdAmount > newBalanceA)) | |
469 | 467 | then true | |
470 | 468 | else (dAppThresholdAmount > newBalanceB)) | |
471 | 469 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
472 | 470 | else { | |
473 | 471 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetId)) | |
474 | 472 | then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil) | |
475 | 473 | else 0 | |
476 | 474 | if ((stake1 == stake1)) | |
477 | 475 | then { | |
478 | 476 | let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA) | |
479 | 477 | let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB) | |
480 | 478 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
481 | 479 | [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), newBalanceEntry, IntegerEntry(kInvariant, invariantCalculated)] | |
482 | 480 | } | |
483 | 481 | else throw("Strict value is not equal to itself.") | |
484 | 482 | } | |
485 | 483 | } | |
486 | 484 | } | |
487 | 485 | ||
488 | 486 | ||
489 | 487 | ||
490 | 488 | @Callable(i) | |
491 | 489 | func withdraw () = { | |
492 | - | let $ | |
493 | - | let pmtAmount = $ | |
494 | - | let pmtAssetId = $ | |
490 | + | let $t01865218795 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
491 | + | let pmtAmount = $t01865218795._1 | |
492 | + | let pmtAssetId = $t01865218795._2 | |
495 | 493 | let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply) | |
496 | 494 | let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply) | |
497 | 495 | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
498 | 496 | if (!(isActive)) | |
499 | 497 | then throwIsInactive() | |
500 | 498 | else if ((size(i.payments) != 1)) | |
501 | 499 | then throw("One attached payment expected") | |
502 | 500 | else if ((pmtAssetId != shareAssetId)) | |
503 | 501 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
504 | 502 | else if (!(hasEnoughBalance)) | |
505 | 503 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
506 | 504 | else { | |
507 | 505 | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
508 | 506 | then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
509 | 507 | else 0 | |
510 | 508 | if ((stake1 == stake1)) | |
511 | 509 | then { | |
512 | 510 | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
513 | 511 | then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
514 | 512 | else 0 | |
515 | 513 | if ((stake2 == stake2)) | |
516 | 514 | then [IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - pmtAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)] | |
517 | 515 | else throw("Strict value is not equal to itself.") | |
518 | 516 | } | |
519 | 517 | else throw("Strict value is not equal to itself.") | |
520 | 518 | } | |
521 | 519 | } | |
522 | 520 | ||
523 | 521 | ||
524 | 522 | ||
525 | 523 | @Callable(i) | |
526 | 524 | func exchange (estimatedAmountToReceive,minAmountToReceive) = { | |
527 | - | let $ | |
528 | - | let pmtAmount = $ | |
529 | - | let pmtAssetId = $ | |
525 | + | let $t02030920384 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
526 | + | let pmtAmount = $t02030920384._1 | |
527 | + | let pmtAssetId = $t02030920384._2 | |
530 | 528 | if (!(isActive)) | |
531 | 529 | then throwIsInactive() | |
532 | 530 | else if ((0 >= estimatedAmountToReceive)) | |
533 | 531 | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
534 | 532 | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
535 | 533 | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive))) | |
536 | 534 | else if ((size(i.payments) != 1)) | |
537 | 535 | then throw("One attached payment expected") | |
538 | 536 | else if (!(hasEnoughBalance)) | |
539 | 537 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
540 | 538 | else if (if ((pmtAssetId != assetIdA)) | |
541 | 539 | then (pmtAssetId != assetIdB) | |
542 | 540 | else false) | |
543 | 541 | then throwAssets() | |
544 | 542 | else if ((10000000 > pmtAmount)) | |
545 | 543 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
546 | 544 | else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount))) | |
547 | 545 | then true | |
548 | 546 | else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax)) | |
549 | 547 | then throw("Incorrect args and pmt ratio") | |
550 | 548 | else { | |
551 | 549 | let sendAssetId = if ((pmtAssetId == assetIdA)) | |
552 | 550 | then assetIdB | |
553 | 551 | else assetIdA | |
554 | 552 | let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId) | |
555 | 553 | let governanceReward = fraction(amount, feeGovernance, feeScale6) | |
556 | 554 | let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6) | |
557 | - | let $ | |
555 | + | let $t02180622068 = if ((pmtAssetId == assetIdA)) | |
558 | 556 | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward)) | |
559 | 557 | else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount)) | |
560 | - | let newBalanceA = $ | |
561 | - | let newBalanceB = $ | |
558 | + | let newBalanceA = $t02180622068._1 | |
559 | + | let newBalanceB = $t02180622068._2 | |
562 | 560 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
563 | 561 | if (if ((dAppThresholdAmount > newBalanceA)) | |
564 | 562 | then true | |
565 | 563 | else (dAppThresholdAmount > newBalanceB)) | |
566 | 564 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
567 | 565 | else { | |
568 | - | let $ | |
569 | - | let pmtStrAssetId = $ | |
570 | - | let pmtAssetName = $ | |
571 | - | let pmtDecimals = $ | |
572 | - | let $ | |
573 | - | let sendStrAssetId = $ | |
574 | - | let sendAssetName = $ | |
575 | - | let sendDecimals = $ | |
566 | + | let $t02236622439 = getAssetInfo(pmtAssetId) | |
567 | + | let pmtStrAssetId = $t02236622439._1 | |
568 | + | let pmtAssetName = $t02236622439._2 | |
569 | + | let pmtDecimals = $t02236622439._3 | |
570 | + | let $t02245222529 = getAssetInfo(sendAssetId) | |
571 | + | let sendStrAssetId = $t02245222529._1 | |
572 | + | let sendAssetName = $t02245222529._2 | |
573 | + | let sendDecimals = $t02245222529._3 | |
576 | 574 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetId)) | |
577 | 575 | then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil) | |
578 | 576 | else 0 | |
579 | 577 | if ((stake1 == stake1)) | |
580 | 578 | then { | |
581 | 579 | let stake2 = if (containsElement(stakingAssets, sendStrAssetId)) | |
582 | 580 | then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil) | |
583 | 581 | else 0 | |
584 | 582 | if ((stake2 == stake2)) | |
585 | - | then [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer( | |
583 | + | then [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(walletAddress, governanceReward, sendAssetId)] | |
586 | 584 | else throw("Strict value is not equal to itself.") | |
587 | 585 | } | |
588 | 586 | else throw("Strict value is not equal to itself.") | |
589 | 587 | } | |
590 | 588 | } | |
591 | 589 | } | |
592 | 590 | ||
593 | 591 | ||
594 | 592 | ||
595 | 593 | @Callable(i) | |
596 | 594 | func shutdown () = if (!(isActive)) | |
597 | 595 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
598 | 596 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, admStartStop], i.callerPublicKey))) | |
599 | 597 | then throwOnlyAdmin() | |
600 | 598 | else suspend("Paused by admin") | |
601 | 599 | ||
602 | 600 | ||
603 | 601 | ||
604 | 602 | @Callable(i) | |
605 | 603 | func activate () = if (isActive) | |
606 | 604 | then throwIsActive() | |
607 | 605 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, admStartStop], i.callerPublicKey))) | |
608 | 606 | then throwOnlyAdmin() | |
609 | 607 | else [BooleanEntry(kActive, true), DeleteEntry(kCause)] | |
610 | 608 | ||
611 | 609 | ||
612 | 610 | ||
613 | 611 | @Callable(i) | |
614 | - | func takeIntoAccountExtraFunds (amountLeave) = { | |
615 | - | let uncountableA = (accountBalanceWithStakedA - balanceA) | |
616 | - | let uncountableB = (accountBalanceWithStakedB - balanceB) | |
617 | - | let amountEnrollA = (uncountableA - (if ((assetIdA == unit)) | |
618 | - | then amountLeave | |
619 | - | else 0)) | |
620 | - | let amountEnrollB = (uncountableB - (if ((assetIdB == unit)) | |
621 | - | then amountLeave | |
622 | - | else 0)) | |
612 | + | func takeIntoAccountExtraFunds () = { | |
613 | + | let amountEnrollA = (accountBalanceWithStakedA - balanceA) | |
614 | + | let amountEnrollB = (accountBalanceWithStakedB - balanceB) | |
623 | 615 | let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB)) | |
624 | 616 | if (!(isActive)) | |
625 | 617 | then throwIsInactive() | |
626 | - | else if ((i.caller != this)) | |
627 | - | then throwOnlyAdmin() | |
628 | - | else if ((0 > amountLeave)) | |
629 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
630 | - | else if (if ((0 > uncountableA)) | |
631 | - | then true | |
632 | - | else (0 > uncountableB)) | |
633 | - | then suspend("Enroll amount negative") | |
634 | - | else if (if ((0 > amountEnrollA)) | |
635 | - | then true | |
636 | - | else (0 > amountEnrollB)) | |
637 | - | then throw("Too large amountLeave") | |
638 | - | else { | |
639 | - | let stake1 = if (if (containsElement(stakingAssets, strAssetIdA)) | |
640 | - | then (amountEnrollA > 0) | |
641 | - | else false) | |
642 | - | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
643 | - | else 0 | |
644 | - | if ((stake1 == stake1)) | |
645 | - | then { | |
646 | - | let stake2 = if (if (containsElement(stakingAssets, strAssetIdB)) | |
647 | - | then (amountEnrollB > 0) | |
648 | - | else false) | |
649 | - | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
650 | - | else 0 | |
651 | - | if ((stake2 == stake2)) | |
652 | - | then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
653 | - | else throw("Strict value is not equal to itself.") | |
654 | - | } | |
655 | - | else throw("Strict value is not equal to itself.") | |
656 | - | } | |
618 | + | else if ((i.caller != walletAddress)) | |
619 | + | then throw("Only the wallet can call this function") | |
620 | + | else if (if ((0 > amountEnrollA)) | |
621 | + | then true | |
622 | + | else (0 > amountEnrollB)) | |
623 | + | then suspend("Enroll amount negative") | |
624 | + | else if (if ((amountEnrollA == 0)) | |
625 | + | then (amountEnrollB == 0) | |
626 | + | else false) | |
627 | + | then throw("No money to take") | |
628 | + | else { | |
629 | + | let stake1 = if (if (containsElement(stakingAssets, strAssetIdA)) | |
630 | + | then (amountEnrollA > 0) | |
631 | + | else false) | |
632 | + | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
633 | + | else 0 | |
634 | + | if ((stake1 == stake1)) | |
635 | + | then { | |
636 | + | let stake2 = if (if (containsElement(stakingAssets, strAssetIdB)) | |
637 | + | then (amountEnrollB > 0) | |
638 | + | else false) | |
639 | + | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
640 | + | else 0 | |
641 | + | if ((stake2 == stake2)) | |
642 | + | then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
643 | + | else throw("Strict value is not equal to itself.") | |
644 | + | } | |
645 | + | else throw("Strict value is not equal to itself.") | |
646 | + | } | |
657 | 647 | } | |
658 | 648 | ||
659 | 649 | ||
660 | 650 | ||
661 | 651 | @Callable(i) | |
662 | 652 | func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this)) | |
663 | 653 | then throw("Only contract itself can invoke this function") | |
664 | 654 | else { | |
665 | - | let $ | |
666 | - | let call = $ | |
667 | - | let addr = $ | |
668 | - | let params = $ | |
669 | - | let payments = $ | |
655 | + | let $t02559125694 = calcStakingParams(stake, amount, fromBase58String(assetIdString)) | |
656 | + | let call = $t02559125694._1 | |
657 | + | let addr = $t02559125694._2 | |
658 | + | let params = $t02559125694._3 | |
659 | + | let payments = $t02559125694._4 | |
670 | 660 | let inv = invoke(addr, call, params, payments) | |
671 | 661 | if ((inv == inv)) | |
672 | 662 | then nil | |
673 | 663 | else throw("Strict value is not equal to itself.") | |
674 | 664 | } | |
675 | 665 | ||
676 | 666 | ||
677 | 667 | ||
678 | 668 | @Callable(i) | |
679 | 669 | func stakeAll () = if (!(isActive)) | |
680 | 670 | then throw("DApp is inactive at this moment") | |
681 | 671 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, admStartStop], i.callerPublicKey))) | |
682 | 672 | then throw("Only admin can call this function") | |
683 | 673 | else { | |
684 | 674 | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
685 | 675 | then { | |
686 | 676 | let amountA = (balanceA - stakedAmountA) | |
687 | 677 | if ((amountA > 0)) | |
688 | 678 | then invoke(this, "stakeUnstake", [true, amountA, strAssetIdA], nil) | |
689 | 679 | else 0 | |
690 | 680 | } | |
691 | 681 | else 0 | |
692 | 682 | if ((stake1 == stake1)) | |
693 | 683 | then { | |
694 | 684 | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
695 | 685 | then { | |
696 | 686 | let amountB = (balanceB - stakedAmountB) | |
697 | 687 | if ((amountB > 0)) | |
698 | 688 | then invoke(this, "stakeUnstake", [true, amountB, strAssetIdB], nil) | |
699 | 689 | else 0 | |
700 | 690 | } | |
701 | 691 | else 0 | |
702 | 692 | if ((stake2 == stake2)) | |
703 | 693 | then nil | |
704 | 694 | else throw("Strict value is not equal to itself.") | |
705 | 695 | } | |
706 | 696 | else throw("Strict value is not equal to itself.") | |
707 | 697 | } | |
708 | 698 | ||
709 | 699 | ||
710 | 700 | @Verifier(tx) | |
711 | 701 | func verify () = { | |
712 | 702 | let multiSignedByAdmins = { | |
713 | 703 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
714 | 704 | then 1 | |
715 | 705 | else 0 | |
716 | 706 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
717 | 707 | then 1 | |
718 | 708 | else 0 | |
719 | 709 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
720 | 710 | then 1 | |
721 | 711 | else 0 | |
722 | 712 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
723 | 713 | } | |
724 | 714 | match tx { | |
725 | 715 | case inv: InvokeScriptTransaction => | |
726 | 716 | let callTakeIntoAccount = if ((inv.dApp == this)) | |
727 | 717 | then (inv.function == "takeIntoAccountExtraFunds") | |
728 | 718 | else false | |
729 | 719 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
730 | 720 | then true | |
731 | 721 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
732 | 722 | then true | |
733 | 723 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
734 | 724 | then true | |
735 | 725 | else sigVerify(tx.bodyBytes, tx.proofs[0], admStaking) | |
736 | 726 | if (if (callTakeIntoAccount) | |
737 | 727 | then signedByAdmin | |
738 | 728 | else false) | |
739 | 729 | then true | |
740 | 730 | else multiSignedByAdmins | |
741 | 731 | case _ => | |
742 | 732 | multiSignedByAdmins | |
743 | 733 | } | |
744 | 734 | } | |
745 | 735 |
github/deemru/w8io/026f985 104.66 ms ◑