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

compensate for API error by assuming all fees are network fees #750

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

zavelevsky
Copy link
Collaborator

@zavelevsky zavelevsky commented Oct 26, 2023

fixes: #749

A vote passed to use 100% of the fees - so there shouldn't be any LP fees.
They are derived from API total fees - network fees.
For some reason API returns wrong values - and until it's fixed we are zeroing it in the UI

summary of changes:

updated link to vote (used in all relevant tooltips)
showing total fees as network fees in stats breakdown tooltip (removed a line)
Pools table - fees always 0 in tooltip and no longer show NEW anywhere when 0
APR is always 0 unless there are rewards
Don't show NEW in available to stake in portfolio

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 39318d5
Status: ✅  Deploy successful!
Preview URL: https://63256769.falafel.pages.dev
Branch Preview URL: https://fix-fees-vote.falafel.pages.dev

View logs

@zavelevsky zavelevsky merged commit 5b7b164 into main Oct 26, 2023
6 checks passed
@zavelevsky zavelevsky deleted the fix/fees-vote branch October 26, 2023 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pools - APR and LP fees
3 participants