Skip to content

Commit 97763bd

Browse files
committed
style guide +fmt
1 parent 8b2f1ce commit 97763bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Core/PriceRouter.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ contract PriceRouter is IPriceRouter, UUPSUpgradeable, OwnableUpgradeable {
9595
config.pythOrCustomId = _pythId;
9696
}
9797

98+
function changePriceForCustomOracle(bytes32 _id, uint256 _newPrice) external payable onlyPriceUpdater {
99+
prices[_id] = _newPrice;
100+
}
101+
98102
function _getPriceFormUniswap(address _a, address _b, address _router) internal view returns (uint256) {
99103
address[] memory path = new address[](2);
100104
path[0] = _a;
@@ -122,10 +126,6 @@ contract PriceRouter is IPriceRouter, UUPSUpgradeable, OwnableUpgradeable {
122126
return uint256(uint64(price.price)) * 1e18 / (10 ** uint256(int256(-price.expo)));
123127
}
124128

125-
function changePriceForCustomOracle(bytes32 _id, uint256 _newPrice) external payable onlyPriceUpdater {
126-
prices[_id] = _newPrice;
127-
}
128-
129129
/**
130130
* @notice Authorizes an upgrade to a new implementation
131131
* @param newImplementation Address of the new implementation

0 commit comments

Comments
 (0)