OriginProtocol / OriginProtocol/origin-dollar
OIP-1 Pause Guardian
Nobody has claimed this yet.
- Dominant language
- Solidity
- Stars
- 152
- Forks
- 115
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 17
Description
There is often a window of 3-9 minutes between an attack contract deployment and the execution of the attack. If the contracts can be paused in this time, the funds can be saved.
Attacks are often first noticed by people external to the organization.
To pause currently requires:
- Someone to notice the exploit
- Find out how to contact us
- Actually contact someone
- Convince someone
- Initial origin responder has to contact another signer
- We have to create the pause transaction
- Second signer has to sign
This takes too long.
Instead we could create a contract that has one time use pause actions. After 12 hours OUSD can be unpaused unless the pause is confirmed by a multisig. These pause authorizations can then be distributed to external security researchers that are monitoring the blockchain. Then if they see an attack come through they can pause immediately in one step. This could cut the reaction time down to 2-3 minutes.
Even if this was only used internally, this would still be quiet the speed difference.
Extra thoughts
- Pause authorizations would have an expire time.
mapping(address =>uint256) - Pause authorization is zeroed on use
- Pause would be in three states: unpaused, temp-pause, confirmed pause
- Anyone can unpause when a temp-pause expires.
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
No files, tests, or entry points are named in the issue. Start by clarifying the contract design and reviewing the existing pause flow; done would mean implementing and testing temporary, confirmed, expiring, and single-use pause authorizations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100