Skip to main content

Overview

Giza agents optimize yield by deploying capital across DeFi lending protocols on multiple blockchains. Users supply assets and earn interest from borrowers.

Supported Protocols by Chain

Core Protocols

ProtocolDescriptionKey Features
AaveDecentralized liquidity protocolIsolated risk pools, audited, deep liquidity
CompoundEstablished lending marketGas-efficient, single collateral model, composable
MoonwellBase-native lending protocolOptimized for Base, community governed
FluidLiquidity protocolEfficient capital usage

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 agent.activate({
  owner: userWallet,
  token: USDC_ADDRESS,
  protocols: ['aave', 'compound', 'moonwell'],
  txHash: depositTxHash,
});

Getting Available Protocols

Retrieve supported protocols for a token on your chain:
const { protocols } = await giza.protocols(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
  • Audited contracts (for established protocols)

Morpho Vaults

Optimization layer that aggregates liquidity:
  • Built on top of existing protocols
  • Managed strategies by firms like Gauntlet, Steakhouse, Felix, etc.
  • Can produce 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 risk. Giza agents reduce exposure through diversification and optimization, but users should understand what can go wrong:

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 reliable 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

Protocol Diversification

Giza agents spread capital across protocols to reduce exposure:
  1. No single point of failure
  2. Access to the best rates across protocols
  3. Liquidity spread across multiple pools
  4. Protocol-specific risks stay 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.protocols(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 agent.performance({ from: '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 agent.updateProtocols(['aave', 'compound', 'moonwell', 'fluid']);
Updating protocols triggers rebalancing, which incurs gas costs.

Next Steps