Proposals of #99

Upgrading Dexter Smart Contracts for Enhanced Functionality

Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract, Migrate Contract
passed
Expected result
Turnout / Quorum
77.01% / 40.00%
Voting start 2024.04.30 at 09:04:42
Voting end 2024.05.05 at 09:05:42
95.64%
101 719 224 xprt
Yes
0%
0 xprt
No
0.00%
98 xprt
Veto
4.36%
4 638 214 xprt
Abstain

Details

Proposer
persistence1eld9dngat...
Total deposit
3 500 xprt
Submit time
2024.04.30 at 09:04:42
Deposit end time
2024.05.01 at 09:05:42

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:

  1. 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.
  2. 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.
  3. Simplified Slippage Parameters:

    • Removes unnecessary max-spread checks from the Stableswap function.
    • Streamlines slippage parameter configuration, improving usability for external integrations.
  4. 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 NameExisting Code IDExisting Code VersionNew Code IDNew Code Version
Dexter Vault3v1.0.015v1.1.0
Dexter Router6v1.0.016v1.1.0
Stableswap Pool8v1.0.018v1.1.1
Weighted Pool7v1.0.017v1.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.
ContractAddressNew Code ID
Dexter Vaultpersistence1k8re7jwz6rnnwrktnejdwkwnncte7ek7gt29gvnl3sdrg9mtnqkstujtpg15
Dexter Routerpersistence132xmxm33vwjlur2pszl4hu9r32lqmqagvunnuc5hq4htps7rr3kqsf4dsk16

The summary of pool contract upgrades are:

Pool IDPoolTypeNew Code IDContract Address
1stkATOM-ATOMStableswap18persistence1335rlmhujm0gj5e9gh7at9jpqvqckz0mpe4v284ar4lw5mlkryzszkpfrs
2ATOM-XPRTWeighted17persistence14ph4e660eyqz0j36zlkaey4zgzexm5twkmjlqaequxr2cjm9eprqsnnszg
3PSTAKE-XPRTWeighted17persistence1g3acw7aumaj3r348cqn4kazrehlmn822w9p46sqwztnke27h3lyshald7p
4USDC-USDTStableswap18persistence1gd54cnu80s8qdqcyhyvn06m87vlmch2uf4wvz4z08svawvc2rhysgvav55
5USDT-XPRTWeighted17persistence1e0cwfmla7exa578xddl87paxexw9ymwrzysfjms8c2mstxjkldlqz67jnl
6USDC-DYDXWeighted17persistence1gzuv84xrwwhxhf0f62av279vfyrfrm7x58fcnadlr5m90gnx223sglqscd
7stkDYDX-DYDXStableswap18persistence1tq22yqsgl8y4ds930m0gha2yjkgju8rh8f2a0suv60vpwx8hqy2q82u47m
8SHD-XPRTWeighted17persistence18x5w425dccrkuwk46u9yqrwmka2ef0lmnvsx439dm09hf5qqfvjq6lwxhf
9stkSTARS-STARSStableswap18persistence1u0ehv853npcmu9m4jexampykq6yeuf6nlnxpvm5m8w73g2vrv9wqzj8h9h
10STARS-XPRTWeighted17persistence1av3qg7rrtwu2anudw8u7d2ncv4f0826yxrndw9esvrp4jdnsmyjqzlqcg9
11stkHUAHUA-HUAHUAStableswap18persistence1ny5q57qzkt9cn64mf7grc58tjqx37czxe85nx8aujw8md3hlyruqrspvtc
12stkXPRT-XPRTStableswap18persistence1v2efcqkp2qtev06t0ksjnx6trxdd0f7fxg2zdrtzr8cr9wdpjkyq8r0cyc

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.

Votes

Voter
Answer