-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4962a96
commit 87723a5
Showing
2 changed files
with
3 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,9 @@ contract AdminV2 is AccessControlEnumerable, IAdminV2, IAdminV2Errors { | |
/// @notice Delay for a transaction after which it could be permisionlessly cancelled | ||
uint256 public cancelDelay; | ||
|
||
/// @notice Chain gas amount to forward as rebate if requested | ||
uint256 public chainGasAmount; | ||
/// @notice This is deprecated and should not be used. | ||
/// @dev Use ZapNative V2 requests instead. | ||
uint256 public immutable chainGasAmount = 0; | ||
|
||
constructor(address _owner) { | ||
_grantRole(DEFAULT_ADMIN_ROLE, _owner); | ||
|
@@ -57,12 +58,6 @@ contract AdminV2 is AccessControlEnumerable, IAdminV2, IAdminV2Errors { | |
emit FeesSwept(token, recipient, feeAmount); | ||
} | ||
Check notice Code scanning / Slither Reentrancy vulnerabilities Low
Reentrancy in AdminV2.sweepProtocolFees(address,address):
External calls: - Address.sendValue(address(recipient),feeAmount) - IERC20(token).safeTransfer(recipient,feeAmount) Event emitted after the call(s): - FeesSwept(token,recipient,feeAmount) |
||
|
||
function setChainGasAmount(uint256 newChainGasAmount) external onlyRole(GOVERNOR_ROLE) { | ||
uint256 oldChainGasAmount = chainGasAmount; | ||
chainGasAmount = newChainGasAmount; | ||
emit ChainGasAmountUpdated(oldChainGasAmount, newChainGasAmount); | ||
} | ||
|
||
/// @notice Internal function to set the cancel delay. Security checks are performed outside of this function. | ||
function _setCancelDelay(uint256 newCancelDelay) private { | ||
if (newCancelDelay < MIN_CANCEL_DELAY) revert CancelDelayBelowMin(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters