Skip to content

Commit c61dc0a

Browse files
committed
Merge branch 'main' into shaloo/AR-9631-branding
2 parents 63de8d0 + 99faaee commit c61dc0a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/faq/ca/faq.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,31 @@ 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+
Let us take the following case:
43+
44+
!!! an-example "Wallet Balance"
45+
46+
*Optimism:* 1 ETH
47+
48+
*Arbitrum:* 1 ETH
49+
50+
*Scroll:* 0 ETH
51+
52+
**User Intent:** Spend 0.5 ETH on Scroll
53+
54+
The selection of source chains and tokens for a chain abstracted transaction is governed by the following logic:
55+
56+
* Source chains are sorted by token balance (descending order)
57+
* Chains with the same balance are sorted by gas price (ascending order)
58+
59+
If multiple chains have the same balance, the one with lower gas price will be picked up to source the tokens.
60+
61+
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.
62+
63+
64+
4065
## CA SDK
4166

4267
??? 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)