From ba77efc1acc090ff705ad5e56e63cc7d151ddc35 Mon Sep 17 00:00:00 2001 From: SocksNFlops Date: Wed, 16 Sep 2026 15:10:29 +0800 Subject: [PATCH] BW-185: skip mock-only deploys on a production DeployAll run deployYieldStrategies() and deployNFTMetadataGenerator() deploy test mocks and revert when IS_TEST and IS_TESTNET are both false, so DeployAll could not complete a mainnet run. Gate both calls on the mock modes instead: production SubConsols launch without a yield strategy and the LoanManager with a zero metadata generator, matching the live 999 stack. Co-Authored-By: Claude Fable 5.1 --- script/DeployAll.s.sol | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/script/DeployAll.s.sol b/script/DeployAll.s.sol index 577a841..ccfccc8 100644 --- a/script/DeployAll.s.sol +++ b/script/DeployAll.s.sol @@ -33,8 +33,10 @@ contract DeployAll is DeployOriginationScheduler, DeployOrderPool, DeployLoanMan deployForfeitedAssetsPool(); // Deploy SubConsols deploySubConsols(); - // Deploy YieldStrategies - deployYieldStrategies(); // Disabled for production + // Deploy YieldStrategies (mocks; production SubConsols launch without one) + if (isTest || isTestnet) { + deployYieldStrategies(); + } // Deploy Consol deployConsol(); // Get or create the pyth oracle (skipped when the deploy prices collateral with Chainlink feeds) @@ -45,8 +47,10 @@ contract DeployAll is DeployOriginationScheduler, DeployOrderPool, DeployLoanMan deployInterestOracle(); // Deploy PriceOracles that read from the PythOracle deployPriceOracles(); - // Deploy NFTMetadataGenerator - deployNFTMetadataGenerator(); // Disabled for production + // Deploy NFTMetadataGenerator (mock; production LoanManager launches with none) + if (isTest || isTestnet) { + deployNFTMetadataGenerator(); + } // Deploy GeneralManager deployGeneralManager(); // Configure the origination fee