How to install and set up Compound React in your project
react (>=16.8.0)react-dom (>=16.8.0)CompoundProvider component:
CompoundProvider accepts the following props:
| Prop | Type | Description | Required |
|---|---|---|---|
provider | Provider | An ethers.js provider | Yes |
network | string | The network to connect to (defaults to the provider’s network) | No |
market | string | The Compound III market to use (defaults to the main market for the network) | No |