Earn
The pool where staked SHDR accrues NVIDIA xStock every hour, and where that NVDAx comes from.
The Earn pool holds staked SHDR. Every hour it receives NVIDIA xStock (NVDAx), and each stake accrues its share pro rata to the SHDR it holds. A staker claims what has accrued and can withdraw the SHDR at any time.
- Credits usedin the hour
- Burnthe SHDR behind them
- Fee shareto the launch wallet
- NVDAxbought through Jupiter
- Earnstakers, pro rata
#Where the NVDAx comes from
Each settlement adds the USDC-backed credits it spent to a running count in the program's Config, and the settler adds the USDC that x402 payments brought in, generation payments and rental charges alike, with record_x402_revenue. Every hour a crank, a scheduled job Shader's backend runs, does three things in order:
Sweep the fee share
sweep_fee_sharepays the protocol's share of that count from the treasury to the launch wallet, and resets it.Buy NVDAx
The crank, signing as the launch wallet, swaps that USDC to NVDAx through Jupiter.
Fund the pool
fund_earnadds the NVDAx to the pool's reward vault and shares it across all stakes.
The SHDR behind used SHDR-backed credits goes to the burn instead.
#How a stake accrues
The pool keeps one number, NVDAx earned per staked SHDR since it began. A stake's accrual is its SHDR times the growth of that number since the stake last changed. NVDAx that arrives while nothing is staked, and rounding dust, waits in undistributed for the next funding. The accounts are on Program accounts.
Earn opens once the SHDR mint exists. Stake in Earn walks through depositing, claiming and withdrawing.