Add Aave quote-push collateral supply and toggle hooks.
Some checks failed
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Solidity Contracts (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has started running
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled

Extends AaveQuotePushFlashReceiver with before/after swap collateral steps, env-driven run scripts, forkproof parity, and scoped forge tests for supply/toggle callback ordering.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-06-26 02:07:30 -07:00
parent aa5790bb8b
commit 848a5e35ea
12 changed files with 486 additions and 11 deletions

View File

@@ -23,6 +23,10 @@ contract AaveQuotePushFlashReceiverTest is Test {
token.mint(address(receiver), 1_000_000);
}
function testCollateralHooksVersionIsOne() public view {
assertEq(receiver.collateralHooksVersion(), 1);
}
function testOwnerCanSweepQuoteSurplusAndKeepReserve() public {
uint256 reserveRetained = 250_000;