Modules§
Macros§
Structs§
Constants§
- DEFAULT_
SLIPPAGE_ TOLERANCE_ BPS - HUNDRED_
PERCENT - INVALID_
ARGUMENTS - MARKET_
MAKER_ FUSION - MARKET_
MAKER_ ORCA - 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