Skip to content

Commit

Permalink
get rid of big number conversions in building strategy params:
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Dec 21, 2024
1 parent cc1f792 commit 2a5b1ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hardhat-scripts/deploy-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ async function buildStrategyParams(
const _yearnVault = process.env.YEARN_VAULT_ADDRESS!;
const _discountRateAdapter = process.env.DISCOUNT_RATE_ADAPTER_ADDRESS!;
const _termController = process.env.TERM_CONTROLLER_ADDRESS!;
const _discountRateMarkup = ethers.BigNumber.from(process.env.DISCOUNT_RATE_MARKUP!);
const _timeToMaturityThreshold = ethers.BigNumber.from(process.env.TIME_TO_MATURITY_THRESHOLD!);
const _repoTokenConcentrationLimit = ethers.BigNumber.from(process.env.REPOTOKEN_CONCENTRATION_LIMIT!);
const _requiredReserveRatio = ethers.BigNumber.from(process.env.NEW_REQUIRED_RESERVE_RATIO!);
const _discountRateMarkup = process.env.DISCOUNT_RATE_MARKUP!;
const _timeToMaturityThreshold = process.env.TIME_TO_MATURITY_THRESHOLD!;
const _repoTokenConcentrationLimit = process.env.REPOTOKEN_CONCENTRATION_LIMIT!;
const _requiredReserveRatio = process.env.NEW_REQUIRED_RESERVE_RATIO!;

await checkUnderlyingVaultAsset(_asset, _yearnVault, managedSigner);

Expand Down

0 comments on commit 2a5b1ae

Please sign in to comment.