# Spark

## Spark Protocol Integration

### Overview

This module provides integration with Spark Protocol (formerly part of MakerDAO), a decentralized lending platform focused on USDS and DAI. It offers deposits, collateralized borrowing, and yield-bearing spTokens.

### Core Components

#### Lending Operations

* **Supply Functions**:
  * Supply assets to lending pools
  * Withdraw supplied assets
  * Earn yield through spTokens
  * Track supply positions
  * Monitor earned interest

#### Borrowing Operations

* **Borrow Functions**:
  * Borrow assets against collateral
  * Choose interest rate modes (Stable/Variable)
  * Repay borrowed assets
  * Use spTokens for repayment
  * Track borrowing positions

#### Supported Assets

* **Major Assets**:
  * DAI (`0x6B175474E89094C44Da98b954EedeAC495271d0F`)
  * WETH (`0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`)
  * USDC (`0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48`)
  * WBTC (`0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599`)
  * wstETH (`0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0`)
  * sDAI (`0x83F20F44975D03b1b09e64809B757c47f942BEeA`)

#### Analytics and Data

* **Account Information**:
  * User account data
  * Total collateral value
  * Current debt positions
  * Health factor monitoring
  * Available borrowing power

#### E-Mode Features

* **Specialized Categories**:
  * Stablecoins category
  * ETH category
  * Enhanced LTV ratios
  * Optimized borrowing power
  * Category-specific parameters

### Chain Support

* **Ethereum Mainnet**:
  * Pool Address Provider: `0x02C3eA4e34C0cBd694D2adFa2c690EECbC1793eE`
  * WETH Gateway: `0xBD7D6a9ad7865463DE44B05F04559f65e3B11704`
  * Data Provider: `0xFc21d6d146E6086B8359705C8b28512a983db0cb`

### Additional Features

* Leveraged position creation
* Reserve data monitoring

### Example Prompts:

* "HeyAnon, please supply 1000 DAI to Spark Protocol"
* "HeyAnon, please supply 10 WETH, and borrow 10% of the total available amount against it as DAI"
* "HeyAnon, please update me on earned interest through the Spark protocol"


---

# 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.heyanon.ai/heyanon.ai/hey-anon/protocols-and-functions-supported/defi-protocols/spark.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.
