UniswapPriceOracle
Introduction
Update price by pToken
UniswapPriceOracle
function updateUnderlyingPrice(address pToken) public override returns (uint)Solidity
UniswapPriceOracle oracle = UniswapPriceOracle(0xABCD...);
PErc20 pToken = PErc20(0x3FDB...);
oracle.updateUnderlyingPrice(address(pToken));Web3 1.0
const oracle = UniswapPriceOracle.at(0xABCD...);
const pToken = PErc20.at(0x3FDB...);
oracle.methods.updateUnderlyingPrice(pToken).send({from: ...});Update price by an asset.
UniswapPriceOracle
Solidity
Web3 1.0
Get asset price in ETH
UniswapPriceOracle
Solidity
Web3 1.0
Get asset price in USD
UniswapPriceOracle
Solidity
Web3 1.0
Last updated