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
function POINT_FIVE_PERCENT() external view returns (uint64)
Returns the value used to represent 0.5% in the pair with respect to PERCENTAGE_PRECISION.
MAX_PROTOCOL_FEE_PERCENT
function MAX_PROTOCOL_FEE_PERCENT() external view returns (uint64)
Returns the value of maximum protocol fee that can be configured in the pair contract. With respect to PERCENTAGE_PRECISION.
totalSupply
function totalSupply() external view returns (uint256)
Returns the total supply of LP shares.
balanceOf
function balanceOf(uint _tokenId) external view returns (uint256)
Returns LP shares amount of a Position NFT. See ERC-3525.
ownerOf
function ownerOf(uint _tokenId) external view returns (address)
Returns the owner of a Position NFT. See ERC-3525.
Last updated