From 4e6bc4b404192b22f623ab32929c097488cefee2 Mon Sep 17 00:00:00 2001 From: Sergey <2901744+evercoinx@users.noreply.github.com.> Date: Thu, 19 Sep 2024 06:42:05 +0200 Subject: [PATCH] Remove method to mint on MaticX contract --- contracts/MaticX.sol | 8 -------- contracts/interfaces/IMaticX.sol | 4 ---- 2 files changed, 12 deletions(-) diff --git a/contracts/MaticX.sol b/contracts/MaticX.sol index b6adf168..c0f6a2f9 100644 --- a/contracts/MaticX.sol +++ b/contracts/MaticX.sol @@ -549,14 +549,6 @@ contract MaticX is return (balanceInMaticX, totalShares, totalPooledStakeTokens); } - // TODO: Add logic and enable it in V2 - function mint( - address _user, - uint256 _amount - ) external override whenNotPaused onlyRole(PREDICATE_ROLE) { - emit MintFromPolygon(_user, _amount); - } - /// ------------------------------ Setters --------------------------------- /// @notice Sets a fee percent. diff --git a/contracts/interfaces/IMaticX.sol b/contracts/interfaces/IMaticX.sol index cc082ffb..6b26586a 100644 --- a/contracts/interfaces/IMaticX.sol +++ b/contracts/interfaces/IMaticX.sol @@ -72,8 +72,6 @@ interface IMaticX is IERC20Upgradeable { uint256 _amount ); - event MintFromPolygon(address indexed _user, uint256 _amount); - /// @notice Emitted when the fee percent is set. /// @param _feePercent - Fee percent event SetFeePercent(uint8 _feePercent); @@ -188,8 +186,6 @@ interface IMaticX is IERC20Upgradeable { uint256 _balance ) external view returns (uint256, uint256, uint256); - function mint(address _user, uint256 _amount) external; - /// @notice Sets a fee percent. /// @param _feePercent - Fee percent (10 = 10%) function setFeePercent(uint8 _feePercent) external;