Skip to main content

Crate wp_solana_jupiter_lend_core

Crate wp_solana_jupiter_lend_core 

Source
Expand description

Pure (non-I/O) math + decoders for the Jupiter Lend protocol.

Mirrors @jup-ag/lend-read’s calculator.ts / decoder.ts / tick-math.ts.

Re-exports§

pub use error::CoreError;

Modules§

constants
Constants from lend-read src/common/constants.ts + vault tick bounds.
error
exchange_price
Exchange-price math for Jupiter Lend liquidity reserves.
lending
jlToken-side pure math (@jup-ag/lend-read src/lending/calculator.ts).
math
Pure numerical helpers shared across rate-model / exchange-price / tick / vault modules. Populated by Phase 2 waves B (tick) onward.
overall_data
View builders + composer for “overall token data” — the consumer-facing shape of a Liquidity reserve combined with rate-model + exchange-price extrapolation + supply-rate derivation + revenue. Composes the per-domain math already in lend-core.
rate_model
Supply-rate derivation + interest-pool ratio helpers.
revenue
Liquidity revenue computation.
rewards_rate
Lending rewards-rate calculator.
user_position
User supply/borrow position expansion math.
vault
Vault simulation math (pure, non-I/O).