Alkemi Earn Contracts
Earn AppEarn API
  • Alkemi Earn Contracts
  • docs
    • EIP20NonStandardInterface (EIP20NonStandardInterface.sol)
    • EIP20Interface.sol
    • RewardControlStorage.sol
    • TestTokens.sol
    • Careful Math (CarefulMath.sol)
    • RewardControlInterface.sol
    • AggregatorV3Interface.sol
    • PriceOracleProxy.sol
    • RewardControl.sol
    • Migrations.sol
    • SafeToken.sol
    • AlkemiWETH.sol
    • Exponential module for storing fixed-precision decimals (ExponentialNoError.sol)
    • AlkemiEarnPublic.sol
    • ErrorReporter.sol
    • AlkemiEarnVerified.sol
    • Earn Interest Rate Model (AlkemiRateModel.sol)
    • PriceOracle.sol
    • ExchangeRateModel.sol
    • Exponential.sol
    • LiquidationChecker.sol
    • InterestRateModel Interface (InterestRateModel.sol)
    • SafeMath.sol
    • ChainLink.sol
    • PriceOracleInterface.sol
    • Liquidator.sol
  • .solidoc
    • templates
      • table-header
      • function
      • modifier
      • contract
  • scripts
    • DEPLOYMENT
Powered by GitBook
On this page

Was this helpful?

  1. docs

PriceOracleInterface.sol

PreviousChainLink.solNextLiquidator.sol

Last updated 3 years ago

Was this helpful?

View Source:

Functions

  • assetPrices(address asset)

assetPrices

Gets the price of a given asset

function assetPrices(address asset) public view
returns(uint256)

Returns

the price scaled by 10**18, or zero if the price is not available

Arguments

Name

Type

Description

asset

address

Asset to get the price of

contracts/test/PriceOracleInterface.sol