Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mschneider committed Mar 13, 2024
1 parent bd60f92 commit c50df1d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ts/client/src/accounts/openOrders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,17 @@ export class OpenOrders {
}

getBaseBalanceUi(): number {
return Number(this.getBaseBalanceNative().toString()) / 10 ** this.market.account.baseDecimals;
return (
Number(this.getBaseBalanceNative().toString()) /
10 ** this.market.account.baseDecimals
);
}

getQuoteBalanceUi(): number {
return Number(this.getQuoteBalanceNative().toString()) / 10 ** this.market.account.quoteDecimals;
return (
Number(this.getQuoteBalanceNative().toString()) /
10 ** this.market.account.quoteDecimals
);
}

/// low-level API
Expand Down

0 comments on commit c50df1d

Please sign in to comment.