|
| 1 | +// SPDX-License-Identifier: MIT |
| 2 | +pragma solidity 0.8.9; |
| 3 | + |
| 4 | +import "../../mToken.sol"; |
| 5 | + |
| 6 | +/** |
| 7 | + * @title mPortofino |
| 8 | + * @author RedDuck Software |
| 9 | + */ |
| 10 | +//solhint-disable contract-name-camelcase |
| 11 | +contract mPortofino is mToken { |
| 12 | + /** |
| 13 | + * @notice actor that can mint mPortofino |
| 14 | + */ |
| 15 | + bytes32 public constant M_PORTOFINO_MINT_OPERATOR_ROLE = |
| 16 | + keccak256("M_PORTOFINO_MINT_OPERATOR_ROLE"); |
| 17 | + |
| 18 | + /** |
| 19 | + * @notice actor that can burn mPortofino |
| 20 | + */ |
| 21 | + bytes32 public constant M_PORTOFINO_BURN_OPERATOR_ROLE = |
| 22 | + keccak256("M_PORTOFINO_BURN_OPERATOR_ROLE"); |
| 23 | + |
| 24 | + /** |
| 25 | + * @notice actor that can pause mPortofino |
| 26 | + */ |
| 27 | + bytes32 public constant M_PORTOFINO_PAUSE_OPERATOR_ROLE = |
| 28 | + keccak256("M_PORTOFINO_PAUSE_OPERATOR_ROLE"); |
| 29 | + |
| 30 | + /** |
| 31 | + * @dev leaving a storage gap for futures updates |
| 32 | + */ |
| 33 | + uint256[50] private __gap; |
| 34 | + |
| 35 | + /** |
| 36 | + * @inheritdoc mToken |
| 37 | + */ |
| 38 | + function _getNameSymbol() |
| 39 | + internal |
| 40 | + pure |
| 41 | + override |
| 42 | + returns (string memory, string memory) |
| 43 | + { |
| 44 | + return ("Midas Portofino", "mPortofino"); |
| 45 | + } |
| 46 | + |
| 47 | + /** |
| 48 | + * @dev AC role, owner of which can mint mPortofino token |
| 49 | + */ |
| 50 | + function _minterRole() internal pure override returns (bytes32) { |
| 51 | + return M_PORTOFINO_MINT_OPERATOR_ROLE; |
| 52 | + } |
| 53 | + |
| 54 | + /** |
| 55 | + * @dev AC role, owner of which can burn mPortofino token |
| 56 | + */ |
| 57 | + function _burnerRole() internal pure override returns (bytes32) { |
| 58 | + return M_PORTOFINO_BURN_OPERATOR_ROLE; |
| 59 | + } |
| 60 | + |
| 61 | + /** |
| 62 | + * @dev AC role, owner of which can pause mPortofino token |
| 63 | + */ |
| 64 | + function _pauserRole() internal pure override returns (bytes32) { |
| 65 | + return M_PORTOFINO_PAUSE_OPERATOR_ROLE; |
| 66 | + } |
| 67 | +} |
0 commit comments