> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usmewe.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Voting Power

> How voting power is calculated in usmewe governance

# Voting Power

Your voting power in usmewe governance is based on your tmUSDC holdings and your level.

## Calculation

```
Effective Votes = tmUSDC Balance × Level Multiplier
```

### Example

| User  | tmUSDC | Level    | Multiplier | Effective Votes |
| ----- | ------ | -------- | ---------- | --------------- |
| Alice | 1,000  | Gold     | 1.0x       | 1,000           |
| Bob   | 1,000  | Platinum | 1.5x       | 1,500           |
| Carol | 500    | Diamond  | 2.0x       | 1,000           |

## Level Multipliers

<CardGroup cols={2}>
  <Card title="Bronze - Gold" icon="medal">
    **1.0x multiplier**

    Standard voting power
  </Card>

  <Card title="Platinum" icon="gem">
    **1.5x multiplier**

    5,000+ XP required
  </Card>

  <Card title="Diamond" icon="diamond">
    **2.0x multiplier**

    10,000+ XP required
  </Card>
</CardGroup>

## tmUSDC Balance

Your tmUSDC balance comes from:

1. **Staking USDC** in the Trust Vault
2. **Receiving tmUSDC** from other users
3. **Purchasing tmUSDC** on DEXs (if available)

<Note>
  tmUSDC is yield-bearing. Your voting power grows as you earn staking rewards.
</Note>

## Snapshot Mechanism

Voting power is **snapshotted** when a proposal is created:

```
┌─────────────────────────────────────────────────────────────────┐
│  Block 1000: Proposal created                                   │
│              Snapshot taken of all tmUSDC balances              │
│                                                                 │
│  Block 1001+: Balance changes don't affect this vote            │
│                                                                 │
│  This prevents "vote buying" after seeing a proposal            │
└─────────────────────────────────────────────────────────────────┘
```

### Why Snapshots?

* Prevents flash loan attacks
* No vote manipulation after proposal
* Fair representation at proposal time

## Delegation

You can delegate your voting power to another address:

```typescript theme={null}
// Delegate all voting power to another address
await tmUSDC.delegate(delegateAddress);

// Self-delegate (required to vote yourself)
await tmUSDC.delegate(myAddress);
```

<Warning>
  You must self-delegate to activate your voting power. Without delegation, you cannot vote.
</Warning>

### Delegation Rules

| Rule            | Description                       |
| --------------- | --------------------------------- |
| Full delegation | All voting power goes to delegate |
| No partial      | Cannot split between delegates    |
| Revocable       | Change delegate anytime           |
| No chain        | Delegates cannot re-delegate      |

## Checking Your Voting Power

### Via API

```bash theme={null}
curl -X GET "https://api.usmewe.com/v1/governance/voting-power" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

Response:

```json theme={null}
{
  "address": "0x...",
  "tmUSDCBalance": "1000.00",
  "level": "Platinum",
  "multiplier": 1.5,
  "effectiveVotes": "1500.00",
  "delegatedTo": null,
  "delegatedFrom": ["0x...", "0x..."],
  "totalWithDelegation": "2500.00"
}
```

### Via Smart Contract

```typescript theme={null}
// Get current voting power
const votes = await governor.getVotes(address, blockNumber);

// Get voting power breakdown
const power = await governor.getVotingPower(address);
console.log(`Base: ${power.baseVotes}`);
console.log(`Multiplier: ${power.multiplier / 100}x`);
console.log(`Effective: ${power.effectiveVotes}`);
```

## Increasing Voting Power

<AccordionGroup>
  <Accordion title="Stake More USDC" icon="coins">
    Deposit USDC into the Trust Vault to receive tmUSDC.

    ```typescript theme={null}
    await trustVault.deposit(amount);
    ```
  </Accordion>

  <Accordion title="Level Up" icon="arrow-up">
    Earn XP through platform activity to increase your level multiplier.

    * On-time loan repayments: +20 XP
    * Referring friends: +30 XP
    * Daily streaks: +15 XP
  </Accordion>

  <Accordion title="Receive Delegation" icon="user-group">
    Ask other users to delegate their voting power to you.
  </Accordion>

  <Accordion title="Hold Long-Term" icon="clock">
    tmUSDC is yield-bearing. Your balance grows over time as the vault earns interest.
  </Accordion>
</AccordionGroup>

## Proposal Threshold

To create proposals, you need **1,000 effective votes**:

| tmUSDC Needed | Level       | Explanation               |
| ------------- | ----------- | ------------------------- |
| 1,000         | Bronze-Gold | 1,000 × 1.0 = 1,000 votes |
| 667           | Platinum    | 667 × 1.5 = 1,000 votes   |
| 500           | Diamond     | 500 × 2.0 = 1,000 votes   |

<Tip>
  Diamond level users need 50% less tmUSDC to create proposals!
</Tip>

## Quorum Calculation

For a vote to be valid, 4% of total voting power must participate:

```
Quorum = Total tmUSDC Supply × 0.04
```

Example:

* Total tmUSDC: 1,000,000
* Quorum needed: 40,000 effective votes

## Related

<CardGroup cols={2}>
  <Card title="Levels & XP" icon="gamepad" href="/core-concepts/trust-score/levels-xp">
    How to increase your level
  </Card>

  <Card title="Proposals" icon="file" href="/governance/proposals">
    Create and vote on proposals
  </Card>
</CardGroup>
