We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dcb15dd + 4d0ae5d commit 01cc936Copy full SHA for 01cc936
1 file changed
SampleOfferWithoutReward.sol
@@ -92,6 +92,9 @@ contract SampleOfferWithoutRewards {
92
if (msg.sender != contractor)
93
throw;
94
uint amount = (now - dateOfSignature + 1 days) / (1 days) * dailyWithdrawLimit - paidOut;
95
+ if (amount > this.balance) {
96
+ amount = this.balance;
97
+ }
98
if (contractor.send(amount))
99
paidOut += amount;
100
}
0 commit comments