# Technical proposal for removal of leveraged positions in RIF on Chain

**URL:** https://forum.moneyonchain.com/t/technical-proposal-for-removal-of-leveraged-positions-in-rif-on-chain/326
**Category:** MOC Improvement Proposals
**Created:** [March 13, 2023, 5:52pm UTC](https://forum.moneyonchain.com/t/technical-proposal-for-removal-of-leveraged-positions-in-rif-on-chain/326 "2023-03-13T17:52:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jbokser](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.moneyonchain.com/jbokser/32/228_2.png) [@jbokser](https://forum.moneyonchain.com/u/jbokser)
#### Post date: [March 13, 2023, 5:52pm UTC](https://forum.moneyonchain.com/t/technical-proposal-for-removal-of-leveraged-positions-in-rif-on-chain/326/1 "2023-03-13T17:52:10Z")

</div>

# 📣 Technical proposal for removal of leveraged positions in RIF on Chain

The technical solution to carry out what is proposed in [**Removal of leveraged tokens**](https://forum.moneyonchain.com/t/removal-of-leveraged-tokens-rif-on-chain/322) would be this:

> ⚠ Warning: some technical/coding knowledge is necessary to fully understand this document.

The simplest and least invasive way to modify the protocol to removal of leveraged positions is to disable the function in charge of minting `RIFx`.

We propose to do this by overriding the function with one that meant to always fail using a hard-coded `revert` statement.

And we’ll do it this way instead of just removing the function to prevent third-party integrations that may not have been aware of this change ending up using the `fallback` function with unexpected results.

The change is simple and only affects the `Moc.sol` contract

 ![contract_diff_roc](https://canada1.discourse-cdn.com/flex035/uploads/moneyonchain/original/1X/8cd4b06e1e221997d2089aa50d1cd8df8286c71d.jpeg)

✔ [This is the pull request](https://github.com/money-on-chain/RDOC-Contract/pull/44/files?file-filters%5B%5D=.sol&show-deleted-files=true&show-viewed-files=true&w=1) to add these changes to the repository.

✔ The new implementation of the `Moc.sol` contract that is already deployed in `mainet` would be this [`0xc75a3a1E829dF4A8b8944C1Ae213CE527BC63A2D`](https://explorer.rsk.co/address/0xc75a3a1E829dF4A8b8944C1Ae213CE527BC63A2D?__ctab=Code)

✔ The `change contract` to make the implementation change that is also already deployed in `mainet` would be this [`0x8f0Cb984392858a930583e0da8DC0980EF8f40F5`](https://explorer.rsk.co/address/0x8f0Cb984392858a930583e0da8DC0980EF8f40F5?__ctab=Code)

✔ This is the `change contract` that will be submitted to a vote.

✔ The current implementation of the `Moc.sol` contract in `mainet` is [`0x0455786d997cd80ff9c3c361c7e8be525a244d2b`](https://explorer.rsk.co/address/0x0455786d997cd80ff9c3c361c7e8be525a244d2b?__ctab=Code)

✔ The `Moc.sol` proxy contract in `mainet` is [`0xCfF3fcaeC2352C672C38d77cb1a064B7D50ce7e1`](https://explorer.rsk.co/address/0xCfF3fcaeC2352C672C38d77cb1a064B7D50ce7e1?__ctab=Code)

✔ The upgrade delegator in `mainet` is [`0x5cE577f6Ec969CE9a282838D350206C52A6F338C`](https://explorer.rsk.co/address/0x5cE577f6Ec969CE9a282838D350206C52A6F338C?__ctab=Code)

---

<div class="post-metadata">

### Author: ![jbokser](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.moneyonchain.com/jbokser/32/228_2.png) [@jbokser](https://forum.moneyonchain.com/u/jbokser)
#### Post date: [March 16, 2023, 6:33pm UTC](https://forum.moneyonchain.com/t/technical-proposal-for-removal-of-leveraged-positions-in-rif-on-chain/326/2 "2023-03-16T18:33:01Z")

</div>

📣 **Call to MOC holders** : [This proposal](https://forum.moneyonchain.com/t/removal-of-leveraged-tokens-rif-on-chain/322) is being voted on. [How to vote Tutorial](https://moneyonchain.com/blog/tutorial-how-to-vote-in-money-on-chain-governance/).

📣 **Llamado a los MOC holders** : [Esta propuesta](https://forum.moneyonchain.com/t/removal-of-leveraged-tokens-rif-on-chain/322) se está votando. [Tutorial de cómo votar](https://moneyonchain.com/es/blog/tutorial-votar-gobernanza-money-on-chain/).

---

<div class="post-metadata">

### Author: ![jbokser](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.moneyonchain.com/jbokser/32/228_2.png) [@jbokser](https://forum.moneyonchain.com/u/jbokser)
#### Post date: [March 24, 2023, 5:33pm UTC](https://forum.moneyonchain.com/t/technical-proposal-for-removal-of-leveraged-positions-in-rif-on-chain/326/3 "2023-03-24T17:33:50Z")

</div>

📣 The voting process is over:

- 23.6 of the MOC tokens total supply participated in the vote.
- 100% of the participants voted in favor.
- No one voted against the proposal.
- The change was successfully implemented.
