Hooks
Protocol Rewards
Hooks for working with protocol rewards on Compound III
This section contains hooks for claiming and managing protocol rewards on Compound III.
Summary of Protocol Rewards Hooks
- useBaseTrackingAccrued: Tracks accrued rewards for the base asset
- useGetRewardOwed: Retrieves the amount of reward token accrued but not yet claimed
- useClaimReward: Allows users to claim accrued rewards
useBaseTrackingAccrued
The useBaseTrackingAccrued
hook tracks accrued rewards for the base asset.
Usage
Return Value
useGetRewardOwed
The useGetRewardOwed
hook retrieves the amount of reward token accrued but not yet claimed.
Usage
Return Value
useClaimReward
The useClaimReward
hook allows users to claim accrued rewards.