Fee Vaults
Fee vaults are simple contracts that collect the three types of fees in Citrea.
You can find these contracts in the following addresses.
BaseFeeVault
L1FeeVault
PriorityFeeVault
Currently all these three contracts have the same logic, yet they can be upgraded in case the need arises to do a programmatic redirection of fees.
State Structure
Address to send the accumulated fees.
Minimum required fee amount to be accumulated in the contract before it can be withdrawn to the recipient
address, this is 0 by default.
Access Control Structure
Ensures that only the contract owner can call the function (inherited from Ownable).
Functions
Sends the accumulated fees to recipient address.
Changes the recipient address.
address _recipient
Address of the new recipient
Changes the minimum withdraw amount.
uint256 _minWithdraw
New minimum withdraw amount
Events
Emitted when the recipient address is changed.
address oldRecipient
Old recipient address
address newRecipient
New recipient address
Emitted when the minimum withdraw amount is changed.
uint256 oldMinWithdraw
Old minimum withdraw amount
uint256 newMinWithdraw
New minimum withdraw amount
Last updated