Skip to content

Commit

Permalink
test: enable second collateral in ShouldWorkWithMultipleCollateralTokens
Browse files Browse the repository at this point in the history
Enable the second collateral and update its price from second feed.
  • Loading branch information
gitcoindev committed Dec 17, 2023
1 parent ccfe0e2 commit e275f64
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -869,11 +869,16 @@ contract UbiquityPoolFacetTest is DiamondTestSetup {
poolCeiling
);

// enable collateral at index 1
ubiquityPoolFacet.toggleCollateral(1);

ubiquityPoolFacet.setCollateralChainLinkPriceFeedAddress(
address(collateralToken2),
address(collateralTokenPriceFeed2)
);

ubiquityPoolFacet.updateChainLinkCollateralPrice(1);

info = ubiquityPoolFacet.collateralInformation(
address(collateralToken)
);
Expand Down

0 comments on commit e275f64

Please sign in to comment.