ILiquidityProvider
newOffer
creates a new offer on Mangrove with an override for gas requirement
Parameters
olKey
struct OLKey
the offer list key.
tick
Tick
the tick
gives
uint256
the amount of inbound tokens the offer maker gives for a complete fill
gasreq
uint256
the gas required by the offer logic
Return Values
offerId
uint256
the Mangrove offer id.
updateOffer
updates an offer existing on Mangrove (not necessarily live) with an override for gas requirement
Parameters
olKey
struct OLKey
the offer list key.
tick
Tick
the tick
gives
uint256
the new amount of inbound tokens the offer maker gives for a complete fill
offerId
uint256
the id of the offer in the offer list.
gasreq
uint256
the gas required by the offer logic
retractOffer
Retracts an offer from an Offer List of Mangrove.
An offer that is retracted without deprovision
is retracted from the offer list, but still has its provisions locked by Mangrove.
Calling this function, with the deprovision
flag, on an offer that is already retracted must be used to retrieve the locked provisions.
Parameters
olKey
struct OLKey
the offer list key.
offerId
uint256
the identifier of the offer in the offer list
deprovision
bool
if set to true
if offer owner wishes to redeem the offer's provision.
Return Values
freeWei
uint256
the amount of native tokens (in WEI) that have been retrieved by retracting the offer.