Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fee Swapper #587

Closed
jaybuidl opened this issue Feb 22, 2023 · 1 comment
Closed

Fee Swapper #587

jaybuidl opened this issue Feb 22, 2023 · 1 comment

Comments

@jaybuidl
Copy link
Member

jaybuidl commented Feb 22, 2023

Problem

We receive dispute fees in DAI on Gnosis chain, we want to get WETH because it's the base currency for the court v2. Not doing so would expose some participants to currency risk for the duration of the dispute resolution.

Short-term solution (this issue)

A naive fee swapper which hits a DEX for each transaction. It should expose a clear interface to allow the Fee Swapper implementation to be changed seamlessly later.

Mid-term solution (out-of-scope for this issue)

Let the Fee Swapper hold some working capital (say 1 WETH) so that a DEX doesn't need to be involved in every transactions. Over time, the contract will accumulate DAI and run out of WETH. The contract should allow anyone (permissionless) to call a rebalance function and hit the DEX.

image

Blocks #44

@jaybuidl
Copy link
Member Author

Abandonned in favor of a home chain-side payment of the fees in ERC20 and update of the rates via governance.
Follow-up on #44

@jaybuidl jaybuidl closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2023
@jaybuidl jaybuidl modified the milestone: testnet-2 Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants