Skip to content

Commit

Permalink
contracts: emit SetDelegationFee event
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Dec 8, 2023
1 parent 0655faa commit 3c76f22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/src/L2StandardBridgeBot.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ contract L2StandardBridgeBot is Ownable {

event WithdrawTo(address indexed from, address indexed l2Token, address to, uint256 amount, uint32 minGasLimit, bytes extraData);

event SetDelegationFee(uint256 _delegationFee);


constructor(address payable _owner, uint256 _delegationFee) Ownable(_owner) {
delegationFee = _delegationFee;
}
Expand Down Expand Up @@ -92,5 +95,7 @@ contract L2StandardBridgeBot is Ownable {
require(_delegationFee > 0, "_delegationFee cannot be less than or equal to 0 BNB");
require(_delegationFee <= 1e18, "_delegationFee cannot be more than 1 BNB");
delegationFee = _delegationFee;

emit SetDelegationFee(_delegationFee);
}
}

0 comments on commit 3c76f22

Please sign in to comment.