Skip to content

Should also check UBI pool if wallet can claim #5

@sirpy

Description

@sirpy
  1. Currently the claim method doesnt call the UBI pool canClaim method.
    This can result in a claim TX doing nothing, just wasting gas

  2. There should be a single method for a developer to check the wallet claim status

  • not whitelisted - developer knows he still need to show the claim button that will redirect to get verified (or show a custom message)
  • can claim (entitlement > 0) - developer knows to show claim button
  • already claimed - developer knows to show timer or custom message
  1. consider have nextClaimTime to return 0 if wallet checkEntitlement > 0.

const canClaim = await this.checkBalanceWithRetry()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions