Skip to content

Commit

Permalink
👷 revert StakingRewards changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmontecoding committed Nov 4, 2024
1 parent b9e6632 commit 15ee16c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion contracts/StakingRewardsV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,22 @@ contract StakingRewardsV2 is
// emit reward claimed event and index account
emit RewardPaid(_account, reward);

// transfer token from this contract to the rewardEscrow
// and create a vesting entry at the _to address
kwenta.transfer(address(rewardEscrow), reward);
rewardEscrow.appendVestingEntry(_to, reward);
}
uint256 rewardUSDC = rewardsUSDC[_account] / PRECISION;
if (rewardUSDC > 0) {
// update state (first)
rewardsUSDC[_account] = 0;

// emit reward claimed event and index account
emit RewardPaidUSDC(_account, rewardUSDC);

// transfer token from this contract to the account
kwenta.transfer(_to, reward);
// as newly issued rewards from inflation are now issued as non-escrowed
usdc.transfer(_to, rewardUSDC);
}
}

Expand Down

0 comments on commit 15ee16c

Please sign in to comment.