Skip to content

Commit 2706ffe

Browse files
Aimen SahnounMantisClone
Aimen Sahnoun
authored andcommitted
GITBOOK-140: feat: explain crosschain fee structure
1 parent f135951 commit 2706ffe

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

request-network-api/crosschain-payments.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,31 @@ The API automatically ranks available payment routes based on the following fact
6565

6666
Routes that offer a _balanced_ combination of lower fees and faster processing times are ranked higher in the results.
6767

68+
#### Fee breakdown
69+
70+
When fetching payment routes, each route displays the total estimated fees in the payment currency. This fee represents the combined costs associated with processing the transaction**,** including:
71+
72+
1. **Gas Fees:**
73+
74+
The total fee includes all gas costs incurred by the payment processor wallet for processing the transaction. this covers:
75+
76+
  \- Transferring tokens from the payer's wallet.
77+
78+
  \- Approving the payment execution smart contract.
79+
80+
  \- Executing the crosschain payment transaction.
81+
82+
**For tokens supporting EIP-2612:**
83+
84+
  \- The payment processor wallet also covers for the onchain permit transaction.
85+
86+
**For tokens that do not support EIP-2612:**
87+
88+
  \- The payer must perform an onchain approval transaction and pay for the gas fee directly. This fee is **not** included in the total fee shown for the route.
89+
2. **Service Fees:**
90+
91+
The total fees also include any service fees charged by the crosschain infrastructure for facilitating transfers or swaps between different blockchains.
92+
6893
#### Samechain routes
6994

7095
The API may return samechain routes if the payer address has supported currencies on the same chain as the `paymentCurrency` .

0 commit comments

Comments
 (0)