Nezha
  • 🏠Introduction to Nezha
  • How nezha works
    • Stake to Win
    • Nezha Epochs
    • Yield Farmer
  • Tickets
    • Stake per Ticket
    • Tickets
    • Bonus Tickets
    • Ticket Generation
  • The Draw
    • The Draw
    • Winning Sequence
    • No Draw Scenario
  • Prizes
    • Prize Tiers
    • Prizes
  • Fees
    • Staking
    • Unstaking
    • Claiming Prizes
  • Risks & Mitigations
    • Smart Contracts
    • Low Yield Returns
    • Negative Yield Returns
    • Tickets Outside Solana
    • Insurance Costs
  • Architecture
    • Overview
    • Game Contract
      • Epoch States
      • Token Accounts
      • State Accounts
      • Initialisation Instructions
      • State Transition Instructions
      • Other Instructions
      • Roles & Capabilities
      • Derived Account Roles
    • Draw Contract
      • State Accounts
      • Instructions
      • Roles & Capabilities
      • Derived Accounts
Powered by GitBook
On this page
  1. Architecture
  2. Game Contract

Epoch States

The epoch cycle

Each epoch cycles through different states during its lifetime, the states are:

  • CREATED

    The epoch is active.

    Users can stake/unstake.

    Queued staking/unstaking requests will get executed.

  • YIELDING

    Staked funds are moved to the yield farmer.

    Staked funds are effectively locked for the duration of the yielding state.

    Any staking/unstaking requests will be queued.

  • FINALISING

    The staked funds are moved from the yield farmer back to Nezha.

    Any staking/unstaking requests will be queued.

  • ENDED

    The winning sequence is generated and recorded.

    Winners are declared.

    Any staking/unstaking requests will be queued.

    The epoch is complete.

PreviousGame ContractNextToken Accounts

Last updated 1 year ago