Docs

Contracts

KnitxRouter calls, events, and addresses.

Calls

  • swap. Pulls tokenIn, takes the fee, runs the routes, and pays tokenOut to recipient. Use the zero address for native HYPE. routes must be non-empty and their shareBps values must sum to 10000.
  • setFeeBps and setFeeRecipient. Owner only.
  • pause and unpause. Owner only.
  • rescueToken and rescueNative. Owner only. Use these for tokens left on the router.
  • feeBps, feeRecipient, and the immutable venue addresses are public reads.

Events

  • Swap records sender, tokenIn, tokenOut, recipient, amountIn, amountOut, and feeAmount.
  • FeeBpsUpdated and FeeRecipientUpdated record the previous and next values.
  • Rescued records the token, the recipient, and the amount. Native rescue uses the zero address as the token.
  • Paused and Unpaused come from the pause switch.

Addresses

KnitxRouter is deployed on Kinetiq Elysium, chain 99901, at 0x9D6E...6835. The owner and the fee recipient are 0x199E...F893. The fee is 20 basis points. Deployment transaction 0xc449...c71aa6e931eae86b2e83f28ac1ab.

View KnitxRouter on the explorer

WHYPE is 0xbA87...5E81. Venue routers are the constants in src/ElysiumVenues.sol.