xWin Pricemaster

xWinPriceMaster

SourceMap

struct SourceMap {
  uint8 source;
  address chainLinkAddr;
}

onlyExecutor

modifier onlyExecutor()

stratInteractor

contract IxWinStrategyInteractor stratInteractor

_TWAPOracle

address _TWAPOracle

chainLinkUSDpair

mapping(address => address) chainLinkUSDpair

priceSourceMap

mapping(address => mapping(address => struct xWinPriceMaster.SourceMap)) priceSourceMap

executors

initialize

getPrice

Get token price from xWinPriceMaster in the form of from/to, e.g ETH/USDC, BTC/ETH

Parameters

Name
Type
Description

_from

address

from Token address

_to

address

to Token address

_getTWAPPrice

_getLPPrice

addPrice

addChainlinkUSDPrice

setExecutor

setTWAPOracle

updateStratInteractor

_convertFrom18

Last updated