Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 991 Bytes

README.md

File metadata and controls

49 lines (31 loc) · 991 Bytes

vaults

A vault seeking for yield.

Overview

How batched burning works

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 when enterBatchBurn 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.

Basic run

  1. Create and activate a virtualenv for the project (using Python 3.8):
python3.8 -m venv venv
source venv/bin/activate
  1. Install required packages:
pip install -r requirements.txt
  1. Build the project:
brownie compile
  1. Run tests
brownie test

Acknowledgements

  • Yearn
  • Rari Capital
  • Authors of EIP4626