diff --git a/hardhat-scripts/deploy-strategy.ts b/hardhat-scripts/deploy-strategy.ts index 598f850..b07dedb 100644 --- a/hardhat-scripts/deploy-strategy.ts +++ b/hardhat-scripts/deploy-strategy.ts @@ -167,6 +167,9 @@ async function main() { process.env.MIN_COLLATERAL_RATIOS! ); + if (collateralTokens.length !== minCollateralRatios.length) { + throw new Error("COLLATERAL_TOKEN_ADDRESSES and MIN_COLLATERAL_RATIOS must have the same number of entries."); + } for (let i = 0; i < collateralTokens.length; i++) { await strategy.setCollateralTokenParams( collateralTokens[i],