You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/faq/ca/faq.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,27 @@ arcana:
37
37
and use the {{config.extra.arcana.company_name}} CA wallet in the context of any
38
38
[[ca-stack-wallet|supported app, chains and tokens]].
39
39
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
+
40
61
## CA SDK
41
62
42
63
??? 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