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
Name | Type | Description |
---|---|---|
_owner | address | Owner address |
_maxLatency | uint256 | Maximum price latency allowed |