Local variables
Last updated
Last updated
Taker feeTaker fee is defined in basis points (i.e., in percents of a percent) of the total amount of outbound tokens received by taker. It is capped by the protocol to ~2.5%. Collected fees accrue on the Mangrove contract and can be withdrawn by governance.
Offer gas baseOffer gas base is an over-approximation of the gas overhead associated with processing one offer.
Mangrove considers that a failed offer has used at least this amount of gas.
The parameter is offer list specific since the costs of calling outbound and inbound transferFrom
are part of the offer gasbase.
Offer gas base update Offer gas base needs to be updated when ERC20 contracts managing inbound or outbound tokens change or when opcode prices are updated. This parameter may aslo be used to increase/decrease bounty of failing offers on a specific offer list.
Density is expressed in amount of outbound tokens delivered per gas unit. The offer list's density corresponds to a "dust" parameter, which constrains the volume of outbound tokens an offer must deliver w.r.t the gas it requires to be executed. An offer cannot be posted on an offer list if its density is below the offer list's density.
The density of an offer in an with an set to is defined as:
(De)Activating offer lists An offer list is inactive by default, but may be activated/deactivated by governance. Only offer removals (and deprovision) are possible on inactive offer lists.
where is the volume of outbound tokens given by the offer and is the gas required by the offer.
A rationale to define density is to set it such that the gas required by an offer is negligible in front of the volume delivered. For instance setting offer list density with the formula:
with being the unit price of outbound tokens in ETH and insuring that the amount delivered per gas unit is times greater than , a realistic gas price.