Skip to content

bgd-labs/aave-risk-agents

Repository files navigation

Aave Risk Agents

Aave-specific agent contracts for automated risk parameter updates via the Chaos Agents middleware.

About

This repository contains lightweight agent contracts that validate and inject automated risk parameter updates from the Chaos Risk Oracle into Aave protocol. Each agent handles specific risk parameter types and includes Aave-specific validation logic.

The agents require RISK_ADMIN role granted by Aave governance and are controlled through a single Aave agent hub.

System Architecture

Aave integration diagram

The system operates through three components:

  • Chaos Risk Oracle publishes automated risk parameter updates (caps, rates, ltv etc.) on-chain.
  • Chaos Agents middleware pulls oracle payloads, runs protocol checks, forwards to agents.
  • Aave Risk Agents validate payloads against Aave rules, execute protocol state changes.

Contracts

This repository hosts the following Aave-specific agent implementations:

Agent Purpose Contract
CAPO Agent Validate/update CAPO feed parameters (snapshot ratio, maxGrowthPercent) AaveCapoAgent.sol
Supply Cap Agent Validate/update supply caps for assets AaveSupplyCapAgent.sol
Borrow Cap Agent Validate/update borrow caps for assets AaveBorrowCapAgent.sol
Discount Rate Agent Validate/update discount-rate on Pendle PT feeds AaveDiscountRateAgent.sol
E-Mode Agent Validate/update E-Mode category parameters AaveEModeAgent.sol
Rates Agent Validate/update interest rate strategy updates AaveRatesAgent.sol

Note: These agents require the RISK_ADMIN role from Aave governance and must be controlled by a single Aave agent hub.

Setup

Prerequisites

Installation

forge install

Build

forge build

Test

forge test

Related documentation

License

This project is released under the MIT license. Copyright © 2025, Aave DAO, represented by its governance smart contracts.

About

Aave DAO risk agents middleware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •