Orderbook
Overview
The Orderbook
contains modified order-book functionality, matching lenders to borrower within the BloomPool
.
Contract API
openDepth
openDepth
Returns the current total depth of open orders in terms of asset
tokens.
amountOpen
amountOpen
Returns the total amount of underlying asset
s in open orders for a users account
.
lendOrder
lendOrder
Opens a lend order for a user.
Users have the right at anytime to cancel their lend order and withdraw their assets.
Assets will be transferred to the BloomPool
contract when executing this function, but no receipt token will be given. TBY
s are only minted after orders have been matched and market makers have performed their swaps.
killOpenOrder
killOpenOrder
Allows users to cancel their open lend order and withdraw their underlying assets.
matchedDepth
matchedDepth
Returns the current total depth of matched orders.
amountMatched
amountMatched
Returns the total amount
of underlying assets in matched orders for a users account
.
matchedOrder
matchedOrder
Returns the matched order details for a users account
in the form of a MatchOrder
struct.
matchedOrderCount
matchedOrderCount
Returns the number of matched orders for a users account
.
killMatchOrder
killMatchOrder
Allows users to cancel their match lend orders and withdraw their underlying assets.
Returns the totalRemoved
amount in terms of asset
tokens.
fillOrder
fillOrder
This is a permissioned function. Only KYCed borrowers can call this function.
Allows borrowers to fill a single account
s lend order with a specified amount
of underlying assets.
Returns the amount of liquidity filled in terms of asset
tokens.
fillOrders
fillOrders
This is a permissioned function. Only KYCed borrowers can call this function.
Allows borrowers to fill a multiple account
s lend orders with a specified amount
of underlying assets.
Returns the amount of liquidity filled in terms of asset
tokens.
idleCapital
idleCapital
Returns the idle capital of the borrower.
withdrawIdleCapital
withdrawIdleCapital
Allows borrowers to withdraw idle capital from the system.
Last updated