> For the complete documentation index, see [llms.txt](https://docs.mound.finance/qubit-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mound.finance/qubit-developers/qtokens/total-reserve.md).

# Total Reserve

Reserves are an accounting entry in each qToken contract that represents a portion of historical interest set aside as cash which can be withdrawn or transferred through the protocol's governance. A small portion of borrower interest accrues into the protocol, determined by the reserve factor.

### QToken

```typescript
function totalReserve() external view returns (uint);
```

* RETURN: The total amount of reserves held in the market.

### Solidity

```typescript
QToken qToken = QToken(<qTokenAddress>);
uint reserve = qToken.totalReserve();
```

### Ethers.js

```typescript
const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
const reserve = await qToken.totalReserve();
```
