SwapQueryLib

Git Source

Functions

hasAdapter

Checks whether the router adapter was specified in the query. Query without a router adapter specifies that no action needs to be taken.

function hasAdapter(SwapQuery memory query) internal pure returns (bool);

fillAdapterAndDeadline

Fills routerAdapter and deadline fields in query, if it specifies one of the supported Actions, and if a path for this action was found.

function fillAdapterAndDeadline(SwapQuery memory query, address routerAdapter) internal pure;