Skip to content

Commit

Permalink
refactor: remove SablierIERC20 import
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Sep 25, 2023
1 parent 851571c commit 7409775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ISablierV2LockupDynamic} from "@sablier/v2-core/src/interfaces/ISablierV2LockupDynamic.sol";
import {Broker, LockupDynamic} from "@sablier/v2-core/src/types/DataTypes.sol";
import {IERC20 as SablierIERC20} from "@sablier/v2-core/src/types/Tokens.sol";

import {IAllo} from "../../../core/interfaces/IAllo.sol";
import {IRegistry} from "../../../core/interfaces/IRegistry.sol";
Expand Down Expand Up @@ -377,7 +376,7 @@ contract LockupDynamicStrategy is BaseStrategy, ReentrancyGuard {
uint128 amount = uint128(recipient.grantAmount);

LockupDynamic.CreateWithDeltas memory params = LockupDynamic.CreateWithDeltas({
asset: SablierIERC20(pool.token),
asset: IERC20(pool.token),
broker: broker,
cancelable: recipient.cancelable,
recipient: recipient.recipientAddress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ISablierV2LockupLinear} from "@sablier/v2-core/src/interfaces/ISablierV2LockupLinear.sol";
import {Broker, LockupLinear} from "@sablier/v2-core/src/types/DataTypes.sol";
import {IERC20 as SablierIERC20} from "@sablier/v2-core/src/types/Tokens.sol";

import {IAllo} from "../../../core/interfaces/IAllo.sol";
import {IRegistry} from "../../../core/interfaces/IRegistry.sol";
Expand Down Expand Up @@ -366,7 +365,7 @@ contract LockupLinearStrategy is BaseStrategy, ReentrancyGuard {
uint128 amount = uint128(recipient.grantAmount);

LockupLinear.CreateWithDurations memory params = LockupLinear.CreateWithDurations({
asset: SablierIERC20(pool.token),
asset: IERC20(pool.token),
broker: broker,
cancelable: recipient.cancelable,
durations: recipient.durations,
Expand Down

0 comments on commit 7409775

Please sign in to comment.