OriginProtocol / OriginProtocol/origin-dollar

Dynamic Exit Fee

Open
#312 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Our current exit fee (set to 0.5%) is kind of a catch-all to prevent abuse of our vault contract, deter users from redeeming, and provide a potential revenue source that could increase the APY and/or accrue to governance token holders. In our recent discussion about removing oracles from the rebase calculation, @tomlinton proposed making the exit fee variable based on asset prices in a way that "makes it net-zero to exploit in case of peg loss".

Based on the currencies you are receiving for your OUSD, we use the oracles to calculate the exit fee and make the whole thing viewable so we can display the exit fee in real time without gas... We don't care about stablecoins deviating from their peg unless someone is redeeming, we can just assume they'll always return to 1.

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 with linked issue #92 and the vault contract's current 0.5% exit-fee implementation, then trace the oracle inputs used for redemption and rebase calculations. Confirm the desired pricing, peg-loss, gas-free view, and governance or APY behavior with maintainers; no implementation files or tests are named, so completion criteria remain to be specified.

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.