fix withdraw max button value

This commit is contained in:
saml33 2023-09-11 09:30:04 +10:00
parent 634a017b1e
commit 34aa442244
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ function WithdrawForm({ onSuccess, token }: WithdrawFormProps) {
const setMax = useCallback(() => {
if (!bank) return
const max = floorToDecimal(adjustedTokenMax, bank.mintDecimals)
setInputAmount(max.toString())
setInputAmount(max.toFixed())
setSizePercentage('100')
}, [bank, adjustedTokenMax])