IAtomicSolver

Git Source

Functions

finishSolve

This function must be implemented in order for an address to be a solver for the AtomicQueue

function finishSolve(
    bytes calldata runData,
    address initiator,
    ERC20 offer,
    ERC20 want,
    uint256 assetsToOffer,
    uint256 assetsForWant
)
    external;

Parameters

NameTypeDescription

runData

bytes

arbitrary bytes data that is dependent on how each solver is setup it could contain swap data, or flash loan data, etc..

initiator

address

the address that initiated a solve

offer

ERC20

the ERC20 asset sent to the solver

want

ERC20

the ERC20 asset the solver must approve the queue for

assetsToOffer

uint256

the amount of offer sent to the solver

assetsForWant

uint256

the amount of want the solver must approve the queue for