|
1 | 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
2 | 2 | pragma solidity ^0.8.24; |
3 | 3 |
|
4 | | -import '@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol'; |
| 4 | +import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol"; |
5 | 5 |
|
6 | 6 | /** |
7 | 7 | * @notice Broker and Canary utility token is a simple ERC20 token with permit functionality. |
8 | 8 | * All the supply is minted to the deployer. |
9 | 9 | */ |
10 | 10 | contract BrokerToken is ERC20Permit { |
11 | | - /** |
12 | | - * @dev Simple constructor, passing arguments to ERC20Permit and ERC20 constructors. |
13 | | - * Mints the supply to the deployer. |
14 | | - * @param name Name of the Token. |
15 | | - * @param symbol Symbol of the Token. |
16 | | - * @param supply Maximum supply of the Token. |
17 | | - */ |
18 | | - constructor( |
19 | | - string memory name, |
20 | | - string memory symbol, |
21 | | - uint256 supply |
22 | | - ) ERC20Permit(name) ERC20(name, symbol) { |
23 | | - _mint(msg.sender, supply); |
24 | | - } |
| 11 | + /** |
| 12 | + * @dev Simple constructor, passing arguments to ERC20Permit and ERC20 constructors. |
| 13 | + * Mints the supply to the deployer. |
| 14 | + * @param name Name of the Token. |
| 15 | + * @param symbol Symbol of the Token. |
| 16 | + * @param supply Maximum supply of the Token. |
| 17 | + */ |
| 18 | + constructor(string memory name, string memory symbol, uint256 supply) ERC20Permit(name) ERC20(name, symbol) { |
| 19 | + _mint(msg.sender, supply); |
| 20 | + } |
25 | 21 |
|
26 | | - /** |
27 | | - * @notice Return the number of decimals used to get its user representation. |
28 | | - * @dev Overrides ERC20 default value of 18; |
29 | | - * @return uint8 Number of decimals of Token. |
30 | | - */ |
31 | | - function decimals() public pure override returns (uint8) { |
32 | | - return 8; |
33 | | - } |
| 22 | + /** |
| 23 | + * @notice Return the number of decimals used to get its user representation. |
| 24 | + * @dev Overrides ERC20 default value of 18; |
| 25 | + * @return uint8 Number of decimals of Token. |
| 26 | + */ |
| 27 | + function decimals() public pure override returns (uint8) { |
| 28 | + return 8; |
| 29 | + } |
34 | 30 | } |
0 commit comments