Skip to content

Commit 9f55b02

Browse files
feat: return balance in the smallest unit from getBalance function
1 parent 568fd80 commit 9f55b02

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/web-provider/src/vault-service/vault-service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ export const createVaultService = (): IVaultService => {
131131
getBalance: async () => {
132132
await rehydrate()
133133
const store = useVault.getState()
134-
return Number(
135-
(store.getCurrentWallet().accountInfo.MINA?.balance.total ?? 0) / 1e9,
136-
) as number
134+
return store.getCurrentWallet().accountInfo.MINA?.balance.total ?? 0
137135
},
138136
addChain: async (providerConfig: ProviderConfig) => {
139137
await rehydrate()

0 commit comments

Comments
 (0)