WEEDSWAP
WeedSwap Docs

Greenhouses

A Greenhouse lets users stake one token and earn WEED.

#Finite program model

Each Greenhouse has one staking token and one reward token. A program manager pre-funds a fixed reward amount, sets a future start time and duration, and the contract derives a reward rate from those values.

The contract does not mint rewards. A schedule is rejected when funding is zero, duration is zero, the start is in the past, a previous program remains active, or the derived rate is zero.

#How rewards accrue

During an active program, users receive a time-weighted share of funded rewards based on their stake relative to total stake. Accrual stops at the program finish, even if users leave principal deposited afterward.

#User actions

  1. Review the staking token, funded WEED amount, start, finish, and contract address.
  2. Approve and stake the intended token amount after the program begins.
  3. Track earned WEED while the program runs.
  4. Claim rewards or withdraw principal when desired.
  5. Use emergency withdrawal only when a normal exit is unsuitable.

#Pause behavior

The guardian can pause new staking. Withdraw, claim, and emergency withdrawal remain available in the contract, so a pause is not an administrative claim on user principal.

#Same-token recovery blocker

When the staking and reward assets are the same token, the current recovery calculation does not subtract total staked principal from the recoverable reward-token balance. After the program finish and recovery grace, an administrator could recover tokens needed for user withdrawals.

#Sequential schedule blocker

A new schedule can currently overwrite the program timestamps and rate without first checkpointing rewards through the previous finish. If stake remains and nobody performed the final update, users can no longer claim the uncheckpointed tail of the earlier program.

#Current phase