Skip to content

Token Contracts for Ethereum Charged Particles (Interest bearing NFTs)

Notifications You must be signed in to change notification settings

robsecord/ChargedParticlesEth

Repository files navigation

Charged Particles - Solidity Contracts v0.4.2

Discord Twitter Follow built-with openzeppelin

Coverage Status GitHub last commit GitHub package.json version GitHub code size in bytes GitHub repo size

Charged Particles are Non-Fungible Tokens (NFTs) that are minted with an Underlying Asset (ex: DAI) and accrue interest via an Interest-bearing token (ex: CHAI) giving the Token a "Charge".

Coming Soon:

  • Aave - aTokens
  • mStable - mTokens
  • Idle Finance - yTokens

Production Site (Beta, Ropsten Only)

https://charged-particles.eth.link/

Staging Site

https://charged-particles.tmnl.co/


Value

Particle Value
  =
Intrinsic Value (underlying asset, DAI)
  + 
Speculative Value (non-fungible rarity)
  +
Interest value (accrued in CHAI)

Value Appreciation

Imagine a Babe Ruth rookie card that was stuffed with $1 and earning interest since 1916! The same might be true of a Charged Particle NFT in 100 years!

Ownership

Charged Particles are non-custodial NFTs that can be "discharged" at any time by the owner, collecting the interest from the token. And just like any NFT, they are yours trade, transfer, sell, etc.

They can also be burned (melted) to reclaim the underlying DAI + interest in full, destroying the token. Charged Particles, therefore, always have an underlying value in DAI.

Custom Mechanics

Based on the amount of "charge" a token has, Smart Contracts and/or Dapps can decide how to handle the token - custom mechanics can be designed around the level of "Charge" a token has.

Imagine an NFT that represents a Sword - the power of that sword could be dependant on the amount of "Charge" the token has. Or perhaps certain items can only be used once they reach a certain level of charge.

Other possibilities include battling over the "charge" of a particle - the winner earns the interest from their competitor's particles. (Still trying to work this part out, ideas are welcome!)

Particle Accelerator

Feedback & Contributions

Feel free to fork and/or use in your own projects!

And, of course, contributions are always welcome!

Community

Join our community, share ideas and help support the project in anyway you want!

Discord: https://discord.gg/Syh3gjz


Frameworks/Software used:

  • Main Repo:
    • OpenZeppelin CLI v2.8.0
    • OpenZeppelin Upgrades v2.8.0
    • OpenZeppelin Ethereum Contracts v3.0.0
    • Solidity v0.6.10 (solc-js)
    • NodeJS v12.16.3
    • Buidler v1.3.5
    • EthersJS v4.0.27

Prepare environment:

Create a local .env file with the following (replace ... with your keys):

    INFURA_API_KEY="__api_key_only_no_url__"
    
    KOVAN_PROXY_ADDRESS="__public_address__"
    KOVAN_PROXY_MNEMONIC="__12-word_mnemonic__"
    
    KOVAN_OWNER_ADDRESS="__public_address__"
    KOVAN_OWNER_MNEMONIC="__12-word_mnemonic__"
    
    ROPSTEN_PROXY_ADDRESS="__public_address__"
    ROPSTEN_PROXY_MNEMONIC="__12-word_mnemonic__"
    
    ROPSTEN_OWNER_ADDRESS="__public_address__"
    ROPSTEN_OWNER_MNEMONIC="__12-word_mnemonic__"
    
    MAINNET_PROXY_ADDRESS="__public_address__"
    MAINNET_PROXY_MNEMONIC="__12-word_mnemonic__"
    
    MAINNET_OWNER_ADDRESS="__public_address__"
    MAINNET_OWNER_MNEMONIC="__12-word_mnemonic__"

Deploy:

  1. yarn
  2. yarn verify
  3. yarn start

See package.json for more scripts


MIT License

Copyright (c) 2020 Rob Secord <robsecord.eth>

About

Token Contracts for Ethereum Charged Particles (Interest bearing NFTs)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published