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

feat(aurigami): Add presentation config and remove custom tvl fetcher #736

Merged
merged 1 commit into from
Jun 23, 2022
Merged
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
28 changes: 26 additions & 2 deletions src/apps/aurigami/aurigami.definition.ts
Original file line number Diff line number Diff line change
@@ -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: {},
2 changes: 0 additions & 2 deletions src/apps/aurigami/aurigami.module.ts
Original file line number Diff line number Diff line change
@@ -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';

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

// Helpers
AurigamiClaimableBalanceHelper,
Original file line number Diff line number Diff line change
@@ -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)
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
@@ -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,
28 changes: 0 additions & 28 deletions src/apps/aurigami/aurora/aurigami.tvl-fetcher.ts

This file was deleted.