Contract Source Code:
File 1 of 1 : PriceLensAggregator.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; interface PriceLens { function getTokenPriceNative(address _token) external view returns (uint256 price); } contract PriceLensNativeAggregator { address public immutable token; address public immutable priceLens; constructor(address _token, address _priceLens) { token = _token; priceLens = _priceLens; } function latestAnser() public view returns (int) { uint price = PriceLens(priceLens).getTokenPriceNative(token); return int(price); } function decimals() public pure returns (uint8) { return 18; } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.