# Trim: Fee Level Matters More Than Skew in Lightning Routing

DevFeed: [Trim: Fee Level Matters More Than Skew in Lightning Routing](<https://devfeed.tech/articles/trim-fee-level-matters-more-than-skew-in-lightning-routing-101451.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.35296>)

Author: Huiping Sun, Peilu Guo, Yiming Zhu, Yueqi Wu, Zhong Chen

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Networking](<https://devfeed.tech/sources/arxiv-networking.md>)

Topics: [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-gt](<https://devfeed.tech/tags/cs-gt.md>), [cs-ni](<https://devfeed.tech/tags/cs-ni.md>), [cs-sy](<https://devfeed.tech/tags/cs-sy.md>), [demand](<https://devfeed.tech/tags/demand.md>), [eess-sy](<https://devfeed.tech/tags/eess-sy.md>), [flat](<https://devfeed.tech/tags/flat.md>), [frontier](<https://devfeed.tech/tags/frontier.md>), [insurance](<https://devfeed.tech/tags/insurance.md>), [inventory](<https://devfeed.tech/tags/inventory.md>), [lightning](<https://devfeed.tech/tags/lightning.md>), [median](<https://devfeed.tech/tags/median.md>), [optimum](<https://devfeed.tech/tags/optimum.md>), [revenue](<https://devfeed.tech/tags/revenue.md>), [routing](<https://devfeed.tech/tags/routing.md>), [synthetic](<https://devfeed.tech/tags/synthetic.md>)

## AI overview

Trim models Lightning channel balances as two-sided inventory with costly refills, separating the optimal fee into a demand-and-replenishment level and a balance skew reflecting liquidity's shadow price. The level has the larger effect: on exactly solved channels, the best flat fee is within 1.6% of the optimum at the median, while setting the level off by a factor of two can reduce performance by tens of percent. Skew acts as secondary insurance against refused forwards; it is recommended only where refills remain frequent and costly. In a 2026 snapshot using synthetic payments, no tuned tool beat Trim's revenue-success frontier by more than a few percent, and skew changed gross revenue by a few percent.

## Source excerpt

arXiv:2610.35296v1 Announce Type: cross Abstract: Lightning routing nodes lend their channel balance for a posted fee. Operators' tools move that fee with the balance around a hand-set level, and which part of the fee drives revenue is unclear. We present Trim, which models a channel as a two-sided inventory with costly refills. Its optimal fee is a level, set by demand and replenishment, plus a balance skew, the shadow price of liquidity. The level is first order: no fee rule beats the ceiling demand and replenishment set, and on exactly solved channels the best flat fee comes within $1.6\%$ of the optimum at the median, whereas a level off by a factor of two loses tens of percent. The skew is second-order insurance: it adds at most what the flow-balancing flat fee loses to refused forwards. So the level should be chosen: Trim's rule traces the revenue--success frontier, posts one level on every channel, and adds a skew only where refills stay frequent and costly. On a 2026 snapshot with synthetic payments, no tuned tool beats that frontier by over a few percent, and a skew changes gross revenue by a few percent.