-
Notifications
You must be signed in to change notification settings - Fork 369
fix(ckdoge): use correct transaction fees #7660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
gregorydemay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mducroux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gregorydemay, estimating fees looks much nicer now! Left only some nits
gregorydemay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mducroux for the review!
Follow-up on #7360 to use the correct parameters to compute the fees involved in a transaction sent by the minter to the Dogecoin network in case of a withdrawal.
The implementation introduces a new trait
FeeEstimator, of which there are two implementations (one for Bitcoin and another one for Dogecoin), and parametrize the existing methods to build transactions by an instance of that trait. A follow-up PR will add theestimate_withdrawal_feeendpoint.