Skip to content

sidarth16/NFT-Encapsulation

Repository files navigation

NFT Encapsulation

  • Implementation of ERC998 kind of inspired architecture, wherein NFTs are encapsulated with additional ERC20 Tokens.
  • Here, user owns the NFT, wherein the NFT owns a bunch of ERC20 tokens.
  • Transfer of NFT inherently transfers ownership of encapsulated tokens as well. - Thus making gas efficient multi-token ownership transfers within platform.

This project demonstrates Encapsultion of NFT along with multiple ERC20s.

  • [ NFT + ERC20 ] encapsultion

  • User --(owns)--> NFT

    • NFT --(owns)--> ERC20 Tokens

Example :

  • Let User (0xd0208e192353a4dca9f3126b51595435704e019b)
    • Owns NFT TokenId #1

    • TokenId #1 holds:

      • WETH: 1000000000000000000 Wei
      • WBTC: 250000000000000000000 Wei
      • WBNB: 16000000000000000000 Wei
      • WMATIC: 77000000000000000000 Wei
    • Then NFT looks like :

    • NFT #1


- Instead of sending tokens to User Wallet address, we can use the above NFT as Wallet and add Tokens to this NFT.

- User can burn this NFT and claim to his wallet address whenver he wishes.

- Other Available Functionalties :

  • Burn and Merge two NFTs
  • NFT Swappinfg

About

Encapsulating NFT with ERC20

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published