Skip to content

Stable swap audit#44

Open
AOranov wants to merge 50 commits intomainfrom
stable-swap-audit
Open

Stable swap audit#44
AOranov wants to merge 50 commits intomainfrom
stable-swap-audit

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 <ilya.arcadich@gmail.com>

---------

Co-authored-by: AOranov <a.oranov@spectrumlabs.fi>
Co-authored-by: Alex Oranov <114924866+AOranov@users.noreply.github.com>
Co-authored-by: Ilya <ilya.arcadich@gmail.com>
* 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