Skip to content

Commit

Permalink
Finance: fix usage of ERROR_NEW_PAYMENT_EXECS_ZERO (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Mar 28, 2019
1 parent 5136285 commit a66f876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/finance/contracts/Finance.sol
Expand Up @@ -270,7 +270,7 @@ contract Finance is EtherTokenConstant, IsContract, AragonApp {
{ {
require(_amount > 0, ERROR_NEW_PAYMENT_AMOUNT_ZERO); require(_amount > 0, ERROR_NEW_PAYMENT_AMOUNT_ZERO);
require(_interval > 0, ERROR_NEW_PAYMENT_INTERVAL_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 // 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); require(!settings.hasBudget[_token] || settings.budgets[_token] >= _amount, ERROR_BUDGET);
Expand Down

0 comments on commit a66f876

Please sign in to comment.