diff --git a/src/components/StakeSyrupModal/StakeSyrupModal.tsx b/src/components/StakeSyrupModal/StakeSyrupModal.tsx index 3ffbb1390..582e458bc 100644 --- a/src/components/StakeSyrupModal/StakeSyrupModal.tsx +++ b/src/components/StakeSyrupModal/StakeSyrupModal.tsx @@ -212,9 +212,7 @@ const StakeSyrupModal: React.FC = ({ cursor: 'pointer', }} onClick={() => { - setTypedValue( - maxAmountInput ? maxAmountInput.toSignificant() : '0', - ); + setTypedValue(maxAmountInput ? maxAmountInput.toExact() : '0'); setStakePercent(100); }} > @@ -232,11 +230,12 @@ const StakeSyrupModal: React.FC = ({ setStakePercent(value as number); setTypedValue( maxAmountInput - ? ( - (Number(maxAmountInput.toSignificant()) * - stakePercent) / - 100 - ).toFixed(8) + ? stakePercent < 100 + ? ( + (Number(maxAmountInput.toExact()) * stakePercent) / + 100 + ).toString() + : maxAmountInput.toExact() : '0', ); }}