mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
lower min amount for adding (#186)
This commit is contained in:
parent
5166480157
commit
0c2bc9ad4e
@ -79,7 +79,7 @@ export default function Add({
|
|||||||
// https://github.com/jquense/yup#number
|
// https://github.com/jquense/yup#number
|
||||||
const validationSchema = Yup.object().shape<FormAddLiquidity>({
|
const validationSchema = Yup.object().shape<FormAddLiquidity>({
|
||||||
amount: Yup.number()
|
amount: Yup.number()
|
||||||
.min(0.01, 'Must be more or equal to 0.01')
|
.min(0.0001, 'Must be more or equal to 0.0001')
|
||||||
.max(
|
.max(
|
||||||
Number(amountMax),
|
Number(amountMax),
|
||||||
`Maximum you can add is ${Number(amountMax).toFixed(2)} ${coin}`
|
`Maximum you can add is ${Number(amountMax).toFixed(2)} ${coin}`
|
||||||
|
Loading…
Reference in New Issue
Block a user