Hooks
Interest Rates
Hooks for working with interest rates on Compound III
This section contains hooks for retrieving and calculating interest rates on Compound III.
Summary of Interest Rate Hooks
- useGetSupplyRate: Retrieves the current supply interest rate for the base asset
- useGetBorrowRate: Retrieves the current borrow interest rate for the base asset
- useGetUtilization: Retrieves the current utilization rate of the protocol
useGetSupplyRate
The useGetSupplyRate
hook retrieves the current supply interest rate for the base asset.
Usage
Return Value
useGetBorrowRate
The useGetBorrowRate
hook retrieves the current borrow interest rate for the base asset.
Usage
Return Value
useGetUtilization
The useGetUtilization
hook retrieves the current utilization rate of the protocol, which is the ratio of borrowed assets to supplied assets.