> For the complete documentation index, see [llms.txt](https://basedinc.gitbook.io/basedbid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://basedinc.gitbook.io/basedbid/explainers/launch-explainers/fee-builder.md).

# Fee Builder

<div data-with-frame="true"><figure><img src="https://3527517113-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8k5Pri8O9lw2SMUjS2v%2Fuploads%2FhQZwLYLKPBy5gcLJT5my%2Fnext%20gen%20features2.png?alt=media&amp;token=b239a2b4-9095-44fa-ba10-80cf8399ace6" alt="" width="563"><figcaption></figcaption></figure></div>

Depending on the network and DEX you launch on, this system may be referred to as <mark style="color:$primary;">**v4, Infinity, Burn & Earn, or Lock & Earn**</mark>. On basedbid, it all runs through the same underlying architecture described below

<details>

<summary><strong>Fee Architecture</strong></summary>

* <mark style="color:purple;">**LP Fees**</mark> are standard fees earned from your liquidity position. When collected, you receive <mark style="color:$primary;">**50% in native token**</mark> and <mark style="color:$primary;">**50% in project token**</mark>
* <mark style="color:purple;">**Fee Builder**</mark> is basebid's custom hook, sitting on top of LP fees and capturing a programmable fee directly at the swap. <mark style="color:$primary;">**No token sells. No thresholds. No red candles**</mark>**.** You choose where it goes: <mark style="color:$primary;">**holder rewards, buybacks, liquidity, or any custom wallet**</mark> (marketing, KOLs, team, partners). No limits

<p align="center"><a href="/basedbid/projects-how-to-guides/how-to-create-a-pool-lbp.md#fee-builder" class="button primary" data-icon="chart-line-up">Add Fees to Your Pool</a><a href="/pages/5iK4QLHfV3kRSJFvjuaN#step-6.-fee-builder-optional" class="button primary" data-icon="bolt">Add Fees to Your Flash Token</a></p>

</details>

<details>

<summary><strong>Fully Modular</strong></summary>

You can add, remove, or reconfigure fee destinations anytime after launch, no redeployment needed. Start with rewards, add buybacks later, swap out a wallet. <mark style="color:$primary;">**Your token evolves without relaunching**</mark>

<p align="center"><a href="/basedbid/projects-how-to-guides/how-to-edit-the-fee-builder/for-lbp-pools.md" class="button primary" data-icon="chart-line-up">Editing your Pool's DEX Fees</a><a href="/basedbid/projects-how-to-guides/how-to-edit-the-fee-builder/for-flash-tokens.md" class="button primary" data-icon="bolt">Editing your Flash Token's Fees</a></p>

</details>

<details>

<summary><strong>Built-In Optional Protections</strong></summary>

* **Tiered Fees:**
* **Dynamic Fees:** <mark style="color:$primary;">**Auto-adjust**</mark> based on volatility
* **Anti-snipe/Anti-MEV:** <mark style="color:$primary;">**Bot protection**</mark> at the pool level
* **Cooldowns:** <mark style="color:$primary;">**Enforced gaps between transactions**</mark> with penalty fees

<p align="center"><a href="/basedbid/projects-how-to-guides/how-to-create-a-pool-lbp.md#advanced-protection-evm-only" class="button primary" data-icon="chart-line-up">Add Protection to your Pools on a DEX</a><a href="/pages/5iK4QLHfV3kRSJFvjuaN#step-7a.-advanced-protection-evm-only-optional" class="button primary" data-icon="bolt">Add Advanced Protection to your Flash Tokens</a></p>

</details>

<details>

<summary><strong>Example</strong></summary>

<mark style="color:purple;">**Example: $VAULT**</mark>

$VAULT launches on basebid with <mark style="color:$primary;">**2% LP fees**</mark> and the <mark style="color:$primary;">**Fee Builder enabled at 5%**</mark>, configured as follows:

* 2% to <mark style="color:purple;">**holder rewards**</mark>
* 1% to <mark style="color:purple;">**automatic buybacks**</mark>
* 1% to <mark style="color:purple;">**liquidity**</mark>
* 1% to a <mark style="color:purple;">**marketing wallet**</mark>

On a day with <mark style="color:$primary;">**$100,000 in trading volume**</mark>, $VAULT generates <mark style="color:$primary;">**$5,000 in hook fees**</mark>. $2,000 goes to holders, $1,000 buys back tokens automatically, $1,000 deepens liquidity, $1,000 goes to marketing and $2,000 goes to the creator. in  <mark style="color:$primary;">**All from swaps, nothing sold**</mark>

$VAULT also launches with all pool protections active:

* <mark style="color:purple;">**Dynamic fees**</mark> set to Medium (2x multiplier), triggered per swap, with a 10 minute decay period
* <mark style="color:purple;">**Snipe protection**</mark> active for the first 10 minutes post-launch, capping any single buy at 0.1% of supply
* <mark style="color:purple;">**Cooldown protection**</mark> enforcing a 10 second gap between buys, with a 1% penalty fee for wallets that try to bypass it
* <mark style="color:purple;">**MEV protection**</mark> enabled, blocking front-running and sandwich attacks

Three months after launch, the team decides to remove the marketing wallet and redirect that 1% to increase <mark style="color:purple;">**holder rewards**</mark> to 3%. <mark style="color:$primary;">**No relaunch. No migration. One config change**</mark> and the token is running a new strategy the same day. On that same $100,000 volume day, holders now earn <mark style="color:$primary;">**$3,000 instead of $2,000**</mark>

</details>

<p align="center"><a href="/basedbid/projects-how-to-guides/how-to-create-a-pool-lbp.md#fee-builder" class="button primary" data-icon="coin-vertical">How to Set up the Fee Builder on a Pool</a><a href="/pages/5iK4QLHfV3kRSJFvjuaN#step-6.-fee-builder-optional" class="button primary" data-icon="bolt">How to Set up the Fee Builder on a Flash Token</a></p>
