Skip to content

Commit ef5a072

Browse files
authored
fix: retrofunding strategy to not allow round date updates after the distribution phase has started (#674)
1 parent b5907b6 commit ef5a072

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contracts/strategies/_poc/easy-rf/EasyRetroFundingStrategy.sol

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,11 @@ contract EasyRetroFundingStrategy is Native, BaseStrategy, Multicall {
337337
) external onlyPoolManager(msg.sender) {
338338
// If the timestamps are invalid this will revert - See details in '_isPoolTimestampValid'
339339
_isPoolTimestampValid(_registrationStartTime, _registrationEndTime, _poolStartTime, _poolEndTime);
340-
340+
// If the distribution has already started this will revert, you can only
341+
// update the pool timestamps before the distribution has started
342+
if (distributionStarted) {
343+
revert INVALID();
344+
}
341345
// Set the updated timestamps
342346
registrationStartTime = _registrationStartTime;
343347
registrationEndTime = _registrationEndTime;

0 commit comments

Comments
 (0)