Skip to main content

VaultFee

Git Source ↗

Inherits: VaultImmutables →, Initializable ↗, VaultAdmin →, IVaultFee

Defines the fee functionality for the Vault.

Events​

FeeRecipientUpdated​

Event emitted on fee recipient update

event FeeRecipientUpdated(address indexed caller, address indexed feeRecipient);

Parameters

NameTypeDescription
calleraddressThe address of the function caller
feeRecipientaddressThe address of the new fee recipient

FeePercentUpdated​

Event emitted on fee percent update

event FeePercentUpdated(address indexed caller, uint16 feePercent);

Parameters

NameTypeDescription
calleraddressThe address of the function caller
feePercentuint16The new fee percent

Functions​

feeRecipient​

The Vault's fee recipient

function feeRecipient() external view returns (address);

Returns

NameTypeDescription
<none>addressThe address of the Vault's fee recipient

feePercent​

The Vault's fee percent in BPS

function feePercent() external view returns (uint16);

Returns

NameTypeDescription
<none>uint16The fee percent applied by the Vault on the rewards

setFeeRecipient​

Function for updating the fee recipient address. Can only be called by the admin.

function setFeeRecipient(address _feeRecipient) external override;

Parameters

NameTypeDescription
_feeRecipientaddressThe address of the new fee recipient

setFeePercent​

Function for updating the fee percent. Can only be called by the admin.

function setFeePercent(uint16 _feePercent) external override;

Parameters

NameTypeDescription
_feePercentuint16The new fee percent