Skip to content
Permalink
Browse files

Finance: fix usage of ERROR_NEW_PAYMENT_EXECS_ZERO (#752)

  • Loading branch information...
sohkai committed Mar 28, 2019
1 parent 5136285 commit a66f8762589e27a0b0313a444c6f13fec26b5267
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/finance/contracts/Finance.sol
@@ -270,7 +270,7 @@ contract Finance is EtherTokenConstant, IsContract, AragonApp {
{
require(_amount > 0, ERROR_NEW_PAYMENT_AMOUNT_ZERO);
require(_interval > 0, ERROR_NEW_PAYMENT_INTERVAL_ZERO);
require(_maxExecutions > 0, ERROR_NEW_PAYMENT_EXECUTIONS_ZERO);
require(_maxExecutions > 0, ERROR_NEW_PAYMENT_EXECS_ZERO);

// Token budget must not be set at all or allow at least one instance of this payment each period
require(!settings.hasBudget[_token] || settings.budgets[_token] >= _amount, ERROR_BUDGET);

0 comments on commit a66f876

Please sign in to comment.
You can’t perform that action at this time.