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

feat: add aladdin dao concentrator #423

Merged
merged 7 commits into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/apps/concentrator/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions src/apps/concentrator/concentrator.definition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { Register } from '~app-toolkit/decorators';
import { appDefinition, AppDefinition } from '~app/app.definition';
import { AppAction, AppTag, GroupType } from '~app/app.interface';
import { Network } from '~types/network.interface';

export const CONCENTRATOR_DEFINITION = appDefinition({
id: 'concentrator',
name: 'Concentrator',
description: 'Boost your Convex yields by ~50%',
url: 'https://concentrator.aladdin.club/',
groups: {
acrv: {
id: 'acrv',
type: GroupType.TOKEN,
label: 'Farm',
},
pool: {
id: 'pool',
type: GroupType.POSITION,
label: 'Pools',
},
},

tags: [AppTag.FARMING],
keywords: [],
links: {
github: 'https://github.com/AladdinDAO',
},

supportedNetworks: {
[Network.ETHEREUM_MAINNET]: [AppAction.VIEW],
},

primaryColor: '#fff',
});

@Register.AppDefinition(CONCENTRATOR_DEFINITION.id)
export class ConcentratorAppDefinition extends AppDefinition {
constructor() {
super(CONCENTRATOR_DEFINITION);
}
}

export default CONCENTRATOR_DEFINITION;
20 changes: 20 additions & 0 deletions src/apps/concentrator/concentrator.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Register } from '~app-toolkit/decorators';
import { AbstractApp } from '~app/app.dynamic-module';

import { ConcentratorAppDefinition, CONCENTRATOR_DEFINITION } from './concentrator.definition';
import { ConcentratorContractFactory } from './contracts';
import { EthereumConcentratorAcrvTokenFetcher } from './ethereum/concentrator.acrv.token-fetcher';
import { EthereumConcentratorBalanceFetcher } from './ethereum/concentrator.balance-fetcher';
import { EthereumConcentratorPoolContractPositionFetcher } from './ethereum/concentrator.pool.contract-position-fetcher';

@Register.AppModule({
appId: CONCENTRATOR_DEFINITION.id,
providers: [
ConcentratorAppDefinition,
ConcentratorContractFactory,
EthereumConcentratorAcrvTokenFetcher,
EthereumConcentratorBalanceFetcher,
EthereumConcentratorPoolContractPositionFetcher,
],
})
export class ConcentratorAppModule extends AbstractApp() {}
Loading