跳到主要內容

BaseStrategyChainlinkPriceLatency

This contract allows the owner to define the maximum acceptable Chainlink price latency.

maxLatency

uint256 maxLatency

Maximum latency accepted after which the execution strategy rejects the retrieved price.

    For ETH, it cannot be higher than 3,600 as Chainlink will at least update the
price every 3,600 seconds, provided ETH's price does not deviate more than 0.5%.

For NFTs, it cannot be higher than 86,400 as Chainlink will at least update the
price every 86,400 seconds, provided ETH's price does not deviate more than 2%.

constructor

constructor(address _owner, uint256 _maxLatency) public

Constructor

Parameters

NameTypeDescription
_owneraddressOwner address
_maxLatencyuint256Maximum price latency allowed