Skip to content

Commit

Permalink
feat: add pools to allowlists
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Oct 27, 2023
1 parent b00fcad commit cd67f0b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/lib/config/optimism/index.ts
Expand Up @@ -3,6 +3,7 @@ import contracts from './contracts';
import pools from './pools';
import tokenlists from './tokenlists';
import tokens from './tokens';
import rateProviders from './rateProviders';

const config: Config = {
key: '10',
Expand Down Expand Up @@ -69,7 +70,7 @@ const config: Config = {
pools,
tokenlists,
tokens,
rateProviders: {},
rateProviders,
};

export default config;
31 changes: 27 additions & 4 deletions src/lib/config/optimism/pools.ts
Expand Up @@ -14,17 +14,40 @@ const pools: Pools = {
Gauntlet: [],
},
BlockList: [],
IncludedPoolTypes: ['Weighted', 'Stable', 'GyroE'],
IncludedPoolTypes: [
'Weighted',
'Stable',
'MetaStable',
'GyroE',
'ComposableStable',
],
Stable: {
AllowList: [],
AllowList: [
'0x4fd63966879300cafafbb35d157dc5229278ed2300020000000000000000002b', // wEth/rEth
'0x7b50775383d3d6f0215a8f290f2c9e2eebbeceb200020000000000000000008b', // wstETH/wETH
'0xacfe9b4782910a853b68abba60f3fd8049ffe6380000000000000000000000ff', // USDC/DOLA
'0x004700ba0a4f5f22e1e78a277fca55e36f47e09c000000000000000000000104', // rEth/ankrEth
'0x9da11ff60bfc5af527f58fd61679c3ac98d040d9000000000000000000000100', // usdc/usdcE/usdt/dai
],
},
Investment: {
AllowList: [],
},
Weighted: {
AllowList: [],
AllowList: [
'0x00b82bc5edea6e5e6c77635e31a1a25aad99f881000200000000000000000105', // OVN/wUSD
'0xd6e5824b54f64ce6f1161210bc17eebffc77e031000100000000000000000006', // OP/BEETS/BAL
'0x39965c9dab5448482cf7e002f583c812ceb53046000100000000000000000003', // WETH/OP/USDC
],
},
Factories: {
'0xb08e16cfc07c684daa2f93c70323badb2a6cbfd2': 'metaStable',
'0x230a59f4d9adc147480f03b0d3fffecd56c3289a': 'weightedPool',
'0xdae7e32adc5d490a43ccba1f0c736033f2b4efca': 'weightedPool',
'0x0f3e0c4218b7b0108a3643cfe9d3ec0d4f57c54e': 'weightedPool',
'0x043a2dad730d585c44fb79d2614f295d2d625412': 'composableStablePool',
'0x9b683ca24b0e013512e2566b68704dbe9677413c': 'gyroE',
},
Factories: {},
Stakable: {
VotingGaugePools: [
'0x4fd63966879300cafafbb35d157dc5229278ed2300020000000000000000002b',
Expand Down
9 changes: 9 additions & 0 deletions src/lib/config/optimism/rateProviders.ts
@@ -0,0 +1,9 @@
import { RateProviders } from '../types';

const rateProviders: RateProviders = {
'*': {
'0x0000000000000000000000000000000000000000': true,
},
};

export default rateProviders;
3 changes: 2 additions & 1 deletion src/types/pools.ts
Expand Up @@ -34,7 +34,8 @@ export type FactoryType =
| 'fx'
| 'eulerLinear'
| 'gyroE'
| 'erc4626Linear';
| 'erc4626Linear'
| 'metaStable';

export enum PoolFeature {
Boosted = 'boosted',
Expand Down

0 comments on commit cd67f0b

Please sign in to comment.