Build

Auction contract

PoleAuction sells the express lane of the next minute, every minute, for native HYPE. It is not upgradeable, has no pause on withdrawals, and the owner cannot touch deposits or credits.

Status: built and tested (40 tests: unit, fuzz, invariant), not deployed, not audited.

Timeline of a minute

  • Seconds 0 to 40, commit: commit(bytes32 hash) with a deposit of at least minDeposit. hash = keccak256(abi.encode(bidder, round + 1, amount, salt)).
  • Seconds 40 to 55, reveal: reveal(uint256 amount, bytes32 salt). The amount must be at most the deposit and at least reservePrice.
  • From second 55, settle: anyone calls settle(round). The winner pays max(second bid, reservePrice) and becomes controllerOf(round).

Reading the lane

interface IPoleAuction {
    function currentController() external view returns (address);
    function isExpress(address account) external view returns (bool);
    function controllerOf(uint256 round) external view returns (address);
}

An app gives priority to isExpress(msg.sender). The controller can hand a won minute to another address with transferLane(round, to).

Money

  • Losers and the winner's change are credited; withdraw() pulls them (up to 64 past auctions per call, sweep for more).
  • A commit that is never revealed is refunded minus 10 % (noRevealPenaltyBps, at most 50 %).
  • The price is split at settle: burnBps (50 % by default) to the buyback address, the rest to the treasury.

Deploy

cd contracts
forge test
PRIVATE_KEY=… TREASURY=0x… BUYBACK=0x… \
  forge script script/Deploy.s.sol --rpc-url https://rpc.elysium.kinetiq.xyz --broadcast

Then set NEXT_PUBLIC_POLE_AUCTION on the site and the auction page goes live.