Skip to content

Commit

Permalink
Update deploy-strategy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
robotoer authored Dec 19, 2024
1 parent 1735b33 commit 8ac7484
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hardhat-scripts/deploy-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 8ac7484

Please sign in to comment.