Skip to content

Commit

Permalink
Merge pull request DefiLlama#10474 from lynx-protocol/lynx-adapter
Browse files Browse the repository at this point in the history
Feat: Add new Lynx adapter
  • Loading branch information
waynebruce0x authored Jun 5, 2024
2 parents ccb344b + eed8e41 commit 08596e8
Showing 1 changed file with 125 additions and 0 deletions.
125 changes: 125 additions & 0 deletions projects/lynx/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
const { sumTokensExport } = require("../helper/unwrapLPs");

const config = {
linea: {
tokenAndOwnerPair: [
[
// veLVC Token
"0xcc22F6AA610D1b2a0e89EF228079cB3e1831b1D1",
// OFTChipAdapter (owner)
"0xc5e782e2a4e2cfcb7ed454cf5a7b6aa2bb424b90",
],
],
},
fuse: {
tokenAndOwnerPair: [
[
// WFUSE Token
"0x0BE9e53fd7EDaC9F859882AfdDa116645287C629",
// OFTChipAdapter (owner)
"0x962FD1B229c8c775bC2E37A8a90dac4f3C0105B7",
],
[
// MST Token
"0x2363Df84fDb7D4ee9d4E1A15c763BB6b7177eAEe",
// OFTChipAdapter (owner)
"0x028815b56433a4AAe10087290d1Ed9Ef7437068F",
],
[
// sFUSE Token
"0xb1DD0B683d9A56525cC096fbF5eec6E60FE79871",
// OFTChipAdapter (owner)
"0x707f3d554B47E17F1FDfb408FE091B39D51929CF",
],
[
// VOLT Token
"0xC5E782E2A4E2cFCb7eD454CF5a7b6aa2bB424B90",
// OFTChipAdapter (owner)
"0x094DE4d315198Df981D3a20ceFc3381B2182a572",
],
],
},
arbitrum: {
tokenAndOwnerPair: [
[
// stEUR Token
"0x004626a008b1acdc4c74ab51644093b155e59a23",
// OFTChipAdapter (owner)
"0xc5e782e2a4e2cfcb7ed454cf5a7b6aa2bb424b90",
],
[
// TST Token
"0xf5a27e55c748bcddbfea5477cb9ae924f0f7fd2e",
// OFTChipAdapter (owner)
"0xd22c72ab0f4967edb876d84773bff0b60a92e51a",
],
[
// EUROs Token
"0x643b34980e635719c15a2d4ce69571a258f940e9",
// OFTChipAdapter (owner)
"0x3552fe61af3f6d3235dd1cb75402d4281d1fbac6",
],
[
// GRAI Token
"0x894134a25a5faC1c2C26F1d8fBf05111a3CB9487",
// OFTChipAdapter (owner)
"0xBe1fa4177fBf43683434CecD5563DA6Ea00FD474",
],
],
},
optimism: {
tokenAndOwnerPair: [
[
// SONNE Token
"0x1db2466d9f5e10d7090e7152b68d62703a2245f0",
// OFTChipAdapter (owner)
"0xc5e782e2a4e2cfcb7ed454cf5a7b6aa2bb424b90",
],
],
},
polygon: {
tokenAndOwnerPair: [
[
// MAI Token
"0xa3fa99a148fa48d14ed51d610c367c61876997f1",
// OFTChipAdapter (owner)
"0x7279d1cff1510e503b6be64fbbad64088034504c",
],
[
// WMATIC Token
"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
// OFTChipAdapter (owner)
"0x028815b56433a4aae10087290d1ed9ef7437068f",
],
],
},
mantle: {
tokenAndOwnerPair: [
[
// aUSD Token
"0xD2B4C9B0d70e3Da1fBDD98f469bD02E77E12FC79",
// OFTChipAdapter (owner)
"0xC5E782E2A4E2cFCb7eD454CF5a7b6aa2bB424B90",
],
],
},
bsc: {
tokenAndOwnerPair: [
[
// lisUSD Token
"0x0782b6d8c4551B9760e74c0545a9bCD90bdc41E5",
// OFTChipAdapter (owner)
"0x3b7ed1cdf0fc64d95c0d0428b9cc99b6a9a5cb94",
],
],
},
};

Object.keys(config).forEach((chain) => {
const { tokenAndOwnerPair } = config[chain];
module.exports[chain] = {
tvl: sumTokensExport({
tokensAndOwners: tokenAndOwnerPair,
}),
};
});

0 comments on commit 08596e8

Please sign in to comment.