Skip to content

Conversation

@brotherlymite
Copy link
Collaborator

@brotherlymite brotherlymite commented Jan 30, 2025

AaveStewardInjectorCaps

This PR adds the AaveStewardInjectorCaps contract to fetch cap updates from the edgeRiskOracle and inject them via the AaveRiskSteward into the protocol.

Changelog:

  • Adds the new AaveStewardInjectorCaps contract for cap update injection
  • Adds the EdgeRiskStewardCaps contract to only allow cap updates on the Steward to be used by the new injector.
  • Adds a method to pause / unpause the injector for all updates, this method can be called by the guardian.
  • Refactored the previous AaveStewardInjector for rates into a base contract which is now being inherited by AaveStewardInjectorCaps and AaveStewardInjectorRates contract.

Misc Considerations:

  • On the AaveStewardInjectorCaps contract, the owner / governance has access to update the markets for cap updates.
  • Automation infra, for ex. chainlink automation has limitation for the checker function which runs off-chain to consume a max gas 10m. If the number of assets / markets increases significantly the checker method can cross the max gas limit in theory. For the current use-case in practise, it has been checked and validated that the checker gas limit will not be crossed with significant margin even if quite a lot of markets / assets are added on the injector contract.

@brotherlymite brotherlymite marked this pull request as ready for review January 31, 2025 14:11
@brotherlymite brotherlymite merged commit 828bb38 into aave-dao:main Mar 20, 2025
2 of 3 checks passed
@brotherlymite brotherlymite deleted the feat/caps-injector branch March 20, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants