Add managed quote-push treasury workflows

This commit is contained in:
defiQUG
2026-04-13 21:37:33 -07:00
parent 2b52cc6e32
commit 7517869ea6
9 changed files with 429 additions and 39 deletions

View File

@@ -8,7 +8,7 @@ import {QuotePushTreasuryManager} from "../../contracts/flash/QuotePushTreasuryM
/**
* @title DeployQuotePushTreasuryManager
* @notice Deploy a treasury manager for quote-push retained surplus and optionally
* hand receiver ownership to it in the same broadcast.
* hand receiver ownership to it in the same broadcast sequence.
*
* Env:
* PRIVATE_KEY required
@@ -63,6 +63,7 @@ contract DeployQuotePushTreasuryManager is Script {
if (takeReceiverOwnership) {
AaveQuotePushFlashReceiver(receiver).transferOwnership(address(manager));
require(manager.isReceiverOwnedByManager(), "receiver ownership not finalized");
console.log("Receiver ownership transferred to manager");
}
vm.stopBroadcast();