Skip to main content
Linea-native ve(3,3) DEX and liquidity marketplace. Solidly-fork with gauge voting and support for both stable and volatile pool types on the Linea zkEVM network.

What it offers

  • swap: Swap tokens with route-based routing specifying stable or volatile pool type

Notes

  • Solidly-fork routes contain {from, to, stable} tuples (NO factory field)
  • Two pool types: stable=true for correlated assets, stable=false for uncorrelated
  • ve(3,3) model: LYNX token holders vote-lock to direct gauge emissions
  • Linea-only deployment
  • LP tokens can be staked in gauges for LYNX emissions
  • Input token must be ERC20-approved to the Router

Its names in a program

On Linea, Lynex is a namespace: its contracts need no import.

Deployments

ABI

LynexRouterABI

import LynexRouterABI from "./protocols/lynex/LynexRouterABI.json"; Speaks for: router.
  • swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, (address from, address to, bool stable)[] routes, address to, uint256 deadline) returns (uint256[] amounts)
  • addLiquidity(address tokenA, address tokenB, bool stable, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns (uint256 amountA, uint256 amountB, uint256 liquidity)

Next steps