Energy

Buy Energy with USDG

Pay once, no lock.

USDG is a US dollar stablecoin, so the price of Energy never moves under you. Buying is a single call to the EnergyStore contract.

Price#

Rate1 USDG = 1,000 ENERGY
Bonus+10% from 50 USDG, +20% from 200 USDG
Minimum / maximum5 USDG / 100,000 USDG per purchase

Example: 200 USDG buys 200,000 ENERGY + 40,000 bonus = 240,000 ENERGY.

Where your USDG goes#

  • The stakers' share (currently 10%, can only be set between 1% and 10%) goes to the Liquidity Pool and is split between Energy stakers.
  • The rest goes to the Stardust treasury.
  • If nobody is staking in the pool, the whole payment goes to the treasury, so no USDG is stranded.
  • The store keeps nothing: everything is forwarded in the same transaction.
buy(amount, minEnergy)swipe →

You

wallet

EnergyStore

buy()

Liquidity pool

stakers

Treasury

Stardust

1

buy(amount, minEnergy)

2

stakers' share + distribute()

3

the rest of the USDG

4

ENERGY minted

call payout / reply you smart contract off-chain

Slippage protection#

minEnergy is the least you accept. If the rate or bonus changes before your transaction lands and you would get less, the purchase reverts. Call quote(amount) or previewSplit(amount) to see the exact numbers first.

ENERGY can't be sold back to the store. Buy what you expect to use, or stake spare ENERGY in the Liquidity Pool.