Skip to content

Commit

Permalink
tweak naming
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyu-li-cb committed Aug 9, 2024
1 parent f0b07f2 commit 7fc209f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coinbase/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { StakingReward } from "./staking_reward";
* A representation of a blockchain address, which is a user-controlled account on a network.
*/
export class Address {
private static MAX_BALANCE_HISTORY = 1000;
private static MAX_HISTORICAL_BALANCE = 1000;

protected networkId: string;
protected id: string;
Expand Down Expand Up @@ -115,7 +115,7 @@ export class Address {

const queue: string[] = [""];

while (queue.length > 0 && historyList.length < Address.MAX_BALANCE_HISTORY) {
while (queue.length > 0 && historyList.length < Address.MAX_HISTORICAL_BALANCE) {
const page = queue.shift();
const response = await Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance(
this.getNetworkId(),
Expand Down

0 comments on commit 7fc209f

Please sign in to comment.