Closed Developer5600 closed 2 years ago
pass in 32,0
, not [32, 0]
i could tell this was a js error in etherscan because the message looks like it's from ethers
@moodysalem thank you. How can I call this in solidity? I'm trying
import "https://raw.githubusercontent.com/Uniswap/v3-periphery/main/contracts/libraries/OracleLibrary.sol";
function getEthPriceTick() public view returns (int24 arithmeticMeanTick, uint128 harmonicMeanLiquidity) {
return OracleLibrary.consult(poolAddress(), 32);
}
and still get an error
https://etherscan.io/address/0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8#readContract
Try passing in 32, it works Try passing in [32, 0] it reverts
.
hm... I am having trouble getting this to work in Remix, unfortunately, even trying to replicate the Oracle code.
Is there any example contract which implements this price oracle?