Aggregation VulpeFI

Derives

Functions

constructor

function constructor(
  address weth,
  contract IClipperExchangeInterface _clipperExchange
) public

Parameters:

Name
Type
Description

weth

address

_clipperExchange

contract IClipperExchangeInterface

swap

Performs a swap, delegating all calls encoded in data to caller. See tests for usage examples

Parameters:

Name
Type
Description

caller

contract IAggregationExecutor

Aggregation executor that executes calls described in data

desc

struct AggregationRouterV4.SwapDescription

Swap description

data

bytes

Encoded calls that caller should execute in between of swaps

Return Values:

Name
Type
Description

returnAmount

uint256

Resulting token amount

gasLeft

uint256

Gas left

rescueFunds

Parameters:

Name
Type
Description

token

contract IERC20

amount

uint256

destroy

Events

Swapped

Parameters:

Name
Type
Description

sender

address

srcToken

contract IERC20

dstToken

contract IERC20

dstReceiver

address

spentAmount

uint256

returnAmount

uint256

Last updated