Skip to content

Commit e060d60

Browse files
committed
improve strategies resolver
1 parent 8cefd9c commit e060d60

File tree

12 files changed

+41
-3
lines changed

12 files changed

+41
-3
lines changed

src/base/strategies.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { baseAddresses } from '@utils/addresses-base'
77

88
export const oethbStrategies: readonly IStrategyData[] = [
99
{
10+
chainId: 8453,
1011
from: 18689563,
1112
name: 'Bridged WOETH Strategy',
1213
contractName: 'BridgedWOETHStrategy',
@@ -18,6 +19,7 @@ export const oethbStrategies: readonly IStrategyData[] = [
1819
earnings: { rewardTokenCollected: true, passiveByDepositWithdrawal: true },
1920
},
2021
{
22+
chainId: 8453,
2123
from: 19046362,
2224
name: 'Aerodrome AMO Strategy',
2325
contractName: 'AerodromeAMOStrategy',

src/oeth/processors/strategies.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818

1919
export const oethStrategies: readonly IStrategyData[] = [
2020
{
21+
chainId: 1,
2122
from: 17249899,
2223
name: 'OETH Convex ETH+OETH (AMO)',
2324
contractName: 'ConvexEthMetaStrategy',
@@ -36,6 +37,7 @@ export const oethStrategies: readonly IStrategyData[] = [
3637
earnings: { rewardTokenCollected: true, passiveByDepositWithdrawal: true },
3738
},
3839
{
40+
chainId: 1,
3941
from: 17067232,
4042
name: 'OETH Frax Staking',
4143
contractName: 'FraxETHStrategy',
@@ -47,6 +49,7 @@ export const oethStrategies: readonly IStrategyData[] = [
4749
earnings: { passiveByDepositWithdrawal: true, rewardTokenCollected: true },
4850
},
4951
{
52+
chainId: 1,
5053
from: 17367105,
5154
name: 'OETH Morpho Aave V2',
5255
contractName: 'MorphoAaveStrategy',
@@ -58,6 +61,7 @@ export const oethStrategies: readonly IStrategyData[] = [
5861
earnings: { passiveByDepositWithdrawal: true, rewardTokenCollected: true },
5962
},
6063
{
64+
chainId: 1,
6165
from: 18156225,
6266
name: 'OETH Aura rETH/WETH',
6367
contractName: 'BalancerMetaPoolStrategy',
@@ -90,6 +94,7 @@ export const oethStrategies: readonly IStrategyData[] = [
9094
},
9195
},
9296
{
97+
chainId: 1,
9398
from: 17141121,
9499
name: 'OETH Vault (rETH)',
95100
contractName: 'VaultCore',
@@ -107,6 +112,7 @@ export const oethStrategies: readonly IStrategyData[] = [
107112
})),
108113
},
109114
{
115+
chainId: 1,
110116
from: 17067232,
111117
name: 'OETH Vault (stETH)',
112118
contractName: 'VaultCore',
@@ -117,6 +123,7 @@ export const oethStrategies: readonly IStrategyData[] = [
117123
assets: [STETH_ADDRESS].map((address) => ({ address, decimals: 18 })),
118124
},
119125
{
126+
chainId: 1,
120127
from: 17067232,
121128
name: 'OETH Vault (WETH)',
122129
contractName: 'VaultCore',
@@ -130,6 +137,7 @@ export const oethStrategies: readonly IStrategyData[] = [
130137
})),
131138
},
132139
{
140+
chainId: 1,
133141
from: 20046251,
134142
name: 'OETH Native Staking 1',
135143
contractName: 'NativeStakingSSVStrategy',
@@ -141,6 +149,7 @@ export const oethStrategies: readonly IStrategyData[] = [
141149
earnings: { passiveByDepositWithdrawal: true, rewardTokenCollected: true },
142150
},
143151
{
152+
chainId: 1,
144153
from: 20290461,
145154
name: 'OETH Native Staking 2',
146155
contractName: 'NativeStakingSSVStrategy',

src/ousd/processors/strategies/aave-strategy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { logFilter } from '@utils/logFilter'
99
import { DAI, USDT } from './const'
1010

1111
export const aaveStrategy: IStrategyData = {
12+
chainId: 1,
1213
from: 14206832, // 13369326, Initial Deploy
1314
oTokenAddress: OUSD_ADDRESS,
1415
kind: 'Generic',

src/ousd/processors/strategies/convex-meta-strategy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { DAI, USDC, USDT } from './const'
99
const from = 15896478
1010

1111
export const convexMetaStrategy: IStrategyData = {
12+
chainId: 1,
1213
from,
1314
oTokenAddress: OUSD_ADDRESS,
1415
kind: 'CurveAMO',

src/ousd/processors/strategies/flux-strategy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { OUSD_ADDRESS } from '@utils/addresses'
55
import { DAI, USDC, USDT } from './const'
66

77
export const fluxStrategy: IStrategyData = {
8+
chainId: 1,
89
from: 17877308,
910
oTokenAddress: OUSD_ADDRESS,
1011
kind: 'Generic',

src/ousd/processors/strategies/maker-dsr-strategy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { mainnetCurrencies } from '@shared/post-processors/exchange-rates/mainne
22
import { IStrategyData } from '@templates/strategy'
33
import { OUSD_ADDRESS } from '@utils/addresses'
44

5-
import { DAI, USDC, USDT } from './const'
5+
import { DAI } from './const'
66

77
export const makerDsrStrategy: IStrategyData = {
8+
chainId: 1,
89
from: 17883037,
910
oTokenAddress: OUSD_ADDRESS,
1011
kind: 'Generic',

src/ousd/processors/strategies/metamorpho-strategy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { OUSD_ADDRESS, addresses } from '@utils/addresses'
55
import { USDC } from './const'
66

77
export const metamorphoStrategy: IStrategyData = {
8+
chainId: 1,
89
from: 20685100,
910
oTokenAddress: OUSD_ADDRESS,
1011
kind: 'Generic',

src/ousd/processors/strategies/morpho-aave.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { OUSD_ADDRESS } from '@utils/addresses'
55
import { DAI, USDC, USDT } from './const'
66

77
export const morphoAave: IStrategyData = {
8+
chainId: 1,
89
from: 16331911,
910
oTokenAddress: OUSD_ADDRESS,
1011
kind: 'Generic',

src/ousd/processors/strategies/morpho-compound.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { OUSD_ADDRESS } from '@utils/addresses'
55
import { DAI, USDC, USDT } from './const'
66

77
export const morphoCompound: IStrategyData = {
8+
chainId: 1,
89
from: 15949661,
910
oTokenAddress: OUSD_ADDRESS,
1011
kind: 'Generic',

src/ousd/processors/strategies/strategies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { metamorphoStrategy } from './metamorpho-strategy'
1212
import { morphoAave } from './morpho-aave'
1313
import { morphoCompound } from './morpho-compound'
1414

15-
const ousdStrategies: readonly IStrategyData[] = [
15+
export const ousdStrategies: readonly IStrategyData[] = [
1616
convexMetaStrategy,
1717
aaveStrategy,
1818
morphoCompound,

0 commit comments

Comments
 (0)