Skip to content

Commit

Permalink
WIP TEMP Majority split
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Jan 12, 2025
1 parent e1789b1 commit 211d481
Show file tree
Hide file tree
Showing 7 changed files with 446 additions and 37 deletions.
8 changes: 4 additions & 4 deletions src/LockManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.13;
import {ILockManager, LockManagerSettings, UnlockMode} from "./interfaces/ILockManager.sol";
import {IDAO} from "@aragon/osx-commons-contracts/src/dao/IDAO.sol";
import {DaoAuthorizable} from "@aragon/osx-commons-contracts/src/permission/auth/DaoAuthorizable.sol";
import {ILockToVote} from "./interfaces/ILockToVote.sol";
import {ILockToVoteBase} from "./interfaces/ILockToVote.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

Expand All @@ -19,7 +19,7 @@ contract LockManager is ILockManager, DaoAuthorizable {
LockManagerSettings public settings;

/// @notice The address of the lock to vote plugin to use
ILockToVote public plugin;
ILockToVoteBase public plugin;

/// @notice The address of the token contract
IERC20 public immutable token;
Expand Down Expand Up @@ -159,8 +159,8 @@ contract LockManager is ILockManager, DaoAuthorizable {
}

/// @inheritdoc ILockManager
function setPluginAddress(ILockToVote _newPluginAddress) public auth(UPDATE_SETTINGS_PERMISSION_ID) {
if (!IERC165(address(_newPluginAddress)).supportsInterface(type(ILockToVote).interfaceId)) {
function setPluginAddress(ILockToVoteBase _newPluginAddress) public auth(UPDATE_SETTINGS_PERMISSION_ID) {
if (!IERC165(address(_newPluginAddress)).supportsInterface(type(ILockToVoteBase).interfaceId)) {
revert InvalidPlugin();
} else if (address(plugin) != address(0)) {
revert CannotUpdatePlugin();
Expand Down
Loading

0 comments on commit 211d481

Please sign in to comment.