This repository was archived by the owner on Jan 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Profit Pools Spec [WIP]
Felix Feng edited this page Oct 17, 2019
·
4 revisions
- ProfitPool: Smart contract with a defined token pair and spread requirements. Lower spreads should result in more activity. Higher spreads means lower activity
- ProfitPoolFactory: Used to add ProfitPools of new spread requirements. Each profit pool factory is linked to a certain oracle. Arbitrary token pairs don't really matter
- tokenA
- tokenB
- spread
- AToBOracle
Sets the above
Deposits the specified pool token quantities of the specified quantity and generates a token based on the contribution.
Burns the representative token and withdraws the current available mix.
- Calls an external function smart contract that retrieves the quantity of tokens
- Validates that the required spread is made - based on the oraclePrice