From e94d7d980216f2166b30c2f02fe7b50d4ba03aa9 Mon Sep 17 00:00:00 2001 From: Yash Patil Date: Thu, 17 Oct 2024 00:32:07 -0700 Subject: [PATCH] chore: format --- src/contracts/core/AVSDirectory.sol | 2 +- src/contracts/core/DelegationManager.sol | 2 +- src/contracts/interfaces/IAVSDirectory.sol | 2 +- src/contracts/interfaces/IBackingEigen.sol | 8 ++++++-- src/contracts/interfaces/IDelegationManager.sol | 2 +- src/contracts/token/BackingEigen.sol | 6 ++++-- src/contracts/token/Eigen.sol | 4 +++- 7 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/contracts/core/AVSDirectory.sol b/src/contracts/core/AVSDirectory.sol index b7741159a..3e2746ed6 100644 --- a/src/contracts/core/AVSDirectory.sol +++ b/src/contracts/core/AVSDirectory.sol @@ -507,4 +507,4 @@ contract AVSDirectory is operatorSetId: uint32(uint256(encoded) & type(uint96).max) }); } -} \ No newline at end of file +} diff --git a/src/contracts/core/DelegationManager.sol b/src/contracts/core/DelegationManager.sol index 6e1f99457..2384a34ab 100644 --- a/src/contracts/core/DelegationManager.sol +++ b/src/contracts/core/DelegationManager.sol @@ -827,4 +827,4 @@ contract DelegationManager is ) ); } -} \ No newline at end of file +} diff --git a/src/contracts/interfaces/IAVSDirectory.sol b/src/contracts/interfaces/IAVSDirectory.sol index eaff0e515..0ba2d3c96 100644 --- a/src/contracts/interfaces/IAVSDirectory.sol +++ b/src/contracts/interfaces/IAVSDirectory.sol @@ -417,4 +417,4 @@ interface IAVSDirectory is IAVSDirectoryEvents, IAVSDirectoryErrors, ISignatureU address operator, uint32 operatorSetId ) external view returns (bool registered, uint32 lastDeregisteredTimestamp); -} \ No newline at end of file +} diff --git a/src/contracts/interfaces/IBackingEigen.sol b/src/contracts/interfaces/IBackingEigen.sol index 2542d734a..c8e031bd6 100644 --- a/src/contracts/interfaces/IBackingEigen.sol +++ b/src/contracts/interfaces/IBackingEigen.sol @@ -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; @@ -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); diff --git a/src/contracts/interfaces/IDelegationManager.sol b/src/contracts/interfaces/IDelegationManager.sol index 1a8350c12..084a20de7 100644 --- a/src/contracts/interfaces/IDelegationManager.sol +++ b/src/contracts/interfaces/IDelegationManager.sol @@ -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); -} \ No newline at end of file +} diff --git a/src/contracts/token/BackingEigen.sol b/src/contracts/token/BackingEigen.sol index 141d3631c..a9fbc9f13 100644 --- a/src/contracts/token/BackingEigen.sol +++ b/src/contracts/token/BackingEigen.sol @@ -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); } @@ -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(); } diff --git a/src/contracts/token/Eigen.sol b/src/contracts/token/Eigen.sol index d92d5a569..d4fd35b9a 100644 --- a/src/contracts/token/Eigen.sol +++ b/src/contracts/token/Eigen.sol @@ -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"); }