UNPKG

@nextrope/xrpl

Version:

A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser

95 lines (76 loc) 2.28 kB
import { HasPreviousTxnID } from './BaseLedgerEntry' /** * The LoanBroker object captures attributes of the Lending Protocol. * * @category Ledger Entries */ export default interface LoanBroker extends HasPreviousTxnID { LedgerEntryType: 'LoanBroker' /** * Ledger object identifier. */ LedgerIndex: string /** * Ledger object flags. */ Flags: number /** * The transaction sequence number of LoanBrokerSet transaction that created this LoanBroker object. */ Sequence: number /** * A sequential identifier for Loan objects, incremented each time a new Loan is created by this LoanBroker instance. */ LoanSequence: number /** * Identifies the page where this item is referenced in the owner's directory. */ OwnerNode: number /** * Identifies the page where this item is referenced in the Vault's pseudo-account owner's directory. */ VaultNode: number /** * The ID of the Vault object associated with this Lending Protocol Instance. */ VaultID: string /** * The address of the LoanBroker pseudo-account. */ Account: string /** * The address of the Loan Broker account. */ Owner: string ManagementFeeRate?: number /** * The number of active Loans issued by the LoanBroker. */ OwnerCount: number /** * The total asset amount the protocol owes the Vault, including interest. */ DebtTotal: number /** * The maximum amount the protocol can owe the Vault. The default value of 0 means there is no limit to the debt. */ DebtMaximum: number /** * The total amount of first-loss capital deposited into the Lending Protocol. */ CoverAvailable: number /** * The 1/10th basis point of the DebtTotal that the first loss capital must cover. * Valid values are between 0 and 100000 inclusive. A value of 1 is equivalent to 1/10 bps or 0.001%. */ CoverRateMinimum: number /** * The 1/10th basis point of minimum required first loss capital that is liquidated to cover a Loan default. * Valid values are between 0 and 100000 inclusive. A value of 1 is equivalent to 1/10 bps or 0.001%. */ CoverRateLiquidation: number /** * Arbitrary metadata about the Loan Broker. Limited to 256 bytes. */ Data?: string }