Skip to content

Commit

Permalink
patch: fix order of setting block.timestamp as lastTimestamp in `Cove…
Browse files Browse the repository at this point in the history
…redCall.init`
  • Loading branch information
kinrezC committed Apr 10, 2024
1 parent 6874aca commit c182dbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CoveredCall/CoveredCall.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ contract CoveredCall is PairStrategy {
)
{
CoveredCallParams memory params;
params.timestamp = block.timestamp;

(reserves, totalLiquidity, params) =
abi.decode(data, (uint256[], uint256, CoveredCallParams));

params.timestamp = block.timestamp;

if (params.mean < MIN_WIDTH || params.mean > MAX_MEAN) {
revert InvalidMean();
}
Expand Down

0 comments on commit c182dbd

Please sign in to comment.