InsuranceFund
The Lido Insurance Fund is a vault contract that serves as a simple transparent store for funds allocated for self-insurance purposes.
Mechanics
The Insurance Fund is a simple vault that inherits OpenZeppelin's Ownable and allows the owner to transfer ether, ERC20, ERC721, ERC1155 tokens from the contract. The owner, which will the Lido DAO Agent, can transfer ownership to another entity with an exception of zero address.
View methods
owner()
Returns the current owner
.
function owner() public view returns (address);
renounceOwnership()
Reverts always.
function renounceOwnership() public pure override;
Methods
transferERC1155()
Transfer a single ERC1155 token with the specified id in the specified amount to an entity from the contract balance. A contract recipient must implement ERC1155TokenReceiver
in accordance to EIP-1155 in order to safely receive tokens.
- reverts if
msg.sender
is notowner
; - reverts if
_recipient
is zero address; - reverts if the contract balance is insufficient;
- emits
ERC721Transferred(address indexed _token, address indexed _recipient, uint256 _tokenId, bytes _data)
.
function transferERC1155(address _token, address _recipient, uint256 _tokenId, uint256 _amount, bytes calldata _data) external;