atlasSolverCall
Solver Interface
Searchers need to implement the following interface in their smart contracts:
interface ISolverContract {
function atlasSolverCall(
address solverOpFrom,
address executionEnvironment,
address bidToken,
uint256 bidAmount,
bytes calldata solverOpData,
bytes calldata extraReturnData
)
external payable;
}
Name | Type | Description |
---|---|---|
solverOpFrom | address | The address initiating the solver operation. |
executionEnvironment | address | The address of the Execution Environment. |
bidToken | address | The token used for bidding; use zero address for ETH. |
bidAmount | uint256 | The amount of tokens bid in wei. |
solverOpData | bytes | The data associated with the solver operation. |
extraReturnData | bytes | Additional data to return after execution. |
payable | - | Indicates that ether can be sent with the call. |
The bidAmount
must be transferred at the end of the solver call to the executionEnvironment
address. We provide opinionated modifiers to help you get started.