A vault seeking for yield.
Withdrawing from vaults
is achieved through batched burning of shares. The flow for a batched burning round is:
- Users deposits shares when they want to withdraw. (contract-wise, the
userBatchBurnReceipts
mapping is populated whenenterBatchBurn
is called). - Once enough deposits are done, an admin can call
execBatchBurn
to withdraw from strategies and burn the deposited shares. A snapshot of the current price per share will be done. - Users can now withdraw their underlying using
exitBatchBurn
.
- Create and activate a virtualenv for the project (using Python 3.8):
python3.8 -m venv venv
source venv/bin/activate
- Install required packages:
pip install -r requirements.txt
- Build the project:
brownie compile
- Run tests
brownie test
- Yearn
- Rari Capital
- Authors of EIP4626