Utility hooks for working with Compound III
useTotalSupply hook retrieves the total supply of the base asset in the protocol.
useTotalBorrow hook retrieves the total amount borrowed from the protocol.
useTotalCollateral hook retrieves the total collateral for a specific asset in the protocol.
useSuppliedBaseBalance hook retrieves the supplied base token balance for an account.
useBorrowBalance hook retrieves the borrow balance for an account.
useGetAssetInfo hook retrieves information about a specific asset by its symbol.
useGetAssetInfoByAddress hook retrieves information about an asset by its address.
useGetPrice hook retrieves the current price of an asset.
useGetMaxAssets hook retrieves the maximum number of assets that can be supported by the protocol.
useGetFactorScale hook retrieves the factor scale used for calculations in the protocol.
useGetPriceScale hook retrieves the price scale used for calculations in the protocol.
useGetBaseIndexScale hook retrieves the base index scale used for calculations in the protocol.
useGetBaseAccrualScale hook retrieves the base accrual scale used for calculations in the protocol.
useGetBaseAssetMarketInfo hook retrieves market information for the base asset.
useUserBasic hook retrieves basic information about a user’s account.
useAccrueAccount hook allows accruing interest for a specific account.