ref-finance / ref-contracts

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

Feature mft as pool assets #60

Open marco-sundsk opened 2 years ago

marco-sundsk commented 2 years ago

This is kind of high-order pool feature that will be widely used especially in stable swap pool's lp-token.
The basic idea is to let lp-token can be the backend assets (one or 2 tokens in some token pair) of another swap pool.
To achieve that goal, we refactor following parts:

corresponding simulation tests are in ref-exchange/tests/test_high_order.rs