Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatil12 committed Oct 17, 2024
1 parent a4fd655 commit e94d7d9
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/contracts/core/AVSDirectory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -507,4 +507,4 @@ contract AVSDirectory is
operatorSetId: uint32(uint256(encoded) & type(uint96).max)
});
}
}
}
2 changes: 1 addition & 1 deletion src/contracts/core/DelegationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -827,4 +827,4 @@ contract DelegationManager is
)
);
}
}
}
2 changes: 1 addition & 1 deletion src/contracts/interfaces/IAVSDirectory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,4 @@ interface IAVSDirectory is IAVSDirectoryEvents, IAVSDirectoryErrors, ISignatureU
address operator,
uint32 operatorSetId
) external view returns (bool registered, uint32 lastDeregisteredTimestamp);
}
}
8 changes: 6 additions & 2 deletions src/contracts/interfaces/IBackingEigen.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ interface IBackingEigen is IERC20 {
/**
* @notice An initializer function that sets initial values for the contract's state variables.
*/
function initialize(address initialOwner) external;
function initialize(
address initialOwner
) external;

// @notice Allows the contract owner to modify an entry in the `isMinter` mapping.
function setIsMinter(address minterAddress, bool newStatus) external;
Expand All @@ -42,7 +44,9 @@ interface IBackingEigen is IERC20 {
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) external;
function burn(
uint256 amount
) external;

/// @notice the address of the wrapped Eigen token EIGEN
function EIGEN() external view returns (IERC20);
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/interfaces/IDelegationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -558,4 +558,4 @@ interface IDelegationManager is ISignatureUtils, IDelegationManagerErrors, IDele

/// @notice The EIP-712 typehash for the DelegationApproval struct used by the contract
function DELEGATION_APPROVAL_TYPEHASH() external view returns (bytes32);
}
}
6 changes: 4 additions & 2 deletions src/contracts/token/BackingEigen.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ contract BackingEigen is OwnableUpgradeable, ERC20VotesUpgradeable {
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
function burn(
uint256 amount
) public virtual {
_burn(_msgSender(), amount);
}

Expand All @@ -83,7 +85,7 @@ contract BackingEigen is OwnableUpgradeable, ERC20VotesUpgradeable {

// Mint the entire supply of EIGEN - this is a one-time event that
// ensures bEIGEN fully backs EIGEN.
_mint(address(EIGEN), 1673646668284660000000000000);
_mint(address(EIGEN), 1_673_646_668_284_660_000_000_000_000);
emit Backed();
}

Expand Down
4 changes: 3 additions & 1 deletion src/contracts/token/Eigen.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ contract Eigen is OwnableUpgradeable, ERC20VotesUpgradeable {
/**
* @notice This function allows Eigen holders to unwrap their tokens into bEIGEN
*/
function unwrap(uint256 amount) external {
function unwrap(
uint256 amount
) external {
_burn(msg.sender, amount);
require(bEIGEN.transfer(msg.sender, amount), "Eigen.unwrap: bEIGEN transfer failed");
}
Expand Down

0 comments on commit e94d7d9

Please sign in to comment.