-
Notifications
You must be signed in to change notification settings - Fork 2
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
Better LP fee evaluation based on virtual takers not real takers #2305
Milestone
Comments
PR on hold for now. |
To prioritise this it would be useful to add in this ticket the exploit vectors and a brief assessment of the probability and impact of each @davidsiska-vega |
How to game current setup:
|
Maybe not a big deal; if other LPs on the market notice this, they can do the same thus negating this attack. |
Close this - won't be an issue with liquidity v3.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the moment the LP rewards are distributed based on LP fees received. This is gameable. Instead calculate "virtual LP fees received in quantum" which would be the amount resulting from the of trade notional of one quantum unit, happening at current markprice, once per LP fee evaluation time step. Distribute LP rewards at epoch end relatively based on this accumulate "virtual LP fee received in quantum".
The text was updated successfully, but these errors were encountered: