Skip to content

fix: prevent premature Stake CAP approval errors#146

Open
kingzzoov-ctrl wants to merge 1 commit into
capofficial:mainfrom
kingzzoov-ctrl:bounty-32-stake-approval
Open

fix: prevent premature Stake CAP approval errors#146
kingzzoov-ctrl wants to merge 1 commit into
capofficial:mainfrom
kingzzoov-ctrl:bounty-32-stake-approval

Conversation

@kingzzoov-ctrl
Copy link
Copy Markdown

Summary

  • switch the Stake CAP allowance/approval spender from FundStore to Staking, matching the contract used by depositCAP()
  • keep the approve button in a loading/disabled state while allowance checks and wallet approval are pending
  • refresh the CAP wallet balance after a successful approval so the modal stays current

Validation

  • npm run build (passes; existing Svelte/Rollup warnings remain)
  • git diff --check

Fixes #32

Bounty note: requesting assignment/consideration for issue #32 if still eligible.

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