> For the complete documentation index, see [llms.txt](https://docs.liquidcollective.io/eth/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.liquidcollective.io/eth/technical-reference/smart-contracts/interfaces/icoveragefundv1.md).

# ICoverageFundV1

*Alluvial Finance Inc.*

> Coverage Fund Interface (v1)

This interface exposes methods to receive donations for the slashing coverage fund and pull the funds into river

## Methods

### donate

```solidity
function donate() external payable
```

Donates ETH to the coverage fund contract

### initCoverageFundV1

```solidity
function initCoverageFundV1(address _riverAddress) external nonpayable
```

Initialize the coverage fund with the required arguments

#### Parameters

| Name           | Type    | Description      |
| -------------- | ------- | ---------------- |
| \_riverAddress | address | Address of River |

### pullCoverageFunds

```solidity
function pullCoverageFunds(uint256 _maxAmount) external nonpayable
```

Pulls ETH into the River contract

*Only callable by the River contract*

#### Parameters

| Name        | Type    | Description                                |
| ----------- | ------- | ------------------------------------------ |
| \_maxAmount | uint256 | The maximum amount to pull into the system |

## Events

### Donate

```solidity
event Donate(address indexed donator, uint256 amount)
```

A donation has been made to the coverage fund

#### Parameters

| Name              | Type    | Description                         |
| ----------------- | ------- | ----------------------------------- |
| donator `indexed` | address | Address that performed the donation |
| amount            | uint256 | The amount donated                  |

### SetRiver

```solidity
event SetRiver(address indexed river)
```

The storage river address has changed

#### Parameters

| Name            | Type    | Description           |
| --------------- | ------- | --------------------- |
| river `indexed` | address | The new river address |

## Errors

### EmptyDonation

```solidity
error EmptyDonation()
```

A donation with 0 ETH has been performed

### InvalidCall

```solidity
error InvalidCall()
```

The fallback or receive callback has been triggered


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.liquidcollective.io/eth/technical-reference/smart-contracts/interfaces/icoveragefundv1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
