Skip to content

Fix Stake CAP approval spender#125

Open
AlexTs10 wants to merge 1 commit into
capofficial:mainfrom
AlexTs10:fix-stake-cap-approval-spender
Open

Fix Stake CAP approval spender#125
AlexTs10 wants to merge 1 commit into
capofficial:mainfrom
AlexTs10:fix-stake-cap-approval-spender

Conversation

@AlexTs10
Copy link
Copy Markdown

Summary

  • switch the Stake CAP allowance/approval spender from FundStore to Staking, matching the contract used by depositCAP
  • keep the Stake CAP modal in a loading state while allowance checks and approval transactions are pending
  • refresh allowance and wallet balance after successful approval

Why

The Stake CAP flow could show the stake path before the correct CAP staking allowance was known, which produced the premature allowance error described in #32. Approval now targets the same Staking contract that receives the stake transaction.

Validation

  • npm ci
  • npm run build
  • git diff --check

Resolves #32

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