Offer Lists
Introducing Mangrove's Offer Lists a low level representation of (half) an order book.
General structure
Here's a sample DAI-wETH offer list with two offers. Only the main characteristics of the offers are shown (see the offer data structure).
Decimals
We display human-readable values in the examples, but Mangrove stores raw token values and never uses the decimals
field of a token.
#1
77
1
2 925.26
250,000
0x5678def
150
#2
42
0.3
871.764
300,000
0x1234abc
200
Some terminology
Offer rank
Offers are ordered from best to worst. Offers are compared based on price, and then on gas required (see below) if they have the same price.
Offer ID
The identifier of the offer in the offer list.
Important
Two offers may have the same ID as long as they belong to different offer lists. For instance, there may be an offer #42 on the wETH-DAI offer list with different volumes, gas required, maker contract, etc. than offer #42 in the DAI-wETH offer list shown above.
Wants, gives and entailed price
Taken together, the wants and gives values define 1) a max volume, 2) a price. The entailed price is p=wants/gives, and an offer promises delivery of up to gives outbound tokens at a price of p tokens delivered per inbound token received.
Gas required
The maximum amount of gas the Maker Contract managing the offer will be allowed to spend if called by the Mangrove.
Maker Contract
Gas Price
Gas price that was used to compute the offer provision. If the offer fails to deliver the promised outbound tokens, it will be charged in ETH based on this gasprice.
Offer list configuration
Several configuration parameters determine how new offers are inserted. Some are global to Mangrove, some are offer list specifics. See Governance section for details.
Last updated