Facets
GNSBorrowingFees
Facet #9: Borrowing Fees and open interests
Updates borrowing pair params of a pair
Updates borrowing pair params of multiple pairs
Updates borrowing group params of a group
Updates borrowing group params of multiple groups
Callback after a trade is opened/closed to store pending borrowing fees and adjust open interests
Resets a trade borrowing fee to 0 (useful when new trade opened or when partial trade executed)
Returns the pending acc borrowing fees for a pair on both sides
Returns the pending acc borrowing fees for a borrowing group on both sides
Returns the borrowing fee for a trade
Returns the liquidation price for a trade
Returns the open interests for a pair
Returns the borrowing group index for a pair
Returns the open interest in collateral tokens for a pair on one side
Returns whether a trade is within the max group borrowing open interest
Returns a borrowing group’s data
Returns a borrowing group’s oi data
Returns a borrowing pair’s data
Returns a borrowing pair’s oi data
Returns a borrowing pair’s oi data
Returns all borrowing pairs’ borrowing data, oi data, and pair groups data
Returns borrowing groups’ data and oi data
Returns borrowing groups’ data
Returns the max open interest for a pair
Returns the max open interest in collateral tokens for a pair
