OriginProtocol / OriginProtocol/origin-dollar

User-Specified Redeem Output

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

Nobody has claimed this yet.

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

Description

Our current redeem function gives users a mix of stablecoins according to the exiting ratio of vault holdings. Most users would prefer to receive the entire amount in a specific stablecoin. While we don't want to risk the vault being drained, we could either tie into an AMM or implement a curve that prices each stablecoin based on its weight in the vault. This would add not only contract complexity but also UX complexity. This has been requested in the wild and is similar to the experience that users are accustomed to on Curve, Shell, etc. Once liquidity is sufficient on exchanges, this should be a less interesting feature since users will be able to sell directly for their preferred currencies whether or not they are stablecoins supported by our 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

The issue does not name files or tests. Start by locating the redeem function and the vault's stablecoin holdings and allocation logic; then compare the proposed AMM and weight-based pricing approaches, with completion requiring an agreed design that supports user-selected stablecoin output without risking the vault being drained.

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.