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

Support FX pools (apr, swap fee) #802

Open
franzns opened this issue Aug 16, 2024 · 1 comment
Open

Support FX pools (apr, swap fee) #802

franzns opened this issue Aug 16, 2024 · 1 comment

Comments

@franzns
Copy link
Collaborator

franzns commented Aug 16, 2024

Apparently FX pools have a dynamic swapfee. It seems we use a fixed one meaning that also the swap fee apr is off.

Info from Minteo

About the pool fee:

The fee is dynamic based on the pool ratio, so its a bit complex, but maybe it is a good idea to display the epsilon from the pool contracts viewParameters (the minimum fee charged when the pool is within range which is charged most of the time) + a tooltip to explain this.

https://docs.xave.co/product-overview/fxpools/invariant-faqs

pool contract for reference: https://polygonscan.com/address/0xd4cc1afe3430c6c227f8f640d022bf5747538f53#readContract

I am not sure about the apr, but that one is already visible in the old ui

https://app.balancer.fi/#/polygon/pool/0xd4cc1afe3430c6c227f8f640d022bf5747538f53000200000000000000000ebb

@andreiashu
Copy link

hi @franzns Xave team member here.
Yes, epsilon is the "static fee" parameter. That is a percentage value of the swap amount charged within a specific range (based on beta param) called the BETA range. If a swap is trying to take the pool outside that range, an added fee is charged which we call Dynamic Fee.

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

No branches or pull requests

2 participants