Warning!
⚠️ This is experimental code and should not be trused with real funds.
Dollar-cost-average(DCA) vault is a smart contract allowing multiple parties sharing execution of reccuring swaps at the oracle price.
-
Users(makers) deposit funds
- They set reccuring amount and amount of epochs swap will be spread over.
-
Each new epoch reccuring amount from all users is unlocked for swapping
-
Anyone can swap unlocked funds at the oracle price
-
Makers can withdraw take-token without closing their position
-
Makers can close their position prematurely
To run tests forge must be installed. Follow guide here.
forge test --match-test testScenarioB