Cleaning offers
Getting paid to clean Mangrove offer lists.
Cleaning an offer
Offers on Mangrove may fail. This may be done on purpose, or be the result of unexpected conditions. Either way, callers are remunerated for their action by receiving a portion of the bounty attached to the failing offer.
Cleaning bots
Mangrove has been designed such that keeping offer lists clean of failing offers is incentive-compatible. Anyone can run a bot which repeatedly does the following:
Receive events from Mangrove to maintain an up-to-date view of the books.
Locally runs offers at regular intervals.
Detects failing offers and sends a transaction to make the offer fail on-chain, with a gas price set such that the offer's bounty compensates for the spent gas.
Mangrove provides a cleaner contract to help you. This contract provides the same interface as snipes but will revert if any offer in the targets
array successfully executes.
Delegation
Cleaning can also use Mangrove's delegation mechanism, which means you only need Mangrove to have an allowance on any address that that has enough inbound tokens of the offer list you are targeting. The cleaner contract will use those funds to execute the cleaning.
Last updated