Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 9652fa8

Browse files
committed
update
1 parent 0f4cd3f commit 9652fa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oracle/UniswapV2Oracle.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ contract UniswapV2Oracle is IOracle {
6666
uint8 decimalsB = IERC20(tokenB).decimals();
6767
console.log("decimal b", decimalsB);
6868

69-
uint256 price = (amount * reserveB * (10 ** decimalsB)) / (reserveA * (10 ** decimalsA));
70-
console.log("price calculated is", price);
69+
// fix price computation
70+
uint156 price = 0;
7171

7272
return price;
7373
}

0 commit comments

Comments
 (0)