Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peg Keeper Salvation #51

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

romanagureev
Copy link
Contributor

@romanagureev romanagureev commented Feb 14, 2024

What I did

Added a contract to buy out coins from PegKeeper (V1). Logic is presented in Salvation with corresponding script.
Used the scenario described in depeg.

buy_out

buy_out(_safe=True) is used to buy coins from PegKeeper without losses, meaning creating 0 arbitrage opportunities after operation. In this case exchanging of coin should be done afterwards if necessary.
buy_out(_safe=False) is used to exchange all coins to crvUSD immediately in the pool. This makes larger penalties from slippage, thence should be used with small amounts and extra precautions.

@Zarif011
Copy link

Access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants