Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPriceByChainlink ¶ added in v0.2.0
Get the price by chainlink oracle.
Return value already divided by decimals.
Types ¶
type ChainlinkOracleMap ¶ added in v0.2.0
Complete map of chainlink oracles.
func NewChainlinkMap ¶ added in v0.2.0
func NewChainlinkMap() *ChainlinkOracleMap
func (*ChainlinkOracleMap) ChooseOracle ¶ added in v0.2.0
func (m *ChainlinkOracleMap) ChooseOracle(selectors Selectors) string
Get the specific oracle base on selectors. Symbol must not be empty.
If oracle not found, will return "".
func (*ChainlinkOracleMap) UpdateMap ¶ added in v0.2.0
func (m *ChainlinkOracleMap) UpdateMap()
Set the map to up to date status.
Click to show internal directories.
Click to hide internal directories.