OriginProtocol / OriginProtocol/origin-dollar

Recovery from asset peg loss

Open
#59 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.