Skip to content

Commit

Permalink
sdk: getFuelBonus insuranceFuel
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbigz committed Jul 15, 2024
1 parent 16e295a commit 1c0c2af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,9 @@ export class User {
const userStats: UserStatsAccount = this.driftClient
.getUserStats()
.getAccount();
result.insuranceFuel = result.insuranceFuel.add(
new BN(userStats.fuelInsurance)
);
result.takerFuel = result.takerFuel.add(new BN(userStats.fuelTaker));
result.makerFuel = result.makerFuel.add(new BN(userStats.fuelMaker));
result.depositFuel = result.depositFuel.add(
Expand Down

0 comments on commit 1c0c2af

Please sign in to comment.