-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #150 Add function that estimates the deposit fees for a given amount and expose it in staking module. Returns the following fees for deposit operation: - `tbtc` - total tBTC network minting fees including: - `treasuryFee` - the tBTC treasury fee taken from each deposit and transferred to the treasury upon sweep proof submission. Is calculated based on the initial funding transaction amount, - `optimisticMintingFee` - the tBTC optimistic minting fee, Is calculated AFTER the treasury fee is cut, - `depositTxMaxFee` - maximum amount of BTC transaction fee that can be incurred by each swept deposit being part of the given sweep transaction. - `acre` - total Acre network staking fees including: - `depositorFee` - the Acre network depositor fee taken from each deposit and transferred to the treasury upon stake request finalization, - `depositFee` - the stBTC deposit fee taken for each tBTC deposit into the stBTC pool. - `total` - summed up all staking fees. We decided to add a total field because the SDK should be responsible for summing up all fees. If we add a new fee in the future the consumers will have to update their code as well which is not a developer-friendly approach.
- Loading branch information
Showing
9 changed files
with
556 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.