# ProtocolShareReserve

## ProtocolShareReserve

Contract used to store and distribute the reserves generated in the markets.

## Solidity API

```solidity
enum Schema {
  PROTOCOL_RESERVES,
  ADDITIONAL_REVENUE
}
```

```solidity
struct DistributionConfig {
  enum ProtocolShareReserve.Schema schema;
  uint16 percentage;
  address destination;
}
```

#### CORE\_POOL\_COMPTROLLER

address of core pool comptroller contract

```solidity
address CORE_POOL_COMPTROLLER
```

***

#### WBNB

address of WBNB contract

```solidity
address WBNB
```

***

#### vBNB

address of vBNB contract

```solidity
address vBNB
```

***

#### poolRegistry

address of pool registry contract

```solidity
address poolRegistry
```

***

#### assetsReserves

comptroller => asset => schema => balance

```solidity
mapping(address => mapping(address => mapping(enum ProtocolShareReserve.Schema => uint256))) assetsReserves
```

***

#### totalAssetReserve

asset => balance

```solidity
mapping(address => uint256) totalAssetReserve
```

***

#### distributionTargets

configuration for different income distribution targets

```solidity
struct ProtocolShareReserve.DistributionConfig[] distributionTargets
```

***


---

# Agent Instructions: 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:

```
GET https://docs-v4.venus.io/technical-reference/reference-isolated-pools/risk-fund-and-shortfall/protocol-share-reserve.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
