> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nefariouslabs.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Lending Protocols

> Track deposits, borrows, APY, health factors, and liquidation thresholds across 14 Solana lending protocols.

# Lending Protocols

Nefarious tracks positions across **14 lending protocols** on Solana. Automatically detect deposits, borrows, and enriched lending data like APY, health factors, and liquidation thresholds.

## Position Types

| Type      | Description                                          |
| --------- | ---------------------------------------------------- |
| `deposit` | Assets supplied to lending pools                     |
| `borrow`  | Assets borrowed against collateral                   |
| `stake`   | Protocol-specific staking (e.g., Banx token staking) |

***

<AccordionGroup>
  <Accordion title="MarginFi" icon="building-columns">
    The leading Solana lending protocol with deep liquidity and competitive rates. Nefarious tracks all supply and borrow positions with real-time yield data.

    **Position types:** `deposit`, `borrow`

    **Enriched data:**

    * `apy` — Current annual percentage yield
    * `tokenApy` — Additional yield from token reward emissions
    * `utilizationRate` — Pool utilization percentage

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "marginfi",
          "name": "MarginFi",
          "url": "https://app.marginfi.com",
          "category": "lending"
        },
        "totalValueUsd": 10250.45,
        "totalDepositedUsd": 10250.45,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "marginfi-deposit-usdc",
            "type": "deposit",
            "name": "USDC Supply",
            "valueUsd": 10250.45,
            "tokens": [
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "10250450000",
                "amountUsd": 10250.45,
                "decimals": 6
              }
            ],
            "metadata": {
              "apy": 8.42,
              "tokenApy": 2.1,
              "utilizationRate": 76.3
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Kamino" icon="building-columns">
    Automated liquidity and lending platform with advanced risk management. Nefarious provides full visibility into supply, borrow, and health metrics.

    **Position types:** `deposit`, `borrow`

    **Enriched data:**

    * `apy` — Current annual percentage yield
    * `rewardsApy` — APY from reward incentives
    * `market` — Lending market identifier
    * `healthFactor` — Account health factor (liquidation risk)
    * `ltv` — Current loan-to-value ratio
    * `liquidationThreshold` — Maximum LTV before liquidation

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "kamino",
          "name": "Kamino",
          "url": "https://app.kamino.finance",
          "category": "lending"
        },
        "totalValueUsd": 15320.80,
        "totalDepositedUsd": 20000.00,
        "totalBorrowedUsd": 4679.20,
        "positions": [
          {
            "id": "kamino-deposit-sol",
            "type": "deposit",
            "name": "SOL Supply",
            "valueUsd": 20000.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "133333333333",
                "amountUsd": 20000.00,
                "decimals": 9
              }
            ],
            "metadata": {
              "apy": 5.12,
              "rewardsApy": 1.8,
              "market": "main",
              "healthFactor": 2.14,
              "ltv": 0.35,
              "liquidationThreshold": 0.75
            }
          },
          {
            "id": "kamino-borrow-usdc",
            "type": "borrow",
            "name": "USDC Borrow",
            "valueUsd": 4679.20,
            "tokens": [
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "4679200000",
                "amountUsd": 4679.20,
                "decimals": 6
              }
            ],
            "metadata": {
              "apy": 12.35
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Save Finance (Solend)" icon="building-columns">
    One of the original Solana lending protocols, now rebranded as Save Finance. Full support for all deposit and borrow positions.

    **Position types:** `deposit`, `borrow`

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "solend",
          "name": "Save Finance",
          "url": "https://save.finance",
          "category": "lending"
        },
        "totalValueUsd": 5400.00,
        "totalDepositedUsd": 5400.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "solend-deposit-usdt",
            "type": "deposit",
            "name": "USDT Supply",
            "valueUsd": 5400.00,
            "tokens": [
              {
                "mint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
                "symbol": "USDT",
                "name": "Tether USD",
                "amount": "5400000000",
                "amountUsd": 5400.00,
                "decimals": 6
              }
            ]
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="DeFiTuna" icon="building-columns">
    Leveraged yield farming protocol on Solana. Track all leveraged supply positions and their performance.

    **Position types:** `deposit`

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "defituna",
          "name": "DeFiTuna",
          "url": "https://defituna.com",
          "category": "lending"
        },
        "totalValueUsd": 3200.00,
        "totalDepositedUsd": 3200.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "defituna-deposit-sol",
            "type": "deposit",
            "name": "SOL Deposit",
            "valueUsd": 3200.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "21333333333",
                "amountUsd": 3200.00,
                "decimals": 9
              }
            ]
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Jupiter Earn" icon="building-columns">
    Jupiter's native lending product offering optimized yields on major assets. Positions are automatically detected through fToken holdings.

    **Position types:** `deposit`

    **Enriched data:**

    * `exchangeRate` — Current fToken to underlying token exchange rate
    * `poolAddress` — Lending pool address

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "jupiter",
          "name": "Jupiter Earn",
          "url": "https://jup.ag",
          "category": "lending"
        },
        "totalValueUsd": 8500.00,
        "totalDepositedUsd": 8500.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "jup-earn-usdc",
            "type": "deposit",
            "name": "USDC Lending",
            "valueUsd": 8500.00,
            "tokens": [
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "8500000000",
                "amountUsd": 8500.00,
                "decimals": 6
              }
            ],
            "metadata": {
              "exchangeRate": 1.0234,
              "poolAddress": "5SzBfH7wJHK2rAWdqTpC7V3ueKJBZnNoh3A5Q5J8wG7z"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Lulo (Flexlend)" icon="building-columns">
    Yield aggregator that automatically routes deposits to the highest-yielding lending protocol. Nefarious resolves the underlying protocol positions transparently.

    **Position types:** `deposit`

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "flexlend",
          "name": "Lulo",
          "url": "https://www.lulo.fi",
          "category": "lending"
        },
        "totalValueUsd": 12000.00,
        "totalDepositedUsd": 12000.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "flexlend-deposit-usdc",
            "type": "deposit",
            "name": "USDC Deposit",
            "valueUsd": 12000.00,
            "tokens": [
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "12000000000",
                "amountUsd": 12000.00,
                "decimals": 6
              }
            ]
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Maple Finance" icon="building-columns">
    Institutional-grade lending protocol bringing structured credit to Solana. Track all pool deposits and accrued yields.

    **Position types:** `deposit`

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "maple",
          "name": "Maple Finance",
          "url": "https://maple.finance",
          "category": "lending"
        },
        "totalValueUsd": 25000.00,
        "totalDepositedUsd": 25000.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "maple-deposit-usdc",
            "type": "deposit",
            "name": "USDC Pool",
            "valueUsd": 25000.00,
            "tokens": [
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "25000000000",
                "amountUsd": 25000.00,
                "decimals": 6
              }
            ]
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Elemental" icon="building-columns">
    Decentralized fund management on Solana. Full tracking of vault deposits with real-time exchange rates.

    **Position types:** `deposit`

    **Enriched data:**

    * `exchangeRate` — Vault token to underlying exchange rate
    * `poolAddress` — Vault address

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "elemental",
          "name": "Elemental",
          "url": "https://elemental.fund",
          "category": "lending"
        },
        "totalValueUsd": 4800.00,
        "totalDepositedUsd": 4800.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "elemental-deposit-sol",
            "type": "deposit",
            "name": "SOL Vault",
            "valueUsd": 4800.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "32000000000",
                "amountUsd": 4800.00,
                "decimals": 9
              }
            ],
            "metadata": {
              "exchangeRate": 1.045,
              "poolAddress": "7nK3E8dqG9Bf5WnG8maRiDoxvmPNJfGdXkzTUoJGQMCz"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Glow Finance" icon="building-columns">
    Lending and borrowing protocol with competitive rates on Solana. Full deposit and borrow position tracking.

    **Position types:** `deposit`, `borrow`

    **Enriched data:**

    * `poolAddress` — Lending pool address

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "glow",
          "name": "Glow Finance",
          "url": "https://app.glowfinance.xyz",
          "category": "lending"
        },
        "totalValueUsd": 6200.00,
        "totalDepositedUsd": 8000.00,
        "totalBorrowedUsd": 1800.00,
        "positions": [
          {
            "id": "glow-deposit-sol",
            "type": "deposit",
            "name": "SOL Supply",
            "valueUsd": 8000.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "53333333333",
                "amountUsd": 8000.00,
                "decimals": 9
              }
            ],
            "metadata": {
              "poolAddress": "4xK8RvQz9nLfJdTPrayVBiDXvjGSaGU1q3LfUHNm9Kjc"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Sharky" icon="building-columns">
    NFT-backed lending protocol — borrow SOL using NFTs as collateral. Nefarious tracks both lender and borrower positions.

    **Position types:** `deposit` (lender), `borrow` (borrower)

    **Enriched data:**

    * `apy` — Annualized lending rate
    * `nftCollateral` — NFT collection used as collateral
    * `expiresAt` — Loan expiry timestamp

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "sharky",
          "name": "Sharky",
          "url": "https://sharky.fi",
          "category": "lending"
        },
        "totalValueUsd": 450.00,
        "totalDepositedUsd": 450.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "sharky-lend-abc123",
            "type": "deposit",
            "name": "Active Loan (Lender)",
            "valueUsd": 450.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "3000000000",
                "amountUsd": 450.00,
                "decimals": 9
              }
            ],
            "metadata": {
              "apy": 42.5,
              "nftCollateral": "Mad Lads",
              "expiresAt": "2026-05-15T00:00:00Z"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Citrus" icon="building-columns">
    Peer-to-peer NFT lending by Famous Fox Federation. Track active loans on both lender and borrower sides.

    **Position types:** `deposit` (lender), `borrow` (borrower)

    **Enriched data:**

    * `collection` — NFT collection name
    * `collateralMint` — Mint address of the NFT collateral
    * `expiresAt` — Loan expiry timestamp

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "citrus",
          "name": "Citrus",
          "url": "https://citrus.famousfoxes.com",
          "category": "lending"
        },
        "totalValueUsd": 320.00,
        "totalDepositedUsd": 320.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "citrus-lend-xyz789",
            "type": "deposit",
            "name": "Active Loan (Lender)",
            "valueUsd": 320.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "2133333333",
                "amountUsd": 320.00,
                "decimals": 9
              }
            ],
            "metadata": {
              "collection": "Famous Fox Federation",
              "collateralMint": "FoXyMu5xwXre7zEoSvzViRk3nGawHUp9kUh97y2NDhcq",
              "expiresAt": "2026-05-01T12:00:00Z"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Banx" icon="building-columns">
    NFT perpetual lending platform with staking rewards. Track lending positions, borrowing, and BANX token staking in one place.

    **Position types:** `deposit` (lender), `borrow` (borrower), `stake`

    **Enriched data:**

    * `apy` — Annualized interest rate

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "banx",
          "name": "Banx",
          "url": "https://banx.gg",
          "category": "lending"
        },
        "totalValueUsd": 780.00,
        "totalDepositedUsd": 780.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "banx-lend-abc123",
            "type": "deposit",
            "name": "Active Loan (Lender)",
            "valueUsd": 600.00,
            "tokens": [
              {
                "mint": "So11111111111111111111111111111111111111112",
                "symbol": "SOL",
                "name": "Solana",
                "amount": "4000000000",
                "amountUsd": 600.00,
                "decimals": 9
              }
            ],
            "metadata": {
              "apy": 35.2
            }
          },
          {
            "id": "banx-stake-main",
            "type": "stake",
            "name": "BANX Staking",
            "valueUsd": 180.00,
            "tokens": [
              {
                "mint": "BANXyWgPpa519e2bCE9gJPRQq3BDQMKQE1JMSHYdMk8",
                "symbol": "BANX",
                "name": "Banx",
                "amount": "916000000000",
                "amountUsd": 180.00,
                "decimals": 9
              }
            ]
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Loopscale" icon="building-columns">
    Order book-based lending protocol with vaults and direct loans. Track vault deposits and active loan positions.

    **Position types:** `deposit`, `borrow`

    **Enriched data:**

    * `apy` — Current yield
    * `poolAddress` — Vault or loan address

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "loopscale",
          "name": "Loopscale",
          "url": "https://app.loopscale.com",
          "category": "lending"
        },
        "totalValueUsd": 7500.00,
        "totalDepositedUsd": 7500.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "loopscale-vault-usdc",
            "type": "deposit",
            "name": "USDC Vault",
            "valueUsd": 7500.00,
            "tokens": [
              {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "symbol": "USDC",
                "name": "USD Coin",
                "amount": "7500000000",
                "amountUsd": 7500.00,
                "decimals": 6
              }
            ],
            "metadata": {
              "apy": 9.8,
              "poolAddress": "8xK4RvQz9nLfJdTPrayVBiDXvjGSaGU1q3LfUHNm9Abc"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Voltr" icon="building-columns">
    Automated DeFi vault platform offering optimized yield strategies. Track vault token deposits with real-time exchange rates.

    **Position types:** `deposit`

    **Enriched data:**

    * `exchangeRate` — Vault LP token to underlying exchange rate
    * `poolAddress` — Vault address

    <CodeGroup>
      ```json Response Example theme={null}
      {
        "protocol": {
          "id": "voltr",
          "name": "Voltr",
          "url": "https://voltr.xyz",
          "category": "lending"
        },
        "totalValueUsd": 15200.00,
        "totalDepositedUsd": 15200.00,
        "totalBorrowedUsd": 0,
        "positions": [
          {
            "id": "voltr-vault-jlp",
            "type": "deposit",
            "name": "JLP HyperLoop Vault",
            "valueUsd": 15200.00,
            "tokens": [
              {
                "mint": "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4",
                "symbol": "JLP",
                "name": "Jupiter Perps LP",
                "amount": "5200000000",
                "amountUsd": 15200.00,
                "decimals": 6
              }
            ],
            "metadata": {
              "exchangeRate": 1.0312,
              "poolAddress": "3vK8RzQz9nLfJdTPrayVBiDXvjGSaGU1q3LfUHNm9Def"
            }
          }
        ]
      }
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>
