You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the minimum amount of deposit for dApp is read from the constant BITCOIN_MIN_AMOUNT. We should take it from the SDK. Let's update this value.
Closes#234Closes#336
This PR reads the minimum amount of BTC deposit from the SDK and saves
it in the redux store.
### What has been done:
- Fetch the minimum amount of BTC deposit from the SDK
- Create a special hook `useFetchSdkData` to load all needed data from
the SDK
- Set desired decimals for Bitcoin currency manually. Previously, we
determined the number of desired places based on the minimum stake
amount. However, now we are not able to do it this way because the data
from the SDK is loaded after connecting the accounts.
- Standardization of types in the form. Use a `bigint` for
`tokenBalnce`.
- Extend `CurrencyBalance` to pass the amount in `bigint`
One note: the contracts have not been deployed yet. Therefore, an error
will appear in the console `TypeError: this.instance.minDepositAmount is
not a function` However, When the contracts are re-deployed I will
update the code and the error will disappear.
Currently, the minimum amount of deposit for dApp is read from the constant
BITCOIN_MIN_AMOUNT
. We should take it from the SDK. Let's update this value.Originally posted by @nkuba in #217 (comment)
The text was updated successfully, but these errors were encountered: