Skip to content

Commit

Permalink
fix: role allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Feb 6, 2024
1 parent ee26e1a commit 83419aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contracts/debtAllocators/YieldManager/YieldManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ contract YieldManager is Governance {
*/
function validateAllocation(
address _vault,
Allocation[] memory _newAllocations
Allocation[] calldata _newAllocations
) external view virtual returns (bool) {
// Get the total assets the vault has.
uint256 _totalAssets = IVault(_vault).totalAssets();
Expand Down Expand Up @@ -253,7 +253,7 @@ contract YieldManager is Governance {
*/
function getCurrentAndExpectedRate(
address _vault,
Allocation[] memory _newAllocations
Allocation[] calldata _newAllocations
)
external
view
Expand Down Expand Up @@ -319,7 +319,7 @@ contract YieldManager is Governance {
*/
function updateAllocationPermissioned(
address _vault,
Allocation[] memory _newAllocations
Allocation[] calldata _newAllocations
) external virtual onlyGovernance {
address allocator = vaultAllocator[_vault];
require(allocator != address(0), "vault not added");
Expand Down
2 changes: 1 addition & 1 deletion tests/manager/test_role_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ def test_remove_role(
[strategy], daddy, ROLES.ADD_STRATEGY_MANAGER, sender=daddy
)

with ape.reverts("!allowed"):
with ape.reverts("!governance"):
role_manager.removeRoles(
[vault], daddy, ROLES.ADD_STRATEGY_MANAGER, sender=user
)
Expand Down

0 comments on commit 83419aa

Please sign in to comment.