Skip to content

Fix Stake CAP approval pending state#122

Open
yangyu0330 wants to merge 1 commit into
capofficial:mainfrom
yangyu0330:fix/stake-cap-approval-state-32
Open

Fix Stake CAP approval pending state#122
yangyu0330 wants to merge 1 commit into
capofficial:mainfrom
yangyu0330:fix/stake-cap-approval-state-32

Conversation

@yangyu0330
Copy link
Copy Markdown

Closes #32.

Summary

  • Check CAP allowance against the Staking contract, which is the contract used by depositCAP() for staking.
  • Keep the Stake CAP modal in a loading state while allowance is being checked or the approval transaction is pending.
  • Prevent the Stake action from submitting while approval is still required or allowance is still loading.

Verification

  • npm run build

I also requested assignment in the issue for bounty eligibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong error message while approving CAP on Stake function

1 participant