Skip to content

Commit

Permalink
test: tweaks from review
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Nov 4, 2024
1 parent a00137d commit 1ca3429
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/helpers/ForkTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ contract ForkTest is BaseTest, Configured {

function _getLtvLt(address underlying) internal view returns (uint256 ltvConfig, uint256 ltConfig) {
DataTypes.ReserveConfigurationMap memory config = pool.getConfiguration(underlying);
ltvConfig = uint16(config.getLtv());
ltConfig = uint16(config.getLiquidationThreshold());
ltvConfig = config.getLtv();
ltConfig = config.getLiquidationThreshold();
}

function _setEModeCategoryAsset(
Expand Down
4 changes: 2 additions & 2 deletions test/integration/TestIntegrationEModeNative.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ contract TestIntegrationEModeNative is IntegrationTest {
using EModeConfiguration for uint128;

function setUp() public virtual override {
uint256 lsdNativeIndex = pool.getReserveData(stNative).id;
uint256 stNativeIndex = pool.getReserveData(stNative).id;

// Guess the eModeCategoryId for LSD to be 1.
eModeCategoryId = 1;

DataTypes.CollateralConfig memory collateralConfig = pool.getEModeCategoryCollateralConfig(eModeCategoryId);
require(collateralConfig.liquidationThreshold != 0, "not activated e-mode");
require(
pool.getEModeCategoryCollateralBitmap(eModeCategoryId).isReserveEnabledOnBitmap(lsdNativeIndex),
pool.getEModeCategoryCollateralBitmap(eModeCategoryId).isReserveEnabledOnBitmap(stNativeIndex),
"wrong e-mode category"
);

Expand Down

0 comments on commit 1ca3429

Please sign in to comment.