AMM v2

The Hercules AMM v2 is based on UniV2 constant formula (x * y = k), with a custom implementation of a Solidly-type logic for stables.

The Hercules AMM is the core of our ecosystem-oriented approach, designed with the following principles in mind:

  • A high level of flexibility and customization

  • An optimized trading efficiency for users

  • Providing support to protocols' growth by adapting to their needs

AMM v2 includes a dual-liquidity model for our pairs and introduces dynamic directional fees as well as a swap referral mechanism for partnering apps.

Dual-Liquidity Type

Each Hercules liquidity pool (LP) LP can have its own type, depending on the expected price correlation level between the two tokens of the pair.

Volatile token pairs

Volatile pairs are composed of uncorrelated assets, based on the usual UniV2 model, using the standard constant product formula:

x * y = k

Stable token pairs

Stable pairs are used for correlated assets, and will try to maintain a 1:1 transfer ratio as much as possible. The formula is based on the well-known Solidly curve:

x^3*y + y^3*x = k

Dynamic directional fees

Hercules provides adjustable swap fees based on market conditions and protocols' specifics.

Dynamic & Directional

Token pairs can be configured with their own swap fees, but it is also possible for each of them to be set up with different values depending on the swap direction (buying versus selling).

As a result, Hercules has the freedom to incentivize every pair differently, depending on the volatility or stability of its assets, as well as on the structure of protocols and their own custom needs.

Fees handling delegation

Each project launching on the Hercules AMM and willing to work with us can have its LPs configured with specific swap rates tailored to suit its own strategy.

Ultimately, we intend to provide the possibility for partnering protocols to directly take control of their own pairs' swap fees.

Referral

The swap referral is aimed directly at partners and projects that want to become a part of our ecosystem.

Every partnered project can add its referral address to each transaction made on Hercules through its dApp, and subsequently receives a part of their users' generated swap fees. This results in a win/win situation in which all Hercules actors are adequately rewarded, thereby fostering a fair and sustainable ecosystem.

The swap referral can only be used by whitelisted partners. It cannot be used by single users or unapproved projects.

Last updated