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

Commit

Permalink
feat(aurigami): Add presentation config and remove custom tvl fetcher (
Browse files Browse the repository at this point in the history
  • Loading branch information
pwele authored Jun 23, 2022
1 parent e67a9fb commit 0d34ebd
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 34 deletions.
28 changes: 26 additions & 2 deletions src/apps/aurigami/aurigami.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,45 @@ export const AURIGAMI_DEFINITION = appDefinition({
supply: {
id: 'supply',
type: GroupType.TOKEN,
label: 'Supply',
label: 'Lending',
groupLabel: 'Supply',
},

borrow: {
id: 'borrow',
type: GroupType.POSITION,
label: 'Borrow',
label: 'Lending',
groupLabel: 'Borrow',
},

claimable: {
id: 'claimable',
type: GroupType.POSITION,
label: 'Claimable',
isHiddenFromExplore: true,
},
},
presentationConfig: {
tabs: [
{
label: 'Lending',
viewType: 'split',
views: [
{
viewType: 'list',
label: 'Supply',
groupIds: ['supply'],
},
{
viewType: 'list',
label: 'Borrow',
groupIds: ['borrow'],
},
],
},
],
},

tags: [AppTag.LENDING],
keywords: [],
links: {},
Expand Down
2 changes: 0 additions & 2 deletions src/apps/aurigami/aurigami.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { AurigamiAppDefinition, AURIGAMI_DEFINITION } from './aurigami.definitio
import { AuroraAurigamiBalanceFetcher } from './aurora/aurigami.balance-fetcher';
import { AuroraAurigamiBorrowContractPositionFetcher } from './aurora/aurigami.borrow.contract-position-fetcher';
import { AuroraAurigamiSupplyTokenFetcher } from './aurora/aurigami.supply.token-fetcher';
import { AuroraAurigamiTvlFetcher } from './aurora/aurigami.tvl-fetcher';
import { AurigamiContractFactory } from './contracts';
import { AurigamiClaimableBalanceHelper } from './helper/aurigami.claimable.balance-helper';

Expand All @@ -19,7 +18,6 @@ import { AurigamiClaimableBalanceHelper } from './helper/aurigami.claimable.bala
AuroraAurigamiBalanceFetcher,
AuroraAurigamiBorrowContractPositionFetcher,
AuroraAurigamiSupplyTokenFetcher,
AuroraAurigamiTvlFetcher,

// Helpers
AurigamiClaimableBalanceHelper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const appId = AURIGAMI_DEFINITION.id;
const groupId = AURIGAMI_DEFINITION.groups.borrow.id;
const network = Network.AURORA_MAINNET;

@Register.ContractPositionFetcher({ appId, groupId, network })
@Register.ContractPositionFetcher({ appId, groupId, network, options: { includeInTvl: true } })
export class AuroraAurigamiBorrowContractPositionFetcher implements PositionFetcher<ContractPosition> {
constructor(
@Inject(CompoundBorrowContractPositionHelper)
Expand Down
2 changes: 1 addition & 1 deletion src/apps/aurigami/aurora/aurigami.supply.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const appId = AURIGAMI_DEFINITION.id;
const groupId = AURIGAMI_DEFINITION.groups.supply.id;
const network = Network.AURORA_MAINNET;

@Register.TokenPositionFetcher({ appId, groupId, network })
@Register.TokenPositionFetcher({ appId, groupId, network, options: { includeInTvl: true } })
export class AuroraAurigamiSupplyTokenFetcher implements PositionFetcher<AppTokenPosition> {
constructor(
@Inject(APP_TOOLKIT) private readonly appToolkit: IAppToolkit,
Expand Down
28 changes: 0 additions & 28 deletions src/apps/aurigami/aurora/aurigami.tvl-fetcher.ts

This file was deleted.

0 comments on commit 0d34ebd

Please sign in to comment.