Don't allow invoices lower than 0.001 and require 0.01 for sponsorship.

refs #122
This commit is contained in:
softsimon
2020-10-08 00:20:42 +07:00
parent 0cbc7e2ab6
commit 1f7483687f
3 changed files with 35 additions and 20 deletions

View File

@@ -117,8 +117,8 @@ class Routes {
return;
}
if (p.amount < 0.01) {
res.status(400).send('Amount needs to be at least 0.01');
if (p.amount < 0.001) {
res.status(400).send('Amount needs to be at least 0.001');
return;
}