MasterVault
Inherits: ERC4626Fees, Ownable
State Variables
depositFeeInBps
uint256 public depositFeeInBps;
protocolFeeAddress
address public protocolFeeAddress;
Functions
constructor
constructor(
address underlying_,
string memory name_,
string memory symbol_,
uint256 depositFeeInBps_,
address protocolFeeAddress_,
address owner_
) ERC20(name_, symbol_) ERC4626(IERC20(underlying_));
setProtocolFeeAddress
function setProtocolFeeAddress(address address_) public onlyOwner;
setDepositFeeInBps
function setDepositFeeInBps(uint256 fee_) public onlyOwner;
_entryFeeBasisPoints
function _entryFeeBasisPoints() internal view virtual override returns (uint256);
_entryFeeRecipient
function _entryFeeRecipient() internal view virtual override returns (address);
Events
SetProtocolFeeAddress
event SetProtocolFeeAddress(address indexed protocolFeeAddress);
SetDepositFee
event SetDepositFee(uint256 indexed depositFee);
Errors
Staking__ProtocolFeeAddressCannotBeZero
error Staking__ProtocolFeeAddressCannotBeZero();
Staking__ProtocolFeeCannotExceed500Bps
error Staking__ProtocolFeeCannotExceed500Bps();