Skip to content

Commit

Permalink
Read the min amount of BTC deposit from the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Apr 9, 2024
1 parent 4244f92 commit 49b4306
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dapp/src/hooks/sdk/useFetchMinStakeAmount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ export function useFetchMinStakeAmount() {
if (!isInitialized || !acre) return

const fetchMinStakeAmount = async () => {
// TODO: Use function from SDK
const minStakeAmount = await new Promise<bigint>((resolve) => {
resolve(BigInt(String(1e4))) // 0.0001 BTC
})
const minStakeAmount = await acre.staking.minStakeAmount()

dispatch(setMinStakeAmount(minStakeAmount))
}
Expand Down

0 comments on commit 49b4306

Please sign in to comment.