Skip to main content

Overview

Giza agents optimize yield by deploying capital across leading DeFi lending protocols on multiple blockchains. These protocols allow users to supply assets and earn interest from borrowers.

Supported Protocols by Chain

Core Protocols

ProtocolDescriptionKey Features
AaveLeading decentralized liquidity protocolIsolated risk pools, battle-tested security, strong liquidity
CompoundTime-tested lending marketGas-efficient, single collateral model, high composability
MoonwellBase-native lending protocolOptimized for Base, competitive rates, community governed
FluidAdvanced liquidity protocolEfficient capital usage, modern architecture

Morpho Vaults

Morpho is a lending optimization layer that aggregates liquidity across multiple protocols:
VaultStrategy
Morpho Gauntlet USDC PrimeGauntlet-managed prime USDC strategy
Morpho Moonwell Flagship USDCMoonwell-backed USDC vault
Morpho Seamless USDC VaultSeamless protocol integration
Morpho Steakhouse USDCSteakhouse Financial strategy
Morpho Universal USDCUniversal USDC vault
Morpho Smokehouse USDCSmokehouse strategy

Euler Vaults

Euler is a non-custodial lending protocol with modular vaults:
VaultStrategy
Euler USDCCore USDC vault
Token: USDC (6 decimals)

Supported Tokens by Chain

TokenChainsDecimalsDescription
USDCBase, Arbitrum, Ethereum, Polygon6USD Coin - primary stablecoin
USDT0Plasma, HyperEVMVariableCustom stablecoin for specific chains

Protocol Selection

Agent Selection

When activating an agent, you select which protocols it can use:
await giza.agent.activate({
  wallet: smartAccountAddress,
  origin_wallet: userWallet,
  initial_token: USDC_ADDRESS,
  selected_protocols: ['aave', 'compound', 'moonwell'],
});

Getting Available Protocols

Retrieve supported protocols for a token on your chain:
const { protocols } = await giza.agent.getProtocols(USDC_ADDRESS);

console.log('Available protocols:', protocols);
// Output depends on chain:
// Base: ['aave', 'compound', 'moonwell', 'fluid', 'morpho_gauntlet_usdc_prime', ...]
// Ethereum: ['aave', 'compound', 'fluid', 'morpho_usual_boosted_usdc', ...]

Protocol Types

Core Protocols

Traditional lending markets like Aave, Compound, Moonwell, Fluid, and Hyperlend:
  • Direct lending/borrowing
  • Pool-based liquidity
  • Variable APRs based on utilization
  • Battle-tested security (for established protocols)

Morpho Vaults

Optimization layer that aggregates liquidity:
  • Built on top of existing protocols
  • Managed strategies by experts (Gauntlet, Steakhouse, Felix, etc.)
  • Often higher APRs through optimization
  • Additional layer of risk management
  • Available on most chains with varying strategies

Euler Vaults

Modular lending protocol:
  • Non-custodial
  • Permissionless vault creation
  • Flexible risk parameters
  • Isolated markets
  • Frontier vaults for emerging strategies

Protocol Risks

All DeFi protocols carry inherent risks. Giza agents help manage these through diversification and optimization, but users should be aware of:

Smart Contract Risk

  • Protocols are powered by smart contracts
  • Bugs or exploits can lead to loss of funds
  • Mitigation: Audits, time-tested protocols, bug bounties, diversification

Liquidity Risk

  • Sudden large withdrawals can affect availability
  • High utilization may delay withdrawals
  • Mitigation: Diversification across protocols and chains

Oracle Risk

  • Protocols rely on price oracles
  • Oracle failures can cause liquidations or losses
  • Mitigation: Using protocols with robust oracle systems

Protocol Governance Risk

  • Protocol parameters can change via governance
  • Changes may affect yields or security
  • Mitigation: Monitoring and automatic rebalancing

Chain-Specific Risks

  • Network outages or congestion
  • Bridge vulnerabilities (for L2s)
  • Chain reorganizations
  • Mitigation: Choosing established chains with strong security

Protocol Diversification

Giza agents automatically diversify across protocols to manage risk:

Benefits

  1. Reduced Exposure: No single point of failure
  2. Yield Optimization: Access best rates across protocols
  3. Liquidity Management: Spread across multiple pools
  4. Risk Mitigation: Protocol-specific risks are isolated

Constraints for Protocol Management

Control protocol usage with constraints:

Minimum Protocols

Ensure diversification:
{
  kind: 'min_protocols',
  params: { min_protocols: 2 }
}

Maximum Allocation

Cap exposure to any single protocol:
{
  kind: 'max_amount_per_protocol',
  params: { max_amount: '5000000000' } // 5000 USDC
}

Exclude Protocol

Blacklist specific protocols:
{
  kind: 'exclude_protocol',
  params: { protocol: 'fluid' }
}

Protocol-Specific Cap

Limit specific protocols:
{
  kind: 'max_allocation_amount_per_protocol',
  params: { 
    protocol: 'morpho_gauntlet_usdc_prime',
    max_amount: '2000000000' // 2000 USDC
  }
}

Protocol Performance

Protocol Discovery

Get available protocols for a token:
const { protocols } = await giza.agent.getProtocols(USDC_ADDRESS);

console.log('Available protocols:', protocols);
// ['aave', 'compound', 'moonwell', 'fluid', ...]

// Select protocols for activation
const selectedProtocols = protocols.slice(0, 3);

Historical Performance

Agents track how capital performs across protocols:
const { performance } = await giza.agent.getPerformance({
  wallet: smartAccountAddress,
  from_date: '2024-01-01 00:00:00',
});

// See allocation across protocols over time
performance.forEach(point => {
  console.log(`${point.date}:`, point.portfolio);
  // { aave: 500, compound: 300, moonwell: 200 }
});

Protocol Updates

Adding New Protocols

As new protocols launch or existing ones upgrade:
  • Giza team evaluates security and liquidity
  • Protocols undergo risk assessment
  • If approved, added to supported list
  • Agents can automatically use new protocols

Updating Agent Protocols

Change protocols for an active agent:
await giza.agent.updateProtocols(
  smartAccountAddress,
  ['aave', 'compound', 'moonwell', 'fluid']
);
Updating protocols triggers rebalancing, which incurs gas costs.

Next Steps