Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
feat: added events for fees
Browse files Browse the repository at this point in the history
  • Loading branch information
GalloDaSballo committed Apr 18, 2022
1 parent aef91ff commit 99fa7c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/VotiumBribesProcessor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ contract VotiumBribesProcessor is CowSwapSeller {
// TODO: Ask Jintao if it helps or if we can remove extra address
event SentBribeToGovernance(address indexed token, uint256 amount);
event SentBribeToTree(address indexed token, uint256 amount);
event PerformanceFeeGovernance(address indexed token, uint256 amount);

event TreeDistribution(
address indexed token,
Expand Down Expand Up @@ -113,6 +114,8 @@ contract VotiumBribesProcessor is CowSwapSeller {
uint256 fee = amount * OPS_FEE / MAX_BPS;
token.safeTransfer(TREASURY, fee);

emit PerformanceFeeGovernance(address(token), fee);

amount -= fee;
}

Expand Down Expand Up @@ -194,6 +197,7 @@ contract VotiumBribesProcessor is CowSwapSeller {
BVE_CVX.depositFor(TREASURY, ops_fee);
BVE_CVX.depositFor(BADGER_TREE, toEmit);

emit PerformanceFeeGovernance(address(BVE_CVX), ops_fee);
emit TreeDistribution(address(BVE_CVX), toEmit, block.number, block.timestamp);
} else {
// Buy from pool
Expand All @@ -211,6 +215,7 @@ contract VotiumBribesProcessor is CowSwapSeller {
IERC20(address(BVE_CVX)).safeTransfer(TREASURY, ops_fee);
IERC20(address(BVE_CVX)).safeTransfer(BADGER_TREE, toEmit);

emit PerformanceFeeGovernance(address(BVE_CVX), ops_fee);
emit TreeDistribution(address(BVE_CVX), toEmit, block.number, block.timestamp);
}
}
Expand Down

0 comments on commit 99fa7c4

Please sign in to comment.