Orderbook
Overview
The Orderbook contains modified order-book functionality, matching lenders to borrower within the BloomPool .
Contract API
openDepth
function openDepth(uint256 amount) external;Returns the current total depth of open orders in terms of asset tokens.
amountOpen
function amountOpen(address account) external view returns (uint256);Returns the total amount of underlying assets in open orders for a users account.
lendOrder
function lendOrder(uint256 amount) external;Opens a lend order for a user.
killOpenOrder
Allows users to cancel their open lend order and withdraw their underlying assets.
matchedDepth
Returns the current total depth of matched orders.
amountMatched
Returns the total amount of underlying assets in matched orders for a users account.
matchedOrder
Returns the matched order details for a users account in the form of a MatchOrder struct.
matchedOrderCount
Returns the number of matched orders for a users account.
killMatchOrder
Allows users to cancel their match lend orders and withdraw their underlying assets.
Returns the totalRemoved amount in terms of asset tokens.
killBorrowerMatch
Allows borrowers to cancel their match orders and withdraw their underlying assets
Returns the lenderAmount and borrowerReturn in terms of underlying assets that were returned to the various users.
fillOrder
Allows borrowers to fill a single accounts lend order with a specified amount of underlying assets.
Returns the amount of liquidity filled in terms of asset tokens.
fillOrders
Allows borrowers to fill a multiple accounts lend orders with a specified amount of underlying assets.
Returns the amount of liquidity filled in terms of asset tokens.
idleCapital
Returns the idle capital of the borrower.
withdrawIdleCapital
Allows borrowers to withdraw idle capital from the system.
Last updated
