zeitgeistpm / ui

Zeitgeist general prediction markets application.
https://app.zeitgeist.pm
Apache License 2.0
16 stars 4 forks source link

1 Click deposit of USDC using squidrouter/axelar. #2085

Open yornaath opened 11 months ago

yornaath commented 11 months ago

Me and @lsaether have discussed creating a 1 click deposit solution in the app where the user can route tokens from eth chains like ethereum, polygon, kava etc onto moonbeam as USDC.wh then transfer the USDC.wh onto zeitgeist using XCM. All in "one click".

The first step uses the Squid Router SDK to route tokens from one of the supported chains onto moonbeam. This we have got working quite well.

But for the next step I need some assistance. Im not sure about the best way to do this XCM transaction from moonbeam to zeitgeist.

  1. How do users that doesnt have any GLMR on moonbeam pay fees? Can we set up the XCM transaction so that the user can pay fees with some of the USDC.wh they just transfered?
  2. Can we use the Call Permit Precompile and pay fees with a zeigeist owned account?
Robiquet commented 11 months ago

Acala also offers some options for bridging from Ethereum and you can pay fees with any asset from there

image
Robiquet commented 11 months ago

https://buildwithsygma.com/