Skip to content

feat: add ImanTrampa variant to Swap enum - #33

Open
VtotheN wants to merge 1 commit into
jup-ag:mainfrom
VtotheN:feat/iman-trampa-variant
Open

VtotheN wants to merge 1 commit into
jup-ag:mainfrom
VtotheN:feat/iman-trampa-variant

Conversation

@VtotheN

@VtotheN VtotheN commented Jun 8, 2026

Copy link
Copy Markdown

Summary

Adds the ImanTrampa { a_to_b: bool } variant to the Swap enum, required by the IMÁN AMM adapter (companion PR in jup-ag/jupiter-amm-implementation: #22).

What is IMÁN

IMÁN is a concentrated-liquidity AMM on Solana that uses three novel mechanics:

  • PROPINA: Dynamic fee = 75% × oracle divergence (punishes price-distorting swaps, rewards rebalancing swaps)
  • CONCENTRADOR: ±200bps virtual liquidity concentration window around oracle price
  • LATIDO: Pseudo-random zero-fee windows every N slots to incentivize keepers

Program ID (mainnet): FpFXNWCm5qM4t9GKttp9Jkx8YpYfxgW5Cu37T8pdr8oE

Change

One line added to src/swap.rs:

ImanTrampa {
    a_to_b: bool,
},

The a_to_b field encodes swap direction for the on-chain TRAMPA swap instruction.

Related

🤖 Generated with Claude Code

Adds ImanTrampa { a_to_b: bool } variant required by the IMÁN AMM adapter
(jup-ag/jupiter-amm-implementation PR jup-ag#22).

IMÁN uses dynamic PROPINA fees (75% × oracle divergence) with LATIDO
zero-fee windows and CONCENTRADOR concentrated liquidity on TRAMPA pools.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant