Modules§
Macros§
Structs§
Constants§
- DEFAULT_
SLIPPAGE_ TOLERANCE_ BPS - HUNDRED_
PERCENT - INVALID_
ARGUMENTS - JUPITER_
QUOTE_ REQUEST_ ERROR - JUPITER_
SWAP_ INSTRUCTIONS_ REQUEST_ ERROR - MARKET_
MAKER_ FUSION - MARKET_
MAKER_ ORCA - TICK_
ARRAYS_ NOT_ PROVIDED - TOKEN_A
- TOKEN_B
Functions§
- apply_
swap_ fee - apply_
tuna_ protocol_ fee - calculate_
tuna_ protocol_ fee - get_
decrease_ spot_ position_ quote - Spot position decrease quote
- get_
increase_ spot_ position_ quote - Spot position increase quote
- get_
liquidation_ price - Returns the liquidation price
- get_
tradable_ amount - Calculates the maximum tradable amount in the collateral token.
- reverse_
apply_ swap_ fee - reverse_
apply_ tuna_ protocol_ fee