Skip to content

Latest commit

Β 

History

History
56 lines (48 loc) Β· 2.75 KB

STRATEGIES.md

File metadata and controls

56 lines (48 loc) Β· 2.75 KB

Helix Strategy Implementation Status

Category A β€” Diagnostic Retry (no provider needed)

Strategy Real? Notes
backoff_retry βœ… REAL Exponential backoff with configurable delay
retry βœ… REAL Simple 500ms retry
reduce_request βœ… REAL Reduces amount to available balance
fix_params βœ… REAL Auto-populates gasLimit, chainId, type, EIP-1559 gas prices (via viem)
switch_endpoint βœ… REAL Switches to altEndpoint from context
hold_and_notify βœ… REAL Pauses agent, emits notification
extend_deadline βœ… REAL Adds 300s to deadline
remove_and_resubmit βœ… REAL Excludes failed batch item, resubmits rest
renew_session βœ… REAL Refreshes MPP session challenge
switch_service βœ… REAL Switches to alt service provider
retry_with_estimation βœ… REAL Privy auto-estimate gas and nonce
use_unrestricted_wallet βœ… REAL Switch to alt wallet

Category B β€” Chain Reads (needs rpcUrl + viem publicClient)

Strategy Real? Notes
refresh_nonce βœ… REAL eth_getTransactionCount via viem
switch_network βœ… REAL Rebuilds viem client, verifies eth_chainId
get_balance βœ… REAL eth_getBalance via viem
retry_with_receipt βœ… REAL waitForTransactionReceipt if tx hash available

Category C β€” Chain Writes (needs privateKey + viem walletClient)

Strategy Real? Notes
self_pay_gas βœ… REAL sendTransaction without sponsor
cancel_pending_txs βœ… REAL 0-value self-send at same nonce, high gas
speed_up_transaction βœ… REAL Same tx, 30% gas bump via getGasPrice
split_transaction βœ… REAL Splits into N sub-limit chunks
topup_from_reserve βœ… REAL ETH transfer from reserve wallet
swap_currency βœ… REAL Uniswap V3 exactInputSingle via viem + ERC-20 approve
switch_stablecoin βœ… REAL Same as swap_currency, targets compliant stablecoin
split_swap βœ… REAL Multi-chunk DEX swap (N Γ— exactInputSingle)
swap_to_usdc βœ… REAL Swap any token to USDC via Uniswap V3

Category D β€” Orchestration

Strategy Real? Notes
refund_waterfall πŸ”Ά PARTIAL Flags for manual review with diagnostic info

DEX Support

Chains with pre-configured DEX routing (Uniswap V3 Universal Router):

  • Base (8453) β€” USDC, DAI, WETH
  • Base Sepolia (84532) β€” USDC, WETH
  • Ethereum (1) β€” USDC, USDT, DAI, WETH

Custom chains supported via dex config in HelixProviderConfig.

Summary

25 of 26 strategies have real execution. 1 partial (refund_waterfall).

All chain strategies use viem. DEX swaps use Uniswap V3 exactInputSingle with ERC-20 approve flow.