fix(deposits): validation with exempt (#3909)

This commit is contained in:
Art 2023-05-23 17:44:06 +02:00 committed by GitHub
parent 7a89dc984d
commit e2c4c4a841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,7 +332,7 @@ export const DepositForm = ({
}
let lifetimeLimit = new BigNumber(Infinity);
if (balances.max.isGreaterThan(0)) {
if (balances.max.isGreaterThan(0) && !balances.exempt) {
lifetimeLimit = balances.max.minus(balances.deposited);
}