Contracts and security
HolosRouter (Elysium, chain 99901)
Address: published here at deploy. Source compiled with Solidity 0.8.26, Cancun, 11,773 bytes.
| Function | Who | What |
|---|---|---|
buy(BuyParams) | Anyone | USDC to coin through v4, fee first, Gas Included, minOut and deadline enforced |
sell(SellParams) | Anyone | Coin (or native HYPE) to USDC through v4, fee on the output |
buyback(path, usdcAmount, minHolosOut) | Owner or keeper | Pot USDC to $HOLOS, sent to the dead address |
setHolos(address) | Owner, once | Wires $HOLOS after launch |
setFees, setBuybackShare, setHolderMin, setKeeper, setGasDrop | Owner | Bounded settings |
sweep(to), sweepToken(token, to), withdrawTreasury | Owner | Moves what the router holds |
The router never holds a user's funds between transactions: every buy and sale settles inside one PoolManager.unlock call and pays out before it returns. What it holds at rest is the fee pots, which is why the owner can sweep it without touching anyone's money. A reentrancy lock (transient storage) guards every entry point, and unlockCallback only accepts the PoolManager.
Addresses it uses
| Contract | Address |
|---|---|
| Uniswap v4 PoolManager | 0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1 |
| V4Quoter | 0x379F556c5a748BD7Cc9baF0F7A344094Ac1814f5 |
| USDC on Elysium | 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65 |
| Relay depository on Elysium | 0x4cd00e387622c35bddb9b4c962c136462338bc31 |
| L1GatewayRouter (HyperEVM) | 0x5D24f760DD7664b4214bDD4B04a3f62B9edd68c0 |
| Inbox (HyperEVM) | 0xce59f8B65ad41C9DAE4c07A0571a39824bD92cff |
Tests
38 Foundry tests: 32 unit and fuzz tests against a local v4 PoolManager (fees, holder discount, pull mode, every revert, Gas Included, buyback, sweep, access control, reentrancy), 5 fork tests on Elysium with a real Montra pool, and 1 fork test of the native gateway on HyperEVM.
What you rely on
Relay's solvers and depository for cross-chain fills (a leg that fails on Elysium is refunded by Relay on the origin chain), Uniswap v4 pools and their hooks for prices, Montra's API for the coin list, and the operator's keeper key for the daily buyback. The contract is not audited by a third party.