We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47afedf commit 7206788Copy full SHA for 7206788
src/StageRaise.sol
@@ -261,7 +261,10 @@ contract StageRaise {
261
if (fundingAmountUSD < projectById[_projectId].basics.minFundingUSD) {
262
revert StageRaise__FundingAmountBelowMinimum();
263
}
264
- if (fundingAmountUSD > projectById[_projectId].basics.maxFundingUSD) {
+
265
266
+ uint256 funderCurrentContribution = getUSDValue(projectById[_projectId].contributorsToAmountFunded[msg.sender]);
267
+ if ((fundingAmountUSD + funderCurrentContribution) > projectById[_projectId].basics.maxFundingUSD) {
268
revert StageRaise__FundingAmountAboveMaximum();
269
270
0 commit comments