---
# System prepended metadata

title: a page with historical/current contracts
tags: [docs]

---

---
tags: docs
---
# a page with historical/current contracts

*Proposed by Banteg on discord*
Anyone please add and edit below

---

- a comprehensive, historic and current contract list
- Andre is compiling a list of all contracts not on the faq, so once we have that it should be easy enough to create the doc for them

---

## Contract List

### Utility Contracts

| Contract     | Address | Description |
| -------------| --------| ----------- |
| IEarnAPR     |       [0x9cad8ab10daa9af1a9d2b878541f41b697268eec](https://etherscan.io/address/0x9cad8ab10daa9af1a9d2b878541f41b697268eec#code)    |  TBA           |

## Contract Details

### IEarnAPR

#### Overview

TBA

#### Components

##### Contract Variables

| Variable   | Type                        | Description                                                                                  |
|------------|-----------------------------|----------------------------------------------------------------------------------------------|
| `pools`    | `mapping(address => uint256)` |  TBA                                                                                            |
| `compound` | `mapping(address => address)` | Map the actual token address to the corresponding Compound cToken address (e.g. DAI => cDAI) |
| `fulcrum`  | `mapping(address => address)` | Map the actual token address to the corresponding dydx iToken (e.g. DAI => iDAI)             |
| `aave`     | `mapping(address => address)` |    TBA                                                                                          |
| `aaveUni`  | `mapping(address => address)` | Map the actual token address to the corresponding Aave aToken address (e.g. DAI => aDAI)     |
| `dydx`     | `mapping(address => uint256)` | Map the actual token address to the corresponding dydx dToken (e.g. DAI => dDAI)             |
| `UNI`      | `address`                    | Address of the Uniswap Factory Contract                                                      |
| `UNIROI`   | `address`                    | Address of the UniswapROI contract                                                           |
| `UNIAPR`   | `address`                     | Address of the UniswapAPR contract                                                           |
| `APR`      | `address`                    | Address of the APROracle contract                                                            |

##### Constructor

The constructor initializes the all of the mappings and contract variables. For the mapping, it make use of 6 similar helper functions:

- `addPool`
- `addCToken`
- `addAToken`
- `addAUniToken`
- `addIToken`
- `addDToken`

##### Functions

TBA