File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
src/converter-bot/queries Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export const getCoreMarkets = async (): Promise<PoolAddressArray[]> => {
16
16
functionName : "getAllMarkets" ,
17
17
} ) ;
18
18
19
+ // @ts -expect-error not infinte
19
20
const underlyingAddresses = await publicClient . multicall ( {
20
21
contracts : markets . map ( m => ( {
21
22
address : m ,
Original file line number Diff line number Diff line change 1
1
import { Address } from "viem" ;
2
2
3
- import { poolLensAbi , ilVTokenAbi } from "../../config/abis/generated" ;
3
+ import { ilVTokenAbi , poolLensAbi } from "../../config/abis/generated" ;
4
4
import getAddresses from "../../config/addresses" ;
5
5
import publicClient from "../../config/clients/publicClient" ;
6
6
import type { PoolAddressArray } from "../types" ;
@@ -15,6 +15,7 @@ export const getIsolatedMarkets = async (): Promise<PoolAddressArray[]> => {
15
15
} ) ;
16
16
17
17
const underlyingAddressesByPool = await Promise . all (
18
+ // @ts -expect-error not infinte
18
19
pools . map ( async p => {
19
20
return await publicClient . multicall ( {
20
21
contracts : p . vTokens . map ( m => ( {
Original file line number Diff line number Diff line change 1
1
import ilComptrollerArtifact from "@venusprotocol/isolated-pools/artifacts/contracts/Comptroller.sol/Comptroller.json" assert { type : "json" } ;
2
2
import poolLensArtifact from "@venusprotocol/isolated-pools/artifacts/contracts/Lens/PoolLens.sol/PoolLens.json" assert { type : "json" } ;
3
+ import ilVTokenArtifact from "@venusprotocol/isolated-pools/artifacts/contracts/VToken.sol/VToken.json" assert { type : "json" } ;
4
+ import liquidationOperatorArtifact from "@venusprotocol/keeper-bot-contracts/artifacts/contracts/operators/LiquidationOperator.sol/LiquidationOperator.json" assert { type : "json" } ;
3
5
import tokenConverterOperatorArtifact from "@venusprotocol/keeper-bot-contracts/artifacts/contracts/operators/TokenConverterOperator.sol/TokenConverterOperator.json" assert { type : "json" } ;
6
+ import resilientOracleArtifact from "@venusprotocol/oracle/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json" assert { type : "json" } ;
4
7
import protocolShareReserveArtifact from "@venusprotocol/protocol-reserve/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json" assert { type : "json" } ;
5
8
import tokenConverterArtifact from "@venusprotocol/protocol-reserve/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.json" assert { type : "json" } ;
6
9
import vBnbAdminArtifact from "@venusprotocol/venus-protocol/artifacts/contracts/Admin/VBNBAdmin.sol/VBNBAdmin.json" assert { type : "json" } ;
@@ -23,6 +26,18 @@ const getExternalContracts = async (): Promise<{ name: string; abi: Abi }[]> =>
23
26
abi : ilComptrollerArtifact . abi as Abi ,
24
27
name : "IlComptroller" ,
25
28
} ,
29
+ {
30
+ abi : ilVTokenArtifact . abi as Abi ,
31
+ name : "ilVToken" ,
32
+ } ,
33
+ {
34
+ abi : resilientOracleArtifact . abi as Abi ,
35
+ name : "resilientOracle" ,
36
+ } ,
37
+ {
38
+ abi : liquidationOperatorArtifact . abi as Abi ,
39
+ name : "liquidationOperator" ,
40
+ } ,
26
41
{
27
42
abi : coreVTokenArtifact . abi as Abi ,
28
43
name : "CoreVToken" ,
You can’t perform that action at this time.
0 commit comments