Skip to content

Commit

Permalink
Add AirDAO/FirepotSwap chain/project
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAR2 committed Jan 16, 2024
1 parent 9f37ead commit 1a0f768
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions projects/FirepotSwap/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const { getUniTVL } = require('../helper/unknownTokens')

const FACTORY = "0xe63Cf585Dae8273A5e37AfF6da2f823FBf3Eb5BE" // This factory is on AirDAO Mainnet (Chain Id: 16718)

const dexTVL = getUniTVL({ factory: FACTORY, useDefaultCoreAssets: true, fetchBalances: true, chain: "airdao" })

module.exports = {
misrepresentedTokens: true,
methodology: `Uses factory(${FACTORY}) address to find and price Liquidity Pool pairs.`,
airdao: {
tvl: dexTVL
}
};
1 change: 1 addition & 0 deletions projects/helper/chains.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
"acala",
"airdao",
"algorand",
"alephium",
"alv",
Expand Down
7 changes: 7 additions & 0 deletions projects/helper/coreAssets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1546,5 +1546,12 @@
},
"chainx": {
"WBTC": "0x09Ff8E49D0EA411A3422ed95E8f5497D4241F532"
},
"airdao": {
"SAMB": "0x2b2d892c3fe2b4113dd7ac0d2c1882af202fb28f",
"USDC": "0xd8dd0273d31c1cd9dba104daca7c1dfee4f7b805",
"BUSD": "0x7a477aa8ed4884509387dba81ba6f2b7c97597e2",
"AINU": "0x618220b06e8e30a972ffbe66fe56588fe4d5044a",
"BOND": "0x096b5914c95c34df19500daff77470c845ec749d"
}
}
5 changes: 5 additions & 0 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ const fixBalancesTokens = {
chainx: {
[ADDRESSES.chainx.WBTC]: { coingeckoId: 'wrapped-bitcoin', decimals: 18 },
},
airdao: {
[ADDRESSES.airdao.SAMB]: { coingeckoId: 'amber', decimals: 18 },
[ADDRESSES.airdao.USDC]: { coingeckoId: 'usd-coin', decimals: 18 },
[ADDRESSES.airdao.BUSD]: { coingeckoId: 'binance-usd', decimals: 18 },
},
}

ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })
Expand Down

0 comments on commit 1a0f768

Please sign in to comment.