Struct baru::loan::Lender1 [−][src]
pub struct Lender1 { /* fields omitted */ }
Implementations
pub async fn finalise_loan<S, F>(
&self,
loan_transaction: Transaction,
signer: S
) -> Result<Transaction> where
S: FnOnce(Transaction) -> F,
F: Future<Output = Result<Transaction>>,
pub async fn liquidation_transaction<R, C>(
&self,
rng: &mut R,
secp: &Secp256k1<C>,
fee_sats_per_vbyte: Amount
) -> Result<Transaction> where
R: RngCore + CryptoRng,
C: Verification + Signing,
pub async fn dynamic_liquidation_transaction<R, C>(
&self,
rng: &mut R,
secp: &Secp256k1<C>,
oracle_msg: Message,
oracle_sig: Signature,
fee_sats_per_vbyte: Amount
) -> Result<Transaction> where
R: RngCore + CryptoRng,
C: Verification + Signing,
Get a reference to the collateral contract.