Skip to content

Commit

Permalink
For SOR pools filter out manually from ignore list. Add other GyroE o…
Browse files Browse the repository at this point in the history
…n mainnet with incorrect versions.
  • Loading branch information
johngrantuk committed Aug 30, 2023
1 parent 293187b commit d04cdab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion balancer-js/src/lib/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export const BALANCER_NETWORK_CONFIG: Record<Network, BalancerNetworkConfig> = {
'0xf22ff21e17157340575158ad7394e068048dd98b',
'0xf71d0774b214c4cf51e33eb3d30ef98132e4dbaa',
'0xe0e8ac08de6708603cfd3d23b613d2f80e3b7afb',
'0xf01b0684c98cd7ada480bfdf6e43876422fa1fc1',
'0xf01b0684c98cd7ada480bfdf6e43876422fa1fc1', // GyroE incorrect version
'0xe0e8ac08de6708603cfd3d23b613d2f80e3b7afb', // GyroE incorrect version
'0xf7a826d47c8e02835d94fb0aa40f0cc9505cb134', // GyroE incorrect version
],
sorConnectingTokens: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {

import { isSameAddress } from '@/lib/utils';
import { Logger } from '@/lib/utils/logger';
import { poolsToIgnore } from '@/lib/constants/poolsToIgnore';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function mapPools(pools: any[]): SubgraphPoolBase[] {
Expand Down Expand Up @@ -76,9 +77,11 @@ export class SubgraphPoolDataService implements PoolDataService {

const filteredPools = pools.filter((p) => {
if (!this.network.poolsToIgnore) return true;
const index = this.network.poolsToIgnore.findIndex((addr) =>
let index = this.network.poolsToIgnore.findIndex((addr) =>
isSameAddress(addr, p.address)
);
if (index !== -1) return false;
index = poolsToIgnore.findIndex((id) => id === p.id);
return index === -1;
});

Expand Down

0 comments on commit d04cdab

Please sign in to comment.