MCPcopy Index your code
hub / github.com/exponent-finance/exponent-core

github.com/exponent-finance/exponent-core @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
629 symbols 1,326 edges 78 files 94 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Exponent Core – Yield Stripping and Swap Program

This repository contains the core program for the Exponent protocol, a yield stripping and interest swap exchange on Solana. For a high level overview of how Exponent works, see its documentation.

Deployment

  • Program ID (Mainnet): ExponentnaRg3CQbW6dqQNZKXp7gtZ9DGMp1cwC4HAS7
  • On-chain Program Hash: e584d8035cbe411f6dc3a24bdcd32a29e4bf953569c1c4971b23c03793a16b3c
  • Deployed Commit Hash: 7011d1b46b542611543f8ed21836b165f2ab75ac

Solana deployments can be verified using the Ellipsis Labs verifiable build tool, based on the solanafoundation/solana-verifiable-build:2.3.8 base image.

Security & Bug bounty

Exponent Core has undergone various independent audits by leading cybersecurity and blockchain smart contract auditing firms:

This repository is subject to the Exponent bug bounty program, per the terms defined here.

License

The primary license for Exponent Core is the Business Source License 1.1 (BUSL-1.1), see LICENSE for full terms.

Software distributed under this license is provided "AS IS", without warranty of any kind. By interacting with this program, users acknowledge and accept full personal responsibility for any consequences, regardless of their nature. This includes both potential risks inherent to the smart contract, also referred to as program, as well as any losses resulting from user errors or misjudgment.

Extension points exported contracts — how you extend this code

Num (Interface)
Encapsulated trait for the number types used in the library. Will probably be rust_decimal::Decimal in the future as the [2 …
libraries/time_curve/src/num.rs

Core symbols most depended-on inside this repo

handler
called by 42
programs/exponent_core/src/instructions/vault/strip.rs
signer_seeds
called by 37
programs/exponent_core/src/state/vault.rs
is_admin
called by 30
programs/exponent_admin/src/lib.rs
checked_sub
called by 28
libraries/precise_number/src/lib.rs
into
called by 25
programs/exponent_core/src/state/market_two.rs
token_transfer
called by 20
programs/exponent_core/src/instructions/util.rs
checked_add
called by 17
libraries/precise_number/src/lib.rs
floor_u64
called by 17
libraries/precise_number/src/lib.rs

Shape

Method 307
Function 188
Class 124
Enum 9
Interface 1

Languages

Rust100%

Modules by API surface

programs/exponent_core/src/state/market_two.rs49 symbols
programs/exponent_core/src/lib.rs42 symbols
programs/exponent_core/src/state/vault.rs41 symbols
libraries/dec_num/src/lib.rs29 symbols
libraries/precise_number/src/lib.rs27 symbols
programs/exponent_core/src/utils/sy_cpi.rs21 symbols
programs/exponent_core/src/instructions/market_two/admin/market_two_init.rs21 symbols
programs/exponent_admin/src/lib.rs20 symbols
libraries/time_curve/src/math.rs20 symbols
programs/exponent_core/src/state/yield_token_position.rs19 symbols
programs/exponent_core/src/instructions/market_two/deposit_liquidity.rs15 symbols
programs/exponent_core/src/instructions/self_cpi.rs14 symbols

For agents

$ claude mcp add exponent-core \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact