Skip to content

Commit

Permalink
fix: use PoolRegistry interface
Browse files Browse the repository at this point in the history
  • Loading branch information
web3rover committed Oct 9, 2023
1 parent d72e82d commit 761b0e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/RiskFund/ReserveHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { ensureNonzeroAddress } from "../lib/validators.sol";
import { ComptrollerInterface } from "../ComptrollerInterface.sol";
import { PoolRegistryInterface } from "../Pool/PoolRegistryInterface.sol";
import { VToken } from "../VToken.sol";
import { PoolRegistry } from "../Pool/PoolRegistry.sol";

contract ReserveHelpers is Ownable2StepUpgradeable {
using SafeERC20Upgradeable for IERC20Upgradeable;
Expand Down Expand Up @@ -164,6 +163,6 @@ contract ReserveHelpers is Ownable2StepUpgradeable {
return isAssetListedInCore(asset);
}

return PoolRegistry(poolRegistry).getVTokenForAsset(comptroller, asset) != address(0);
return PoolRegistryInterface(poolRegistry).getVTokenForAsset(comptroller, asset) != address(0);
}
}

0 comments on commit 761b0e1

Please sign in to comment.