OriginProtocol / OriginProtocol/origin-dollar
Recovery from asset peg loss
Open
Nobody has claimed this yet.
P2
question
- Dominant language
- Solidity
- Stars
- 152
- Forks
- 115
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 17
Description
We need a plan for what happens if one of the supported assets loses its peg temporarily and permanently.
- In the temporary case, we can wait for it to recover. Depending on the proportion of the asset it might have scary consequences for users balances. How do we communicate around that?
- For permanent peg loss, we need to deprecate the asset from the platform. I've stubbed out a deprecateAsset function with a rough idea of it doing the following:
- Prevent new deposits and withdrawals of that asset
- Remove it from all investment strategies
- Hold the deprecate asset in the Vault contract
- Governor intervention? I.e. a function allowing governor to withdraw any asset from the vault.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the stubbed deprecateAsset function and reading the existing deposit, withdrawal, investment strategy, Vault, and governor flows around supported assets. Define the temporary and permanent peg-loss behavior, communication expectations, and the required safeguards before determining the implementation and tests needed for completion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100