![]()
MIP#264001
Status:
Implemented
Overview
When the RIF/USD CoinPair was incorporated into RoC, its revenue sources were configured so that RoC users pay only for the price publications needed by the protocol, principally during mint and redeem operations and when liquidations occur. This demand-driven model compensates the OMoC oracle operators without charging RoC users for publications that RoC itself does not need.
Rootstock Labs considers the RIF/USD price valuable beyond the RoC protocol and wants the OMoC oracles to publish it continuously. It therefore intends to subsidize those additional publications instead of assigning their cost to RoC users.
The main goal of this proposal is to provide the mechanism for that subsidy. It deploys an RBTC → MOC reverse auction to which Rootstock Labs can send RBTC. The auction converts the RBTC through the established swapper and sends the resulting MOC to the RIF/USD CoinPair, where it is added to the other revenue sources that compensate its oracle operators. The proposal also registers a TaskTriggerOrder for the auction in OMoC’s TasksRunner, allowing participating operators to execute it when its RBTC balance reaches the configured threshold.
The proposal also consolidates swap execution for the RIF and DOC buckets. It configures the shared MocSwapperV3Multihop with the required paths while retaining the existing maximum-swap providers, switches the two DOC/MOC reverse auctions to that swapper, and makes it the guard’s swapper for both bucket directions. This retires the dedicated RIF/DOC multi-hop swapper from active use.
Proposed Changes
1. Create the RIF/USD subsidy reverse auction
The proposal deploys a MocReverseAuction that Rootstock Labs can fund by sending it RBTC. The auction is configured with:
| Parameter | Value |
|---|---|
| Input token | RBTC |
| Output token | MOC, read from the RIF bucket’s feeToken |
| Output account | RIF/USD CoinPair, read from the RIF bucket’s peg container |
| Swapper | The existing RBTC → MOC swapper used by the guard’s execution-fee recipient |
| Order threshold, price provider, and slippage | The values used by that existing RBTC-to-MOC reverse auction |
Reading these values at deployment keeps the new auction aligned with the active protocol configuration without duplicating addresses or economic parameters in the deployment inputs.
2. Register its task in OMOC TasksRunner
The proposal deploys a TaskTriggerOrder for the new reverse auction and adds it to OMOC’s TasksRunner at 0xd9...b975.
The task becomes eligible when the reverse auction has accumulated at least its order threshold in RBTC. The task’s revert backoff is 36,000 seconds. On execution, it triggers the auction and the resulting MOC is transferred directly to the RIF/USD CoinPair.
3. Move RIF/DOC paths to the shared multi-hop swapper
The proposal configures MocSwapperV3Multihop at 0x24...3c73 with these paths:
| Conversion | Path |
|---|---|
| DOC → MOC | DOC → USD0 → WRBTC → MOC |
| MOC → DOC | MOC → WRBTC → USD0 → DOC |
| DOC → RIF | DOC → USD0 → RIF |
| RIF → DOC | RIF → USD0 → DOC |
All routes configured by this proposal use USD0 where a USD-denominated intermediate asset is needed. They no longer use pools with USD₮, including the DOC-to-MOC and MOC-to-DOC routes.
The changer reads the RIF and DOC token addresses, the MOC fee token, and the existing maximum-swap providers from the deployed guard, buckets, and deprecated swapper. It preserves those providers when it configures the shared swapper.
4. Reconfigure the auctions and guard
The following existing reverse auctions will use the shared multi-hop swapper:
| Contract | Address | Conversion |
|---|---|---|
RevAuctionDOCtoMOC_rocRewardsBuffer |
0x88...1c9a |
DOC → MOC |
RevAuctionMOCtoDOC_docBucket |
0x3E...7bBE |
MOC → DOC |
The MocMultiCollateralGuard at 0x02...F46F will also use the shared swapper for both RIF-to-DOC and DOC-to-RIF bucket conversions.
This removes the dedicated swapper at 0x0E...7ba0 from the active paths covered by this proposal.
Expected Outcome
After execution:
- Rootstock Labs can subsidize the
RIF/USDoracle service by sending RBTC to a dedicated reverse auction, whose MOC output is added to the CoinPair’s other revenue sources; - OMOC
TasksRunneroperators can trigger that auction once its RBTC threshold is met; - DOC/MOC and RIF/DOC conversions use the shared
MocSwapperV3Multihopwith the specified routes; - the two existing DOC/MOC reverse auctions use the shared swapper; and
- the RIF/DOC dedicated swapper is no longer used by the guard or those reverse-auction flows.
Verification
The implementation includes a Rootstock mainnet-fork test. It deploys and executes the changer against the deployed contracts, verifies the configured paths and maximum-swap providers, executes swaps through each of the four paths, and funds and triggers the new reverse auction. The test verifies that the RIF/USD CoinPair receives MOC and that the task does not enter its revert backoff.
Governance Process
The change takes effect only when the approved changer is executed through MoC governance.
Before the vote, the deployed changer, reverse auction, and task addresses will be added to this document with links to their verified source code.
Changer Contract
The changer contract to vote would be:
| Name | Address (and link to verified code in RSK blockscout explorer) |
|---|---|
MIP264001RifUsdSubsidyChanger |
0x7a3ae8fd298aE810Cb4D513582a0455919398f1b |
Info: All changes, upgrades, and reconfigurations to existing contracts, including the exact parameter values, can be audited directly in the changer contract, whose source code is published and verified in the block explorer linked above.
New Contracts
| Name | Address |
|---|---|
RevAuctionRBTCtoMOC_rifUsdSubsidy |
0x50...fa40 |
TaskTriggerOrderRBTCtoMOC_rifUsdSubsidy |
0xab...C640 |