Skip to content

Commit

Permalink
comment out console.logs to keep linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNoepel committed Dec 16, 2024
1 parent 5d9cfa9 commit 4ecdbbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/oracle/contracts/Oracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { IMarket, IMargin } from "@perennial/v2-core/contracts/interfaces/IMarke
import { OracleVersion } from "@perennial/v2-core/contracts/types/OracleVersion.sol";
import { OracleReceipt } from "@perennial/v2-core/contracts/types/OracleReceipt.sol";
import { IOracle } from "./interfaces/IOracle.sol";
import "hardhat/console.sol";
// import "hardhat/console.sol";

/// @title Oracle
/// @notice The top-level oracle contract that implements an oracle provider interface.
Expand Down Expand Up @@ -131,9 +131,9 @@ contract Oracle is IOracle, Instance {
UFixed6 feeReceived = market.claimFee(address(this));

// return the settlement fee portion to the sub oracle's factory
console.log("Oracle.claimFee pushing %s DSU from %s to %s", UFixed6.unwrap(settlementFeeRequested), address(this), msg.sender);
// console.log("Oracle.claimFee pushing %s DSU from %s to %s", UFixed6.unwrap(settlementFeeRequested), address(this), msg.sender);
market.margin().DSU().push(msg.sender, UFixed18Lib.from(settlementFeeRequested));
console.log("Oracle.claimFee done pushing DSU");
// console.log("Oracle.claimFee done pushing DSU");

emit FeeReceived(settlementFeeRequested, feeReceived.sub(settlementFeeRequested));
}
Expand Down
6 changes: 3 additions & 3 deletions packages/oracle/contracts/keeper/KeeperOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { OracleParameter } from "../types/OracleParameter.sol";
import { PriceResponse, PriceResponseStorage, PriceResponseLib } from "./types/PriceResponse.sol";
import { KeeperOracleParameter } from "./types/KeeperOracleParameter.sol";
import { IOracle } from "../interfaces/IOracle.sol";
import "hardhat/console.sol";
// import "hardhat/console.sol";

/// @title KeeperOracle
/// @notice Generic implementation of the IOracle interface for keeper-based oracles.
Expand Down Expand Up @@ -152,9 +152,9 @@ contract KeeperOracle is IKeeperOracle, Instance {

market.settle(address(0));
oracle.claimFee(priceResponse.toOracleReceipt(_localCallbacks[version.timestamp].length()).settlementFee);
console.log("KeeperOracle.commit attempting to push %s DSU syncFee from %s to %s", UFixed6.unwrap(priceResponse.syncFee), address(this), receiver);
// console.log("KeeperOracle.commit attempting to push %s DSU syncFee from %s to %s", UFixed6.unwrap(priceResponse.syncFee), address(this), receiver);
market.margin().DSU().push(receiver, UFixed18Lib.from(priceResponse.syncFee));
console.log("KeeperOracle.commit done pushing DSU");
// console.log("KeeperOracle.commit done pushing DSU");
}

/// @notice Performs an asynchronous local settlement callback
Expand Down

0 comments on commit 4ecdbbf

Please sign in to comment.