ApeWorX / ApePay

A smart contract payment system built for automated service management
https://apeworx.io/apepay
Apache License 2.0
18 stars 5 forks source link

make iscancellable sync [SBK-333] #62

Closed alexisnsns closed 7 months ago

alexisnsns commented 8 months ago
          suggestion(non-blocking): can actually make this sync if `StreamInfo.start_time` is added to the properties on the constructor of `Stream`
  isCancelable(): boolean {
    return this.streamManager.MIN_STREAM_LIFE < (Date.now() / 1000 - this.startTime);
  }

_Originally posted by @fubuloubu in https://github.com/ApeWorX/ApePay/pull/60#discussion_r1372376673_