Proposal Details
Proposal #99
Proposal title
Upgrading Dexter Smart Contracts for Enhanced Functionality
Submit time
Deposit end time
Voting start time
Voting end time
Tally result
Proposal #99 description
This proposal outlines the upgrade of Dexter smart contracts on the Persistence chain to improve functionality and user experience.
Upgrade Details
The upgrade focuses on four key areas:
-
Improved Stableswap Math:
- Integrates integer-based calculations for stableswap functions.
- Enhances handling of smaller inputs and ensures closer alignment with the curve's stableswap math.
-
Spot Price Methods for SKIP Integration:
- Introduces spot price methods to facilitate integration with the SKIP to power ibc.fun token swaps using Dexter.
- This integration will be crucial for future functionalities and expansion of the Persistence ecosystem.
-
Simplified Slippage Parameters:
- Removes unnecessary max-spread checks from the Stableswap function.
- Streamlines slippage parameter configuration, improving usability for external integrations.
-
Cosmwasm Security Enhancements:
- Upgrades the underlying Cosmwasm standard library to incorporate the latest security patches.
- This upgrade strengthens the overall security posture of Dexter smart contracts.
Impact on Existing Pools
This upgrade encompasses a comprehensive overhaul, affecting all existing pools, the router contract, and the vault contract. To ensure a smooth transition, the proposal outlines the following:
- Code Version Updates: Contracts on the current version will be updated to the new version as highlighted below:
Code Name | Existing Code ID | Existing Code Version | New Code ID | New Code Version |
---|---|---|---|---|
Dexter Vault | 3 | v1.0.0 | 15 | v1.1.0 |
Dexter Router | 6 | v1.0.0 | 16 | v1.1.0 |
Stableswap Pool | 8 | v1.0.0 | 18 | v1.1.1 |
Weighted Pool | 7 | v1.0.0 | 17 | v1.1.1 |
- Upgrade Process: The upgrade will seamlessly migrate existing pool configurations. It will also ensure that new pools are created with the new code ID.
Contract | Address | New Code ID |
---|---|---|
Dexter Vault | 15 | |
Dexter Router | 16 |
The summary of pool contract upgrades are:
Pool ID | Pool | Type | New Code ID | Contract Address |
---|---|---|---|---|
1 | stkATOM-ATOM | Stableswap | 18 | |
2 | ATOM-XPRT | Weighted | 17 | |
3 | PSTAKE-XPRT | Weighted | 17 | |
4 | USDC-USDT | Stableswap | 18 | |
5 | USDT-XPRT | Weighted | 17 | |
6 | USDC-DYDX | Weighted | 17 | |
7 | stkDYDX-DYDX | Stableswap | 18 | |
8 | SHD-XPRT | Weighted | 17 | |
9 | stkSTARS-STARS | Stableswap | 18 | |
10 | STARS-XPRT | Weighted | 17 | |
11 | stkHUAHUA-HUAHUA | Stableswap | 18 | |
12 | stkXPRT-XPRT | Stableswap | 18 |
Conclusion
Upgrading Dexter smart contracts delivers a multitude of improvements. Improved accuracy, expanded functionality, and enhanced security solidify Dexter's position as a reliable and secure DEX on the Persistence chain.
Voting Options
- YES: Vote in favor of upgrading Dexter smart contracts according to the outlined details.
- NO: Vote against the proposed upgrade.
- NO WITH VETO: If you believe this is a spam proposal and the proposer should lose their deposit, vote NO WITH VETO.
- ABSTAIN: Choose to abstain from voting but still contribute to quorum requirements.