Skip to content

Commit

Permalink
Use new Sablier interfaces in DecentSablierStreamManagement
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Oct 9, 2024
1 parent 1ec9650 commit c39571a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/DecentSablierStreamManagement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ pragma solidity =0.8.19;

import {Enum} from "@gnosis.pm/safe-contracts/contracts/common/Enum.sol";
import {IAvatar} from "@gnosis.pm/zodiac/contracts/interfaces/IAvatar.sol";
import {ISablierV2Lockup} from "./interfaces/sablier/ISablierV2Lockup.sol";
import {LockupLinear2} from "./interfaces/sablier/LockupLinear2.sol";
import {ISablierV2Lockup} from "./interfaces/sablier/full/ISablierV2Lockup.sol";
import {Lockup} from "./interfaces/sablier/full/types/DataTypes.sol";

contract DecentSablierStreamManagement {
string public constant NAME = "DecentSablierStreamManagement";
Expand Down Expand Up @@ -42,10 +42,10 @@ contract DecentSablierStreamManagement {

function cancelStream(ISablierV2Lockup sablier, uint256 streamId) public {
// Check if the stream can be cancelled
LockupLinear2.Status streamStatus = sablier.statusOf(streamId);
Lockup.Status streamStatus = sablier.statusOf(streamId);
if (
streamStatus != LockupLinear2.Status.PENDING &&
streamStatus != LockupLinear2.Status.STREAMING
streamStatus != Lockup.Status.PENDING &&
streamStatus != Lockup.Status.STREAMING
) {
return;
}
Expand Down

0 comments on commit c39571a

Please sign in to comment.