工厂合约

读函数

查询交易对

function getPair(
    address tokenA,
    address tokenB,
    uint24 fee
) external view returns (address pair);

查询所有交易对

function allPairs(uint) external view returns (address pair);

Returns the address of the nth pair (0-indexed) created through the Factory contract.

Returns 0x0000000000000000000000000000000000000000 where pair has not yet been created.

Begins at 0 for first created pair.

allPairsLength

function allPairsLength() external view returns (uint);

Displays the current number of pairs created through the Factory contract as an integer.

feeTo

The address to where non-LP-holder fees are sent.

feeToSetter

The address with permission to set the feeTo address.

费率常量


写函数

创建交易对

setFeeTo

Sets address for feeTo.

setFeeToSetter

Sets address for permission to adjust feeTo.

Last updated