OriginProtocol / OriginProtocol/origin-dollar

OETH allocations with Oracle

Open
#1,742 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement OETH
Dominant language
Solidity
Stars
152
Forks
115
Avg merge
3d 20h
Merged PRs (30d)
17

Description

When depositing / withdrawing funds from Balancer pools we are at risk of Oracle prices being stale - since a lot of the ETH based oracles have a 24 hour heartbeat and price update trigger of 2%. That leaves too much of a price fluctuation that could cause serious loss of funds.

Build a checking system into the brownie allocation script to trigger if pool asset prices and Oracle prices diverge for more than 0.1% (TBD)

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

Locate the Brownie allocation script that handles Balancer pool deposits and withdrawals, then trace how pool asset prices and Oracle prices are obtained. Add a check for divergence beyond the agreed 0.1% threshold, and verify that the allocation flow triggers it when the prices differ beyond that limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
blockchain, fintech-quant, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.