Skip to content

Commit

Permalink
feat(fusion-order): add .isExpiredAt method (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrvk committed Mar 20, 2024
1 parent 1d2f809 commit dc83672
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/fusion-order/fusion-order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,4 +350,13 @@ export class FusionOrder {
executionTime
)
}

/**
* Check is order expired at a given time
*
* @param time timestamp in seconds
*/
public isExpiredAt(time: bigint): boolean {
return time > this.deadline
}
}

0 comments on commit dc83672

Please sign in to comment.