Skip to content

Commit

Permalink
Merge pull request #187 from overlay-market/s/set-grace-period-on-con…
Browse files Browse the repository at this point in the history
…structor

refactor to emit event
  • Loading branch information
magnetto90 authored Mar 26, 2024
2 parents 2727913 + cf31e16 commit 84d1669
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/OverlayV1Factory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ contract OverlayV1Factory is IOverlayV1Factory {

// set the sequencer oracle
sequencerOracle = AggregatorV3Interface(_sequencerOracle);
gracePeriod = _gracePeriod;
_setGracePeriod(_gracePeriod);
}

/// @dev adds a supported feed factory
Expand Down Expand Up @@ -254,6 +254,10 @@ contract OverlayV1Factory is IOverlayV1Factory {
}

function setGracePeriod(uint256 newGracePeriod) public onlyGovernor {
_setGracePeriod(newGracePeriod);
}

function _setGracePeriod(uint256 newGracePeriod) internal {
gracePeriod = newGracePeriod;
emit GracePeriodUpdated(newGracePeriod);
}
Expand Down

0 comments on commit 84d1669

Please sign in to comment.