Skip to content
PathDocs
How Path worksRouting & gas
PATH DOCUMENTATION

Routing & gas

Understand direct paths, multi-hop routes, splits and gas-adjusted ranking.

Rank by estimated economic output

text
gasCostInOutput = ceil(gasEstimate × gasPrice × numerator / denominator)
netAmountOut = amountOut − gasCostInOutput

For HYPE or WHYPE output, the conversion is 1:1 in base units. Fast mode shares one locally calculated reference per snapshot, with median/outlier checks, source block and confidence metadata. Verified recovery does not probe pools to calculate network fees; non-native outputs use output-only ranking. If a cached conversion is unavailable or observations disagree, fast mode also falls back to output-only ranking.

Quote gas is heuristic until sender-specific preflight. Pool-derived gas conversion is an indicative spot estimate, not an execution oracle or a manipulation-proof price. Check rankingBasis, gasConversion and warnings.

Read the evidence correctly

Local math, fork tests and isolated settlement tests check specific models and scenarios. They do not establish mainnet availability, independent audit status, sustained network latency or a universal price advantage. Path publishes coverage and simulation status so integrations can distinguish those claims.