The contract's limit for an open at this collateral, and nothing else (MK-100, MK-240).

There is no amount to borrow on this result, on purpose. How much to borrow depends on how long the position will be held and how far the price may fall meanwhile, and the library knows neither. Until 0.5.0 this result carried a recommended figure sized for one hour and a 2 percent fall, and both READMEs presented it as the draw to offer; over 90 days of Mezo mainnet prices a fall that large followed within a week of 57.6 percent of sampled start times (MK-240, the table on drawForMargin). For a draw sized to a margin YOU choose, call drawForMargin, which has no default for either input.

interface BorrowingPower {
    ceiling: bigint;
    ceilingIcr: bigint;
    isRecoveryMode: boolean;
    price: bigint;
}

Hierarchy (View Summary)

Properties

ceiling: bigint

The absolute ceiling: the largest draw the contract accepts right now, with NO margin.

In normal mode, with the individual ratio binding, it opens the position at exactly the 110% minimum collateral ratio. Liquidation is ICR < MCR (TroveManager.sol:1146-1148) and the debt accrues every second (TroveManager.sol:1513-1527), so a Trove opened here is liquidatable within a second (MK-100, measured in zz-borrowing-power-boundary.fork.test.ts). In Recovery Mode it opens at exactly 150%. With the system ratio binding, the open is refused a block later. Do not open at it. It is a limit to display, not an amount to borrow, and it holds for the block it was read at.

ceilingIcr: bigint

The ICR a Trove opened at ceiling starts at, at price. 0n when ceiling is 0n.

isRecoveryMode: boolean

checkRecoveryMode(price), which picks the individual ratio threshold.

price: bigint

BTC/USD the ceiling was solved at.