Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
contracts-pre22/contracts/true-currencies/tokens/TrueHKD.sol
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (24 sloc)
817 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.6.10; | |
import {TrueCurrencyWithGasRefund} from "../TrueCurrencyWithGasRefund.sol"; | |
/** | |
* @title TrueHKD | |
* @dev This is the top-level ERC20 contract, but most of the interesting functionality is | |
* inherited - see the documentation on the corresponding contracts. | |
*/ | |
contract TrueHKD is TrueCurrencyWithGasRefund { | |
uint8 constant DECIMALS = 18; | |
uint8 constant ROUNDING = 2; | |
function decimals() public pure override returns (uint8) { | |
return DECIMALS; | |
} | |
function rounding() public pure returns (uint8) { | |
return ROUNDING; | |
} | |
function name() public pure override returns (string memory) { | |
return "TrueHKD"; | |
} | |
function symbol() public pure override returns (string memory) { | |
return "THKD"; | |
} | |
} |