Upload Cross-Chain Swap Contract v2
Voting period
Vote distribution
Details
Description
Passing this proposal will upload an updated version of the Crosschain Swaps contract to the Osmosis chain. \n\n## Details \nThe Crosschain Swaps contract enables trades on Osmosis to be carried out remotely from another chain connected to Osmosis by IBC. \n\nThe original upload contained an issue that was only discovered during implementation on mainnet and requires a new version to be uploaded to properly integrate the full Crosschain swaps process. \n\nThe contract receives a token transfer from chain A, interacts with the Swap Router contract to exchange the received token for a different token and then forwards it to a destination address specified in the original transaction. \n\nOn receipt of tokens from Chain A, the contract parses a memo field, enabled by IBC v3.4.0 in Osmosis v13. This contains information set by the sender identifying the instance of the Crosschain Swaps contract to interact with and the intention. \n\nThis Crosschain Swaps instance is linked to an instance of the SwapRouter contract uploaded in Proposal 411 and carries out the exchange using liquidity on Osmosis. \n\nThe resultant tokens are then forwarded to the address originally specified in the memo, be that a return to the address on Chain A or forwarding to an address on Chain C. \n\nFull Documentation: https://github.com/osmosis-labs/osmosis/tree/main/cosmwasm/contracts/crosschain-swaps\n\n## Git Commit ID\n https://github.com/osmosis-labs/osmosis/commit/928280b61d15fcfd71f068390f520034c3d49a54\n\n## Version of Compiler used\ncosmwasm/workspace-optimizer:0.12.10\n\n## Checksum\ne7cfd4ec2cf594de9d15863c6e324025045de39236186c03483af7c9e06d4949\n\nCommonwealth Thread: https://commonwealth.im/osmosis/discussion/10592-upload-crosschain-swaps-contract-v2
Votes