Skip to content

Commit 31a20e3

Browse files
committed
Revert "fix: add btach limit to getting accounts"
This reverts commit ca060d2.
1 parent 320ad40 commit 31a20e3

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/dev/createAnvilClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {
1212
} from "viem";
1313
import { createTestClient, publicActions, toHex, walletActions } from "viem";
1414

15-
export interface AnvilNodeInfo {
15+
interface AnvilNodeInfo {
1616
currentBlockNumber: string; // hexutil.Big is a big number in hex format
1717
currentBlockTimestamp: number;
1818
currentBlockHash: string;
@@ -31,7 +31,7 @@ export interface AnvilNodeInfo {
3131
};
3232
}
3333

34-
export type AnvilRPCSchema = [
34+
type AnvilRPCSchema = [
3535
...TestRpcSchema<"anvil">,
3636
{
3737
Method: "anvil_nodeInfo";

src/sdk/accounts/CreditAccountsService.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export interface CreditAccountFilter {
3838
includeZeroDebt?: boolean;
3939
minHealthFactor?: number;
4040
maxHealthFactor?: number;
41-
batchLimit?: bigint;
4241
}
4342

4443
export class CreditAccountsService extends SDKConstruct {
@@ -120,7 +119,6 @@ export class CreditAccountsService extends SDKConstruct {
120119
maxHealthFactor = 65_535, // TODO: this will change to bigint
121120
minHealthFactor = 0,
122121
owner = ADDRESS_0X0,
123-
batchLimit,
124122
} = args ?? {};
125123
// either credit manager or all attached markets
126124
const arg0 = creditManager ?? {
@@ -144,9 +142,7 @@ export class CreditAccountsService extends SDKConstruct {
144142
let offset = 0n;
145143
do {
146144
const [accounts, newOffset] = await this.#getCreditAccounts(
147-
[arg0, { ...caFilter, reverting }, offset, batchLimit!].filter(
148-
Boolean,
149-
) as unknown as GetCreditAccountsArgs,
145+
[arg0, { ...caFilter, reverting }, offset],
150146
priceUpdateTxs,
151147
options,
152148
);

0 commit comments

Comments
 (0)