Struct baru::loan::Lender0 [−][src]
pub struct Lender0 { /* fields omitted */ }
Implementations
pub fn new<R>(
rng: &mut R,
bitcoin_asset_id: AssetId,
usdt_asset_id: AssetId,
address: Address,
address_blinder: SecretKey,
oracle_pk: PublicKey
) -> Result<Self> where
R: RngCore + CryptoRng,
Interpret a loan request and performs lender logic.
rate is expressed in usdt sats per btc, i.e. rate = 1 BTC / USDT