This functions allows a user to claim the underlying pool's rewards, optionally trading them for MORPHO tokens with a premium set by governance.
The underlying protocol's pools' rewards are distributed to users of the pool, relative to the amount supplied or borrowed. Morpho is supplying and borrowing to the underlying protocol's pools in the name of Morpho's users and as such, allows them to claim their accrued rewards over time. As a reward, Morpho adds the option to trade the underlying protocol's rewards for MORPHO token, with a premium whose relative size is set by governance.
function claimRewards(
address[] _cTokenAddresses,
bool _tradeForMorphoToken,
Input parameter
Input type
The addresses of the underlying protocol's pools to claim rewards from.
Whether to trade the accrued rewards for MORPHO token, with a premium.
Emitted Events