Proposal Details

Proposal #475

Passed

Proposal title

Upload Autonomy Network Limits/Stops Wrapper Contract

Submit time

Deposit end time

Voting start time

Voting end time

Tally result

76.60%

Proposal #475 description

Summary

The Autonomy limits/stops wrapper for Osmosis has successfully gone through testnet and is now ready to launch onto the Osmosis mainnet

About limits/stops wrapper:

This proposal deploys the necessary code on-chain for a wrapper contract around the Osmosis DEX that, when used with the Autonomy Registry (deployed in a simultaneous proposal with this one), adds the ability to do limits and stops on Osmosis. This was previously proposed in proposal 342 and proposal 343 but both were rejected because the code in proposal 343 was the wrong code being uploaded by accident. Since then, the code has gone through some improvements and an audit, and has been working well on testnet (osmosis.autoswap.trade). More info at https://gov.osmosis.zone/discussion/6921-proposal-for-adding-limits-and-stops.

Repo

The source code can be found in this repository

Compile Instructions

The binary is compiled at commit d050df1 using

cosmwasm/workspace-optimizer:0.12.8
. The following command is used:

docker run --rm -v \"$(pwd)\":/code \\ --mount type=volume,source=\"$(basename \"$(pwd)\")_cache\",target=/code/target \\ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \\ cosmwasm/workspace-optimizer:0.12.8

Checksum of the contracts are following.

# Intermediate 4358036bf4ae3e1c8020fadaf775e19ca9971191a8b9ec73918b4f145e041d89 ./target/wasm32-unknown-unknown/release/wrapper_osmosis.wasm # Optimized 0db1e33fb47ef97974b4abb6990671169fd9fa7b711eaef791cba643c78203d8 wrapper_osmosis.wasm

Verify On-chain Contract

We encourage voters to independently validate that the binary code proposed on-chain matches the Rust source code. The following command may be helpful:

osmosisd q gov proposal $id --output json \\ | jq -r .content.wasm_byte_code \\ | base64 -d \\ | gzip -dc \\ | sha256sum

Proposal #475 overview

Total votes
5,177
Voters
5,106
Total deposit
1,600 OSMO