Skip to content

Commit

Permalink
Merge pull request #126 from roycoprotocol/pull-exact
Browse files Browse the repository at this point in the history
Improve RewardsSet event accuracy
  • Loading branch information
corddry authored Nov 12, 2024
2 parents 23f7600 + 4061026 commit 8ac88a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WrappedVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ contract WrappedVault is Owned, ERC20, IWrappedVault {
rewardsInterval.end = newEnd.toUint32();
rewardsInterval.rate = rate.toUint96();

emit RewardsSet(reward, newStart, newEnd.toUint32(), rate, (rewardsAfterFee + remainingRewards), protocolFeeTaken, frontendFeeTaken);
emit RewardsSet(reward, newStart, newEnd.toUint32(), rate, (rate * (newEnd - newStart)), protocolFeeTaken, frontendFeeTaken);

pullReward(reward, msg.sender, rewardsAdded);
}
Expand Down

0 comments on commit 8ac88a3

Please sign in to comment.