xWin Pricemaster
xWinPriceMaster
SourceMap
struct SourceMap {
uint8 source;
address chainLinkAddr;
}onlyExecutor
modifier onlyExecutor()stratInteractor
contract IxWinStrategyInteractor stratInteractor_TWAPOracle
address _TWAPOraclechainLinkUSDpair
mapping(address => address) chainLinkUSDpairpriceSourceMap
mapping(address => mapping(address => struct xWinPriceMaster.SourceMap)) priceSourceMapexecutors
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