Skip to content
New issue

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

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

Already on GitHub? # to your account

Distribute-fees-buyback to be adapted for V5 #350

Open
Ivshti opened this issue May 10, 2021 · 0 comments
Open

Distribute-fees-buyback to be adapted for V5 #350

Ivshti opened this issue May 10, 2021 · 0 comments
Assignees
Milestone

Comments

@Ivshti
Copy link
Member

Ivshti commented May 10, 2021

In V4, earnings were withdrawn automatically through the relayer if over a certain min threshold. In V5, earnings are never withdrawn automatically because they have no expiry - they can be withdrawn at any time.

To adapt it for V5, we should do outpace.withdraw() in the same relayer txn as the Uniswap trade and use the respective total amount. This will be easy since we send the tx through the Identity, which means we can batch multiple calls.

Perhaps it may be easier to implement it via a SC that will be appointed as feeAddr that will claim all it's earnings from OUTPACE and use the total to buy ADX

@Ivshti Ivshti self-assigned this May 10, 2021
@Ivshti Ivshti added this to the v0.15.0 milestone Jul 5, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants