Charged Particles Contract
Charged Particles Contract. The primary contract for interfacing with the Charged Particles protocol.
Get Contract Info
Get Info about the Contract, its Settings, and its State.
getStateAddress
Gets the address of the Charged-State contract, which can be used for setting and retrieving additional information about a Particle (NFT) contract. E.g. time locks on particle mass (principal) or charge (interest).
getSettingsAddress
Gets the address of the ChargedSettings contract, which can be used for setting and retrieving the settings of the ChargedParticles contract. E.g. Creator annuity.
When Custom Contracts are registered, only the "owner" or operator of the Contract is allowed to register them and define custom rules for how their tokens are "Charged". Otherwise, any token can be "Charged" according to the default rules of Charged Particles.
onERC721Received
Part of the ERC721 standard. Required for any contract that receives ERC-721 tokens. See Open Zeppelin for more detail.
Get Particle balances
Get Particle Mass (principal) and Charge (interest) balances.
baseParticleMass
Gets the amount of Mass (principal) for a Particle for a single asset token. E.g. Returns the amount of USDC deposited into a Particle less earned interest.
currentParticleCharge
Gets the amount of Interest that the Particle has generated representing the Charge (interest) of the Particle.
currentParticleKinetics
Gets the amount of LP Tokens that the Particle has generated representing the Kinetics of the Particle.
Kinetics represent additional tokens that a lending protocol provides users in addition to the interest-bearing asset. For example, when a user deposits into Compound, they receive a cToken representing their interest-bearing position, as well as COMP tokens. COMP tokens are the Kinetics in this example.
currentParticleCovalentBonds
Gets the total amount of ERC721 Tokens that the Particle holds.
Charge & Discharge Particles
Deposit Principal and Withdraw Interest from Particles.
energizeParticle
Fund Particle with Asset Token. Must be called by the account providing the Asset. Account must Approve Charged Particles contract as Operator of Asset.
dischargeParticle
Allows the owner or operator of the Particle to collect or transfer the Charge (interest) generated from the token without removing the Mass (principal) of the underlying asset held within the token.
dischargeParticleAmount
Allows the owner or operator of the Particle to collect or transfer a specific amount of the interest generated from the token without removing the Mass (principal) of the underlying asset held within the token.
dischargeParticleForCreator
Allows the Creator of the Particle to collect or transfer a their portion of the Charge (interest) generated from the token without removing the underlying Mass (principal) held within the token.
Release Particles
Withdraw principal from particles.
releaseParticle
Releases the Full amount of Mass + Charge (principal + interest) held within the Particle by LP of the Assets.
releaseParticleAmount
Releases a partial amount of Mass + Charge (principal + interest) held within the Particle by LP of the Assets.
Covalent Bonding
Deposit & Withdraw ERC721s from a Particle.
covalentBond
Deposit other NFT Assets into a Particle. Must be called by the account providing the Asset. Account must Approve THIS contract as Operator of Asset.
breakCovalentBond
Release NFT Assets from the Particle.
Other
Events
UniverseSet
ChargedStateSet
ChargedSettingsSet
LeptonTokenSet
Wallet / Basket Manager IDs:
Last updated