🦭
Seacows AMM Docs
  • 🦭Introduction
  • SeaCows User Guide
    • Basic Function Guide
      • Link Wallet Login
      • Select Network
      • Enter The Swap Pool
      • Wallet Approve
      • Trading Settings
    • Main Function Guide
      • Buy NFTs
      • Sell NFTs
      • Deposit Liquidity
      • Earn Swap Fees
      • Withdraw Liquidity
      • Create Pool
  • FAQ(Frequent Ask Questions)
    • After I deposit the NFT, can I still withdraw the NFT I originally deposited?
    • What types of NFTs does the Seacows AMM protocol support on Ethereum?
    • Does the Seacows NFT swap support the creation of AMM pools using ERC-20 tokens?
  • Seacows NFT AMM Protocol
    • Seacows Protocol Overview
    • User Flow
      • Deposit
      • Swap
      • Withdraw
    • Speedbump
    • Algorithms and Models
    • Core System Diagrams
  • Use Cases
    • Arbitrageurs
    • 👽NFT Traders
    • 🎮Gaming
    • 🦄NFT Creators
    • 📈DeFi
  • Contract Addresses
    • ⟠ Ethereum Goerli (ETH)
    • Ethereum Mainnet
      • Blast L2
    • Solana
    • Hyperliquid
    • Seacows NFT collection
  • Technical Reference
    • Overview
    • Core
      • SeacowsERC721TradePair
        • SeacowsPairMetadata
        • Fee structure
        • SeacowsRewarder
        • SeacowsComplement
      • SeacowsPositionManager
        • FeeManagement
        • SeacowsERC3525
        • NFTRenderer
        • SeacowsFactory
    • Periphery
    • Glossary
  • Audit
  • Legal
    • Protocol license agreement
    • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page
  • What is ERC-3525?
  • Mappings
  • pairSlots
  • pairTokenIds
  • slotPairs
  • Functions
  • totalValueSupplyOf
  1. Technical Reference
  2. Core
  3. SeacowsPositionManager

SeacowsERC3525

PreviousFeeManagementNextNFTRenderer

Last updated 1 year ago

What is ERC-3525?

This is a standard for semi-fungible tokens. The set of smart contract interfaces described in this document defines an compatible token standard. This standard introduces an <ID, SLOT, VALUE> triple scalar model that represents the semi-fungible structure of a token. It also introduces new transfer models as well as approval models that reflect the semi-fungible nature of the tokens.

For more information, please refer to .

Benefits of using ERC-3525 as Position Management

  • Storing LP shares information in NFT

  • LP shares are tradable as NFT on other marketplaces.

  • Using as collaterals in Lending & Borrowing protocol

Reference:

Mappings

pairSlots

mapping(address => uint256) public pairSlots;

To store the mapping of Pair contract address to Slot number.

pairTokenIds

mapping(address => uint256) public pairTokenIds;

To store the mapping of Pair contract address to ERC-3525 Token ID.

slotPairs

mapping(uint256 => address) public slotPairs;

To store the mapping of Slot number to Pair contract address.

Functions

totalValueSupplyOf

function totalValueSupplyOf(uint256 _slot) public view virtual returns (uint256)

Return the Total LP Shares of a Pair by its Slot number.

ERC-721
ERC-3525
https://sftlabs.io/2023/01/06/explaining-erc-3525-what-it-is-and-how-it-works/
https://eips.ethereum.org/EIPS/eip-3525