Skip to content

Commit

Permalink
(erc20Lift): quick extra cleanup of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminbollen committed Sep 26, 2024
1 parent 7efb87f commit c2a520f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lift/ERC20Lift.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,9 @@ contract ERC20Lift is ProxyFactory, IERC20Lift, ICirclesErrors {
masterCopyERC20Wrapper[uint256(CirclesType.Inflation)] = _masterCopyERC20Inflation;
}

// External functions

// Public functions

function ensureERC20(address _avatar, CirclesType _circlesType) public returns (address) {
// todo: first build a simple proxy factory, afterwards redo for create2 deployment
// bytes32 salt = keccak256(abi.encodePacked(_id));
if (_circlesType != CirclesType.Demurrage && _circlesType != CirclesType.Inflation) {
// Must be a valid CirclesType.
revert CirclesInvalidParameter(uint256(_circlesType), 0);
Expand All @@ -80,7 +76,7 @@ contract ERC20Lift is ProxyFactory, IERC20Lift, ICirclesErrors {
// so when called independent from the Hub, check if the avatar
// is a registered human or group
if (!(hub.isHuman(_avatar) || hub.isGroup(_avatar))) {
// Avatar must be registered (as human or group).
// Avatar must be registered (as human or group)
revert CirclesAvatarMustBeRegistered(_avatar, 0);
}
}
Expand Down

0 comments on commit c2a520f

Please sign in to comment.