# Allow Cancellation of Autonomy Limit Orders

**URL:** <https://forum.osmosis.zone/t/allow-cancellation-of-autonomy-limit-orders/2432>\
**Category:** Proposal Discussion\
**Tags:** passed\
**Created:** [February 18, 2024, 12:03pm UTC](https://forum.osmosis.zone/t/allow-cancellation-of-autonomy-limit-orders/2432 "2024-02-18T12:03:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coldchain](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@coldchain](https://forum.osmosis.zone/u/coldchain)\
**Post date:** [February 18, 2024, 12:03pm UTC](https://forum.osmosis.zone/t/allow-cancellation-of-autonomy-limit-orders/2432/1 "2024-02-18T12:03:29Z")

</div>

## Background

On [Nov 16, 2023](https://celatone.osmosis.zone/osmosis-1/txs/860D6CD1C5ECB29BDEA6FC02861ABB3CF6538DB8D88050CF01A1B6B0791784DB) the admin of the Autonomy Registry-Stake contract, which controls Autoswap Limit Orders, changed a config param that disallowed further creation or cancellation of orders, essentially bricking the contract. We speculate that this was done because the front end was live long past the contract itself stopped being maintained, so they wanted to stop new stuck orders from being created without regard for existing orders.

## Proposal

The Osmosis Support Lab proposes to upload a modified version of the Registry-Stake contract (see [diff](https://github.com/Autonomy-Network/autonomy-osmosis-contracts/compare/main...doggystylez:unbrick-autonomy:unfuck) of changes) and migrate the existing contract to the new code using a store and migrate type proposal. This will NOT change the actual admin of the contract, which would allow future migrations, it will simply allow the OSL to edit the config to allow order cancellation but keep new order creation disabled. Note that users will still need to cancel any pending orders, which can be done at [Cancel Autoswap by jasbanza](https://jasbanza.github.io/autoswap-cancel-orders). The process has been [tested](https://celatone.osmosis.zone/osmo-test-5/contracts/osmo1yh66rmekzs85gu08qhsaux58cvy65aaj7cqr3ydwxrnpynqvefnsk6lst0) on the Osmosis testnet and the Autonomy contract was successfully disabled using the same params as mainnet and then repaired.

The new contract’s source code can be viewed in this repo: [GitHub - doggystylez/unbrick-autonomy at unfuck](https://github.com/doggystylez/unbrick-autonomy/tree/unfuck). Bytecode to be uploaded was compiled at commit `ddb99b970e7fbf8fcbf40605f5407b6e0c350f06` using `cosmwasm/optimizer:0.15.0`, checksum `249d2db93c0101c91d61ff7448ca8015df4aa06f11f940635e08bd3ba2c3791a`

---

<div class="post-metadata">

**Author:** ![LeonoorsCryptoman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/leonoorscryptoman/32/208_2.png) [@LeonoorsCryptoman](https://forum.osmosis.zone/u/LeonoorsCryptoman)\
**Post date:** [February 19, 2024, 7:31pm UTC](https://forum.osmosis.zone/t/allow-cancellation-of-autonomy-limit-orders/2432/2 "2024-02-19T19:31:50Z")

</div>

Thanks for showing again why the OSL exists.

Creating solutions for problems created by others which hinder users of Osmosis or associated apps is a value-adding service which is awesome that we were able to save during the bearmarket. It will put Osmosis at the front of UX which will surely pay out later.
