fix withdraw max button value
This commit is contained in:
parent
634a017b1e
commit
34aa442244
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue