Skip to content

Commit

Permalink
Add Integral Arbitrum pools (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegralHQ authored Dec 7, 2023
1 parent 3634200 commit 82312a2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/adaptors/integral/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
const { default: BigNumber } = require('bignumber.js');
const utils = require('../utils');

const baseUrlSize =
'https://size-api.integral.link/api/v5/pools?apiKey=00Gfs4iNa%2FXJDBkF%2B%2FX83SRqx3MXXAngJMkpx3lM%2FTU=';
const baseUrlFive =
'https://five-api.integral.link/api/v1/pools?apiKey=00Gfs4iNa%2FXJDBkF%2B%2FX83SRqx3MXXAngJMkpx3lM%2FTU=';
const mainnetUrlSize = `${baseUrlSize}&network=Mainnet`;
const mainnetUrlFive = `${baseUrlFive}&network=Mainnet`;
const mainnetUrlSize = `https://size-api.integral.link/api/v6/pools?apiKey=00Gfs4iNa%2FXJDBkF%2B%2FX83SRqx3MXXAngJMkpx3lM%2FTU=&network=Mainnet`;
const mainnetUrlFive = `https://five-api.integral.link/api/v1/pools?apiKey=00Gfs4iNa%2FXJDBkF%2B%2FX83SRqx3MXXAngJMkpx3lM%2FTU=&network=Mainnet`;
const arbitrumUrlSize = `https://arbitrum-size-api.integral.link/api/v6/pools?apiKey=00Gfs4iNa%2FXJDBkF%2B%2FX83SRqx3MXXAngJMkpx3lM%2FTU=&network=Arbitrum`;

const chains = {
eth: 'ethereum',
arb: 'arbitrum',
};

const buildPool = (entry, chainString, version) => {
Expand Down Expand Up @@ -49,6 +47,7 @@ const main = async () => {
const data = await Promise.all([
topLvl(chains.eth, mainnetUrlSize, 'SIZE'),
topLvl(chains.eth, mainnetUrlFive, 'FIVE'),
topLvl(chains.arb, arbitrumUrlSize, 'SIZE'),
]);

return data.flat();
Expand Down

0 comments on commit 82312a2

Please sign in to comment.