Skip to content

Conversation

@0xPilou
Copy link
Contributor

@0xPilou 0xPilou commented Jan 29, 2026

This PR intend to strengthen the deployment procedure of SPR contracts.

The deploy scripts now defines a new safety mechanism.
It compares each parameter in AddressRegistry against the current live implementation.
If a parameter differs and the corresponding env var is NOT set, the script reverts.
This ensures that parameter changes are always intentional and explicitly acknowledged.

The new deployment workflow is as follow :

  1. Update the desired parameter values in `AddressRegistry.sol` for the target network

  2. For each parameter you intend to change, set the corresponding environment variable to `true`:
     - UPDATE_SUP=true
     - UPDATE_PROGRAM_MANAGER=true
     - UPDATE_STAKING_REWARD_CONTROLLER=true
     - UPDATE_FONTAINE_BEACON=true
     - UPDATE_UNLOCK_AVAILABLE=true
     - UPDATE_NONFUNGIBLE_POSITION_MANAGER=true
     - UPDATE_ETH_SUP_POOL=true
     - UPDATE_SWAP_ROUTER=true
     - UPDATE_DAO_TREASURY=true

  3. Run the deployment script

Example :

To deploy an upgrade that only changes the Fonaine Beacon address:

export UPDATE_FONTAINE_BEACON=true
forge script script/upgrades/deploy-locker-upgrade.s.sol:DeployLockerUpgrade \
--ffi --via-ir --rpc-url $BASE_MAINNET_RPC_URL --account SUP_DEPLOYER

@0xPilou
Copy link
Contributor Author

0xPilou commented Jan 29, 2026

Next steps :

deliver similar deploy script & associated address registries for the following upgradeable SPR contracts :

  • FluidLockerFactory
  • StakingRewardController
  • FluidEPProgramManager
  • Fontaine

@0xPilou 0xPilou marked this pull request as ready for review January 30, 2026 09:45
@0xPilou 0xPilou requested a review from hellwolf January 30, 2026 09:46
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.

1 participant