Skip to content

Commit

Permalink
impermax-finance: Add new base, blast and sonic subgraphs (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
swan-of-bodom authored Jan 9, 2025
1 parent 948a114 commit 6159381
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adaptors/impermax-finance/geckoterminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const GECKOTERMINAL_IDS = {
base: 'base',
scroll: 'scroll',
optimism: 'optimism',
real: 'real'
real: 'real',
blast: 'blast',
sonic: 'sonic'
}

module.exports = {
Expand Down
29 changes: 29 additions & 0 deletions src/adaptors/impermax-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const config = {
base: [
'https://api.studio.thegraph.com/query/46041/impermax-base-solv2/v0.0.2',
'https://api.studio.thegraph.com/query/46041/impermax-base-solv2-stable/v0.0.1',
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/B7xsBeef3FohKaFPcsAsviyLKaWXTqcSELjAsPj2B7iW',
],
scroll: [
'https://api.studio.thegraph.com/query/46041/impermax-scroll-solv2/v0.0.2',
Expand All @@ -48,6 +49,14 @@ const config = {
'https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-finance/impermax-real-v2-stable/gn',
'https://api.goldsky.com/api/public/project_cm2rhb30ot9wu01to8c9h9e37/subgraphs/impermax-real-solv2/3.0/gn',
],
blast: [
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/4FDikpVjE2XnDJ5QcpQ1YJXWcUDiAgE7x8ErtsHh33UB',
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/6xkrXFPJ4wqh9cy9ayP19WGr2wZVSMP3FniMjcW2LUG4',
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/CfJnk2rt4fUs71dvJJk21dbSS4dshKFWjfLsCceTXNBa',
],
sonic: [
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/HK9BA4oFp1xaoQW7YVP4m2nbxX7q2bQCZWNPKBtudtZR',
],
// Skip these as tvl is too low
// avalanche: [], moonriver: [], canto: [], zkSync: []
};
Expand Down Expand Up @@ -90,6 +99,10 @@ const projectPoolFactories = {
base: {
Aerodrome: ['0x420dd381b31aef6683db6b902084cb0ffece40da'],
Scale: ['0xed8db60acc29e14bc867a497d94ca6e3ceb5ec04'],
UniswapV2: [
'0x3e84d913803b02a4a7f027165e8ca42c14c0fde7',
'0x8909dc15e40173ff4699343b6eb8132c65e18ec6',
],
},
scroll: {
Tokan: [
Expand All @@ -110,6 +123,12 @@ const projectPoolFactories = {
'0x2b965fdf04f9e9beef1659464ef3a0094a68d923',
],
},
blast: {
Fenix: ['0xa19c51d91891d3df7c13ed22a2f89d328a82950f'],
},
sonic: {
Equalizer: ['0xddd9845ba0d8f38d3045f804f67a1a8b9a528fcc'],
},
};

/**
Expand Down Expand Up @@ -161,6 +180,10 @@ const lendingVaultsConfig = {
fantom: [],
optimism: [],
ethereum: [],
blast: [
'https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/8UbzkWkh1zqWhkgkomcVAVR7tmvDNq9LUtfmvRwtDQTh',
],
sonic: [],
};

const lendingVaultProfiles = {
Expand Down Expand Up @@ -220,6 +243,12 @@ const lendingVaultProfiles = {
risk: 'Conservative',
}, // cbBTC (low)
],
blast: [
{
address: '0xFBFBd1c9E05c114684Bc447Da5182Fe09315E038'.toLowerCase(),
risk: 'Aggressive',
}, // ETH
],
};

/**
Expand Down

0 comments on commit 6159381

Please sign in to comment.