diff --git a/src/apps/vendor-finance/base/vendor-finance.pool-v2.contract-position-fetcher.ts b/src/apps/vendor-finance/base/vendor-finance.pool-v2.contract-position-fetcher.ts new file mode 100644 index 000000000..6ebce1a36 --- /dev/null +++ b/src/apps/vendor-finance/base/vendor-finance.pool-v2.contract-position-fetcher.ts @@ -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'; +} diff --git a/src/apps/vendor-finance/vendor-finance.module.ts b/src/apps/vendor-finance/vendor-finance.module.ts index 8a3a987a3..9370c97f8 100644 --- a/src/apps/vendor-finance/vendor-finance.module.ts +++ b/src/apps/vendor-finance/vendor-finance.module.ts @@ -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: [ @@ -17,6 +18,8 @@ import { EthereumVendorFinancePoolContractPositionFetcher } from './ethereum/ven // Ethereum EthereumVendorFinancePoolContractPositionFetcher, EthereumVendorFinancePoolV2ContractPositionFetcher, + // Base + BaseVendorFinancePoolV2ContractPositionFetcher, ], }) export class VendorFinanceAppModule extends AbstractApp() {}