Expand description
Stellar relayer utility functions.
Generic helpers for ledger math, fee slippage, and other reusable logic shared across gas abstraction and related code.
Constants§
- DEFAULT_
SOROBAN_ MAX_ FEE_ SLIPPAGE_ BPS - Default slippage tolerance for max_fee_amount in basis points (500 = 5%). Allows fee fluctuation between quote and execution time.
Functions§
- apply_
max_ fee_ slippage - Apply default slippage to max_fee_amount (uses
DEFAULT_SOROBAN_MAX_FEE_SLIPPAGE_BPS). - apply_
max_ fee_ slippage_ with_ bps - Apply slippage tolerance to max_fee_amount for FeeForwarder.
- get_
expiration_ ledger - Calculate the expiration ledger for authorization.