You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe fix this after #73 is merged, so we'll keep the "Save" button disabling if the stake has not been edited (without comparing changes, people can mistakenly save stakes that have no actual changes made).
Better way to do this is to have a beautified balance together with the raw value. Good way to get it is with a callback formatting the raw value with formatUnits()
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? 😅
The text was updated successfully, but these errors were encountered: