Skip to content

Commit 1b11d0d

Browse files
committed
chore: 👕
1 parent 8ad03c6 commit 1b11d0d

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

packages/keeper-bots/src/converter-bot/queries/getCoreMarkets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const getCoreMarkets = async (): Promise<PoolAddressArray[]> => {
1616
functionName: "getAllMarkets",
1717
});
1818

19+
// @ts-expect-error not infinte
1920
const underlyingAddresses = await publicClient.multicall({
2021
contracts: markets.map(m => ({
2122
address: m,

packages/keeper-bots/src/converter-bot/queries/getIsolatedMarkets.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Address } from "viem";
22

3-
import { poolLensAbi, ilVTokenAbi } from "../../config/abis/generated";
3+
import { ilVTokenAbi, poolLensAbi } from "../../config/abis/generated";
44
import getAddresses from "../../config/addresses";
55
import publicClient from "../../config/clients/publicClient";
66
import type { PoolAddressArray } from "../types";
@@ -15,6 +15,7 @@ export const getIsolatedMarkets = async (): Promise<PoolAddressArray[]> => {
1515
});
1616

1717
const underlyingAddressesByPool = await Promise.all(
18+
// @ts-expect-error not infinte
1819
pools.map(async p => {
1920
return await publicClient.multicall({
2021
contracts: p.vTokens.map(m => ({

packages/keeper-bots/wagmi.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import ilComptrollerArtifact from "@venusprotocol/isolated-pools/artifacts/contracts/Comptroller.sol/Comptroller.json" assert { type: "json" };
22
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" };
35
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" };
47
import protocolShareReserveArtifact from "@venusprotocol/protocol-reserve/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json" assert { type: "json" };
58
import tokenConverterArtifact from "@venusprotocol/protocol-reserve/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.json" assert { type: "json" };
69
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 }[]> =>
2326
abi: ilComptrollerArtifact.abi as Abi,
2427
name: "IlComptroller",
2528
},
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+
},
2641
{
2742
abi: coreVTokenArtifact.abi as Abi,
2843
name: "CoreVToken",

0 commit comments

Comments
 (0)