Skip to content

Commit

Permalink
Merge branch 'master' into pxrl/relayerRefactorEvaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl authored Mar 22, 2024
2 parents ab5e0d7 + 3aa299e commit 80e3145
Show file tree
Hide file tree
Showing 6 changed files with 580 additions and 194 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@across-protocol/constants-v2": "1.0.14",
"@across-protocol/contracts-v2": "2.5.3",
"@across-protocol/sdk-v2": "0.22.15",
"@across-protocol/sdk-v2": "0.22.16",
"@arbitrum/sdk": "^3.1.3",
"@consensys/linea-sdk": "^0.2.1",
"@defi-wonderland/smock": "^2.3.5",
Expand Down
4 changes: 0 additions & 4 deletions src/clients/BalanceAllocator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ export class BalanceAllocator {
return this.balances[chainId][token][holder];
}

async getVirtualBalance(chainId: number, token: string, holder: string): Promise<BigNumber> {
return (await this.getBalance(chainId, token, holder)).sub(this.getUsed(chainId, token, holder));
}

getUsed(chainId: number, token: string, holder: string): BigNumber {
if (!this.used?.[chainId]?.[token]?.[holder]) {
// Note: cannot use assign because it breaks the BigNumber object.
Expand Down
Loading

0 comments on commit 80e3145

Please sign in to comment.