Charm Finance
  • Charm Overview
    • The mission
  • Products Overview
    • Alpha Vaults
      • Whitepaper
      • FAQ
    • Charm Simulator
  • Provide Liquidity
    • Overview
    • The Benefits
    • Risks and Mitigants
    • Charm Vaults
    • Community Vaults
    • Conclusion
    • Fees
    • FAQ
    • User Guides
      • Home Page
      • Depositing and Withdrawing
      • Vault Information Page
      • Performance Page
      • Portfolio Page
  • Manage Liquidity
    • Overview
    • The Benefits
    • Challenges and Solution
    • Uses Cases
    • How it works
    • Risks and mitigants
    • Conclusion
    • Fees
    • FAQ
    • User Guides
      • Create Vault
        • Default Values
        • Next Steps
      • Vault Parameters
      • Rebalancing
      • Verifying Vaults
      • Capital Efficiency
      • Other Features
      • Best Practices
      • Walkthroughs
        • Create Vault
        • Edit Vault
        • Automating Rebalance
        • Verify Manager
  • Technical References
    • Overview
    • Core
      • AlphaProVault
      • AlphaProVaultFactory
      • CloneFactory
      • Interfaces
    • Periphery
    • Error Codes
    • Contract Addresses
    • Subgraph
  • Links
    • Alpha Vaults v2
    • Contracts
    • Blog
  • Appendix
    • Glossary
    • Audit Reports
    • Team
    • Charm's Investors
    • 中文版
  • Research
    • Medallion
      • Whitepaper
      • FAQ
      • Decentralised competition
  • Previous Products
    • Alpha Vaults v1
    • Charm Options
      • Key Features
        • Capital Efficiency
      • Use Cases
      • How trading works
      • How liquidity provision works
      • Trading Tutorials
        • Open a position
          • Notes
        • Close a position
        • Settlement
      • Liquidity Provision Tutorials
        • Provide liquidity
        • Withdraw Liquidity
    • Cube Tokens
      • How it works
Powered by GitBook
On this page
  • The problem
  • The solution
  • Key features
  • Conclusion
  1. Research

Medallion

A competition platform to increase LP yields

PreviousCharm's InvestorsNextFAQ

Last updated 7 months ago

Medallion will be launched after Uniswap V4 launches.

The problem

Most liquidity providers (LPs) are not profitable. They lose over 20% a year to arbitrageurs, resulting in losses exceeding . The LP losses are known as loss-versus-rebalancing (LVR).

Reducing LVR will recover the losses, and LPs will earn higher yields.

LVR reduction is one of the most important unsolved problems in crypto. In a world with less LVR, on-chain liquidity will be substantially improved, and the user experience on DEXs can be at least as good as CEXs. As on-chain trading volume increases, LVR will also increase, which leads to more demand for LVR reduction.

There are to reduce LVR, such as dynamic fees, auctions, and using an oracle; but given the size and complexity of the problem, it’s unlikely one strategy will always be the best. This is why a solution is required to automatically select the best strategy from all the possible strategies, so that LPs earn the highest yields. Medallion uses a competition platform to select the best strategy.

The solution

Medallion is a DEX where LVR-reduction strategies compete to earn the highest yield for LPs. It has a public auction where competing strategists submit bids - the highest bidder pay their bid to LPs, attach their strategy to a pool, and earn all the pool’s swap fees.

Medallion expands the capabilities of the , so that the widest range of strategies can compete in Medallion’s auction. The increased competition results in higher bids, better strategies, and higher LP yields.

Medallion is open and permissionless, which means anyone can:

  • Provide liquidity into any range to earn the auction bids.

  • Create any LVR reduction strategy.

  • Place the highest bid at any time to attach their strategy to a pool.

Further details can be found in Medallion’s and .

Key features

Strategy Contract & optimised earnings

Swap fees are the source of earnings for LPs. If the fees of each swap can change automatically, it will be possible to optimise the earnings of every LP. This is not possible for Uniswap V2 or V3, where the fees for each pool cannot be changed; nor is it possible for newer AMM designs like the am-AMM, where the same fee must be manually applied to all the swaps in a block.

To automatically apply a different fee for each swap, the logic for changing the fee must be embedded into the pool's core logic. The is where strategy contracts and Uniswap hooks come in.

Uniswap hooks inject custom logic into a pool’s core logic, and strategy contracts use Uniswap hooks to inject custom logic to calculate a different fee for each swap. The fee depends on the size, direction and sender of the incoming swap; and can change automatically without requiring a separate transaction. Anyone can create their own strategy contract, and then apply it to a Medallion pool to earn all the pool’s swap fees.

Strategy contracts can be anything, as long as it contains logic to calculate a pool’s swap fees. They can:

  • Replicate any liquidity distribution and AMM curve.

  • Replicate order books by setting a different fee for different trade sizes.

  • Replicate the am-AMM by setting the same fee for all the swaps within a block.

  • Become an auction where anyone can bid for the right to execute the first swap in a block.

  • Dynamically set different fees for different LVR signals.

  • Charge a higher fee for auto-correlated swaps.

  • Capture all the arbitrage trades in different market conditions.

  • Become a combination of different strategies.

In the future, it is likely Medallion users will create a wide range of independently researched strategy contracts.

Medallion’s public auction (see below) determines which strategy contract is attached to a pool, and anyone can attach a better contract at any time by placing the highest bid in the auction. The creator of the contract earns all the pool’s swap fees, and LPs earn the bids.

Public Auction

Medallion’s public auction is permissionless, and is similar to the am-AMM. Managers deploy their own strategy contract, and use the auction to bid for the right to attach their contract to a pool. The highest-bidding manager becomes active and pays rent (i.e. the amount bid) to active LPs at each block. The active manager’s contract automatically sets a different fee for each swap, and the active manager earns all the swap fees generated by the pool. Anyone can place a higher bid at any time to become the new active manager.

The flexility of strategy contracts to become any LVR reduction strategy, and the permissionless nature of Medallion’s public auction, allows experimentation, iteration, and continuous improvement of all the strategies applied to a Medallion pool. Medallion LPs will benefit from higher yields, driven by continuously improving strategies, and by higher rental payments from the strategies’ creators.

Conclusion

Medallion increases LP yields by optimising the swap fees generated by a Uniswap V4 pool. Its architecture is decentralised, which means anyone can build any strategy to set the fee of a swap, and then bid in a public auction to recover LP losses and reduce LVR. LPs earn the highest yields from the biggest bids, and strategy builders earn all the fees in a liquidity pool.

More examples of strategy contracts can be found in Medallion’s and .

Further details of the public auction can be found in Medallion’s and .

$500 million each year
many strategies
am-AMM
white paper
draft contracts
white paper
Github
white paper
Github
Anyone can create their own strategy contract to reduce LVR, and then apply it to a Medallion pool to earn all the pool’s swap fees. These strategies increase LP yields by automatically calculating a different fee for each swap.
Strategy creators bid in the public auction, and the highest bidder becomes the Active Manager. They pay their bid to LPs, and earn all the pool’s swap fees. Their strategy contract will be applied to the pool to reduce LVR.
Page cover image