Skip to content

Conversation

@lastperson
Copy link
Collaborator

@lastperson lastperson commented Dec 8, 2025

Closes: #155
The plan from previous upgrade:

  • Deploy new pools.
  • Update network config with new routes.
  • Update rebalance routes onchain, only adding missing routes. In this way new local pools will be added.
Send transactions with 0x2D5B6C193C39D2AECb4a99052074E6F325258a0f
Make sure env DEPLOYER_ADDRESS=0xdBD91aD22bE5304e385b7b0A2Cfe91164e416e11
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-rebalancer --action allow --network BASE
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-rebalancer --action allow --network ARBITRUM_ONE
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-rebalancer --action allow --network OP_MAINNET
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-rebalancer --action allow --network ETHEREUM
  • Add LIQUIDITY_ADMIN_ROLE to Liquidity Hub on the new main pool (UPD had old pool address here).
To: 0x4e13849d29a9a7A200196DC16722ddeb67b6e769
Function: grantRole
Params:
role: 0x4c49515549444954595f41444d494e5f524f4c45000000000000000000000000
account: 0x6FD4142Be84134C5a6D45d454529A6C3c9573B61
  • Upgrade Liquidity Hub to point at the new main pool.
Make sure env DEPLOYER_ADDRESS=0xdBD91aD22bE5304e385b7b0A2Cfe91164e416e11
New implementation: 0xA5903B26a940Dd4Bb35484bc6611F265A94f94bf
To finalize upgrade send the following transaction from ProxyAdmin owner: 0x2D5B6C193C39D2AECb4a99052074E6F325258a0f
To: 0x806BA52Fad6BED2EE431e4a3CC436B3F3Da54aED
Value: 0
Data: 0x9623609d0000000000000000000000006fd4142be84134c5a6d45d454529a6c3c9573b61000000000000000000000000a5903b26a940dd4bb35484bc6611f265a94f94bf00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
  • Pause borrowing on old pools. Wait for all the repayments to arrive.
  • Rebalance pools locally using totalDeposited amount.
  • Update rebalance and repay routes onchain. In this way old local pools will be removed as well.
Send transactions with 0x2D5B6C193C39D2AECb4a99052074E6F325258a0f
Make sure env DEPLOYER_ADDRESS=0xdBD91aD22bE5304e385b7b0A2Cfe91164e416e11
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-rebalancer --network BASE
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-rebalancer --network ARBITRUM_ONE
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-rebalancer --network OP_MAINNET
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-rebalancer --network ETHEREUM
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-repayer --network BASE
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-repayer --network ARBITRUM_ONE
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-repayer --network OP_MAINNET
DEPLOY_TYPE=STAGE npm run hardhat -- update-routes-repayer --network ETHEREUM
  • Update deployments.staging.yml
  • Propagate changes to solvers
  • Withdraw profit from old pools.

@lastperson lastperson requested a review from viatrix December 8, 2025 15:41
Base automatically changed from chore-deploy-public-pool-stage to main December 9, 2025 05:56
mpetrunic
mpetrunic previously approved these changes Dec 10, 2025
@MakMuftic
Copy link
Member

Add LIQUIDITY_ADMIN_ROLE to Liquidity Hub on the new main pool:
https://basescan.org/tx/0x8b1076f9e31d8c3bfb155e5beb818d8f3da5e0c0a44c24056c9243c95b24be41

Upgrade Liquidity Hub to point at the new main pool:
https://basescan.org/tx/0x71671d26f04b83a22afd0fe4b96a24c935cd8183536711243e1e7d1028f218a2

@MakMuftic MakMuftic requested a review from mpetrunic December 11, 2025 12:19
@MakMuftic
Copy link
Member

Add LIQUIDITY_ADMIN_ROLE to Liquidity Hub on the new main pool:
tx: https://basescan.org/tx/0x7a20d91f2a5706fec6044dee6cf944f881da83221b1e4a6388a8cb7db234e7bb

@mpetrunic mpetrunic merged commit b37adf6 into main Dec 11, 2025
4 checks passed
@mpetrunic mpetrunic deleted the chore-upgrade-pools-stage branch December 11, 2025 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade all Stage pools to after-audit versions

4 participants