mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-30 05:41:41 +02:00
lower allowed OCEAN amount to add
This commit is contained in:
parent
d33669c963
commit
aff25b7954
|
@ -71,7 +71,7 @@ export default function Add({
|
|||
// https://github.com/jquense/yup#number
|
||||
const validationSchema = Yup.object().shape<FormAddLiquidity>({
|
||||
amount: Yup.number()
|
||||
.min(1, 'Must be more or equal to 1')
|
||||
.min(0.01, 'Must be more or equal to 0.01')
|
||||
.max(
|
||||
Number(amountMax),
|
||||
`Maximum you can add is ${Number(amountMax).toFixed(2)} ${coin}`
|
||||
|
|
Loading…
Reference in New Issue
Block a user