Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(apps): App token migration to ATI (#3179)
Browse files Browse the repository at this point in the history
* fix(apps): App token migration to ATI

* fix(app-tokens): App token migration

* fix(app-tokens): More pp token migration
  • Loading branch information
wpoulin authored Jan 9, 2024
1 parent 14744e6 commit efe6f5a
Show file tree
Hide file tree
Showing 71 changed files with 3 additions and 6,140 deletions.
8 changes: 0 additions & 8 deletions src/apps/abracadabra/abracadabra.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,16 @@ import { ArbitrumAbracadabraCauldronContractPositionFetcher } from './arbitrum/a
import { ArbitrumAbracadabraFarmBoostedContractPositionFetcher } from './arbitrum/abracadabra.farm-boosted.contract-position-fetcher';
import { ArbitrumAbracadabraFarmContractPositionFetcher } from './arbitrum/abracadabra.farm.contract-position-fetcher';
import { ArbitrumAbracadabraMspellContractPositionFetcher } from './arbitrum/abracadabra.m-spell.contract-position-fetcher';
import { ArbitrumAbracadabraMagicGlpTokenFetcher } from './arbitrum/abracadabra.magic-glp.token-fetcher';
import { ArbitrumAbracadabraStakedSpellTokenFetcher } from './arbitrum/abracadabra.staked-spell.token-fetcher';
import { AvalancheAbracadabraCauldronContractPositionFetcher } from './avalanche/abracadabra.cauldron.contract-position-fetcher';
import { AvalancheAbracadabraFarmContractPositionFetcher } from './avalanche/abracadabra.farm.contract-position-fetcher';
import { AvalancheAbracadabraMspellContractPositionFetcher } from './avalanche/abracadabra.m-spell.contract-position-fetcher';
import { AvalancheAbracadabraMagicGlpTokenFetcher } from './avalanche/abracadabra.magic-glp.token-fetcher';
import { AvalancheAbracadabraStakedSpellTokenFetcher } from './avalanche/abracadabra.staked-spell.token-fetcher';
import { BinanceSmartChainAbracadabraCauldronContractPositionFetcher } from './binance-smart-chain/abracadabra.cauldron.contract-position-fetcher';
import { AbracadabraViemContractFactory } from './contracts';
import { EthereumAbracadabraCauldronContractPositionFetcher } from './ethereum/abracadabra.cauldron.contract-position-fetcher';
import { EthereumAbracadabraFarmContractPositionFetcher } from './ethereum/abracadabra.farm.contract-position-fetcher';
import { EthereumAbracadabraMspellContractPositionFetcher } from './ethereum/abracadabra.m-spell.contract-position-fetcher';
import { EthereumAbracadabraMagicApeTokenFetcher } from './ethereum/abracadabra.magic-ape.token-fetcher';
import { EthereumAbracadabraStakedSpellTokenFetcher } from './ethereum/abracadabra.staked-spell.token-fetcher';
import { FantomAbracadabraCauldronContractPositionFetcher } from './fantom/abracadabra.cauldron.contract-position-fetcher';
import { FantomAbracadabraFarmContractPositionFetcher } from './fantom/abracadabra.farm.contract-position-fetcher';
import { FantomAbracadabraMspellContractPositionFetcher } from './fantom/abracadabra.m-spell.contract-position-fetcher';
Expand All @@ -33,24 +29,20 @@ import { OptimismAbracadabraErc20VaultsTokenFetcher } from './optimism/abracadab
// Arbitrum
ArbitrumAbracadabraCauldronContractPositionFetcher,
ArbitrumAbracadabraFarmContractPositionFetcher,
ArbitrumAbracadabraMagicGlpTokenFetcher,
ArbitrumAbracadabraMspellContractPositionFetcher,
ArbitrumAbracadabraStakedSpellTokenFetcher,
ArbitrumAbracadabraFarmBoostedContractPositionFetcher,
// Avalanche
AvalancheAbracadabraCauldronContractPositionFetcher,
AvalancheAbracadabraFarmContractPositionFetcher,
AvalancheAbracadabraMagicGlpTokenFetcher,
AvalancheAbracadabraMspellContractPositionFetcher,
AvalancheAbracadabraStakedSpellTokenFetcher,
// Binance-smart-chain
BinanceSmartChainAbracadabraCauldronContractPositionFetcher,
// Ethereum
EthereumAbracadabraCauldronContractPositionFetcher,
EthereumAbracadabraFarmContractPositionFetcher,
EthereumAbracadabraMagicApeTokenFetcher,
EthereumAbracadabraMspellContractPositionFetcher,
EthereumAbracadabraStakedSpellTokenFetcher,
// Fantom
FantomAbracadabraCauldronContractPositionFetcher,
FantomAbracadabraFarmContractPositionFetcher,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,10 @@ export const ARBITRUM_CAULDRONS: AbracadabraCauldronContractPositionDefinition[]
{ version: 'V4', type: 'REGULAR', address: '0x66805f6e719d7e67d46e8b2501c1237980996c6a' }, // gmLINK
];

export const ARBITRUM_GLP_TOKEN_ADDRESS = '0x4277f8f2c384827b5273592ff7cebd9f2c1ac258';
export const AVALANCHE_GLP_TOKEN_ADDRESS = '0x01234181085565ed162a948b6a5e88758cd7c7b8';

export const CURVE_MIM_3POOL_FARM = '0x839de324a1ab773f76a53900d70ac1b913d2b387';

export const M_SPELL_ADDRESS = '0x1df188958a8674b5177f77667b8d173c3cdd9e51';
export const S_SPELL_ADDRESS = '0xf7428ffcb2581a2804998efbb036a43255c8a8d3';
export const SPELL_ADDRESS = '0xf7428ffcb2581a2804998efbb036a43255c8a8d3';

export const MAGIC_GLP_ADDRESS = '0x85667409a723684fe1e57dd1abde8d88c2f54214';
export const GLP_REWARD_TRACKER_ADDRESSES = [
'0x4e971a87900b931ff39d1aad67697f49835400b6',
'0x1addd80e6039594ee970e5872d247bf0414c8903',
];
export const MAGIC_GLP_HARVESTOR_ADDRESS = '0xc99a4863173ef52ccb7ea05440da0e37ba39c139';
export const MAGIC_GLP_ANNUAL_HARVESTS = HOURS_PER_YEAR;

This file was deleted.

This file was deleted.

71 changes: 0 additions & 71 deletions src/apps/abracadabra/common/abracadabra.magic-ape.token-fetcher.ts

This file was deleted.

112 changes: 0 additions & 112 deletions src/apps/abracadabra/common/abracadabra.magic-glp.token-fetcher.ts

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions src/apps/aelin/aelin.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { AelinViemContractFactory } from './contracts';
import { EthereumAelinPoolTokenFetcher } from './ethereum/aelin.pool.token-fetcher';
import { OptimismAelinFarmContractPositionFetcher } from './optimism/aelin.farm.contract-position-fetcher';
import { OptimismAelinPoolTokenFetcher } from './optimism/aelin.pool.token-fetcher';
import { OptimismAelinVAelinTokenFetcher } from './optimism/aelin.v-aelin.token-fetcher';

@Module({
providers: [
Expand All @@ -15,7 +14,6 @@ import { OptimismAelinVAelinTokenFetcher } from './optimism/aelin.v-aelin.token-
EthereumAelinPoolTokenFetcher,
// Optimism
OptimismAelinPoolTokenFetcher,
OptimismAelinVAelinTokenFetcher,
OptimismAelinFarmContractPositionFetcher,
],
})
Expand Down
10 changes: 0 additions & 10 deletions src/apps/aelin/optimism/aelin.v-aelin.token-fetcher.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/apps/beethoven-x/beethoven-x.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { BalancerV2ViemContractFactory } from '~apps/balancer-v2/contracts';

import { BeethovenXViemContractFactory } from './contracts';
import { FantomBeethovenXChefContractPositionFetcher } from './fantom/beethoven-x.chef.contract-position-fetcher';
import { FantomBeethovenXFBeetsTokenFetcher } from './fantom/beethoven-x.f-beets.token-fetcher';
import { FantomBeethovenXPoolTokenFetcher } from './fantom/beethoven-x.pool.token-fetcher';
import { OptimismBeethovenXFarmContractPositionFetcher } from './optimism/beethoven-x.farm.contract-position-fetcher';
import { OptimismBeethovenXPoolTokenFetcher } from './optimism/beethoven-x.pool.token-fetcher';
Expand All @@ -17,7 +16,6 @@ import { OptimismBeethovenXPoolTokenFetcher } from './optimism/beethoven-x.pool.
// Fantom
FantomBeethovenXChefContractPositionFetcher,
FantomBeethovenXPoolTokenFetcher,
FantomBeethovenXFBeetsTokenFetcher,
// Optimism
OptimismBeethovenXFarmContractPositionFetcher,
OptimismBeethovenXPoolTokenFetcher,
Expand Down
10 changes: 0 additions & 10 deletions src/apps/beethoven-x/fantom/beethoven-x.f-beets.token-fetcher.ts

This file was deleted.

7 changes: 1 addition & 6 deletions src/apps/chicken-bond/chicken-bond.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@ import { Module } from '@nestjs/common';
import { AbstractApp } from '~app/app.dynamic-module';

import { ChickenBondViemContractFactory } from './contracts';
import { EthereumChickenBondBlusdTokenFetcher } from './ethereum/chicken-bond.blusd.token-fetcher';
import { EthereumChickenBondBondContractPositionFetcher } from './ethereum/chicken-bond.bond.contract-position-fetcher';

@Module({
providers: [
ChickenBondViemContractFactory,
EthereumChickenBondBlusdTokenFetcher,
EthereumChickenBondBondContractPositionFetcher,
],
providers: [ChickenBondViemContractFactory, EthereumChickenBondBondContractPositionFetcher],
})
export class ChickenBondAppModule extends AbstractApp() {}
Loading

0 comments on commit efe6f5a

Please sign in to comment.