Skip to content

0.2.0

Compare
Choose a tag to compare
@luckysori luckysori released this 02 Aug 00:31
· 61 commits to master since this release
857ab82

Added

  • Dynamic liquidation branch to the loan protocol:
    • New async fn dynamic_liquidation_transaction() API on Lender1.
      It takes a message of the form price:timestamp and an oracle's signature on the hash of the message, so that a lender can unilaterally liquidate the loan if the price falls below a threshold and the timestamp is past a certain time.
    • Lender0 constructor now requires blinding key of lender address and an oracle public key.

Changed

  • loan::LoanResponse fields:
    • Made timelock private, but accessible via LoanResponse::collateral_contract(&self).timelock().
    • Made transaction private, accessible via getter.
    • Made collateral_amount private, but accessible via getter.
  • loan::Borrower1 fields:
    • Made loan_transaction private, but accessible via getter.
    • Made collateral_amount private, but accessible via getter.
  • loan::Lender1 fields:
    • Made timelock private, but accessible via getter.
  • fn liquidation_transaction() API on Lender1 is now async.
  • Model the collateral contract's timelock as a u32.

Fixed

  • Squashed an elusive bug preventing users from building version 0.1.0 of this library.
    This required updating rust-elements to version 0.18.