Skip to main content

ExampleFlashSwap

Inherits: IButtonswapCallee

State Variables

factoryV1

IUniswapV1Factory immutable factoryV1;

factory

address immutable factory;

WETH

IWETH immutable WETH;

Functions

constructor

constructor(address _factory, address _factoryV1, address router);

receive

receive() external payable;

buttonswapCall

function buttonswapCall(address sender, uint256 amount0, uint256 amount1, bytes calldata data) external override;