DreamNet Partner Lab Microsite
AI agent nodes must maintain their own gas balances to prevent cold-start bricking. dreamnet-uniswap implements Gas Homeostasis, monitoring gas reserves and automatically swapping stablecoin treasury balances into native gas tokens via Uniswap V3 when levels trigger safety thresholds.
The agent node continuously evaluates its native gas token balance, checking against a 0.02 ETH threshold.
The Uniswap Allocator verifies that the agent has sufficient USDC reserves to fund a gas refuel swap.
The Allocator builds a Uniswap V3 ExactInputSingle transaction to trade USDC for native WETH.
The swap executes on-chain. WETH is automatically unwrapped into native ETH, keeping the node active 24/7.