Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError committed Oct 26, 2023
1 parent e2d1a76 commit 044f094
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/PriceOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,10 @@ contract PriceOracle is AccessControl {
// Set the number of rounds that were skipped
uint64 skippedRounds = currentRoundNumber - lastAdjustedRound - 1;

//console.log(_currentPrice);
console.log(_currentPriceUpscaled);
// We first apply the increase/decrease rate for the current round
uint32 _changeRate = changeRate[usedRedundancy];
_currentPriceUpscaled = (_changeRate * _currentPriceUpscaled) / _priceBase;

// console.log(skippedRounds);

// console.log(_currentPriceUpscaled);

// If previous rounds were skipped, use MAX price increase for the previous rounds
if (skippedRounds > 0) {
_changeRate = changeRate[0];
Expand All @@ -146,10 +140,6 @@ contract PriceOracle is AccessControl {

_currentPrice = uint32(_currentPriceUpscaled) >> 10;

// console.log(_currentPrice);
console.log(_currentPriceUpscaled);
console.log("-----");

// Enforce minimum price
if (_currentPrice < _minimumPrice) {
_currentPrice = _minimumPrice;
Expand Down

0 comments on commit 044f094

Please sign in to comment.