Skip to content

Commit 40e290e

Browse files
committed
Fix: #AR-9643 faq update for chain selection logic
1 parent ceb962f commit 40e290e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/faq/ca/faq.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,27 @@ arcana:
3737
and use the {{config.extra.arcana.company_name}} CA wallet in the context of any
3838
[[ca-stack-wallet|supported app, chains and tokens]].
3939

40+
??? an-faq "How does chain abstraction protocol decide which chain to source the tokens from?"
41+
42+
Consider a wallet balance:
43+
44+
Optimism: 1 ETH
45+
Arbitrum: 1 ETH
46+
Scroll: 0 ETH
47+
48+
User Intent: Spend 0.5 ETH on Scroll
49+
50+
The selection of source chains and tokens for a chain abstracted transaction is governed by the following logic:
51+
52+
* Source chains are sorted by token balance (descending order)
53+
* Chains with the same balance are sorted by gas price (ascending order)
54+
55+
If multiple chains have the same balance, the one with lower gas price will be picked up to source the tokens.
56+
57+
The protocol selects the first chain in the sorted list. If its balance isn’t enough to cover the transaction amount and gas on the destination chain, it automatically uses the next chain(s) as needed.
58+
59+
60+
4061
## CA SDK
4162

4263
??? an-faq "How do I fix the polyfill issues right after import statement when integrating React and Vite app with the {{config.extra.arcana.ca_sdk_name}}?"

0 commit comments

Comments
 (0)