Upgrade the Liquidity Layer Modules to Roll Out the DEX v1 Fix
Actions
Proposal
Proposal
Summary
This proposal rolls out the fix for DEX v1. The DEX v1 smart debt pools are currently paused. The fix is rolled out through an upgrade of the Liquidity Layer modules, in six actions on mainnet: the rollback module is replaced and rollbacks are registered (1), the Admin module (2) and the User module (3) are upgraded, the token configs are updated (4), the token auth is replaced (5) and the old DexV2 and Money Market proxies are restricted and paused at the Liquidity Layer (6).
Code Changes
All calls go to the Liquidity Layer proxy 0x52Aa899454998Be5b000Ad077a46Bbe360F4e497.
The four new addresses are set on the payload by the Team Multisig. They can be changed only within 24 hours of the payload deployment and can be locked earlier.
| New address | Value |
|---|---|
| New rollback module | 0xf7401a25E05D04c88cAd7cff08BC196e897a8423 |
| New Admin module | 0x9a6a7B532041765F83b7421C19430BE5865e5252 |
| New User module | 0xbAbdde2060797e135B79616920cA350AD7c88e94 |
| New token auth | 0x2120c7a09AA9D0931a865502D04ff2958C4a20a0 |
Action 1: Replace the Rollback Module and Register Rollbacks
| Step | Call |
|---|---|
| Remove the old rollback module | removeImplementation(0x463874c5A102ceEa919D63f748a433304D1bd1c0) |
| Add the new rollback module | addImplementation(newRollbackModule, sigs) with 11 function selectors |
| Cancel pending rollbacks, if registered | cancelRollbackImplementation for 0xea78faBC13D603895FE9efe8BB4A4F2c56e5698E and 0x4bDC8816F2f56914B66EbF3786D78872D3a73Ab7 |
| Register the Admin module rollback | registerRollbackImplementation(0x20ad698963BCc194dd3b5A0b5458ac3c52dE9C56, newAdminModule) |
| Register the User module rollback | registerRollbackImplementation(0x6a887dad0852b1A8fa5429FB9c7F83a943469F06, newUserModule) |
Action 2: Upgrade the Admin Module
| Step | Call |
|---|---|
| Remove the old Admin module | removeImplementation(0x20ad698963BCc194dd3b5A0b5458ac3c52dE9C56) |
| Add the new Admin module | addImplementation(newAdminModule, sigs) with 21 function selectors |
Action 3: Upgrade the User Module
| Step | Call |
|---|---|
| Remove the old User module | removeImplementation(0x6a887dad0852b1A8fa5429FB9c7F83a943469F06) |
| Add the new User module | addImplementation(newUserModule, sigs) with 2 function selectors |
Action 4: Update the Token Configs
updateTokenConfigs is called once with the following 43 entries. With the new Admin module, the third config value is the minimum operate amount exponent.
Action 5: Replace the Token Auth
| Step | Call |
|---|---|
| Remove the old token auth | updateAuths with 0x3C27B24E9d7f3F5B9B4914A430C34ac8f8B27006 set to false |
| Add the new token auth | updateAuths with newTokenAuth set to true |
Action 6: Restrict and Pause the Old DexV2 and Money Market Proxies at the Liquidity Layer
| Protocol | Address |
|---|---|
| Old DexV2 proxy | 0x4E42f9e626FAcDdd97EDFA537AA52C5024448625 |
| Old Money Market proxy | 0xe3B7e3f4da603FC40fD889caBdEe30a4cf15DD34 |
For each proxy, for ETH, USDC, USDT, WBTC and cbBTC:
| Step | Call | Effect |
|---|---|---|
| Borrow | setBorrowProtocolLimitsPaused | Debt ceiling 10 / 20 (dust), expansion 0.01% over max duration |
| Supply | setSupplyProtocolLimitsPaused | Base withdrawal limit 10 (dust), expansion 0.01% over max duration |
| Pause supply | LIQUIDITY.pauseUserSupply(proxy, tokens, true, true) | Supply and withdraw paused for all five tokens |
| Pause borrow | LIQUIDITY.pauseUserBorrow(proxy, tokens, true, true) | Borrow and payback paused for all five tokens |
Conclusion
IGP-144 upgrades the Liquidity Layer rollback, Admin and User modules, updates the token configs and replaces the token auth to roll out the fix for DEX v1, whose smart debt pools are currently paused. It also restricts and pauses the old DexV2 and Money Market proxies at the Liquidity Layer.
Some simulations are not available
Status
Tue Dec 1, 09:33 pm
Start voting period
Thu Dec 3, 09:33 pm
End voting period
Queue proposal
Execute proposal