Closed vadaynujra closed 3 months ago
@prayagd is this ticket blocked by any other ticket? Maybe the one about defining and implementing the Nabla parameters?
Yes you are right, blocked by the parameter ticket. Updated the dependency
@pendulum-chain/devs can this ticket be started on before the final parameters for Pendulum are being defined? Maybe with an integration on Foucoco?
Yes, I guess we could already start working on this but it might not be possible to accurately estimate the max fee without having the parameters finalized.
True @ebma, and that's okay as long as we can estimate and display the fees based on parameters set on Foucoco.
Hey team! Please add your planning poker estimate with Zenhub @b-yap @bogdanS98 @ebma @gianfra-t @TorstenStueber
@pendulum-chain/product This ticket has no place in Ready yet, it lacks detail and is ambiguous.
First, we should specify that this is for USDT only (not for USDC).
It should use the prototype deployment of Nabla that is described here. We can hard code the addresses of the contracts (otherwise we would need to query them from the indexer) and the decimals of each asset:
The code should create transactions for
approve
message to any of the input token ERC20 (wrapper) contracts with the arguments
swapExactTokensForTokens
message to the router with
It's easiest to use api-solang to submit these transactions, see e.g., here.
Tested EUR off ramp and worked fine, need to figure out how to reduce the 3 transactions into one @prayagd
Can't be done at the moment as explained today: gas fees are overestimated and only one smart contract execution fits into one block.
@vadaynujra when you tested it, was the amount auto-filled on the anchor side by any chance? If it was in the last hour or so it should have been the case.
@gianfra-t can we close this now that the PR is merged?
I added two testing scenarios to the description. @prayagd can you follow up on them so they are completed? I think it's better to first test that this works before closing the ticket. AFAIK we did not perform the whole flow when testing the phase 5 changes that are now on staging.
I tried to test the BRL offramp on staging but when I wanted to deposit some more BRL into the pool, I realized that the indexer returns outdated results. I want to wait for this to be fixed first.
You should be able to test this now, since the indexer is up again.
@gianfra-t I am not sure anymore. Shall I do another test to check this? @ebma is another EUR off ramp test from my side pending before we close this?
Yes, please test again @vadaynujra. Doesn't hurt to do it as often as we can.
The test is completed, succesfully offramped EUR. Here
Closing this ticket.
Shall we move this to production @ebma as it is successfully tested and also includes the functionality of the version currently live on production?
Sure, I'll do that.
Context
To allow users holding USD based stablecoins on Pendulum i.e. USDT/C to off-ramp, there is a need to swap the asset based on the user's choice of the currency to off-ramp. For this purpose, Nabla will be used.
Requirement
Integrate Nabla with the prototype, such that:
Testing