Epochs & Phases

Epoch Overview

An Epoch is a complete game cycle in 5xFaction. Each epoch lasts 7 days and consists of two phases:

  • Deposit Phase: 2 days β€” Players can join factions and stake

  • Lock Phase: 5 days β€” Strategy is locked, yield is generated


Epoch Timeline

7-Day Cycle Overview

flowchart LR
    subgraph DEPOSIT["πŸ“₯ DEPOSIT PHASE"]
        D1[Day 1]
        D2[Day 2]
    end

    subgraph LOCK["πŸ”’ LOCK PHASE"]
        D3[Day 3]
        D4[Day 4]
        D5[Day 5]
        D6[Day 6]
        D7[Day 7]
    end

    DEPOSIT --> LOCK
    LOCK --> R[βš”οΈ Resolution]
    R --> DEPOSIT

Day-by-Day Breakdown

Day
Phase
Status
Allowed Actions

1

Deposit

🟒 Open

Join faction, Stake, Withdraw, Adjust

2

Deposit

🟒 Open

Join faction, Stake, Withdraw, Adjust

3

Lock

πŸ”’ Locked

Withdraw only

4

Lock

πŸ”’ Locked

Withdraw only

5

Lock

πŸ”’ Locked

Withdraw only

6

Lock

πŸ”’ Locked

Withdraw only

7

Lock

πŸ”’ Locked

Withdraw only β†’ Resolution

Phase Summary

Phase
Duration
Purpose

Deposit Phase

2 days (48 hours)

Players join factions, stake USDC, analyze TVL

Lock Phase

5 days (120 hours)

Strategy locked, yield is generated from DeFi

Resolution

End of Day 7

Winner calculated, yield distributed, new epoch starts


Phase Details

Deposit Phase (2 Days / 48 Hours)

Action
Allowed

Join a faction

βœ… Yes

Deposit USDC

βœ… Yes

Add more stake

βœ… Yes

Withdraw

βœ… Yes

View TVL/Scores

βœ… Yes

During the deposit phase, the game is dynamic:

  • TVL changes constantly as players deposit

  • Scores fluctuate based on faction distribution

  • Strategy can be adjusted until phase ends

Lock Phase (5 Days / 120 Hours)

Action
Allowed

Join a faction

❌ No

Deposit USDC

❌ No

Add more stake

❌ No

Withdraw

βœ… Yes

View TVL/Scores

βœ… Yes

During the lock phase:

  • No new deposits or faction changes

  • Final strategy is locked

  • Players await results

  • Yield is actively generated from DeFi lending


Why 5 Days Lock Period?

The extended lock period serves important purposes:

  1. Yield Generation β€” More time for DeFi protocols to generate meaningful yield

  2. Strategic Commitment β€” Players must commit to their choice

  3. Reduced Gas Costs β€” Fewer epoch transitions means lower total gas

  4. Market Stability β€” Longer cycles reduce speculation and manipulation


Phase Transitions


Epoch End Resolution

When an epoch ends (after 7 days total):

  1. Calculate Final Scores

    • All faction TVLs are locked

    • Pentagon scoring formula applied

  2. Determine Winner

    • Highest score wins

    • Ties: Lower Clan ID wins (rare edge case)

  3. Distribute Yield

    • Total yield calculated from DeFi returns (5 days of yield)

    • Yield goes to winning faction members

    • Proportional to each member's stake

  4. Trigger Next Epoch

    • clearCanvas() function called

    • New deposit phase begins

    • Previous TVL positions remain (unless withdrawn)


Timing Mechanics

Time Calculations

Duration Constants

Constant
Value
Description

epochDuration

604,800 seconds

7 days total

DEPOSIT_PHASE_DURATION

172,800 seconds

2 days deposit

Lock Phase

432,000 seconds

5 days lock


Strategic Timing

Day 1-2: Deposit Phase

Timing
Strategy

Early (Day 1)

Scout the landscape, watch for big players, minimal commitment

Mid (Day 1-2)

Patterns emerge, counter-strategy forms, key decision window

Late (Day 2)

Last-minute pivots, maximum information, highest risk/reward

Day 3-7: Lock Phase

Timing
Activity

Day 3-4

Monitor positions, yield starts accumulating

Day 5-6

Final standings become clearer

Day 7

Epoch resolution, prepare for next cycle


Weekly Schedule Example

Last updated