We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01cc936 commit 22ee2deCopy full SHA for 22ee2de
1 file changed
SampleOffer.sol
@@ -95,6 +95,9 @@ contract SampleOffer {
95
if (msg.sender != contractor)
96
throw;
97
uint amount = (now - dateOfSignature + 1 days) / (1 days) * dailyWithdrawLimit - paidOut;
98
+ if (amount > this.balance) {
99
+ amount = this.balance;
100
+ }
101
if (contractor.send(amount))
102
paidOut += amount;
103
}
0 commit comments