Rari Vault Strategies
Simple (potentially composable) Strategies for earning yield on Rari Vaults.
Credits
- t11s, Jet Jadeja, and the whole Rari Capital team for their exceptional work.
- Georgios Konstantopoulos for the amazing dapptools-template resource.
Strategies
IdleStrategy.sol
: An Idle Strategy which generates no yield for a user's deposit.UniswapLP.sol
: Provides liquidity into a pool with the underlying and highest fees/liquidity ratio.CompoundLender.sol
: Lends the underlying to compound.
interfaces/
: Interfaces of external contracts Vaults and modules interact with.Strategy.sol
: Minimal interfaces for ERC20 and ETH compatible strategies.
Contributing
Install DappTools with the official installation guide.
Setup
git clone https://github.com/abigger87/vault-strategies.git
cd vault-strategies
make
Run Tests
dapp test
Measure Coverage
dapp test --coverage
Update Gas Snapshots
dapp snapshot
Kovan
Rari Capital VaultFactory at 0xc99a698dfB1eB38E0649e6d2d3462Bc2476dE0B4
Underlying Token RAI at 0x76b06a2f6df6f0514e7bec52a9afb3f603b477cd
Deployed Vault ad 0x58a4cc1f3c268af914c7f23fb1c7510c3033cbca
Deployed Rai Vault
Using our previously deployed vault as the underlying, deployed Vault at 0xf4e6b1e4f4605c9a43bfa67ba30045ff2a6966a8
Uniswap Liquidity pool
Deployed Strategy to Kovan running:
dapp create src/IdleStrategy.sol:IdleStrategy <ETH_FROM> 0x76b06a2f6df6f0514e7bec52a9afb3f603b477cd --verify
Then verified with:
dapp verify-contract ./src/IdleStrategy.sol:IdleStrategy <Deployed IdleStrategy Address> <ETH_FROM> 0x76b06a2f6df6f0514e7bec52a9afb3f603b477cd
Generate Pretty Visuals
We use surya to create contract diagrams.
Run yarn visualize
to generate an amalgamated contract visualization in the ./assets/
directory. Or use the below commands for each respective contract.