BoringVault
Inherits: ERC20, Auth, ERC721Holder, ERC1155Holder
State Variables
hook
Contract responsible for implementing beforeTransfer.
BeforeTransferHook public hook;Functions
constructor
constructor(
address _owner,
string memory _name,
string memory _symbol,
uint8 _decimals
)
ERC20(_name, _symbol, _decimals)
Auth(_owner, Authority(address(0)));manage
Allows manager to make an arbitrary function call from this contract.
Callable by MANAGER_ROLE.
manage
Allows manager to make arbitrary function calls from this contract.
Callable by MANAGER_ROLE.
enter
Allows minter to mint shares, in exchange for assets.
If assetAmount is zero, no assets are transferred in.
Callable by MINTER_ROLE.
exit
Allows burner to burn shares, in exchange for assets.
If assetAmount is zero, no assets are transferred out.
Callable by BURNER_ROLE.
setBeforeTransferHook
Sets the share locker.
If set to zero address, the share locker logic is disabled.
Callable by OWNER_ROLE.
_callBeforeTransfer
Check if from addresses shares are locked, reverting if so.
transfer
transferFrom
receive
Events
Enter
Exit
Was this helpful?