1
0
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:
Matthias Kretschmann 2020-11-02 11:24:08 +01:00 committed by GitHub
parent 5166480157
commit 0c2bc9ad4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}`