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

Commit

Permalink
feat(plutus): Remove private TGE
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich committed Aug 5, 2022
1 parent a3570f2 commit 7de64a9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 77 deletions.
20 changes: 0 additions & 20 deletions src/apps/plutus/arbitrum/plutus.balance-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,20 +229,6 @@ export class ArbitrumPlutusBalanceFetcher implements BalanceFetcher {
});
}

async getPrivateTgeBalances(address: string) {
return this.appToolkit.helpers.contractPositionBalanceHelper.getContractPositionBalances({
address,
network,
appId,
groupId: PLUTUS_DEFINITION.groups.tge.id,
resolveBalances: async ({ address, contractPosition, multicall }) => {
const contract = this.contractFactory.plutusPrivateTge(contractPosition);
const balance = await multicall.wrap(contract).deposit(address);
return [drillBalance(contractPosition.tokens[0], balance.toString())];
},
});
}

async getBalances(address: string) {
const [
plsDpxTokenBalances,
Expand All @@ -252,7 +238,6 @@ export class ArbitrumPlutusBalanceFetcher implements BalanceFetcher {
plsDpxFarmV2Balances,
plsJonesFarmBalances,
plsFarmBalances,
privateTgeBalances,
] = await Promise.all([
this.getPlsDpxTokenBalances(address),
this.getPlsJonesTokenAddresses(address),
Expand All @@ -261,7 +246,6 @@ export class ArbitrumPlutusBalanceFetcher implements BalanceFetcher {
this.getPlsDpxFarmV2Balances(address),
this.getPlsJonesFarmBalances(address),
this.getPlsFarmBalances(address),
this.getPrivateTgeBalances(address),
]);

return presentBalanceFetcherResponse([
Expand Down Expand Up @@ -293,10 +277,6 @@ export class ArbitrumPlutusBalanceFetcher implements BalanceFetcher {
label: 'Staked PLS',
assets: [...plsFarmBalances],
},
{
label: 'Private TGE',
assets: [...privateTgeBalances],
},
]);
}
}
49 changes: 0 additions & 49 deletions src/apps/plutus/arbitrum/plutus.tge.contract-position-fetcher.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/apps/plutus/plutus.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ export const PLUTUS_DEFINITION = appDefinition({
type: GroupType.POSITION,
label: 'Staked PLS',
},

tge: {
id: 'tge',
type: GroupType.POSITION,
label: 'Private TGE',
},
},
tags: [AppTag.ASSET_MANAGEMENT, AppTag.FARMING],
keywords: [],
Expand Down
2 changes: 0 additions & 2 deletions src/apps/plutus/plutus.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { ArbitrumPlutusPlsDpxTokenFetcher } from './arbitrum/plutus.pls-dpx.toke
import { ArbitrumPlutusPlsFarmContractPositionFetcher } from './arbitrum/plutus.pls-farm.contract-position-fetcher';
import { ArbitrumPlutusPlsJonesFarmContractPositionFetcher } from './arbitrum/plutus.pls-jones-farm.contract-position-fetcher';
import { ArbitrumPlutusPlsJonesTokenFetcher } from './arbitrum/plutus.pls-jones.token-fetcher';
import { ArbitrumPlutusTgeContractPositionFetcher } from './arbitrum/plutus.tge.contract-position-fetcher';
import { PlutusContractFactory } from './contracts';
import { PlutusAppDefinition, PLUTUS_DEFINITION } from './plutus.definition';

Expand All @@ -24,7 +23,6 @@ import { PlutusAppDefinition, PLUTUS_DEFINITION } from './plutus.definition';
ArbitrumPlutusPlsFarmContractPositionFetcher,
ArbitrumPlutusPlsDpxTokenFetcher,
ArbitrumPlutusPlsJonesTokenFetcher,
ArbitrumPlutusTgeContractPositionFetcher,
PlutusAppDefinition,
PlutusContractFactory,
],
Expand Down

0 comments on commit 7de64a9

Please sign in to comment.