Skip to content

Instantly share code, notes, and snippets.

@katat
Last active November 17, 2019 08:20
Show Gist options
  • Save katat/ccb9f95880e1752decf7ee4c87beb628 to your computer and use it in GitHub Desktop.
Save katat/ccb9f95880e1752decf7ee4c87beb628 to your computer and use it in GitHub Desktop.
const settlements = await settlementFactory.getAllSettlements(wallet.address, tokenInfo.currency);
//settlement.type indicates which type the settlement is.
//settlement.isStageable indicates if the settlement is qualified and ready to be staged (marked as completed)
//settlement.isOngoing indicates if the settlement is still within the challenge period.
//settlement.expirationTime indicates the end time of the challenge period.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment