# Decentralization of Fee Distribution Process

**URL:** <https://gov.gmx.io/t/decentralization-of-fee-distribution-process/4411>\
**Category:** Proposals\
**Created:** [February 22, 2025, 7:59am UTC](https://gov.gmx.io/t/decentralization-of-fee-distribution-process/4411 "2025-02-22T07:59:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/saurabh/32/1237_2.png) [@Saurabh](https://gov.gmx.io/u/Saurabh)\
**Post date:** [February 22, 2025, 7:59am UTC](https://gov.gmx.io/t/decentralization-of-fee-distribution-process/4411/1 "2025-02-22T07:59:27Z")

</div>

**Summary**

This proposal seeks to decentralize and automate the entire fee distribution process for the GMX ecosystem. Currently, fees are manually withdrawn from contracts, followed by a script-based distribution to GLP, keepers, reward distributors, and the treasury. The new process will transition to on-chain fee calculations and distributions using smart contracts, ensuring greater transparency, efficiency, and alignment.

**Motivation**

Currently, GMX fees are manually withdrawn from contracts, after which a script distributes them to GLP, keepers, reward distributors, and the treasury. Automating fee distribution through smart contracts will improve accuracy, security, and decentralization, ensuring that funds are allocated seamlessly and transparently.

**Rationale**

**Current Process:**

- Fees are manually withdrawn from contracts.

- A script is used to distribute fees to GLP, keepers, reward distributors, and the treasury.

**New Process:**

- Fee calculations and distributions will be executed entirely on-chain using smart contracts.

- This ensures real-time, trustless, and verifiable fee allocations.

Formalization of Handling of Keeper Costs:

1. A maximum of 50% of GLP fees is allocated to cover v1 keeper costs. This covers Oracle price update costs. If the 50% threshold is exceeded, the treasury funds (from the 10% of v2 fees) cover the excess for v1.

2. For v2, keeper costs are typically paid by users, but shortfalls may occur during periods of high volatility or gas prices.

This structure ensures that keeper costs are sustainably managed while maintaining sufficient funds for other critical ecosystem functions.

As of the past week between 2025-02-17 and 2025-02-10, the composition of V1 Keeper Fees was $56,281.10 and V2 was $71,074.29 for Arbitrum. For V1 Share this represents a 0.1% share, since V2 fees are at the expense of the user, there is no percentage share.

Data:[https://dune.com/queries/4753429/7891340?sidebar=query-explorer&share\_v1\_n26d66=70&share\_v2\_n26d66=10](https://dune.com/queries/4753429/7891340?sidebar=query-explorer&share_v1_n26d66=70&share_v2_n26d66=10)

**Conclusion**

This proposal is a step toward decentralizing and automating GMX’s fee distribution process. By automating fee distribution and migrating to on-chain smart contracts, GMX will improve transparency, efficiency, and scalability.

---

<div class="post-metadata">

**Author:** ![Jonezee](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/jonezee/32/1238_2.png) [@Jonezee](https://gov.gmx.io/u/Jonezee)\
**Post date:** [February 24, 2025, 4:34pm UTC](https://gov.gmx.io/t/decentralization-of-fee-distribution-process/4411/3 "2025-02-24T16:34:06Z")

</div>

Makes a lot of sense. It’s another small but worthwhile aspect of the protocol operations to further decentralise.

---

<div class="post-metadata">

**Author:** ![Seraph](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/seraph/32/533_2.png) [@Seraph](https://gov.gmx.io/u/Seraph)\
**Post date:** [February 25, 2025, 7:20am UTC](https://gov.gmx.io/t/decentralization-of-fee-distribution-process/4411/4 "2025-02-25T07:20:51Z")

</div>

all for better productivity so that devs can focus on building 😃

---

<div class="post-metadata">

**Author:** ![russiamanbit](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/russiamanbit/32/41_2.png) [@russiamanbit](https://gov.gmx.io/u/russiamanbit)\
**Post date:** [March 6, 2025, 2:22pm UTC](https://gov.gmx.io/t/decentralization-of-fee-distribution-process/4411/5 "2025-03-06T14:22:45Z")

</div>

Can you please expand details about “keepers” thing? What is mechanism behind of that ? who is playing the keepers role ? And shouldnt there be smart contract audit of this new onchain pipeline before enacting it ?

---

<div class="post-metadata">

**Author:** ![Jonezee](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/jonezee/32/1238_2.png) [@Jonezee](https://gov.gmx.io/u/Jonezee)\
**Post date:** [March 7, 2025, 12:10pm UTC](https://gov.gmx.io/t/decentralization-of-fee-distribution-process/4411/6 "2025-03-07T12:10:34Z")

</div>

In a nutshell: GMX uses a two-step process for transactions. Users submit a transaction, and the Keepers pick up those transactions, verify they’re correctly structured, and then execute the order.
