Expand description
Swap calculations and curve invariant implementation
Structs§
- Stable
Swap - The StableSwap invariant calculator.
- Swap
Result - Encodes all results of swapping from a source token to a destination token.
Constants§
- MAX_AMP
- Maximum amplification coefficient.
- MAX_
TOKENS_ IN - Maximum number of tokens to swap at once.
- MIN_AMP
- Minimum amplification coefficient.
- MIN_
RAMP_ DURATION - Minimum ramp duration, in seconds.
- N_COINS
- Number of coins in a swap. The Saber StableSwap only supports 2 tokens.
- ZERO_TS
- Timestamp at 0