@@ -6,7 +6,7 @@ import {BitMaps} from "@openzeppelin/contracts/utils/structs/BitMaps.sol";
66import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol " ;
77import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol " ;
88import {ERC7201Helper } from "./utils/ERC7201Helper.sol " ;
9- import {ILiquidityPool } from "./interfaces/ILiquidityPool .sol " ;
9+ import {ILiquidityPoolBase } from "./interfaces/ILiquidityPoolBase .sol " ;
1010import {IRebalancer} from "./interfaces/IRebalancer.sol " ;
1111import {CCTPAdapter} from "./utils/CCTPAdapter.sol " ;
1212
@@ -105,7 +105,7 @@ contract Rebalancer is IRebalancer, AccessControlUpgradeable, CCTPAdapter {
105105 require (pool != address (0 ), ZeroAddress ());
106106 if (domain == DOMAIN) {
107107 require (provider == Provider.LOCAL, UnsupportedProvider ());
108- require (ILiquidityPool (pool).ASSETS () == ASSETS, InvalidPoolAssets ());
108+ require (ILiquidityPoolBase (pool).ASSETS () == ASSETS, InvalidPoolAssets ());
109109 } else {
110110 require (provider != Provider.LOCAL, UnsupportedProvider ());
111111 }
@@ -170,7 +170,7 @@ contract Rebalancer is IRebalancer, AccessControlUpgradeable, CCTPAdapter {
170170 require (isRouteAllowed (destinationPool, destinationDomain, provider), RouteDenied ());
171171
172172 emit InitiateRebalance (amount, sourcePool, destinationPool, destinationDomain, provider);
173- ILiquidityPool (sourcePool).withdraw (address (this ), amount);
173+ ILiquidityPoolBase (sourcePool).withdraw (address (this ), amount);
174174
175175 if (provider == Provider.LOCAL) {
176176 // This should always pass because isRouteAllowed check will fail earlier.
@@ -197,7 +197,7 @@ contract Rebalancer is IRebalancer, AccessControlUpgradeable, CCTPAdapter {
197197 uint256 depositAmount = 0 ;
198198 if (provider == Provider.CCTP) {
199199 depositAmount = processTransferCCTP (ASSETS, destinationPool, extraData);
200- ILiquidityPool (destinationPool).deposit (depositAmount);
200+ ILiquidityPoolBase (destinationPool).deposit (depositAmount);
201201 } else {
202202 // Unreachable atm, but could become so when more providers are added to enum.
203203 revert UnsupportedProvider ();
@@ -211,7 +211,7 @@ contract Rebalancer is IRebalancer, AccessControlUpgradeable, CCTPAdapter {
211211 address destinationPool
212212 ) internal {
213213 ASSETS.safeTransfer (destinationPool, amount);
214- ILiquidityPool (destinationPool).deposit (amount);
214+ ILiquidityPoolBase (destinationPool).deposit (amount);
215215
216216 emit ProcessRebalance (amount, destinationPool, Provider.LOCAL);
217217 }
0 commit comments