Skip to content

Commit

Permalink
Merge pull request #2447 from amped-finance/master
Browse files Browse the repository at this point in the history
add Base network to Amped Finance
  • Loading branch information
dtmkeng authored Feb 21, 2025
2 parents 858c30f + f93122e commit 440f09b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dexs/amped/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const endpoints: { [key: string]: string } = {
[CHAIN.SONIC]:
"https://api.studio.thegraph.com/query/91379/trades-sonic/version/latest",
// [CHAIN.BSC]: "https://api.studio.thegraph.com/query/91379/amped-trades-bsc/version/latest",
[CHAIN.BERACHAIN]: "https://api.studio.thegraph.com/query/91379/amped-trades-bera/version/latest"
[CHAIN.BERACHAIN]: "https://api.studio.thegraph.com/query/91379/amped-trades-bera/version/latest",
[CHAIN.BASE]: "https://api.studio.thegraph.com/query/91379/trades-base/version/latest",
};

const historicalDataSwap = gql`
Expand Down
9 changes: 8 additions & 1 deletion fees/amped/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const endpoints: { [key: string]: string } = {
[CHAIN.SONIC]:
"https://api.studio.thegraph.com/query/91379/trades-sonic/version/latest",
// [CHAIN.BSC]: "https://api.studio.thegraph.com/query/91379/amped-trades-bsc/version/latest"
[CHAIN.BERACHAIN]: "https://api.studio.thegraph.com/query/91379/amped-trades-bera/version/latest"
[CHAIN.BERACHAIN]: "https://api.studio.thegraph.com/query/91379/amped-trades-bera/version/latest",
[CHAIN.BASE]: "https://api.studio.thegraph.com/query/91379/trades-base/version/latest"
};

const historicalDataQuery = gql`
Expand Down Expand Up @@ -98,6 +99,12 @@ const adapter: Adapter = {
methodology: "Fees collected from trading, liquidation, and margin activities. All fees go to liquidity providers.",
},
},
[CHAIN.BASE]: {
fetch: getFetch(endpoints[CHAIN.BASE]),
start: 1740112854,
meta: {
methodology: "Fees collected from trading, liquidation, and margin activities. All fees go to liquidity providers.",
},
},
};

Expand Down

0 comments on commit 440f09b

Please sign in to comment.