Skip to content

Commit 160fd8d

Browse files
committed
fix: wallet balance calculation now uses BigNumber
1 parent 7fd8e43 commit 160fd8d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/plugin-sui/src/providers/wallet.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,11 @@ export class WalletProvider {
181181
}
182182
);
183183
const prices: Prices = {
184-
sui: { usd: (1 / suiPriceData.pair.priceNative).toString() },
184+
sui: {
185+
usd: new BigNumber(1)
186+
.div(suiPriceData.pair.priceNative)
187+
.toString(),
188+
},
185189
};
186190
this.setCachedData(cacheKey, prices);
187191
return prices;

0 commit comments

Comments
 (0)