Libraries
BorrowingFeesUtils
GNSBorrowingFees facet internal library
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Check IBorrowingFeesUtils interface for documentation
Returns storage slot to use when fetching storage relevant to library
Returns storage pointer for storage struct in diamond contract, at defined slot
Returns current address as multi-collateral diamond interface to call other facets functions.
Reverts if collateral index is not valid
Returns pending acc borrowing fee for a pair on one side only
Returns pending acc borrowing fee for a borrowing group on one side only
Pure function that returns the new acc borrowing fees and delta between two blocks (for pairs and groups)
Pure function that returns the liquidation price for a trade (1e10 precision)
Function to set borrowing pair params
Function to set borrowing group params
Function to update a borrowing pair/group open interest
Function to update a borrowing group’s open interest
Function to update a borrowing group’s open interest
_Calculates the borrowing group and pair acc fees deltas for a trade between pair group at index i and next one
