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

Commit

Permalink
feat(vendor-finance): Adds Coinbase Base network support for Vendor V…
Browse files Browse the repository at this point in the history
…2 Pools (#2920)
  • Loading branch information
CantaloupeBob authored Aug 31, 2023
1 parent a2456a3 commit 03c38dd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator';

import { VendorFinancePoolV2ContractPositionFetcher } from '../common/vendor-finance.pool-v2.contract-position-fetcher';

@PositionTemplate()
export class BaseVendorFinancePoolV2ContractPositionFetcher extends VendorFinancePoolV2ContractPositionFetcher {
groupLabel = 'Lending Pools V2';

positionTrackerAddr = '0x37D2f55F34f3F7D5A7Deb0367915e5ab4aC15193';
entityUrl = 'https://us-central1-vendor-finace.cloudfunctions.net/getEntitiesFromSubgraph';
}
3 changes: 3 additions & 0 deletions src/apps/vendor-finance/vendor-finance.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ArbitrumVendorFinancePoolContractPositionFetcher } from './arbitrum/ven
import { VendorFinanceContractFactory } from './contracts';
import { EthereumVendorFinancePoolV2ContractPositionFetcher } from './ethereum/vendor-finance.pool-v2.contract-position-fetcher';
import { EthereumVendorFinancePoolContractPositionFetcher } from './ethereum/vendor-finance.pool.contract-position-fetcher';
import { BaseVendorFinancePoolV2ContractPositionFetcher } from './base/vendor-finance.pool-v2.contract-position-fetcher';

@Module({
providers: [
Expand All @@ -17,6 +18,8 @@ import { EthereumVendorFinancePoolContractPositionFetcher } from './ethereum/ven
// Ethereum
EthereumVendorFinancePoolContractPositionFetcher,
EthereumVendorFinancePoolV2ContractPositionFetcher,
// Base
BaseVendorFinancePoolV2ContractPositionFetcher,
],
})
export class VendorFinanceAppModule extends AbstractApp() {}

0 comments on commit 03c38dd

Please sign in to comment.