HashClaw monitors your RWA portfolio around the clock and rebalances when drift exceeds threshold — using live yield signals and AI-optimised swap legs.
HashClaw is a non-custodial autonomous wealth manager built for HashKey Chain's RWA ecosystem. It combines real-time yield oracle data with Groq AI to keep your portfolio at optimal allocations — without you lifting a finger.
Connect your MetaMask wallet on HashKey Chain. Deposit assets into TreasuryVault to begin automated portfolio management under target allocations.
User Portfolio Layer
Users deposit RWA assets into TreasuryVault. The contract tracks balances per assetId and exposes getPortfolio() for the agent to read live allocations without moving real tokens.
function getPortfolio(address user)
view returns (
uint256[] assetIds,
uint256[] balances,
string[] symbols
)
{
// reads userBalances mapping
return _buildPortfolio(user);
}
Signal Layer
YieldOracle stores live APY data for all 4 vault assets (in basis points). The owner seeds it after deployment; the agent and frontend read getAllApys() in every rebalance cycle.
Execution Layer
RebalanceExecutor accepts signed swap legs from either the background agent or the user's own wallet. It calls debitBalance on the vault for each leg and emits PlanSubmitted for full on-chain auditability.
// multi-user: agent OR self
require(
msg.sender == user
|| msg.sender == owner(),
"Unauthorized"
);
// pure accounting swap
vault.debitBalance(user, from, amt);
vault.creditBalance(user, to, amt);
emit PlanSubmitted(planId, user);
Groq's Llama-3.3-70b weighs live APYs against target allocations. A safety guard ensures every leg reduces drift — never increases it.
Every rebalance plan is recorded on-chain via PlanSubmitted events. The Agent Logs page lets anyone verify the full history with explorer links.