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 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
This is the pull request 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
The change contract
to make the implementation change that is also already deployed in mainet
would be this 0x8f0Cb984392858a930583e0da8DC0980EF8f40F5
This is the change contract
that will be submitted to a vote.
The current implementation of the Moc.sol
contract in mainet
is 0x0455786d997cd80ff9c3c361c7e8be525a244d2b
The Moc.sol
proxy contract in mainet
is 0xCfF3fcaeC2352C672C38d77cb1a064B7D50ce7e1
The upgrade delegator in mainet
is 0x5cE577f6Ec969CE9a282838D350206C52A6F338C