Tokens

Git Source

Functions

keyForUnsortedPair

Returns the key for the unsorted tokenA and tokenB

function keyForUnsortedPair(address tokenA, address tokenB) internal pure returns (bytes32);

keyForSortedPair

Returns the key for the sorted tokenA and tokenB

function keyForSortedPair(address tokenA, address tokenB) internal pure returns (bytes32);

sortTokens

Returns the sorted tokenA and tokenB, where sortedA < sortedB

function sortTokens(address tokenA, address tokenB) internal pure returns (address sortedA, address sortedB);