varname change

This commit is contained in:
Richa-iitr 2022-09-07 06:20:42 +05:30
parent 468469e460
commit f63be5b9f8
2 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ contract Events {
event LogRewardsClaimedOnBehalf( event LogRewardsClaimedOnBehalf(
address indexed market, address indexed market,
address indexed owner, address indexed owner,
address manager, address to,
uint256 indexed rewardsClaimed, uint256 indexed rewardsClaimed,
uint256 setId uint256 setId
); );

View File

@ -37,18 +37,18 @@ abstract contract CompoundV3RewardsResolver is Events, Helpers {
* @notice Claim rewards and interests accrued and transfer to dest address. * @notice Claim rewards and interests accrued and transfer to dest address.
* @param market The address of the market. * @param market The address of the market.
* @param owner The account of which the rewards are to be claimed. * @param owner The account of which the rewards are to be claimed.
* @param manager The account where to transfer the claimed rewards. * @param to The account where to transfer the claimed rewards.
* @param setId ID stores the amount of rewards claimed. * @param setId ID stores the amount of rewards claimed.
*/ */
function claimRewardsOnBehalfOf( function claimRewardsOnBehalfOf(
address market, address market,
address owner, address owner,
address manager, address to,
uint256 setId uint256 setId
) public returns (string memory eventName_, bytes memory eventParam_) { ) public returns (string memory eventName_, bytes memory eventParam_) {
//in reward token decimals //in reward token decimals
uint256 rewardsOwed = cometRewards.getRewardOwed(market, owner).owed; uint256 rewardsOwed = cometRewards.getRewardOwed(market, owner).owed;
cometRewards.claimTo(market, owner, manager, true); cometRewards.claimTo(market, owner, to, true);
setUint(setId, rewardsOwed); setUint(setId, rewardsOwed);
@ -56,7 +56,7 @@ abstract contract CompoundV3RewardsResolver is Events, Helpers {
eventParam_ = abi.encode( eventParam_ = abi.encode(
market, market,
owner, owner,
manager, to,
rewardsOwed, rewardsOwed,
setId setId
); );