Skip to content

Commit 45b1fda

Browse files
authored
add CrossFI Chain and xSwap protocol (DefiLlama#12956)
1 parent 64ab2b6 commit 45b1fda

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

projects/helper/chains.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"crescent",
7878
"cronos",
7979
"cronos_zkevm",
80+
"crossfi",
8081
"csc",
8182
"cube",
8283
"curio",

projects/helper/coreAssets.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,5 +2113,8 @@
21132113
"vana": {
21142114
"WVANA": "0x00eddd9621fb08436d0331c149d1690909a5906d",
21152115
"USDC.e": "0xf1815bd50389c46847f0bda824ec8da914045d14"
2116+
},
2117+
"crossfi": {
2118+
"WXFI" : "0xC537D12bd626B135B251cCa43283EFF69eC109c4"
21162119
}
21172120
}

projects/helper/tokenMapping.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ const fixBalancesTokens = {
8585
odyssey: {
8686
[ADDRESSES.null]: { coingeckoId: 'dione', decimals: 18 },
8787
'0xf21cbaf7bd040d686bd390957770d2ea652e4013': { coingeckoId: 'dione', decimals: 18 },
88+
},
89+
crossfi: {
90+
[ADDRESSES.null]: { coingeckoId: 'crossfi-2', decimals: 18 },
91+
[ADDRESSES.crossfi.WXFI]: { coingeckoId: 'crossfi-2', decimals: 18 },
8892
}
8993
}
9094

projects/xswap/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const { getUniTVL } = require('../helper/unknownTokens');
2+
3+
const factory = '0x3ca837175312070f4E4fF64972a199122Ee03805';
4+
5+
module.exports = {
6+
crossfi: {
7+
tvl: getUniTVL({
8+
factory,
9+
chain: 'crossfi',
10+
useDefaultCoreAssets: true,
11+
}),
12+
},
13+
};

0 commit comments

Comments
 (0)