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
| Input | Value |
|---|---|
| Starting input tokens | 100 |
Bridge route legs in execution order
| Output tokens per input token | Percentage fee on this leg | Fixed deduction in output tokens |
|---|---|---|
| 1 | 1% | 0.5 |
| 2 | 0.5% | 1 |
| Result | Value |
|---|---|
| Destination tokens delivered | 195.015 |
| Total fee impact in final tokens | 4.985 |
| Destination tokens before all fees | 200 |
How each input affects this example
Each row starts from the worked example and changes one input.
| Input | Original input | New input | Affected result | Original result | New result |
|---|---|---|---|---|---|
| Starting input tokens | 100 | 110 | Destination tokens delivered | 195.015 | 214.716 |
| Output tokens per input token (row 1) | 1 | 2 | Destination tokens delivered | 195.015 | 392.025 |
| Percentage fee on this leg (row 1) | 1% | 2% | Destination tokens delivered | 195.015 | 193.025 |
| Fixed deduction in output tokens (row 1) | 0.5 | 1.5 | Destination tokens delivered | 195.015 | 193.025 |
