Skip to content

0.3.0

Compare
Choose a tag to compare
@luckysori luckysori released this 06 Aug 08:32
· 32 commits to master since this release
8f1aecf

Added

  • Chain on which the loan protocol takes place is no longer hard-coded to Elements (local development node).
    The chain is implicitly configured by the addresses that are passed in.
    Furthermore, the protocol now verifies that borrower and lender are on the same chain.
  • New API build_loan_transaction on Lender0, which wraps the now deprecated interpret:
    • The lender now has direct control over the principal_amount, principal_inputs, repayment_amount and min_collateral_price.

Fixed

  • Always satisfy the collateral contract input in the loan repayment transaction correctly.
    We used to assume that it was located at index 1, but this could change if the number of inputs used to cover the repayment output was greater than 1.

Changed

  • Lender sets collateral contract timelock, as opposed to the borrower.
  • Deprecated all APIs which use LoanRequest, to give users more control over how they want to serialize the parameters inside loan request.