Skip to content

lidofinance/anchor-collateral-steth

Repository files navigation

⚠️ Deprecation notice: The Lido DAO stops maintaining the Anchor <> stETH integration. Minting and rewards distribution are discontinued. Withdrawals continue to work. More about here

stETH as Anchor collateral

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.

🏁 Getting started

  • 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.

Prerequisites

  • Python >= 3.10, <3.11
  • Pip >= 20.0
  • Node >= 16.0
  • yarn >= 1.22

Step 1. Install Poetry

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

Step 2. Setup dependencies with poetry

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

Contracts

  • bEth bETH token contract
  • AnchorVault a contract allowing to convert between stETH and bETH

About

Ethereum contracts for integrating stETH as collateral into the Anchor protocol

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published