Add managed quote-push treasury workflows
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user