Skip to content

Use exact CAP balances for max stake actions#258

Open
qingfeng312 wants to merge 1 commit into
capofficial:mainfrom
qingfeng312:bounty-60-stake-max-raw-balance
Open

Use exact CAP balances for max stake actions#258
qingfeng312 wants to merge 1 commit into
capofficial:mainfrom
qingfeng312:bounty-60-stake-max-raw-balance

Conversation

@qingfeng312

Copy link
Copy Markdown

Fixes #60.

Summary

  • keep the displayed CAP balance rounded for readability
  • use the exact wallet balance when the Stake CAP max row is clicked
  • use the exact staked CAP amount when the Unstake CAP max row is clicked

This prevents the max shortcut from writing a rounded display value that can exceed the actual spendable/staked amount.

Validation

  • git diff --check
  • Not run: full build dependencies are not installed in this clean checkout.

Payout address: 0xe87b4889baeee4ed60a1b2bfc7b3a6a17bce4ad6

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.

Max Staking CAP Causes MetaMask Error

1 participant