From 82312a2223832b9cc9021a170a92d34b554d8ba0 Mon Sep 17 00:00:00 2001 From: Integral <80465629+IntegralHQ@users.noreply.github.com> Date: Thu, 7 Dec 2023 14:25:11 +0800 Subject: [PATCH] Add Integral Arbitrum pools (#1105) --- src/adaptors/integral/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/adaptors/integral/index.js b/src/adaptors/integral/index.js index eb83c331cf..9b5a3b148d 100644 --- a/src/adaptors/integral/index.js +++ b/src/adaptors/integral/index.js @@ -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) => { @@ -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();