isProtocolActive()

  /**
   * Check if the Portrait Protocol is active.
   *
   * @remarks
   * This function will return true if the Portrait Protocol is active. If the Portrait Protocol is paused, this function will return false.
   *
   * @returns {boolean} - True if the Portrait Protocol is active. False if the Portrait Protocol is paused.
   * @beta
   * @async
   */
  isProtocolActive(): boolean {
    const paused = this.portrait.portraitCollectiveContract.paused();
    return paused ? false : true;
  }

Last updated