Bebop JAM
The following guide explains how to use Liquorice together with Bebop JAM API
Last updated
The following guide explains how to use Liquorice together with Bebop JAM API
Last updated
From the perspective of Liquorice, trade is performed with the JamSettlement contract, not directly with the trader.
Therefore, a solver must first and foremost provide the in both trader
and effectiveTrader
fields of the RFQ message.
During the settlement process, funds from the trader must first be transferred to the JamSettlement contract.
For this reason, balanceRecipient
of the ExecInfo.SolverData
has to be set to the .
To assemble Jam Interactions, solver would need to use following fields from the Quote payload
baseToken
baseTokenAmount
tx
Reference
The rest of the interactions must be assembled from the interactions
and market
fields.
Remaining arguments such as hooks
, signature
and order
provided as is.
When performing the trade, must have a baseToken
approval given by the JamSettlement contract.