Skip to content

Commit

Permalink
bundle data client
Browse files Browse the repository at this point in the history
Signed-off-by: bennett <[email protected]>
  • Loading branch information
bmzig committed Mar 3, 2025
1 parent 16dbd7e commit 6d6ea7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clients/BundleDataClient/BundleDataClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,10 @@ export class BundleDataClient {

getRefundsFor(bundleRefunds: CombinedRefunds, relayer: Address, chainId: number, token: Address): BigNumber {
if (!bundleRefunds[chainId] || !bundleRefunds[chainId][token.toString()]) {
return BigNumber.from(0);
return bnZero;
}
const allRefunds = bundleRefunds[chainId][token.toString()];
return allRefunds && allRefunds[relayer.toString()] ? allRefunds[relayer.toString()] : BigNumber.from(0);
return allRefunds && allRefunds[relayer.toString()] ? allRefunds[relayer.toString()] : bnZero;
}

getTotalRefund(refunds: CombinedRefunds[], relayer: Address, chainId: number, refundToken: Address): BigNumber {
Expand Down

0 comments on commit 6d6ea7f

Please sign in to comment.