penumbra-zone / dex-explorer

Web app for visualization the state of the Penumbra DEX
Apache License 2.0
10 stars 1 forks source link

IBC-in skip support #83

Open grod220 opened 1 month ago

grod220 commented 1 month ago

Not all ibc'd tokens are fungible. For example:

Path A: TIA on Celestia -> Osmosis -> Penumbra
Path B: TIA on Celestia -> Penumbra

The tokens that eventually end up on Penumbra would not be the same. The canonical one is the one that came from the originating chain. So if users want to take their Osmosis TIA to Penumbra they must be able to "unwind":

TIA on Osmosis -> Celestia -> Penumbra

The Skip API is specifically designed for this purpose: https://api-docs.skip.money/docs/getting-started. It can assemble cosmos messages that allow for the automatic forwarding/unwinding through the native chain of each cosmos token.

Task: in the Dex explorer ibc/shielding page, utilize the api to support IBC'ing any token from any cosmos chain to Penumbra. Should be able to query Skip for route and pass the message to cosmos-kit. After that, there should not be any asset restriction on IBC'ing in.