UniversalRouter

This contract is KLAYswap router using V2 and V3 pools. This contract can aggregate trades across V2 and V3 pools to give users access highly-flexible and personalised transactions.

Code

Github Link: (Will be updated after official launch)

Address

Events, Read-Only Functions, and State-Changing Functions

Parameter Structs

SwapParams

struct SwapParams {
    address to;
    address[] path;
    address[] pool;
    uint deadline;
}

Parameters:

Name
Type
Description

to

address

Address to receive tokens after swap

path

address[]

Swap paths (token address list)

pool

address[]

Pool paths in swap (list of pool addresses)

When using v2 pool: address(0)

When using v3 pool: v3 pool address

deadline

uint256

deadline

Last updated