bathTokenfunds. The three main functions are as follows:
executeStrategy- this is the core function a strategist utilizes to place trades within the closed-loop system. It allows for the placing of a bid and/or an ask in the order book while logging the strategist and key data so they can be rewarded for NPV-positive market-making behavior
bathScrub- this function is the mandatory "cleaning" function that must be performed on Rubicon Pools for it to operate efficiently. This function parses through outstanding orders on a given
BathPair. This ensures that after "time expiry" any orders still in the order book are logged for yield and liquidity is returned to the pool. Moreover, this function must be called to reduce the outstanding quantity of orders for a given pair to adhere to
removeLiquidity- this function allows a strategist to go "risk-off" and remove liquidity from the order book that they placed with Pools liquidity.
executeStrategyfunction on BathPair.sol. The role of a strategist is to find exact offers to make with user funds that are automatically, and exclusively, placed in the Rubicon order book; Pools allows for a bid or ask to be placed in the Rubicon order book.
offerfunction on RubiconMarket.sol: