Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stable swap audit #44

Open
wants to merge 50 commits into
base: main
Choose a base branch
from
Open

Stable swap audit #44

wants to merge 50 commits into from

Conversation

AOranov
Copy link
Collaborator

@AOranov AOranov commented May 31, 2024

List of changes:

  • Got rid of abs() in fees validations inside the contract;
  • Flag "ampl_coeff_is_editable" is added to add the ability to fix "A" forever;
  • Imbalanced deposit/redeem operations were eliminated (now they are allowed only in pool reserves proportions);
  • Invariant validation procedure is optimized;

AOranov and others added 20 commits July 15, 2024 17:19
* Balance Pool. Swap, Deposit, Redeem, DepositSingleAsset operations

* cleanup

* fix treasury validation

* Redeem & Swap for random weights and fees fixes.

* Fixes and looped test example fixed.

* DEV-7. Balance pool. Optimizations (#36)

* DEV-7. Balance pools. Deposit, Redeem balance orders contracts (#30)

* add daoBalanceMintPolicyValidator

* DEV-7. Balance pool: optimizations, redundant logic removed. ValidDelta bug fix (#39)

* Balance pool. Optimizations, redundant logic removed, validDelta bug fix

* update balanceFeeSwitch

* remove redundant variable  in ppow10

* Fix incorrect flow in deposit, redeem contracts

* Balance pool. New approach (#43)

* New approach for balance pools

* remove invariant

* fix balance contract

---------

Co-authored-by: Ilya <[email protected]>

---------

Co-authored-by: AOranov <[email protected]>
Co-authored-by: Alex Oranov <[email protected]>
Co-authored-by: Ilya <[email protected]>
* Update pool for t2t ops

* review cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants