Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaStreamflow committed Oct 9, 2023
1 parent 77723d8 commit 807908a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/stream/common/contractUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ export const isPayment = (streamData: { canTopup: boolean }): boolean => {
return streamData.canTopup;
};

export const isVesting = (streamData: { canTopup: boolean }): boolean => {
export const isVesting = (streamData: {
canTopup: boolean;
depositedAmount: BN;
cliffAmount: BN;
}): boolean => {
return !streamData.canTopup && !isCliffCloseToDepositedAmount(streamData);
};

Expand Down

0 comments on commit 807908a

Please sign in to comment.