State Variables
Public Variables
| Variable | Type | Description |
|---|---|---|
orderBookImplementation | address | Current OrderBook implementation address |
kuruAmmVaultImplementation | address | Current KuruAMMVault implementation address |
marginAccountAddress | address | MarginAccount contract address |
TRUSTED_FORWARDER | address | Address for meta-transaction forwarding |
Mappings
Core Functions
initialize
One-time initialization of the Router contract.deployProxy
Deploys a new OrderBook market with an associated KuruAMMVault.NO_NATIVE- Both base and quote are ERC20 tokensNATIVE_IN_BASE- Native token (Monad) as base assetNATIVE_IN_QUOTE- Native token (Monad) as quote asset
verifiedMarket mapping. Returns the deployed OrderBook proxy address.
computeAddress
Computes the deterministic address for an OrderBook proxy.computeVaultAddress
Computes the deterministic address for a KuruAMMVault.anyToAnySwap
Enables multi-hop swaps across different markets.verifiedMarket mapping and enforces slippage protection via _minAmountOut. Supports native token transfers when _nativeSend is true.
Example: Swap TOKEN_A → Native → TOKEN_B
Events
MarketRegistered
deployProxy. Contains all market parameters and addresses for the OrderBook and KuruAMMVault.
OBImplementationUpdated
VaultImplementationUpdated
KuruRouterSwap
anyToAnySwap. Tracks the swap input/output for the entire routing path.