diff --git a/src/apps/lyra-avalon/arbitrum/lyra-avalon.options.contract-position-fetcher.ts b/src/apps/lyra-avalon/arbitrum/lyra-avalon.options.contract-position-fetcher.ts index c3db141ad..f5abf5b4d 100644 --- a/src/apps/lyra-avalon/arbitrum/lyra-avalon.options.contract-position-fetcher.ts +++ b/src/apps/lyra-avalon/arbitrum/lyra-avalon.options.contract-position-fetcher.ts @@ -130,7 +130,7 @@ export class ArbitrumLyraAvalonOptionsContractPositionFetcher extends ContractPo async getDefinitions(): Promise { const response = await gqlFetch({ - endpoint: 'https://api.lyra.finance/subgraph/arbitrum/v2/api', + endpoint: 'https://subgraph.satsuma-prod.com/sw9vuxiQey3c/lyra/arbitrum-mainnet/api', query: OPTIONS_QUERY, }); diff --git a/src/apps/lyra-avalon/arbitrum/lyra-avalon.stk-lyra.token-fetcher.ts b/src/apps/lyra-avalon/arbitrum/lyra-avalon.stk-lyra.token-fetcher.ts deleted file mode 100644 index 6f5d4d4e9..000000000 --- a/src/apps/lyra-avalon/arbitrum/lyra-avalon.stk-lyra.token-fetcher.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; - -import { LyraAvalonViemContractFactory } from '../contracts'; -import { LyraStkLyra } from '../contracts/viem'; - -@PositionTemplate() -export class ArbitrumLyraAvalonStkLyraTokenFetcher extends AppTokenTemplatePositionFetcher { - groupLabel = 'stkLYRA'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(LyraAvalonViemContractFactory) protected readonly contractFactory: LyraAvalonViemContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string) { - return this.contractFactory.lyraStkLyra({ address, network: this.network }); - } - - async getAddresses() { - return ['0x5b237ab26ced47fb8ed104671819c801aa5ba45e']; - } - - async getUnderlyingTokenDefinitions() { - return [{ address: '0x079504b86d38119f859c4194765029f692b7b7aa', network: this.network }]; - } - - async getPricePerShare() { - return [1]; - } -} diff --git a/src/apps/lyra-avalon/ethereum/lyra-avalon.stk-lyra.token-fetcher.ts b/src/apps/lyra-avalon/ethereum/lyra-avalon.stk-lyra.token-fetcher.ts deleted file mode 100644 index 03383f490..000000000 --- a/src/apps/lyra-avalon/ethereum/lyra-avalon.stk-lyra.token-fetcher.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; - -import { LyraAvalonViemContractFactory } from '../contracts'; -import { LyraStkLyra } from '../contracts/viem'; - -@PositionTemplate() -export class EthereumLyraAvalonStkLyraTokenFetcher extends AppTokenTemplatePositionFetcher { - groupLabel = 'stkLYRA'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(LyraAvalonViemContractFactory) protected readonly contractFactory: LyraAvalonViemContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string) { - return this.contractFactory.lyraStkLyra({ address, network: this.network }); - } - - async getAddresses() { - return ['0xcb9f85730f57732fc899fb158164b9ed60c77d49']; - } - - async getUnderlyingTokenDefinitions() { - return [{ address: '0x01ba67aac7f75f647d94220cc98fb30fcc5105bf', network: this.network }]; - } - - async getPricePerShare() { - return [1]; - } -} diff --git a/src/apps/lyra-avalon/lyra-avalon.module.ts b/src/apps/lyra-avalon/lyra-avalon.module.ts index 13c1b8515..8e4eceb9d 100644 --- a/src/apps/lyra-avalon/lyra-avalon.module.ts +++ b/src/apps/lyra-avalon/lyra-avalon.module.ts @@ -4,35 +4,27 @@ import { AbstractApp } from '~app/app.dynamic-module'; import { ArbitrumLyraAvalonOptionsContractPositionFetcher } from './arbitrum/lyra-avalon.options.contract-position-fetcher'; import { ArbitrumLyraAvalonPoolTokenFetcher } from './arbitrum/lyra-avalon.pool.token-fetcher'; -import { ArbitrumLyraAvalonStkLyraTokenFetcher } from './arbitrum/lyra-avalon.stk-lyra.token-fetcher'; import { LyraAvalonViemContractFactory } from './contracts'; import { EthereumLyraAvalonStakingContractPositionFetcher } from './ethereum/lyra-avalon.staking.contract-position-fetcher'; import { EthereumLyraAvalonStkLyraClaimableContractPositionFetcher } from './ethereum/lyra-avalon.stk-lyra-claimable.contract-position-fetcher'; -import { EthereumLyraAvalonStkLyraTokenFetcher } from './ethereum/lyra-avalon.stk-lyra.token-fetcher'; import { OptimismLyraAvalonOptionsContractPositionFetcher } from './optimism/lyra-avalon.options.contract-position-fetcher'; import { OptimismLyraAvalonPoolTokenFetcher } from './optimism/lyra-avalon.pool.token-fetcher'; import { OptimismLyraAvalonStakingContractPositionFetcher } from './optimism/lyra-avalon.staking.contract-position-fetcher'; import { OptimismLyraAvalonStkLyraClaimableContractPositionFetcher } from './optimism/lyra-avalon.stk-lyra-claimable.contract-position-fetcher'; -import { OptimismLyraAvalonStkLyraOldTokenFetcher } from './optimism/lyra-avalon.stk-lyra-old.token-fetcher'; -import { OptimismLyraAvalonStkLyraTokenFetcher } from './optimism/lyra-avalon.stk-lyra.token-fetcher'; @Module({ providers: [ LyraAvalonViemContractFactory, // Arbitrum ArbitrumLyraAvalonOptionsContractPositionFetcher, - ArbitrumLyraAvalonStkLyraTokenFetcher, ArbitrumLyraAvalonPoolTokenFetcher, // Ethereum - EthereumLyraAvalonStkLyraTokenFetcher, EthereumLyraAvalonStakingContractPositionFetcher, EthereumLyraAvalonStkLyraClaimableContractPositionFetcher, // Optimism OptimismLyraAvalonOptionsContractPositionFetcher, OptimismLyraAvalonPoolTokenFetcher, OptimismLyraAvalonStakingContractPositionFetcher, - OptimismLyraAvalonStkLyraOldTokenFetcher, - OptimismLyraAvalonStkLyraTokenFetcher, OptimismLyraAvalonStkLyraClaimableContractPositionFetcher, ], }) diff --git a/src/apps/lyra-avalon/optimism/lyra-avalon.options.contract-position-fetcher.ts b/src/apps/lyra-avalon/optimism/lyra-avalon.options.contract-position-fetcher.ts index b52162be2..0dd19d5a7 100644 --- a/src/apps/lyra-avalon/optimism/lyra-avalon.options.contract-position-fetcher.ts +++ b/src/apps/lyra-avalon/optimism/lyra-avalon.options.contract-position-fetcher.ts @@ -130,7 +130,7 @@ export class OptimismLyraAvalonOptionsContractPositionFetcher extends ContractPo async getDefinitions(): Promise { const response = await gqlFetch({ - endpoint: 'https://api.lyra.finance/subgraph/optimism/v1/api', + endpoint: 'https://subgraph.satsuma-prod.com/sw9vuxiQey3c/lyra/optimism-mainnet-newport/api', query: OPTIONS_QUERY, }); diff --git a/src/apps/lyra-avalon/optimism/lyra-avalon.stk-lyra-old.token-fetcher.ts b/src/apps/lyra-avalon/optimism/lyra-avalon.stk-lyra-old.token-fetcher.ts deleted file mode 100644 index f8bcee35d..000000000 --- a/src/apps/lyra-avalon/optimism/lyra-avalon.stk-lyra-old.token-fetcher.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; - -import { LyraAvalonViemContractFactory } from '../contracts'; -import { LyraStkLyra } from '../contracts/viem'; - -@PositionTemplate() -export class OptimismLyraAvalonStkLyraOldTokenFetcher extends AppTokenTemplatePositionFetcher { - groupLabel = 'stkLYRA (old)'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(LyraAvalonViemContractFactory) protected readonly contractFactory: LyraAvalonViemContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string) { - return this.contractFactory.lyraStkLyra({ address, network: this.network }); - } - - async getAddresses() { - return ['0xde48b1b5853cc63b1d05e507414d3e02831722f8']; - } - - async getUnderlyingTokenDefinitions() { - return [{ address: '0x50c5725949a6f0c72e6c4a641f24049a917db0cb', network: this.network }]; - } - - async getPricePerShare() { - return [1]; - } -} diff --git a/src/apps/lyra-avalon/optimism/lyra-avalon.stk-lyra.token-fetcher.ts b/src/apps/lyra-avalon/optimism/lyra-avalon.stk-lyra.token-fetcher.ts deleted file mode 100644 index b130911aa..000000000 --- a/src/apps/lyra-avalon/optimism/lyra-avalon.stk-lyra.token-fetcher.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Inject } from '@nestjs/common'; - -import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; -import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; -import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; - -import { LyraAvalonViemContractFactory } from '../contracts'; -import { LyraStkLyra } from '../contracts/viem'; - -@PositionTemplate() -export class OptimismLyraAvalonStkLyraTokenFetcher extends AppTokenTemplatePositionFetcher { - groupLabel = 'stkLYRA'; - - constructor( - @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, - @Inject(LyraAvalonViemContractFactory) protected readonly contractFactory: LyraAvalonViemContractFactory, - ) { - super(appToolkit); - } - - getContract(address: string) { - return this.contractFactory.lyraStkLyra({ address, network: this.network }); - } - - async getAddresses() { - return ['0x0f5d45a7023612e9e244fe84fac5fcf3740d1492']; - } - - async getUnderlyingTokenDefinitions() { - return [{ address: '0x50c5725949a6f0c72e6c4a641f24049a917db0cb', network: this.network }]; - } - - async getPricePerShare() { - return [1]; - } -}