Aggregation VulpeFI

function constructor(
  address weth,
  contract IClipperExchangeInterface _clipperExchange
) public

Parameters:

Name
Type
Description

weth

address

_clipperExchange

contract IClipperExchangeInterface

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

Parameters:arrow-up-right

Name
Type
Description

token

contract IERC20

amount

uint256

destroy

Parameters:arrow-up-right

Name
Type
Description

sender

address

srcToken

contract IERC20

dstToken

contract IERC20

dstReceiver

address

spentAmount

uint256

returnAmount

uint256

Last updated