-
Notifications
You must be signed in to change notification settings - Fork 152
feat: Collector revision-6 Upgrade. #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
5201e19
3359c7a
0c7ab99
5a8f69f
0d6d031
ce5f8f6
5b9b8de
469c814
5d0f965
718e90d
52c9903
21e53d1
1af7316
07b6a17
ab9224b
e9784fc
9381f89
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,37 +20,30 @@ contract AaveV3TreasuryProcedure { | |
| TreasuryReport memory treasuryReport; | ||
| bytes32 salt = collectorSalt; | ||
| address treasuryOwner = poolAdmin; | ||
| address aclManager; | ||
|
||
|
|
||
| if (salt != '') { | ||
| Collector treasuryImplementation = new Collector{salt: salt}(); | ||
| treasuryImplementation.initialize(address(0), 0); | ||
| Collector treasuryImplementation = new Collector{salt: salt}(aclManager); | ||
| treasuryImplementation.initialize(0); | ||
| treasuryReport.treasuryImplementation = address(treasuryImplementation); | ||
|
|
||
| treasuryReport.treasury = address( | ||
| new TransparentUpgradeableProxy{salt: salt}( | ||
| treasuryReport.treasuryImplementation, | ||
| ProxyAdmin(deployedProxyAdmin), | ||
| abi.encodeWithSelector( | ||
| treasuryImplementation.initialize.selector, | ||
| address(treasuryOwner), | ||
| 0 | ||
| ) | ||
| abi.encodeWithSelector(treasuryImplementation.initialize.selector, 0) | ||
Luigy-Lemon marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ) | ||
| ); | ||
| } else { | ||
| Collector treasuryImplementation = new Collector(); | ||
| treasuryImplementation.initialize(address(0), 0); | ||
| Collector treasuryImplementation = new Collector(aclManager); | ||
| treasuryImplementation.initialize(0); | ||
| treasuryReport.treasuryImplementation = address(treasuryImplementation); | ||
|
|
||
| treasuryReport.treasury = address( | ||
| new TransparentUpgradeableProxy( | ||
| treasuryReport.treasuryImplementation, | ||
| ProxyAdmin(deployedProxyAdmin), | ||
| abi.encodeWithSelector( | ||
| treasuryImplementation.initialize.selector, | ||
| address(treasuryOwner), | ||
| 100_000 | ||
| ) | ||
| abi.encodeWithSelector(treasuryImplementation.initialize.selector, 100_000) | ||
| ) | ||
| ); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.