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 (NOfactoryfield) - Two pool types:
stable=truefor correlated assets,stable=falsefor 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
- Protocols: the other protocols, by what they do.
- Protocols and tokens: calling a contract by its namespace, or through its ABI.
- Glossary: the words these pages use, in plain terms.
