Alkemi Earn Contracts
Earn AppEarn API
Search…
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
scripts
Powered By GitBook
PriceOracleInterface.sol
View Source: contracts/test/PriceOracleInterface.sol​

Functions

  • assetPrices(address asset)

assetPrices

Gets the price of a given asset
1
function assetPrices(address asset) public view
2
returns(uint256)
Copied!
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
Previous
ChainLink.sol
Next
Liquidator.sol
Last modified 9mo ago
Copy link
Contents
Functions