The position keeper is used to enter, and alter positions. The Position Keeper interacts with the
PositionRouter contract to execute the alteration (
increase) of Swap positions after the front running interval (currently 5 seconds). The Position Keeper finds the fair price to execute the position at by finding the median of 3 CEXs (Binance, FTX, Bitfinex). If the prices have not been updated in 5 minutes, it will execute at the chainlink price. The Position Keeper cancels the request and returns funds to the user if the trade cannot be executed within the allowed slippage. This keeper can also execute positions from
orderbook.sol when the conditions of the limit orders are met.