ref-finance / ref-contracts

Smart contracts for Ref Finance
MIT License
96 stars 54 forks source link

stable swap #59

Closed marco-sundsk closed 2 years ago

marco-sundsk commented 2 years ago

introduce stable-swap pool into ref;

to know more about math logic, see ref-exchange/src/stable_swap/curve.md;

to know more about fee policy, see ref-exchange/src/stable_swap/fee_strategy.md;

to have a brief view about relevant interface, see ref-exchange/stable_swap.md;

for basic tests, see ref-exchange/src/stable_swap/mod.md::L682;

for simulation test, see ref-exchange/tests/test_stable_pool.rs;