A comprehensive dashboard component for interacting with Compound III
CompoundDashboard
component provides a complete user interface for interacting with the Compound III protocol. It combines multiple components into a tabbed interface, allowing users to view their position, supply and borrow assets, view market statistics, and see their transaction history.
Prop | Type | Description |
---|---|---|
provider | Provider | The Ethereum provider to use for transactions and data fetching |
chainId | number | The chain ID of the network to connect to |
userAddress | string | Optional user address to display data for (defaults to connected wallet) |
baseAssetSymbol | string | Optional symbol of the base asset (e.g., “USDC”) |
baseAssetDecimals | number | Optional decimals of the base asset (e.g., 6 for USDC) |
defaultTab | string | Optional default tab to display (default: “overview”) |
showNetworkSelector | boolean | Whether to show the network selector (default: true) |
className | string | Optional CSS class name to apply to the component |
onTabChange | (tab: string) => void | Optional callback function called when the active tab changes |
className
prop: