Skip to content

halo3mic/DcaVault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCA Vault [POC]

Warning! ⚠️ This is experimental code and should not be trused with real funds.

About

Dollar-cost-average(DCA) vault is a smart contract allowing multiple parties sharing execution of reccuring swaps at the oracle price.

How it works

  1. Users(makers) deposit funds

    • They set reccuring amount and amount of epochs swap will be spread over.
  2. Each new epoch reccuring amount from all users is unlocked for swapping

  3. Anyone can swap unlocked funds at the oracle price

  4. Makers can withdraw take-token without closing their position

  5. Makers can close their position prematurely

Tests

To run tests forge must be installed. Follow guide here.

Test the scenario

forge test --match-test testScenarioB

Contact

Twitter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published