The contract's ceiling for an open at a given collateral: core getBorrowingPower's whole
result, { ceiling, ceilingIcr, isRecoveryMode, price } (MK-100, MK-240).
There is no amount to borrow in data, and that is deliberate. Until 0.5.0 data was a bare
recommended draw sized for one hour and a 2 percent fall, and the README presented it as the draw
to offer; a position held for days was likely to be liquidated at it (MK-240). The ceiling is a
limit to DISPLAY: a Trove opened at it in normal mode is liquidatable within seconds. For a draw
sized to a margin the user chooses, use useDrawForMargin.
account defaults to the connected wallet (MK-106), because the borrowing fee is skipped for a fee
exempt account (BorrowerOperations.sol:637-643) and the answer differs for it.
It sizes an OPEN, not a top-up: an existing Trove is gated on its maxBorrowingCapacity
(BorrowerOperations.sol:1358-1365), which is set at open, lowered on a collateral decrease and
reset by a refinance (MK-101). For a Trove that already exists use useBorrowPreview or
useBorrowingCapacity (MK-002).
Refetches on new blocks (the binding ratio, the price and the system TCR can all move).
The contract's ceiling for an open at a given collateral: core
getBorrowingPower's whole result,{ ceiling, ceilingIcr, isRecoveryMode, price }(MK-100, MK-240).There is no amount to borrow in
data, and that is deliberate. Until 0.5.0datawas a barerecommendeddraw sized for one hour and a 2 percent fall, and the README presented it as the draw to offer; a position held for days was likely to be liquidated at it (MK-240). The ceiling is a limit to DISPLAY: a Trove opened at it in normal mode is liquidatable within seconds. For a draw sized to a margin the user chooses, use useDrawForMargin.accountdefaults to the connected wallet (MK-106), because the borrowing fee is skipped for a fee exempt account (BorrowerOperations.sol:637-643) and the answer differs for it.It sizes an OPEN, not a top-up: an existing Trove is gated on its
maxBorrowingCapacity(BorrowerOperations.sol:1358-1365), which is set at open, lowered on a collateral decrease and reset by a refinance (MK-101). For a Trove that already exists use useBorrowPreview or useBorrowingCapacity (MK-002).Refetches on new blocks (the binding ratio, the price and the system TCR can all move).