Skip to content

Commit

Permalink
Remove old values from event
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Oct 16, 2024
1 parent 19baec2 commit 10d7ff6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/contracts/harvest/FixedRateDripper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Dripper } from "./Dripper.sol";
contract FixedRateDripper is Dripper {
using SafeERC20 for IERC20;

event DripRateUpdated(uint192 oldDripRate, uint192 newDripRate);
event DripRateUpdated(uint192 newDripRate);

/**
* @dev Verifies that the caller is the Governor or Strategist.
Expand Down Expand Up @@ -58,7 +58,7 @@ contract FixedRateDripper is Dripper {
* @param _perSecond Rate of WETH to drip per second
*/
function setDripRate(uint192 _perSecond) external onlyGovernorOrStrategist {
emit DripRateUpdated(drip.perSecond, _perSecond);
emit DripRateUpdated(_perSecond);

Check warning on line 61 in contracts/contracts/harvest/FixedRateDripper.sol

View check run for this annotation

Codecov / codecov/patch

contracts/contracts/harvest/FixedRateDripper.sol#L61

Added line #L61 was not covered by tests

/**
* Note: It's important to call `_collect` before updating
Expand Down
2 changes: 1 addition & 1 deletion contracts/contracts/vault/VaultAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ contract VaultAdmin is VaultStorage {
_delay == 0 || (_delay >= 10 minutes && _delay <= 7 days),
"Invalid claim delay period"
);
emit WithdrawalClaimDelayUpdated(withdrawalClaimDelay, _delay);
emit WithdrawalClaimDelayUpdated(_delay);
withdrawalClaimDelay = _delay;
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/contracts/vault/VaultStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract VaultStorage is Initializable, Governable {
uint256 _amount
);
event WithdrawalClaimable(uint256 _claimable, uint256 _newClaimable);
event WithdrawalClaimDelayUpdated(uint256 _oldDelay, uint256 _newDelay);
event WithdrawalClaimDelayUpdated(uint256 _newDelay);

// Assets supported by the Vault, i.e. Stablecoins
enum UnitConversion {
Expand Down

0 comments on commit 10d7ff6

Please sign in to comment.