> For the complete documentation index, see [llms.txt](https://docs.alkemi.network/earn-contracts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alkemi.network/earn-contracts/docs/priceoracleinterface.md).

# PriceOracleInterface.sol

View Source: [contracts/test/PriceOracleInterface.sol](https://app.gitbook.com/s/-MQ0mmOovvt0G2zyJIgA/contracts/test/PriceOracleInterface.sol)

### Functions

* assetPrices(address asset)

#### assetPrices

Gets the price of a given asset

```javascript
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 |
