-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### Context The Collector contract (Revision 5) has the limitation of only allowing one address to call its functions, the `_fundsAdmin`, which currently is the Governance Executor contract. To enable the possibility of the [FinanceSteward](https://governance.aave.com/t/arfc-aave-finance-steward/17570) contract to be allowed to call the Collector alongside the Executor, it is recommended to use the `ACL_MANAGER` to manage its access control. A new role is going to be created named `FUNDS_ADMIN` ### Changelog Collector * Initialize function changes to only populate the `nextStreamId` * Created constructor to setup the `ACL_MANAGER` contract address as immutable variable * deprecated `_fundsAdmin` variable * removed getter and setter functions for `_fundsAdmin` and relevant errors and events. * introduced new function to check if an address has the `FUNDS_ADMIN` role named `IsFundsAdmin` * New tests for the Collector Co-authored-by: Luigy-Lemon <[email protected]> Co-authored-by: Harsh Pandey <[email protected]>
- Loading branch information
1 parent
64fd978
commit 551ad6c
Showing
5 changed files
with
570 additions
and
96 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
551ad6c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Build logs
551ad6c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
551ad6c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔕 Unchanged
551ad6c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔮 Coverage report
23, 24, 78, 79, 80 and 7 more
67, 68
ReentrancyGuard._initGuard
76, 77, 115
AccessControl.supportsInterface, AccessControl.getRoleAdmin
25, 26
ERC165.supportsInterface
182, 183, 184, 201, 205 and 7 more
ERC20.increaseAllowance, ERC20.decreaseAllowance, ERC20._burn
55, 56, 57
Ownable.renounceOwnership
25, 26, 50, 51, 52 and 5 more
SafeERC20.safeTransferFrom, SafeERC20.safeIncreaseAllowance, SafeERC20.safeDecreaseAllowance
21, 26, 27, 33, 34
AdminUpgradeabilityProxy.constructor, AdminUpgradeabilityProxy._willFallback
35, 36, 39, 46, 47 and 21 more
BaseAdminUpgradeabilityProxy.ifAdmin, BaseAdminUpgradeabilityProxy.admin, BaseAdminUpgradeabilityProxy.implementation, BaseAdminUpgradeabilityProxy.changeAdmin, BaseAdminUpgradeabilityProxy.upgradeTo and 4 more
30, 31, 36, 37, 38 and 7 more
Initializable.initializer, Initializable.isConstructor
25, 26, 27, 28, 29 and 2 more
InitializableAdminUpgradeabilityProxy.initialize, InitializableAdminUpgradeabilityProxy._willFallback
25, 26
Proxy.receive
20, 21, 22, 23, 24 and 1 more
UpgradeabilityProxy.constructor
31, 32, 47, 48
WETH9.receive, WETH9.totalSupply
92, 99, 100
90, 97, 98
144, 209
97, 114, 116, 126, 213 and 2 more
ERC20AaveLMUpgradeable.getCurrentRewardsIndex
110, 146, 221
59, 81, 88, 89
StataTokenFactory.getStataTokens
59, 63, 68, 109
StataTokenV2.whoCanRescue, StataTokenV2.maxRescue
119, 120, 124, 127, 135 and 6 more
AaveV3Payload._bpsToRay, AaveV3Payload.newListings, AaveV3Payload.newListingsCustom, AaveV3Payload.capsUpdates, AaveV3Payload.collateralsUpdates and 5 more
39, 42, 48, 50, 51 and 4 more
78, 82, 87
45, 46, 47, 50, 51 and 6 more
39, 40, 41, 42, 43 and 19 more
AaveProtocolDataProvider.getAllReservesTokens, AaveProtocolDataProvider.getAllATokens, AaveProtocolDataProvider.getReserveData
17, 26, 29, 32, 35 and 85 more
UiIncentiveDataProviderV3.getFullReservesIncentiveData, UiIncentiveDataProviderV3.getReservesIncentivesData, UiIncentiveDataProviderV3._getReservesIncentivesData, UiIncentiveDataProviderV3.getUserReservesIncentivesData, UiIncentiveDataProviderV3._getUserReservesIncentivesData
38, 41, 42, 45, 48 and 110 more
UiPoolDataProviderV3.getReservesList, UiPoolDataProviderV3.getReservesData, UiPoolDataProviderV3.getEModes, UiPoolDataProviderV3.getUserReservesData, UiPoolDataProviderV3.bytes32ToString
31, 33, 42, 43, 44 and 26 more
WalletBalanceProvider.receive, WalletBalanceProvider.balanceOf, WalletBalanceProvider.batchBalanceOf, WalletBalanceProvider.getUserWalletBalances
306, 309
ReserveConfiguration.getBorrowingEnabled
92, 94, 131, 222
214
34, 55
33, 51, 69, 87, 105 and 1 more
174, 283
201
429
151, 190, 205
Collector.deltaOf
551ad6c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌈 Test Results