# LIP-18: Vault Contract for Potential Self-Cover Purposes

**URL:** <https://research.lido.fi/t/lip-18-vault-contract-for-potential-self-cover-purposes/2992>\
**Category:** The LIP - Lido Improvement Proposal - Process\
**Created:** [October 3, 2022, 11:22am UTC](https://research.lido.fi/t/lip-18-vault-contract-for-potential-self-cover-purposes/2992 "2022-10-03T11:22:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheDZhon](https://dub1.discourse-cdn.com/flex013/user_avatar/research.lido.fi/thedzhon/32/800_2.png) [@TheDZhon](https://research.lido.fi/u/TheDZhon)\
**Post date:** [October 3, 2022, 11:22am UTC](https://research.lido.fi/t/lip-18-vault-contract-for-potential-self-cover-purposes/2992/1 "2022-10-03T11:22:18Z")

</div>

## Simple Summary

The Lido Insurance Fund is planned to be used by the Lido DAO as a transparent store of funds allocated for potential self-cover purposes.

## Motivation

Initially, Lido hedged against slashing penalties via a third-party insurance provider. In a [July 2021 vote](https://snapshot.org/#/lido-snapshot.eth/proposal/QmWeMuwkLJ3strPAM58kzLaKzbEPrWTLb1VC93ergrYrbv), the DAO decided to explore an independent approach by marking the funds accrued in the form of protocol fees as potentially usable for self-cover purposes. The enactment of [vote #134](https://vote.lido.fi/vote/134) redirected the flow of protocol fees into the Treasury and fixed the amount allocated for cover. However, there is still no apparent distinction between Insurance and Treasury funds as both are stored under the same contract.

This proposal introduces a dedicated vault contract that will serve as a transparent store for cover funds which can only be retrieved by the [DAO Agent](https://etherscan.io/address/0x3e40D73EB977Dc6a537aF587D48316feE66E9C8c). Additionally, the vault features functions for recovering non-cover assets that were sent to the contract by mistake.

> NOTE: The proposal does not make any assumptions in regards to any policies, restrictions and regulations that may be applied and only covers technical implementation.

## Mechanics

The Insurance Fund is a simple vault that inherits [OpenZeppelin’s `Ownable`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.7.3/contracts/access/Ownable.sol) 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](https://etherscan.io/address/0x0000000000000000000000000000000000000000).

## Specification and security considerations

Please proceed to the [full LIP-18 text](https://github.com/lidofinance/lido-improvement-proposals/blob/develop/LIPS/lip-18.md) published on GitHub for further details.

### Links

- [Lido DAO Agent](https://etherscan.io/address/0x3e40D73EB977Dc6a537aF587D48316feE66E9C8c)
- [LIP 6: In-protocol coverage application mechanism proposal  
 ](https://github.com/lidofinance/lido-improvement-proposals/blob/develop/LIPS/lip-6.md)
- [Redirecting incoming revenue stream from insurance fund to DAO treasury](https://research.lido.fi/t/redirecting-incoming-revenue-stream-from-insurance-fund-to-dao-treasury/2528)

> The post is authored by @azat_s

---

<div class="post-metadata">

**Author:** ![TheDZhon](https://dub1.discourse-cdn.com/flex013/user_avatar/research.lido.fi/thedzhon/32/800_2.png) [@TheDZhon](https://research.lido.fi/u/TheDZhon)\
**Post date:** [October 4, 2022, 10:44am UTC](https://research.lido.fi/t/lip-18-vault-contract-for-potential-self-cover-purposes/2992/2 "2022-10-04T10:44:39Z")

</div>

Here is the final audit report by Statemind for the developed contract: [audits/StateMind - Insurance Fund Audit Report 09-2022.pdf at main · lidofinance/audits · GitHub](https://github.com/lidofinance/audits/blob/main/StateMind%20-%20Insurance%20Fund%20Audit%20Report%2009-2022.pdf)

The contract has been deployed on mainnet: [`0x8B3f33234ABD88493c0Cd28De33D583B70beDe35`](https://etherscan.io/address/0x8B3f33234ABD88493c0Cd28De33D583B70beDe35).

We are about to start the omnibus vote shortly to proceed with [Redirecting incoming revenue stream from insurance fund to DAO treasury](https://research.lido.fi/t/redirecting-incoming-revenue-stream-from-insurance-fund-to-dao-treasury/2528)
