BTB
/

Sanctum Infinity

Dexswebsite
Sanctum Infinity (INF) is a multi-LST liquidity pool on Solana. An agent can add liquidity with any supported liquid staking token (or SOL) to receive INF, remove liquidity to receive any supported LST, or swap one LST for another inside the pool.

What you can do

deposit-lstDeposit an LST or SOL into Infinity for INFsend AddLiquidity for the chosen mint and amount. Check the pool and the LST entry are not paused or input-disabled first. INF is minted to the depositor.
withdraw-to-lstBurn INF for a chosen LST or SOLsend RemoveLiquidity with the INF amount and the output mint. The 20 bps fee applies to the output.
swap-lstSwap one LST for another inside Infinitysend SwapExactIn with the input mint, output mint, amount in, and minimum out. Quote the minimum from the pool state first.
The S Controller can pause all pool operations during an incident, and each LST entry has an input-disabled flag. A transaction can fail or a route can stop working without warning.
INF value depends on the reserve value of each LST, which is computed by the LST's SOL value calculator. A bad calculator or a depeg of one LST moves the price of INF for everyone.
Large deposits or withdrawals change the pool's balances, which changes the swap fees and INF value for other holders.
Withdrawals cost a 20 bps fee. Swaps pay per-LST input and output fees that adjust with pool balances.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
Infinity program (S Controller)pool on solana5ocnV1qiCgaQR8Jb8xWnVbApfaygJ8tNoZfgPwsgx9kx
write AddLiquidity
Deposit a whitelisted LST (or SOL) and receive INF LP tokens at the pool's current value. Pass the depositor's token account for the input mint, the INF account to receive into, the LST state entry for the input mint, and the pool and fee accounts. The depositor's token account must already hold the amount.
write RemoveLiquidity
Burn INF to withdraw a share of the pool as a chosen LST or SOL. A withdrawal fee of 20 bps applies. Pass the INF amount and the LST state entry for the output mint.
write SwapExactIn
Swap an exact amount of one LST for another LST in the pool. Pass the input and output mints, the amount in, and a minimum amount out (slippage guard). The fee depends on each LST, and an LST with the input-disabled flag set cannot be used as input.