pendulum-chain / vortex

1 stars 0 forks source link

Integrate Axelar bridge to Polygon prototype #42

Closed prayagd closed 2 months ago

prayagd commented 3 months ago

Context

In order to bridge the USDC tokens from Polygon to Pendulum, Axelar bridge integration is needed.

Requirements

prayagd commented 3 months ago

Will fill in the details once the research here is completed

TorstenStueber commented 3 months ago

I think we can just integrate the code from the Axelar research into the frontend part of the prototype, particularly this script.

The main difference is there would not be a direct reference to the user's secret but we would use a wallet integration, see https://github.com/pendulum-chain/vortex/issues/40.

The script should be the first part of the automated flow that happens directly after the anchor flow is completed.

TorstenStueber commented 3 months ago

There is one piece missing in this script and this is about swapping USDC to axlUSDC. We did this manually using some DEX (Uniswap) but I don't know whether this is the best option for the automated flow. Also the exchange rate was fluctuating wildly around 1:1, more than we would like. This really destroys the effect of Nabla to be slippage resistant.

prayagd commented 2 months ago

@TorstenStueber @gianfra-t @ebma can we move this ticket to development as per my understanding we are already working on this? can we also add a rough estimate to this?

ebma commented 2 months ago

Sure. I'll assign you to this ticket @gianfra-t and give it an estimate of 13 as it's quite complex and there's already been a lot of work done. Looking at the tight time constraints it might be better if we skip adding a detailed description to this ticket but rather make sure that the respective pull requests has a meaningful description.

gianfra-t commented 2 months ago

Okay! Given the times let's also try to go directly to mainnet testing like we did with Axelar itself. I will open a PR soon containing 6A (and 6B) into the new polygon branch, even though the pendulum ephemeral hasn't been tested we may want to test all in one go.

ebma commented 2 months ago

Closing this as it was merged into the polygon prototype on staging.