SeacowsPairMetadata

This contract stores the basic metadata, or functions, of the contract and is inherited by SeacowsERC721TradePair.

Functions

token

function token() external view returns (address)

Returns the address of the ERC-20 token.

collection

function collection() external view returns (address)

Returns the address of the ERC-721 collection.

PERCENTAGE_PRECISION

function PERCENTAGE_PRECISION() external view returns (uint64)

Returns the percentage precision used in the pair.

ONE_PERCENT

function ONE_PERCENT() external view returns (uint64)

Returns the value used to represent 1% in the pair with respect to PERCENTAGE_PRECISION.

POINT_FIVE_PERCENT

Returns the value used to represent 0.5% in the pair with respect to PERCENTAGE_PRECISION.

MAX_PROTOCOL_FEE_PERCENT

Returns the value of maximum protocol fee that can be configured in the pair contract. With respect to PERCENTAGE_PRECISION.

totalSupply

Returns the total supply of LP shares.

balanceOf

Returns LP shares amount of a Position NFT. See ERC-3525.

ownerOf

Returns the owner of a Position NFT. See ERC-3525.

Last updated