HikariSwapDocs

Security

This page is the canonical record of HikariSwap's security posture: what has been done, what is in scope, and how to report issues.

Approach

HikariSwap is engineered to a senior audit standard. The contracts repository ships its full testing and static-analysis configuration so an external auditor can reproduce every result.

The Uniswap V2 codebase has been audited continuously by the wider DeFi community for years; staying minimally divergent inherits that scrutiny. The HikariSwap-specific surfaces — fee constants, the token factory and its templates, the locker — receive direct attention.

Immutable bounds

Every owner-settable knob in the protocol is bounded by a constant baked in at deploy time. The bounds cannot be raised — even by a fully compromised owner key. The setter functions revert outside the band and emit a public event on success.

HikariTokenFactory

KnobBoundSource
Creation price (any archetype)10,000 – 500,000 LCAIMIN_PRICE() / MAX_PRICE()
Token decimals0 – 18Reverted in _validateMetadata
Tax rates (per side, immutable per token)≤ 1,000 bps (10%)Constructor of HikariTaxToken

The factory has no privileged role on any token it deploys — it cannot mint supply it didn't issue, cannot pause a token, and cannot drain holders. Once a token is deployed, the factory's relationship with it ends.

HikariLocker

KnobBoundSource
Lock duration≤ ~100 yearsMAX_LOCK_DURATION()
BeneficiaryNon-zero addressReverted in lock()

Locks are non-custodial in the sense that only the beneficiary can withdraw, and only after unlockAt. Locks can be extended forward in time but never shortened.

HikariRouter

KnobBoundSource
DeadlineBlock-timestamp enforcedModifier ensure(deadline)
SlippageCaller-supplied amountOutMin / amountInMaxReverted on every swap path

The router holds no state and no funds across calls. It is a thin coordinator that wraps WLCAI, sequences HikariPair calls, and refunds dust.

Disclosure policy

If you find a vulnerability in any HikariSwap contract, frontend, or supporting infrastructure, please email hikari@hikariswap.com with:

Do not open a public GitHub issue for security findings. We acknowledge within 72 hours and coordinate disclosure timelines, including remediation milestones.

Risks you accept by using HikariSwap

HikariSwap is open-source software, deployed by its maintainers, used at your own risk. By interacting with it you accept that: