Skip to content

Stake input fields should use BigInt for accuracy?  #77

@jonijuup

Description

@jonijuup

Muzamil pointed out that the Stake input field in StakeSubRow should use BigInt for accuracy. It currently uses the rounded value (staked.juiceValue).

Muzamil's suggestion:
const [stakeAmount, setStakeAmount] = useState(staked?.juiceValue || "");
To
const [stakeAmount, setStakeAmount] = useState(formatUnits(staked.rawJuiceValue, juiceDecimals));

Probably will make the inputs quite hard to use with the millions of Juice people have currently. Thoughts? 😅

Metadata

Metadata

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