-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enable Forex AMM on Pendulum #569
Conversation
✅ Deploy Preview for rococo-souffle-a625f5 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@Sharqiewicz Listing down things that were discovered while testing
|
|
@prayagd shouldn't it rather be 'Update the "Powered by Vortex finance" text to "Powered by Nabla finance"'? It's not powered by vortex but by Nabla so the link is correct.
Which amount did you use? And can you please also share a screenshot of the console logs of your developer console next time? Even if we are able to reproduce a similar issue, the logs are helpful in any case to rule out temporary problems or issues that only happen in some circumstances. |
@ebma following agreement of terms with Nabla team, we are now allowed to call it powered by Vortex Finannce and therefore also link it to the Vortex Finance website. |
Okay but it doesn't make sense, does it? It would need to be called "Powering Vortex finance" if anything. It has nothing to do with Vortex? |
i tired amounts of 2 USDC, 4 USDC and 8 USDC. There was nothing in the console log, i checked |
@prayagd what swap direction did you use? USDC to EURC or DOT? |
@prayagd I checked the problem with the backstop pool. There are two issues: 1) we don't properly show an error message and 2) the error actually happening here is that the value of each backstop pool token in this configuration is negative and therefore it is not possible to charge the backstop pool. The value of a pool token is calculated as the sum of
The excess liquidity of each swap pool is
So the total worth is -1.28 + 0.83 = -0.45 USD is negative. Why did it happenThis can usually only happen initially if the backstop pool does not contain any significant amount of tokens yet and there was a trade and after that a price shift. How to resolveTo resolve just transfer, e.g., 1 EURC to the address of the EURC swap pool ( |
DOT to EURC.s |
@TorstenStueber Thanks, the transfer worked |
@prayagd Implemented 🦈
In Progress 🦈 |
@prayagd Ready 🦈🟢 Please review 🥺 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few comments regarding the use of number
instead of big number formats. It's just good practice that we use big numbers as some of the assets can have many decimals (e.g., 18) and precision will be lost.
@Sharqiewicz I just realised we don't show the limit / cap anywhere to the user. Is that something we should add in? |
@TorstenStueber Do you think we should add "Cap" to the "Liabilities" column? |
@Sharqiewicz @vadaynujra I would generally think that we should have these conversations within the ticket before someone picks it up. Nevertheless, what is the definition of the Cap? |
@TorstenStueber limits on swap pools and bsp. |
Also, will the Forex AMM link mention Nabla like it does on Foucoco? Please ensure we change to |
Let's move this discussion to the ticket where we already discuss table captions: #474 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirming that all the bugs that were raised are now fixed and working
⭐ New menu option available: ForexAMM ⭐