Skip to content

Commit

Permalink
- Removed compilation warnings from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eboadom committed Jul 10, 2024
1 parent 26b52f7 commit cdb05ee
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions tests/core/PoolConfigurator.pendingLTV.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ contract PoolConfiguratorPendingLtvTests is TestnetProcedures {

function test_freezeReserve_ltvSetTo0() public {
// check current ltv
(
uint256 ltv,
uint256 liquidationThreshold,
uint256 liquidationBonus,
bool isFrozen
) = _getReserveParams();
(uint256 ltv, , , bool isFrozen) = _getReserveParams();

assertTrue(ltv > 0);
assertEq(isFrozen, false);
Expand All @@ -51,12 +46,7 @@ contract PoolConfiguratorPendingLtvTests is TestnetProcedures {

function test_unfreezeReserve_pendingSetToLtv() public {
// check ltv
(
uint256 originalLtv,
uint256 liquidationThreshold,
uint256 liquidationBonus,

) = _getReserveParams();
(uint256 originalLtv, , , ) = _getReserveParams();

// freeze reserve
vm.startPrank(poolAdmin);
Expand Down Expand Up @@ -154,7 +144,7 @@ contract PoolConfiguratorPendingLtvTests is TestnetProcedures {
vm.stopPrank();
}

function _getReserveParams() internal returns (uint256, uint256, uint256, bool) {
function _getReserveParams() internal view returns (uint256, uint256, uint256, bool) {
(
,
uint256 ltv,
Expand Down

0 comments on commit cdb05ee

Please sign in to comment.