Summary
The objective of this proposal is to address an issue with pool validation (dynamic routing) on the Osmosis chain, specifically concerning the pool located at Explorer | Celatone Explorer for Cosmos chain. Currently, our Swapper contract for this pool fails during deserialization due to the unique structure of the pool. This proposal suggests modifying our contract logic to support dynamic routing and eliminate the need for route validation.
Motivation
Previously, validating pools for pre-configured routing served as a safeguard against incorrect route configurations during swapping. However, with the advent of dynamic routing on Mars smart contracts, the necessity for route validation diminishes. Instead, relying on Osmosis/Astroport DEXes to validate routes during swap execution proves to be more efficient. Moreover, the unpredictability of optimal routing provided by Osmosis/Astroport underscores the importance of ensuring support for all pool types in advance.
Risks
Implementing this upgrade involves modifying the smart contract code, which inherently carries the risk of introducing new bugs or unforeseen issues. However, the proposed changes are minor and have been carefully reviewed to minimize potential risks.
Implementation
This upgrade will entail updating the logic within the Swapper contract to remove route validation.
The changes required for this upgrade can be found in the PR.
This is a signaling proposal, not an executable proposal.
The Mars smart contracts on the Osmosis chain are currently controlled by the Builder Multisig address. If this proposal passes, the builders will utilize their multisig to make the necessary parameter changes.
Copyright
Copyright and related rights waived via CC0.
Disclaimers/Disclosures
This proposal is being made by Mars Protocol Foundation, a Cayman Islands foundation company. Mars Protocol Foundation engages in research and development of the Mars Protocol. Mars Protocol Foundation and certain of its service providers and managers own MARS tokens and have financial interests related to this proposal. The aforementioned persons or their affiliates may also have financial interests in complementary or competing projects or ecosystems, entities or tokens, including Neutron/NTRN. These statements are intended to disclose relevant facts and to help identify potential conflicts of interest, and should not be misconstrued as a complete description of all relevant interests or conflicts of interests; nor should they be construed as a recommendation to purchase or acquire any token or security.
This proposal is also subject to and qualified by the Mars Disclaimers/Disclosures. Mars Protocol Foundation may lack access to all relevant facts or may have failed to give appropriate weighting to available facts. Mars Protocol Foundation is not making any representation, warranty or guarantee regarding the accuracy or completeness of the statements herein, and Mars Protocol Foundation shall have no liability in the event of losses or damages ensuing from approval or rejection or other handling of the proposal. Each user and voter should undertake their own research and make their own independent interpretation and analysis of all relevant facts and issues to arrive at their own personal determinations of how to vote on the proposal.