Bridge route fees and net tokens delivered · Calculation guide

Follow token conversions and fees across a multi-leg bridge route.

Calculation guide

Each leg converts the previous net output, deducts its proportional fee and then its fixed output-token fee. Exclude separately funded external gas.

Net output at each leg = prior output × conversion × (1 − fee) − fixed deduction.

Inputs

Starting input tokens

Example entry 100.

Output tokens per input token

Example entry 1. Minimum 1e-09.

Percentage fee on this leg

Example entry 1 %. Allowed range 0 to 100.

Fixed deduction in output tokens

Example entry 0.5.

Worked example

InputValue
Starting input tokens100

Bridge route legs in execution order

Output tokens per input tokenPercentage fee on this legFixed deduction in output tokens
11%0.5
20.5%1
ResultValue
Destination tokens delivered195.015
Total fee impact in final tokens4.985
Destination tokens before all fees200

How each input affects this example

Each row starts from the worked example and changes one input.

InputOriginal inputNew inputAffected resultOriginal resultNew result
Starting input tokens100110Destination tokens delivered195.015214.716
Output tokens per input token (row 1)12Destination tokens delivered195.015392.025
Percentage fee on this leg (row 1)1%2%Destination tokens delivered195.015193.025
Fixed deduction in output tokens (row 1)0.51.5Destination tokens delivered195.015193.025
Bridge route fees and net tokens delivered →