Skip to content

Commit

Permalink
Removed console log
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Mar 22, 2024
1 parent 725cc15 commit ffc19c3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/libraries/TwabLib.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "forge-std/console2.sol";

import "ring-buffer-lib/RingBufferLib.sol";

import { ObservationLib, MAX_CARDINALITY } from "./ObservationLib.sol";
Expand Down Expand Up @@ -252,10 +250,8 @@ library TwabLib {
if (_targetTime < PERIOD_OFFSET) {
return 0;
}
console2.log("lastObservationAt", lastObservationAt(PERIOD_LENGTH, PERIOD_OFFSET));
// if this is for an overflowed time period, return 0
if (isShutdownAt(_targetTime, PERIOD_LENGTH, PERIOD_OFFSET)) {
console2.log("IS SHUTDOWN", _targetTime);
return 0;
}
ObservationLib.Observation memory prevOrAtObservation = _getPreviousOrAtObservation(
Expand Down

0 comments on commit ffc19c3

Please sign in to comment.