@@ -51,18 +51,13 @@ contract RLCOFT is OFTUpgradeable,
5151 _unpause ();
5252 }
5353
54- /**
55- * @dev * @dev See {ERC20-_update}.
56- * The following functions are overrides required by Solidity.
57- */
58- function _update (address from , address to , uint256 value ) internal virtual override whenNotPaused {
59- super ._update (from, to, value);
54+ function mint (address to , uint256 amount ) external onlyRole (BRIDGE_ROLE) {
55+ _mint (to, amount);
6056 }
6157
62- /// @notice Authorizes an upgrade to a new implementation
63- /// @dev Can only be called by the owner
64- /// @param newImplementation Address of the new implementation
65- function _authorizeUpgrade (address newImplementation ) internal override onlyRole (UPGRADER_ROLE) {}
58+ function burn (uint256 _value ) external onlyRole (BRIDGE_ROLE) {
59+ _burn (msg .sender , _value);
60+ }
6661
6762 /**
6863 * @dev Override the decimals function to return 9 instead of the default 18
@@ -72,14 +67,6 @@ contract RLCOFT is OFTUpgradeable,
7267 return 9 ;
7368 }
7469
75- function mint (address to , uint256 amount ) external onlyRole (BRIDGE_ROLE) {
76- _mint (to, amount);
77- }
78-
79- function burn (uint256 _value ) external onlyRole (BRIDGE_ROLE) {
80- _burn (msg .sender , _value);
81- }
82-
8370 function owner ()
8471 public
8572 view
@@ -100,4 +87,17 @@ contract RLCOFT is OFTUpgradeable,
10087 }
10188 return false ;
10289 }
90+
91+ /**
92+ * @dev * @dev See {ERC20-_update}.
93+ * The following functions are overrides required by Solidity.
94+ */
95+ function _update (address from , address to , uint256 value ) internal virtual override whenNotPaused {
96+ super ._update (from, to, value);
97+ }
98+
99+ /// @notice Authorizes an upgrade to a new implementation
100+ /// @dev Can only be called by the owner
101+ /// @param newImplementation Address of the new implementation
102+ function _authorizeUpgrade (address newImplementation ) internal override onlyRole (UPGRADER_ROLE) {}
103103}
0 commit comments