Replies: 1 comment 2 replies
-
I think I am in favor of this. You could argue that the transaction fees are "operating costs" and need to be covered by the interest that the lender is earning. Why would it make constructing the transaction more complicated? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Very early on in the design of the loan protocol we decided to let the borrower control the transaction fee, since they are the party contributing the bitcoin to the loan transaction (Liquid transaction fees can only be paid with bitcoin).
Specifically, the borrower gets to choose the amount of satoshis per vbyte for the fee, and once the loan transaction is constructed that value is used to calculate the actual fee.
The borrower also selects some inputs to pay for the collateral they put up, but they do so before the actual fee is calculated. This can be problematic if they forget to account for this yet-to-be-calculated fee during coin selection. Requiring users of the library to understand how the protocol works and that they must provide inputs covering the collateral amount + an undefined fee is not good UX.
I see a few alternatives to solve this problem (if we want to solve it), but there could be more:
baru/src/loan.rs
Lines 1104 to 1106 in 4bc7525
Beta Was this translation helpful? Give feedback.
All reactions