ICometRewards
Title: ICometRewards
Author: ABI-equivalent interface authored fresh from Compound v3's public ABI
(https://github.com/compound-finance/comet/blob/main/contracts/CometRewards.sol). Upstream license: BUSL-1.1 (not copied). Only the selectors the adapter calls are declared.
Minimal ABI-equivalent interface: claim COMP rewards accrued in a Comet market.
Functions
claimTo
Claims all accrued rewards for src in comet, sending them to to.
function claimTo(address comet, address src, address to, bool shouldAccrue) external;Parameters
| Name | Type | Description |
|---|---|---|
| comet | address | |
| src | address | |
| to | address | |
| shouldAccrue | bool |
rewardConfig
The reward token configured for a comet (used to forward raw).
function rewardConfig(address comet) external view returns (address token, uint64 rescaleFactor, bool shouldUpscale);Parameters
| Name | Type | Description |
|---|---|---|
| comet | address |
Returns
| Name | Type | Description |
|---|---|---|
| token | address | |
| rescaleFactor | uint64 | |
| shouldUpscale | bool |