⚠️ Deprecation notice: The Lido DAO stops maintaining the Anchor <> stETH integration. Minting and rewards distribution are discontinued. Withdrawals continue to work. More about here
This repo contains Ethereum contracts for integrating stETH as a collateral into the Anchor protocol in the form of bETH token. Currently it assumes the deployed Wormhole v2 bridge between Ethereum and Terra networks.
- This project uses Brownie development framework. Learn more about Brownie.
- Poetry dependency and packaging manager is used to bootstrap environment and keep the repo sane.
- Python >= 3.10, <3.11
- Pip >= 20.0
- Node >= 16.0
- yarn >= 1.22
Use the following command to install poetry:
pip install --user poetry==1.5.0
alternatively, you could proceed with pipx
:
pipx install poetry==1.5.0
Ensure that poetry bin path is added to your $PATH
env variable.
Usually it's $HOME/.local/bin
for most Unix-like systems.
poetry install
Notes: if you have some problems on poetry install
(too slow, or too long) try to clear cache:
poetry cache clear --all pypi
or try to update poetry
poetry self update 1.6
bEth
bETH token contractAnchorVault
a contract allowing to convert between stETH and bETH