Summary of Collateral and Borrowing Hooks
- useSupply: Allows users to supply base tokens to the protocol
- useWithdraw: Allows users to withdraw base tokens from the protocol
- useCollateralBalance: Retrieves the collateral balance of an account for a specific asset
- useIsBorrowCollateralized: Checks if an account has enough collateral for borrowing
- useBaseBorrowMin: Retrieves the minimum borrow amount for the base asset
useSupply
TheuseSupply hook allows users to supply base tokens to the Compound III protocol.
Usage
Return Value
useWithdraw
TheuseWithdraw hook allows users to withdraw base tokens from the Compound III protocol.
Usage
Return Value
useCollateralBalance
TheuseCollateralBalance hook retrieves the collateral balance of an account for a specific asset.
Usage
Return Value
useIsBorrowCollateralized
TheuseIsBorrowCollateralized hook checks if an account has enough collateral for borrowing.
Usage
Return Value
useBaseBorrowMin
TheuseBaseBorrowMin hook retrieves the minimum borrow amount for the base asset.