added real validation to activation

This commit is contained in:
mbeylin 2017-06-06 17:02:56 -04:00
parent 0a6ddd266d
commit bd8380b691
1 changed files with 2 additions and 2 deletions

View File

@ -128,8 +128,9 @@ contract StandardBounty {
// stage, thus all funds which are surplus to paying out those bounties
// are refunded. After this, new funds may also be added on an ad-hoc
// basis
require (msg.value + this.balance >= fulfillmentAmount);
if ( (msg.value + this.balance) % fulfillmentAmount > 0) {
msg.sender.transfer((msg.value + this.balance) % fulfillmentAmount);
msg.sender.transfer((msg.value + this.balance) % fulfillmentAmount);
}
_;
@ -175,7 +176,6 @@ contract StandardBounty {
isBeforeDeadline
amountIsNotZero(value)
amountEqualsValue(value)
validateFunding
{
ContributionAdded(msg.sender, msg.value);
}