AtomicSolver

Git Source

Inherits: IAtomicSolver, Owned, ERC721Holder

Author:

State Variables

_solving

bool private _solving;

_balancerVault

address private immutable _balancerVault;

approvedToCallFinishSolve

mapping(address => bool) private approvedToCallFinishSolve;

Functions

constructor

constructor(address _owner, address _vault) Owned(_owner);

updateMapping

function updateMapping(address who, bool state) external onlyOwner;

finishSolve

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

doStuff

function doStuff(
    address[] calldata targets,
    uint256[] calldata values,
    bytes[] calldata ammo
)
    external
    payable
    onlyOwner;

receiveFlashLoan

function receiveFlashLoan(
    address[] calldata tokens,
    uint256[] calldata amounts,
    uint256[] calldata feeAmounts,
    bytes calldata userData
)
    external;

getEth

function getEth(address payable receiver) external onlyOwner;

receive

receive() external payable;