Skip to content

Commit

Permalink
Update getDeposits fn in staking module
Browse files Browse the repository at this point in the history
Return amount in satoshi precision.
  • Loading branch information
r-czajkowski committed May 15, 2024
1 parent 71ad20b commit d8caedb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/src/modules/staking/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ class StakingModule {
deposit.depositKey,
)

const amount = depositFromSubgraph?.amount ?? deposit.initialAmount
const amount = toSatoshi(
depositFromSubgraph?.amount ?? deposit.initialAmount,
)

return {
id: deposit.depositKey,
Expand Down

0 comments on commit d8caedb

Please sign in to comment.