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

Commit

Permalink
fix: Fix app definition helper in DFX, use correct imports for AppTag…
Browse files Browse the repository at this point in the history
… and AppAction (#353)
  • Loading branch information
immasandwich committed May 4, 2022
1 parent 029e3b2 commit 06d5e45
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/apps/dfx/dfx.definition.ts
@@ -1,9 +1,9 @@
import { Register } from '~app-toolkit/decorators';
import { AppDefinition } from '~app/app.definition';
import { GroupType, ProtocolAction, ProtocolTag } from '~app/app.interface';
import { appDefinition, AppDefinition } from '~app/app.definition';
import { GroupType, AppAction, AppTag } from '~app/app.interface';
import { Network } from '~types/network.interface';

export const DFX_DEFINITION = {
export const DFX_DEFINITION = appDefinition({
id: 'dfx',
name: 'dfx',
description: 'DFX.Finance is a decentralized foreign exchange protocol optimized for stablecoins',
Expand All @@ -19,13 +19,13 @@ export const DFX_DEFINITION = {
dfxCurve: { id: 'dfx-curve', type: GroupType.TOKEN },
staking: { id: 'staking', type: GroupType.POSITION },
},
tags: [ProtocolTag.EXCHANGE, ProtocolTag.LIQUIDITY_POOL, ProtocolTag.STABLECOIN],
tags: [AppTag.DECENTRALIZED_EXCHANGE, AppTag.LIQUIDITY_POOL, AppTag.STABLECOIN],
supportedNetworks: {
[Network.ETHEREUM_MAINNET]: [ProtocolAction.VIEW],
[Network.POLYGON_MAINNET]: [ProtocolAction.VIEW],
[Network.ETHEREUM_MAINNET]: [AppAction.VIEW],
[Network.POLYGON_MAINNET]: [AppAction.VIEW],
},
primaryColor: '#fff',
};
});

@Register.AppDefinition(DFX_DEFINITION.id)
export class DfxAppDefinition extends AppDefinition {
Expand Down

0 comments on commit 06d5e45

Please sign in to comment.