Libraries
MarketData
MarketData Library
Some helper functions are omitted for brevity.
MarketData
updateFeeDataAfterTrade
updateFeeDataAfterTrade
Updates the fee data in the market after a trade by calculating the fee amount based on the amount of quote token traded and adding it to both the total and unclaimed quote token fees.
getFactory
getFactory
Retrieves the address of the factory associated with the market data.
getFactoryOwner
getFactoryOwner
Retrieves the owner address of the factory associated with the market data.
getFeeRecipient
getFeeRecipient
Retrieves the address of the fee recipient from the factory associated with the market data.