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? 😅
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? 😅