Support the X Layer network and its ERC20 contract
What changed, and why it matters
This commit adds support for a new blockchain network called X Layer and its associated token contracts to the wallet's user interface. It is a routine feature addition with no visible security-relevant changes.
No security action required. Verify the added contract addresses and chain metadata against official X Layer sources during normal review if desired.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch extends two static lookup tables in src/ui/gui_chain/multi/web3/gui_eth.c: one EVM network entry (chain ID 196, ‘X Layer’, native symbol OKB) and ten ERC-20 contract entries for tokens on that network. No code logic, parsing, validation, or cryptographic handling is modified.
Changed components
src/ui/gui_chain/multi/web3/gui_eth.cInspect captured patch +13 / −0
diff --git a/src/ui/gui_chain/multi/web3/gui_eth.c b/src/ui/gui_chain/multi/web3/gui_eth.c
index e240acc..ed55431 100644
--- a/src/ui/gui_chain/multi/web3/gui_eth.c
+++ b/src/ui/gui_chain/multi/web3/gui_eth.c
@@ -277,6 +277,7 @@ const static EvmNetwork_t NETWORKS[] = {
{210425, "PlatON Mainnet", "LAT"},
{2206132, "PlatON Testnet", "LAT"},
{324, "zkSync Mainnet", "ETH"},
+ {196, "X Layer", "OKB"},
};
const static Erc20Contract_t ERC20_CONTRACTS[] = {
@@ -626,6 +627,18 @@ const static Erc20Contract_t ERC20_CONTRACTS[] = {
{"WAVAX", "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", 18},
{"JOE", "0x6e84a6216eA6dACC71eE8E6b0a5B7322EEbC0fDd", 18},
{"WETH.e", "0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB", 18},
+
+ // X Layer
+ {"WOKB", "0xe538905cf8410324e03A5A23C1c177a474D59b2b", 18},
+ {"WETH", "0x5A77f1443D16ee5761d310e38b62f77f726bC71c", 18},
+ {"USDT", "0x1E4a5963aBFD975d8c9021ce480b42188849D41d", 6},
+ {"USDT0", "0x779Ded0c9e1022225f8E0630b35a9b54bE713736", 6},
+ {"USDC", "0x74b7F16337b8972027F6196A17a631aC6dE26d22", 6},
+ {"USDC.e", "0xA8CE8aee21bC2A48a5EF670afCc9274C7bbbC035", 6},
+ {"WBTC", "0xEA034fb02eB1808C2cc3adbC15f447B93CbE08e1", 8},
+ {"DAI", "0xC5015b9d9161Dca7e18e32f6f25C4aD850731Fd4", 18},
+ {"xBTC", "0xb7C00000bcDEeF966b20B3D884B98E64d2b06b4f", 8},
+ {"USDG", "0x4ae46a509F6b1D9056937BA4500cb143933D2dc8", 6}
};
#include "abi_ethereum.h"
#include "gui_constants.h"
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.