# Platform Fee

### ️ Overview

Raflux uses a simple, transparent fee model to maintain the platform, pay for infrastructure (like Chainlink VRF), and ensure a sustainable ecosystem.

| Fee Type            | Who Pays  | When Applied                                 | Purpose                               |
| ------------------- | --------- | -------------------------------------------- | ------------------------------------- |
| 🪙 **Platform Fee** | Seller    | When raffle target is met                    | Platform maintenance & development    |
| 🏆 **Prize Fee**    | Winner    | When claiming fallback prize (if goal unmet) | Chainlink + network cost              |
| ⛽ **Gas Fee**       | All users | Every blockchain transaction                 | Network transaction cost (Base chain) |

### 🪙 Platform Fee (Seller)

When a raffle **reaches its funding goal**, the seller’s proceeds are distributed automatically:

* **90%** → to Seller
* **10%** → to Platform Developer Wallet

🧾 *The seller doesn’t need to send or approve any fee manually — it’s part of the automatic payout flow.*

#### Example

| Description        | Amount                            |
| ------------------ | --------------------------------- |
| Total Tickets Sold | 10,000 × 1 USDT = **10,000 USDT** |
| Platform Fee (10%) | 1,000 USDT                        |
| Seller Receives    | **9,000 USDT**                    |
| Winner Receives    | NFT / Asset                       |

### 🏆 Prize Fee (Winner)

If a raffle **does not meet its goal**, the pooled funds become the prize instead of the asset.

In that case:

* The **winner** receives **95%** of the total pool.
* The remaining **5%** goes to the platform wallet as a processing fee.

#### Example

| Scenario       | Total Raised | Winner Receives | Fee (5%) |
| -------------- | ------------ | --------------- | -------- |
| Target not met | 5,000 USDT   | 4,750 USDT      | 250 USDT |
