Price Service
Last updated
Last updated
Retrieve the PriceService through Maker.service('price')
. The PriceService exposes the collateral and governance tokens' price information that is reported by the oracles in the Maker system.
Get the current USD price of ETH, as a USD_ETH
.
Get the current USD price of the governance token MKR, as a USD_MKR
.
Get the current USD price of PETH (pooled ethereum), as a USD_PETH
.
Set the current USD price of ETH. This requires the necessary permissions and will only be useful in a testing environment.
Set the current USD price of the governance token MKR. This requires the necessary permissions and will only be useful in a testing environment.
Returns the current WETH to PETH ratio.