When a user stakes their collateral, they are given a corresponding amount of a derivative.
The sole purpose of this derivative is to increase its value over time, representing the yield acquired from the staking operations.
After the Shanghai Upgrade on Ethereum goes live, these derivatives can be used to claim the corresponding Ether.
Thus, completing its mission of rewarding the staker.
Unfortunately, Staking Derivatives differ tremendously from each other.
- Status of the Derivative: This can be a number in a database, an upgradable ERC20, an immutable and open-source one, etc.
- Security of the Principal: Withdrawal keys can be lost, databases can be hacked, contracts can be attacked.
- Quality of the Pool Operations: it can be expensive to maintain your smart contracts in an ever-changing environment.
- Quality of the Node Operations: Decentralized Operators, Industrial Operators, Pooled Operators, etc.
- The Percentage of the Backed Collateral: Some derivatives allow synthetic minting, meaning it isn't even 100% backed, while others are backed more than 100%.
- Legal Obstacles: Obviously an increasing problem.
The Staking Library defines it's operations by way of this ERC-1155 contract.
Since it is immutable, this contract ensures the underlying balance of the staked asset without any possibility of alteration.
Users, and approved contracts, can manage and transfer their tokens directly or via interfaces.
With a little magic, they can even be used in other forms; such as ERC20!
Thus allowing any Staking Derivative to be a Liquid Staking Derivative.
Using a single ERC1155, instead of multiple ERC20s, provides better DeFi compatibility in the future. For example, A DeFi app can onboard all Geode-hosted derivatives at once, without tracking and updating multiple token addresses.
G-Derivatives are Databases of Balances and Prices with extra Scalability (interfaces).