ETH Price: $3,615.02 (-0.58%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer200917832024-06-14 18:16:59205 days ago1718389019IN
0x0DB7cDE0...485455012
0 ETH0.0008965513.82359087
Modify KYC Data200917202024-06-14 18:04:23205 days ago1718388263IN
0x0DB7cDE0...485455012
0 ETH0.0009303913.202745
Remove Whitelist...200916652024-06-14 17:53:23205 days ago1718387603IN
0x0DB7cDE0...485455012
0 ETH0.0003088711.2938966
Force Transfer T...200916572024-06-14 17:51:47205 days ago1718387507IN
0x0DB7cDE0...485455012
0 ETH0.0004606811.56037304
Force Transfer T...196804812024-04-18 6:13:35262 days ago1713420815IN
0x0DB7cDE0...485455012
0 ETH0.0003937710.04308283
Transfer196068222024-04-07 22:35:59273 days ago1712529359IN
0x0DB7cDE0...485455012
0 ETH0.0009411714.50879643
Modify KYC Data196067902024-04-07 22:29:35273 days ago1712528975IN
0x0DB7cDE0...485455012
0 ETH0.0012169317.26881827
Force Transfer T...196067742024-04-07 22:25:59273 days ago1712528759IN
0x0DB7cDE0...485455012
0 ETH0.0006961917.46509668
Modify KYC Data196067662024-04-07 22:24:23273 days ago1712528663IN
0x0DB7cDE0...485455012
0 ETH0.0006423217.66280653
Transfer194860902024-03-21 22:46:11290 days ago1711061171IN
0x0DB7cDE0...485455012
0 ETH0.0017675127.25759194
Modify KYC Data194860802024-03-21 22:44:11290 days ago1711061051IN
0x0DB7cDE0...485455012
0 ETH0.0018885626.79953415
Force Transfer T...194798062024-03-21 1:33:59290 days ago1710984839IN
0x0DB7cDE0...485455012
0 ETH0.0013764335.11585639
Transfer194791942024-03-20 23:30:35291 days ago1710977435IN
0x0DB7cDE0...485455012
0 ETH0.0016329238.59699772
Force Transfer T...194791732024-03-20 23:26:23291 days ago1710977183IN
0x0DB7cDE0...485455012
0 ETH0.0015693240.01234329
Transfer194754332024-03-20 10:52:35291 days ago1710931955IN
0x0DB7cDE0...485455012
0 ETH0.0012778430.20399788
Transfer194754332024-03-20 10:52:35291 days ago1710931955IN
0x0DB7cDE0...485455012
0 ETH0.0013187131.15242466
Transfer194754332024-03-20 10:52:35291 days ago1710931955IN
0x0DB7cDE0...485455012
0 ETH0.002062431.7933213
Transfer194754332024-03-20 10:52:35291 days ago1710931955IN
0x0DB7cDE0...485455012
0 ETH0.0013190931.17019886
Modify KYC Data193941002024-03-09 0:56:23303 days ago1709945783IN
0x0DB7cDE0...485455012
0 ETH0.0028416740.32459212
Bulk Whitelist W...193574242024-03-03 21:48:47308 days ago1709502527IN
0x0DB7cDE0...485455012
0 ETH0.0321089750.73662677
Transfer193441672024-03-02 1:19:23309 days ago1709342363IN
0x0DB7cDE0...485455012
0 ETH0.0033404651.51456773
Transfer193177162024-02-27 8:32:11313 days ago1709022731IN
0x0DB7cDE0...485455012
0 ETH0.0024394237.6193423
Transfer193177112024-02-27 8:31:11313 days ago1709022671IN
0x0DB7cDE0...485455012
0 ETH0.0024402337.62491486
Transfer193177062024-02-27 8:30:11313 days ago1709022611IN
0x0DB7cDE0...485455012
0 ETH0.0025169138.81438709
Transfer193176992024-02-27 8:28:47313 days ago1709022527IN
0x0DB7cDE0...485455012
0 ETH0.0024777738.21069434
View all transactions

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x7fC0c917...A87595952
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
ERC1404TokenMinKYCv13

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : ERC1404TokenMinKYCv13.flattened.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;

// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

abstract contract IERC1404 {
    /// @notice Detects if a transfer will be reverted and if so returns an appropriate reference code
    /// @param from Sending address
    /// @param to Receiving address
    /// @param value Amount of tokens being transferred
    /// @return Code by which to reference message for rejection reasoning
    /// @dev Overwrite with your custom transfer restriction logic
    function  detectTransferRestriction (address from, address to, uint256 value) public virtual view returns (uint8);

    /// @notice Returns a human-readable message for a given restriction code
    /// @param restrictionCode Identifier for looking up a message
    /// @return Text showing the restriction's reasoning
    /// @dev Overwrite with your custom message and restrictionCode handling
    function  messageForTransferRestriction  (uint8 restrictionCode) public virtual view returns (string memory);
}

contract ERC1404TokenMinKYCv13 is ERC20, Ownable, IERC1404 {

	// Set receive and send restrictions on investors
	// date is Linux Epoch datetime
	// Default values is 0 which means investor is not whitelisted
    mapping (address => uint256) private _receiveRestriction;  
	mapping (address => uint256) private _sendRestriction;

	// These addresses act as whitelist authority and can call modifyKYCData
	// There is possibility that issuer may let third party like Exchange to control 
	// whitelisting addresses 
    mapping (address => bool) private _whitelistControlAuthority;

	event TransferRestrictionDetected( address indexed from, address indexed to, string message, uint8 errorCode );
	event BurnTokens(address indexed account, uint256 amount);
	event MintTokens(address indexed account, uint256 amount);
	event KYCDataForUserSet (address indexed account, uint256 receiveRestriction, uint256 sendRestriction);
    event ShareCertificateReset (string _ShareCertificate);
    event CompanyHomepageReset (string _CompanyHomepage);
    event CompanyLegalDocsReset (string _CompanyLegalDocs);
	event AllowedInvestorsReset(uint64 _allowedInvestors);
	event HoldingPeriodReset(uint64 _tradingHoldingPeriod);
	event WhitelistAuthorityStatusSet(address user);
	event WhitelistAuthorityStatusRemoved(address user);
	event TransferFrom( address indexed spender, address indexed sender, address indexed recipient, uint256 amount );
	event IssuerForceTransfer (address indexed from, address indexed to, uint256 amount);

	string public constant version = "1.3";
	string public constant IssuancePlatform = "DigiShares";
	string public constant issuanceProtocol = "ERC-1404";
	string public ShareCertificate;
	string public CompanyHomepage;
	string public CompanyLegalDocs;

	// These variables control how many investors can have non-zero token balance
	// if allowedInvestors = 0 then there is no limit of number of investors who can 
	// hold non-zero balance
	uint8 private constant ANY_NUMBER_OF_TOKEN_HOLDERS_ALLOWED = 0; 
	uint8 private immutable _decimals;	
	uint64 public currentTotalInvestors = 0;		
	uint64 public allowedInvestors;

	// Holding period in EpochTime, if set in future then it will stop 
	// all transfers between investors
	uint64 public tradingHoldingPeriod = 1;

	// Transfer Restriction Codes and corresponding error message in _messageForTransferRestriction
	uint8 private constant NO_TRANSFER_RESTRICTION_FOUND = 0;
	uint8 private constant MAX_ALLOWED_INVESTORS_EXCEED = 1;
	uint8 private constant TRANSFERS_DISABLED = 2;
	uint8 private constant TRANSFER_VALUE_CANNOT_ZERO = 3;
	uint8 private constant SENDER_NOT_WHITELISTED_OR_BLOCKED = 4;
	uint8 private constant RECEIVER_NOT_WHITELISTED_OR_BLOCKED = 5;
	uint8 private constant SENDER_UNDER_HOLDING_PERIOD = 6;
	uint8 private constant RECEIVER_UNDER_HOLDING_PERIOD = 7;
	string[] private _messageForTransferRestriction = [
		"No transfer restrictions found", 
		"Max allowed addresses with non-zero restriction is in place, this transfer will exceed this limitation", 
		"All transfers are disabled because Holding Period is not yet expired", 
		"Zero transfer amount not allowed",
		"Sender is not whitelisted or blocked",
		"Receiver is not whitelisted or blocked",
		"Sender is whitelisted but is not eligible to send tokens and under holding period (KYC time restriction)",
		"Receiver is whitelisted but is not yet eligible to receive tokens in his wallet (KYC time restriction)"
	];	

	constructor(
		uint256 _initialSupply, 
		string memory _name,  
		string memory _symbol, 
		uint64 _allowedInvestors, 
		uint8 _decimalsPlaces, 
		string memory _ShareCertificate, 
		string memory _CompanyHomepage, 
		string memory _CompanyLegalDocs, 
		address _atomicSwapContractAddress,
		uint64  _tradingHoldingPeriod
	) ERC20(_name, _symbol)  {

			address tmpSenderAddress = msg.sender;

			_decimals = _decimalsPlaces;
			tradingHoldingPeriod = _tradingHoldingPeriod;

			// These variables set EPOCH time    1 = 1 January 1970
			_receiveRestriction[tmpSenderAddress] = 1;
			_sendRestriction[tmpSenderAddress] = 1;
			_receiveRestriction[_atomicSwapContractAddress] = 1;
			_sendRestriction[_atomicSwapContractAddress] = 1;

			allowedInvestors = _allowedInvestors;

			// add message sender to whitelist authority list
			_whitelistControlAuthority[tmpSenderAddress] = true;

			ShareCertificate = _ShareCertificate;
			CompanyHomepage = _CompanyHomepage;
			CompanyLegalDocs = _CompanyLegalDocs;

			_mint(tmpSenderAddress , _initialSupply);
			emit MintTokens(tmpSenderAddress, _initialSupply);
	}

	// ------------------------------------------------------------------------
	// Modifiers for this contract 
	// ------------------------------------------------------------------------
    modifier onlyWhitelistControlAuthority () {

	  	require(_whitelistControlAuthority[msg.sender] == true, "Only authorized addresses can control whitelisting of holder addresses");
        _;

    }

    modifier notRestricted (
		address from, 
		address to, 
		uint256 value 
	) {

        uint8 restrictionCode = detectTransferRestriction(from, to, value);
		if( restrictionCode != NO_TRANSFER_RESTRICTION_FOUND ) {

			string memory errorMessage = messageForTransferRestriction(restrictionCode);
			emit TransferRestrictionDetected( from, to, errorMessage, restrictionCode );
        	revert(errorMessage);

		} else 
        	_;

    }

	// ERC20 interface
    function decimals() public view override returns (uint8) {
        return _decimals;
    }
	

    function mint (address account, uint256 amount)		
    external        
	Ownable.onlyOwner
    returns (bool)
    {
		require ( account != address(0), "Minting address cannot be zero");
		require ( _receiveRestriction[account] != 0, "Address is not yet whitelisted by issuer" );
		require ( amount > 0, "Zero amount cannot be minted" );
		
		// This is special case while minting tokens. if issuer is trying to mint to a address while max token holder restriction
		// is in place and smart contract already has max tpken holders then this will revert this transaction as it will result in
		// currentTotalInvestors getting larger than allowedInvestors. The issuer account is exempted from this condition as
		// issuer account is not counted in currentTotalInvestors
		if( 
			( account != Ownable.owner() ) &&       // issuer account is exempted from this condition
			( ERC20.balanceOf(account) == 0 ) &&    // account has zero balance so it will increase currentTotalInvestors
			( allowedInvestors != ANY_NUMBER_OF_TOKEN_HOLDERS_ALLOWED ) &&    // max number of token holder restriction is in place 
			( currentTotalInvestors + 1 ) > allowedInvestors ) // make sure minting to account with 0 balance do not exceed allowedInvestors
		{
			revert ("Minting not allowed to this address as allowed token holder restriction is in place and minting will increase the allowed limit");
		}

		// minting will sure increase currentTotalInvestors if address balance is 0
		if( ERC20.balanceOf(account) == 0 && account != Ownable.owner() ) {
			currentTotalInvestors = currentTotalInvestors + 1;
		}

		ERC20._mint(account, amount);		 
		emit MintTokens(account, amount);
		return true;
    }

    function burn (address account, uint256 amount)
	external     
	Ownable.onlyOwner
    returns (bool)
    {
		require( account != address(0), "Burn address cannot be zero");
		require ( amount > 0, "Zero amount cannot be burned" );		

		ERC20._burn(account, amount);

		// burning will decrease currentTotalInvestors if address balance becomes 0
		if( ERC20.balanceOf(account) == 0 && account != Ownable.owner() ) {
			currentTotalInvestors = currentTotalInvestors - 1;
		}

		 emit BurnTokens(account, amount);		 
		 return true;
    }

	// ------------------------------------------------------------------------
	// Token Links and Document information management 
	// ------------------------------------------------------------------------
    function resetShareCertificate(
		string calldata _ShareCertificate
	) 
	external 
	Ownable.onlyOwner {

		 ShareCertificate = _ShareCertificate;
		 emit ShareCertificateReset (_ShareCertificate);

    }

    function resetCompanyHomepage(
		string calldata _CompanyHomepage
	) 
	external 
	Ownable.onlyOwner {

		 CompanyHomepage = _CompanyHomepage;
		 emit CompanyHomepageReset (_CompanyHomepage);

    }
	
    function resetCompanyLegalDocs(
		string calldata _CompanyLegalDocs
	) 
	external 
	Ownable.onlyOwner {

		CompanyLegalDocs = _CompanyLegalDocs;
		emit CompanyLegalDocsReset (_CompanyLegalDocs);

    }

	// --------------------------------------------------------------------------------------
	// Manage number of addresses who can hold non-zero balance and holding period management
	// --------------------------------------------------------------------------------------
	// _allowedInvestors = 0    No limit on number of investors (or number of addresses with non-zero balance)         
	// _allowedInvestors > 0    only X number of addresses can have non zero balance 
    function resetAllowedInvestors(
		uint64 _allowedInvestors
	) 
	external 
	Ownable.onlyOwner {

		if( _allowedInvestors != ANY_NUMBER_OF_TOKEN_HOLDERS_ALLOWED && _allowedInvestors < currentTotalInvestors ) {
			revert( "Allowed Token holders cannot be less than current token holders with non-zero balance");
		}

		allowedInvestors = _allowedInvestors;
		emit AllowedInvestorsReset(_allowedInvestors);
		
    }

    function setTradingHoldingPeriod (
		uint64 _tradingHoldingPeriod
	) 
	external 
	Ownable.onlyOwner {

		 tradingHoldingPeriod = _tradingHoldingPeriod;
		 emit HoldingPeriodReset(_tradingHoldingPeriod);

    }

	//-----------------------------------------------------------------------
    // Manage whitelist authority and KYC status
	//-----------------------------------------------------------------------
	
	function setWhitelistAuthorityStatus(
		address user
	) 
	external 
	Ownable.onlyOwner {

		_whitelistControlAuthority[user] = true;
		emit WhitelistAuthorityStatusSet(user);

	}

	function removeWhitelistAuthorityStatus(
		address user
	) 
	external 
	Ownable.onlyOwner {

		delete _whitelistControlAuthority[user];
		emit WhitelistAuthorityStatusRemoved(user);

	}	

	function getWhitelistAuthorityStatus(
		address user
	) 
	external 
	view
	returns (bool) {

		 return _whitelistControlAuthority[user];

	}	
	

  	// Set Receive and Send restrictions on addresses. Both values are EPOCH time
	function modifyKYCData (
		address account, 
		uint256 receiveRestriction, 
		uint256 sendRestriction 
	) 
	external 
	onlyWhitelistControlAuthority { 
		setupKYCDataForUser( account, receiveRestriction, sendRestriction );
	}

	function bulkWhitelistWallets (
		address[] calldata account, 
		uint256 receiveRestriction, 
		uint256 sendRestriction 
	) 
	external 
	onlyWhitelistControlAuthority { 

		if(account.length > 50) {
			revert ("Bulk whitelisting more than 50 addresses is not allowed");
		}

		for (uint i=0; i<account.length; i++) {
			setupKYCDataForUser( account[i], receiveRestriction, sendRestriction );			
		}		

	}

	function setupKYCDataForUser (
		address account, 
		uint256 receiveRestriction, 
		uint256 sendRestriction
	) internal {	

		_receiveRestriction[account] = receiveRestriction;
		_sendRestriction[account] = sendRestriction;		
		emit KYCDataForUserSet (account, receiveRestriction, sendRestriction);

	}

	function getKYCData ( 
		address user 
	) 
	external 
	view
	returns ( uint256, uint256 ) {

		return (_receiveRestriction[user] , _sendRestriction[user] );

	}
	//-----------------------------------------------------------------------

	//-----------------------------------------------------------------------
	// These are ERC1404 interface implementations 
	//-----------------------------------------------------------------------

    function detectTransferRestriction (address _from, address _to, uint256 value) 
	override
	public 
	view 
	returns ( uint8 status )  {	

	      	// check if holding period is in effect on overall transfers and sender is not owner. 
			// only owner is allowed to transfer under holding period
		  	if(block.timestamp < tradingHoldingPeriod && _from != Ownable.owner()) {
			 	return TRANSFERS_DISABLED;   
			}

		  	if( value < 1) {
		  	  	return TRANSFER_VALUE_CANNOT_ZERO;   
			}

		  	if( _sendRestriction[_from] == 0 ) {
				return SENDER_NOT_WHITELISTED_OR_BLOCKED;   // Sender is not whitelisted or blocked
			}

		  	if( _receiveRestriction[_to] == 0 ) {
				return RECEIVER_NOT_WHITELISTED_OR_BLOCKED;	// Receiver is not whitelisted or blocked
			}

			if( _sendRestriction[_from] > block.timestamp ) {
				return SENDER_UNDER_HOLDING_PERIOD;	// Receiver is whitelisted but is not eligible to send tokens and still under holding period (KYC time restriction)
			}

			if( _receiveRestriction[_to] > block.timestamp ) {
				return RECEIVER_UNDER_HOLDING_PERIOD;	// Receiver is whitelisted but is not yet eligible to receive tokens in his wallet (KYC time restriction)
			}

			// Following conditions make sure number of token holders will stay within limit if max token holder restriction is in place
			// allowedInvestors = 0 means no restriction on number of token holders and is the default setting
			if(allowedInvestors == ANY_NUMBER_OF_TOKEN_HOLDERS_ALLOWED) {
				return NO_TRANSFER_RESTRICTION_FOUND;
			} else {
				if( ERC20.balanceOf(_to) > 0 || _to == Ownable.owner()) {
					// token can be transferred if the receiver already holding tokens and already counted in currentTotalInvestors
					// or receiver is issuer account. issuer/owner account do not count in currentTotalInvestors
					return NO_TRANSFER_RESTRICTION_FOUND;
				} else {
					// if To address has zero balance then check this transfer do not exceed allowedInvestors as 
					// this transfer will surely increase currentTotalInvestors
					if(  currentTotalInvestors < allowedInvestors  ) {
						// currentTotalInvestors is within limits of allowedInvestors
						return NO_TRANSFER_RESTRICTION_FOUND;
					} else {
						// In this section currentTotalInvestors = allowedInvestors and no more transfers to new investors are allowed
						// except following conditions 
						// 1. sender is sending his whole balance to another whitelisted investor regardless he has any balance or not
						// 2. sender must not be owner/issuer
						//    owner sending his whole balance to investor will exceed allowedInvestors restriction if currentTotalInvestors = allowedInvestors
						if( ERC20.balanceOf(_from) == value && _from != Ownable.owner()) {    
							return NO_TRANSFER_RESTRICTION_FOUND;
						} else {
							return MAX_ALLOWED_INVESTORS_EXCEED;
						}
					}
				}
			}

    }

    function messageForTransferRestriction (uint8 restrictionCode)
	override
    public	
    view 
	returns ( string memory message )
    {

		if(restrictionCode <= (_messageForTransferRestriction.length - 1) ) {
			message = _messageForTransferRestriction[restrictionCode];
		} else {
			message = "Error code is not defined";
		}

    }
	//-----------------------------------------------------------------------

	//-----------------------------------------------------------------------
	// Transfers
	//-----------------------------------------------------------------------

    function transfer(
        address recipient,
        uint256 amount
    ) 	
	override
	public 
	notRestricted (msg.sender, recipient, amount)
	returns (bool) {

		transferSharesBetweenInvestors ( msg.sender, recipient, amount, true );
		return true;

    }

    function transferFrom (
        address sender,
        address recipient,
        uint256 amount
    ) 
	public
	override
	notRestricted (sender, recipient, amount)
	returns (bool)	{	

		transferSharesBetweenInvestors ( sender, recipient, amount, false );
		emit TransferFrom( msg.sender, sender, recipient, amount );
		return true;

    }

	// Force transfer of token back to issuer
	function forceTransferToken (
        address from,
        uint256 amount
	) 
	Ownable.onlyOwner
	external 
	returns (bool)  {
		
		transferSharesBetweenInvestors ( from, Ownable.owner(), amount, true );
		emit IssuerForceTransfer (from, Ownable.owner(), amount);
		return true;

	}

	// Transfer tokens from one account to other
	// Also manage current number of token holders
	function transferSharesBetweenInvestors (
        address sender,
        address recipient,
        uint256 amount,
		bool simpleTransfer	   // true = transfer,   false = transferFrom
	) 
	internal {

		// Transfer will surely increase currentTotalInvestors if recipient current balance is 0
		if( ERC20.balanceOf(recipient) == 0 && recipient != Ownable.owner() ) {
			currentTotalInvestors = currentTotalInvestors + 1;
		}

		if( simpleTransfer == true ) {
			ERC20._transfer(sender, recipient, amount);
		} else {
			ERC20.transferFrom(sender, recipient, amount);
		}

		if( ERC20.balanceOf(sender) == 0 && sender != Ownable.owner() ) {
			currentTotalInvestors = currentTotalInvestors - 1;		
		}

	}

}

/*

	Version 1.1

	1. Forceful take over of token   ( forceTransferToken )

	2. Bulk whitelisting  ( bulkWhitelistWallets )

	Version 1.2

	1. Dedicated transfer restriction codes defined in detectTransferRestriction and their descriptions in messageForTransferRestriction

	2. Events for multiple activities being performed  

	3. tradingHoldingPeriod - Holding period has been implemented. Admin can setup a future date and all investor transfers will be disabled 
	till that date. Previous it was a boolean variable with true and false

	Version 1.3

	1. Integration with openzeppelin library
	
	2. detectTransferRestriction  restructure

*/

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "murky/=lib/murky/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint64","name":"_allowedInvestors","type":"uint64"},{"internalType":"uint8","name":"_decimalsPlaces","type":"uint8"},{"internalType":"string","name":"_ShareCertificate","type":"string"},{"internalType":"string","name":"_CompanyHomepage","type":"string"},{"internalType":"string","name":"_CompanyLegalDocs","type":"string"},{"internalType":"address","name":"_atomicSwapContractAddress","type":"address"},{"internalType":"uint64","name":"_tradingHoldingPeriod","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"_allowedInvestors","type":"uint64"}],"name":"AllowedInvestorsReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BurnTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_CompanyHomepage","type":"string"}],"name":"CompanyHomepageReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_CompanyLegalDocs","type":"string"}],"name":"CompanyLegalDocsReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"_tradingHoldingPeriod","type":"uint64"}],"name":"HoldingPeriodReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"IssuerForceTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"receiveRestriction","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sendRestriction","type":"uint256"}],"name":"KYCDataForUserSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_ShareCertificate","type":"string"}],"name":"ShareCertificateReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferFrom","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"string","name":"message","type":"string"},{"indexed":false,"internalType":"uint8","name":"errorCode","type":"uint8"}],"name":"TransferRestrictionDetected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"WhitelistAuthorityStatusRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"WhitelistAuthorityStatusSet","type":"event"},{"inputs":[],"name":"CompanyHomepage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CompanyLegalDocs","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IssuancePlatform","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ShareCertificate","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowedInvestors","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"account","type":"address[]"},{"internalType":"uint256","name":"receiveRestriction","type":"uint256"},{"internalType":"uint256","name":"sendRestriction","type":"uint256"}],"name":"bulkWhitelistWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentTotalInvestors","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"detectTransferRestriction","outputs":[{"internalType":"uint8","name":"status","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"forceTransferToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getKYCData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getWhitelistAuthorityStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"issuanceProtocol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"restrictionCode","type":"uint8"}],"name":"messageForTransferRestriction","outputs":[{"internalType":"string","name":"message","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"receiveRestriction","type":"uint256"},{"internalType":"uint256","name":"sendRestriction","type":"uint256"}],"name":"modifyKYCData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"removeWhitelistAuthorityStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_allowedInvestors","type":"uint64"}],"name":"resetAllowedInvestors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_CompanyHomepage","type":"string"}],"name":"resetCompanyHomepage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_CompanyLegalDocs","type":"string"}],"name":"resetCompanyLegalDocs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ShareCertificate","type":"string"}],"name":"resetShareCertificate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tradingHoldingPeriod","type":"uint64"}],"name":"setTradingHoldingPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"setWhitelistAuthorityStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingHoldingPeriod","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061023d5760003560e01c8063715018a61161013b578063abc30a4b116100b8578063d4ce14151161007c578063d4ce14151461056d578063da76e2f314610580578063dd62ed3e14610593578063e8379421146105a6578063f2fde38b146105d257600080fd5b8063abc30a4b14610519578063ac893db11461052c578063b1b5932a1461053f578063c319e41c14610547578063c97c59d21461055a57600080fd5b806395d89b41116100ff57806395d89b411461048d5780639dc29fac14610495578063a457c2d7146104a8578063a9059cbb146104bb578063ab47a2f9146104ce57600080fd5b8063715018a6146104285780637cae04f7146104305780637f4ab1dd1461045757806384f9007f1461046a5780638da5cb5b1461047257600080fd5b80633a24ddc5116101c957806359a72ddc1161018d57806359a72ddc146103b0578063639c86ce146103b85780636401ca76146103d2578063654b6f15146103ec57806370a082311461041557600080fd5b80633a24ddc51461032a57806340c10f191461033d578063459688361461035057806351aebcd41461037b57806354fd4d501461038e57600080fd5b80631efcaeaf116102105780631efcaeaf146102aa57806323b872dd146102bd5780632b8e797a146102d0578063313ce567146102e3578063395093511461031757600080fd5b806306fdde0314610242578063095ea7b31461026057806309fc38921461028357806318160ddd14610298575b600080fd5b61024a6105e5565b6040516102579190611d9b565b60405180910390f35b61027361026e366004611dc5565b610677565b6040519015158152602001610257565b610296610291366004611def565b610691565b005b6002545b604051908152602001610257565b6102966102b8366004611e70565b61079a565b6102736102cb366004611e99565b6108c0565b6102966102de366004611ed5565b6109c3565b7f00000000000000000000000000000000000000000000000000000000000000125b60405160ff9091168152602001610257565b610273610325366004611dc5565b610a07565b610273610338366004611dc5565b610a29565b61027361034b366004611dc5565b610ab2565b600c54610363906001600160401b031681565b6040516001600160401b039091168152602001610257565b610296610389366004611f08565b610dc5565b61024a60405180604001604052806003815260200162312e3360e81b81525081565b61024a610e18565b600c5461036390600160801b90046001600160401b031681565b600c5461036390600160401b90046001600160401b031681565b61024a6040518060400160405280600a8152602001694469676953686172657360b01b81525081565b61029c610423366004611f79565b610ea6565b610296610ec1565b61024a60405180604001604052806008815260200167115490cb4c4d0c0d60c21b81525081565b61024a610465366004611f94565b610ed5565b61024a610fdb565b6005546040516001600160a01b039091168152602001610257565b61024a610fe8565b6102736104a3366004611dc5565b610ff7565b6102736104b6366004611dc5565b61114f565b6102736104c9366004611dc5565b6111d5565b6105046104dc366004611f79565b6001600160a01b03166000908152600660209081526040808320546007909252909120549091565b60408051928352602083019190915201610257565b610296610527366004611f08565b611217565b61029661053a366004611f08565b61125e565b61024a6112a5565b610296610555366004611f79565b6112b2565b610296610568366004611e70565b61130e565b61030561057b366004611e99565b611371565b61029661058e366004611f79565b611510565b61029c6105a1366004611fb7565b611569565b6102736105b4366004611f79565b6001600160a01b031660009081526008602052604090205460ff1690565b6102966105e0366004611f79565b611594565b6060600380546105f490611fea565b80601f016020809104026020016040519081016040528092919081815260200182805461062090611fea565b801561066d5780601f106106425761010080835404028352916020019161066d565b820191906000526020600020905b81548152906001019060200180831161065057829003601f168201915b5050505050905090565b60003361068581858561160d565b60019150505b92915050565b3360009081526008602052604090205460ff1615156001146106ce5760405162461bcd60e51b81526004016106c590612024565b60405180910390fd5b60328311156107455760405162461bcd60e51b815260206004820152603760248201527f42756c6b2077686974656c697374696e67206d6f7265207468616e203530206160448201527f6464726573736573206973206e6f7420616c6c6f77656400000000000000000060648201526084016106c5565b60005b838110156107935761078185858381811061076557610765612090565b905060200201602081019061077a9190611f79565b8484611731565b8061078b816120bc565b915050610748565b5050505050565b6107a2611795565b6001600160401b038116158015906107c85750600c546001600160401b03908116908216105b156108595760405162461bcd60e51b815260206004820152605560248201527f416c6c6f77656420546f6b656e20686f6c646572732063616e6e6f742062652060448201527f6c657373207468616e2063757272656e7420746f6b656e20686f6c646572732060648201527477697468206e6f6e2d7a65726f2062616c616e636560581b608482015260a4016106c5565b600c80546fffffffffffffffff00000000000000001916600160401b6001600160401b038416908102919091179091556040519081527f1134176aea4af31aec882084c2f0ff7992edea27ff97aafe9ce284c91e623b7d906020015b60405180910390a150565b600083838360006108d2848484611371565b905060ff8116156109515760006108e882610ed5565b9050836001600160a01b0316856001600160a01b03167fc844cc4ce519449488974a66d44d457e85e232edb0f90bd63eb0778f4b5c54c0838560405161092f9291906120d5565b60405180910390a38060405162461bcd60e51b81526004016106c59190611d9b565b61095e88888860006117ef565b866001600160a01b0316886001600160a01b0316336001600160a01b03167f5f7542858008eeb041631f30e6109ae94b83a58e9a58261dd2c42c508850f939896040516109ad91815260200190565b60405180910390a4506001979650505050505050565b3360009081526008602052604090205460ff1615156001146109f75760405162461bcd60e51b81526004016106c590612024565b610a02838383611731565b505050565b600033610685818585610a1a8383611569565b610a2491906120fa565b61160d565b6000610a33611795565b610a5183610a496005546001600160a01b031690565b8460016117ef565b6005546001600160a01b03166001600160a01b0316836001600160a01b03167f625f1e576665168ff9b3fd5510766eca672f1c97ca53cf82b4e8d96e02271b7d84604051610aa191815260200190565b60405180910390a350600192915050565b6000610abc611795565b6001600160a01b038316610b125760405162461bcd60e51b815260206004820152601e60248201527f4d696e74696e6720616464726573732063616e6e6f74206265207a65726f000060448201526064016106c5565b6001600160a01b0383166000908152600660205260408120549003610b8a5760405162461bcd60e51b815260206004820152602860248201527f41646472657373206973206e6f74207965742077686974656c697374656420626044820152673c9034b9b9bab2b960c11b60648201526084016106c5565b60008211610bda5760405162461bcd60e51b815260206004820152601c60248201527f5a65726f20616d6f756e742063616e6e6f74206265206d696e7465640000000060448201526064016106c5565b6005546001600160a01b03848116911614801590610bfe5750610bfc83610ea6565b155b8015610c1b5750600c54600160401b90046001600160401b031615155b8015610c4e5750600c546001600160401b03600160401b8204811691610c439116600161210d565b6001600160401b0316115b15610d0d5760405162461bcd60e51b815260206004820152607f60248201527f4d696e74696e67206e6f7420616c6c6f77656420746f2074686973206164647260448201527f65737320617320616c6c6f77656420746f6b656e20686f6c646572207265737460648201527f72696374696f6e20697320696e20706c61636520616e64206d696e74696e672060848201527f77696c6c20696e6372656173652074686520616c6c6f776564206c696d69740060a482015260c4016106c5565b610d1683610ea6565b158015610d3157506005546001600160a01b03848116911614155b15610d6f57600c54610d4d906001600160401b0316600161210d565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b610d7983836118e1565b826001600160a01b03167f7b47457f3af09e5f794b020fd74160963a808f5985883496a096d403d380c34383604051610db491815260200190565b60405180910390a250600192915050565b610dcd611795565b600b610dda828483612198565b507fa555e96a9f6d83b18cbe170e5fd71ebb56fc55f86a115539e9f3038182075a508282604051610e0c929190612257565b60405180910390a15050565b60098054610e2590611fea565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5190611fea565b8015610e9e5780601f10610e7357610100808354040283529160200191610e9e565b820191906000526020600020905b815481529060010190602001808311610e8157829003601f168201915b505050505081565b6001600160a01b031660009081526020819052604090205490565b610ec9611795565b610ed360006119a0565b565b600d54606090610ee790600190612286565b8260ff1611610fa057600d8260ff1681548110610f0657610f06612090565b906000526020600020018054610f1b90611fea565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4790611fea565b8015610f945780601f10610f6957610100808354040283529160200191610f94565b820191906000526020600020905b815481529060010190602001808311610f7757829003601f168201915b50505050509050919050565b5060408051808201909152601981527f4572726f7220636f6465206973206e6f7420646566696e65640000000000000060208201525b919050565b600a8054610e2590611fea565b6060600480546105f490611fea565b6000611001611795565b6001600160a01b0383166110575760405162461bcd60e51b815260206004820152601b60248201527f4275726e20616464726573732063616e6e6f74206265207a65726f000000000060448201526064016106c5565b600082116110a75760405162461bcd60e51b815260206004820152601c60248201527f5a65726f20616d6f756e742063616e6e6f74206265206275726e65640000000060448201526064016106c5565b6110b183836119f2565b6110ba83610ea6565b1580156110d557506005546001600160a01b03848116911614155b1561111457600c546110f2906001906001600160401b0316612299565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b826001600160a01b03167f388d6102a0230861b4e9646fb5acda1c5ec15d39df2b619d39c25d16a126849083604051610db491815260200190565b6000338161115d8286611569565b9050838110156111bd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106c5565b6111ca828686840361160d565b506001949350505050565b600033838360006111e7848484611371565b905060ff8116156111fd5760006108e882610ed5565b61120a33888860016117ef565b5060019695505050505050565b61121f611795565b600a61122c828483612198565b507f824a3f3055c070014bc7157744915537c646ae1a287c988d79ec124d88938e948282604051610e0c929190612257565b611266611795565b6009611273828483612198565b507f4295968313e92c7dd40aa9c85be9b7246ff59503751e11205c85795a2f74fdb38282604051610e0c929190612257565b600b8054610e2590611fea565b6112ba611795565b6001600160a01b038116600081815260086020908152604091829020805460ff1916600117905590519182527fea54bdb8a4594aaac063e3b01ab3e613bf4cb045d085502c81497c9696aca8b291016108b5565b611316611795565b600c805467ffffffffffffffff60801b1916600160801b6001600160401b038416908102919091179091556040519081527f9a2bb66598018882d816bc64a2ff56e12b3f2937da4d9e90674915a34a04d810906020016108b5565b600c54600090600160801b90046001600160401b0316421080156113a357506005546001600160a01b03858116911614155b156113b057506002611509565b60018210156113c157506003611509565b6001600160a01b03841660009081526007602052604081205490036113e857506004611509565b6001600160a01b038316600090815260066020526040812054900361140f57506005611509565b6001600160a01b03841660009081526007602052604090205442101561143757506006611509565b6001600160a01b03831660009081526006602052604090205442101561145f57506007611509565b600c54600160401b90046001600160401b031661147e57506000611509565b600061148984610ea6565b11806114a257506005546001600160a01b038481169116145b156114af57506000611509565b600c546001600160401b03600160401b82048116911610156114d357506000611509565b816114dd85610ea6565b1480156114f857506005546001600160a01b03858116911614155b1561150557506000611509565b5060015b9392505050565b611518611795565b6001600160a01b038116600081815260086020908152604091829020805460ff1916905590519182527f24546dc0f5df685d7c979edd1b0bcc4d85ac6a59974976d7217c9f0d930d3ff091016108b5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61159c611795565b6001600160a01b0381166116015760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106c5565b61160a816119a0565b50565b6001600160a01b03831661166f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106c5565b6001600160a01b0382166116d05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106c5565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166000818152600660209081526040808320869055600782529182902084905581518581529081018490527fc78ee1de8eb00c83baa5f9bf324f00dd286b754a3826292de51c92c3e7a0cab5910160405180910390a2505050565b6005546001600160a01b03163314610ed35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106c5565b6117f883610ea6565b15801561181357506005546001600160a01b03848116911614155b1561185157600c5461182f906001600160401b0316600161210d565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b80151560010361186b57611866848484611b24565b611878565b611876848484611cc8565b505b61188184610ea6565b15801561189c57506005546001600160a01b03858116911614155b156118db57600c546118b9906001906001600160401b0316612299565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b50505050565b6001600160a01b0382166119375760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106c5565b806002600082825461194991906120fa565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611a525760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106c5565b6001600160a01b03821660009081526020819052604090205481811015611ac65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106c5565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b038316611b885760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106c5565b6001600160a01b038216611bea5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106c5565b6001600160a01b03831660009081526020819052604090205481811015611c625760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106c5565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36118db565b600033611cd6858285611ce1565b6111ca858585611b24565b6000611ced8484611569565b905060001981146118db5781811015611d485760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106c5565b6118db848484840361160d565b6000815180845260005b81811015611d7b57602081850181015186830182015201611d5f565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006115096020830184611d55565b80356001600160a01b0381168114610fd657600080fd5b60008060408385031215611dd857600080fd5b611de183611dae565b946020939093013593505050565b60008060008060608587031215611e0557600080fd5b84356001600160401b0380821115611e1c57600080fd5b818701915087601f830112611e3057600080fd5b813581811115611e3f57600080fd5b8860208260051b8501011115611e5457600080fd5b6020928301999098509187013596604001359550909350505050565b600060208284031215611e8257600080fd5b81356001600160401b038116811461150957600080fd5b600080600060608486031215611eae57600080fd5b611eb784611dae565b9250611ec560208501611dae565b9150604084013590509250925092565b600080600060608486031215611eea57600080fd5b611ef384611dae565b95602085013595506040909401359392505050565b60008060208385031215611f1b57600080fd5b82356001600160401b0380821115611f3257600080fd5b818501915085601f830112611f4657600080fd5b813581811115611f5557600080fd5b866020828501011115611f6757600080fd5b60209290920196919550909350505050565b600060208284031215611f8b57600080fd5b61150982611dae565b600060208284031215611fa657600080fd5b813560ff8116811461150957600080fd5b60008060408385031215611fca57600080fd5b611fd383611dae565b9150611fe160208401611dae565b90509250929050565b600181811c90821680611ffe57607f821691505b60208210810361201e57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526046908201527f4f6e6c7920617574686f72697a6564206164647265737365732063616e20636f60408201527f6e74726f6c2077686974656c697374696e67206f6620686f6c6465722061646460608201526572657373657360d01b608082015260a00190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016120ce576120ce6120a6565b5060010190565b6040815260006120e86040830185611d55565b905060ff831660208301529392505050565b8082018082111561068b5761068b6120a6565b6001600160401b0381811683821601908082111561212d5761212d6120a6565b5092915050565b634e487b7160e01b600052604160045260246000fd5b601f821115610a0257600081815260208120601f850160051c810160208610156121715750805b601f850160051c820191505b818110156121905782815560010161217d565b505050505050565b6001600160401b038311156121af576121af612134565b6121c3836121bd8354611fea565b8361214a565b6000601f8411600181146121f757600085156121df5750838201355b600019600387901b1c1916600186901b178355610793565b600083815260209020601f19861690835b828110156122285786850135825560209485019460019092019101612208565b50868210156122455760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b8181038181111561068b5761068b6120a6565b6001600160401b0382811682821603908082111561212d5761212d6120a656fea264697066735822122029e88ae49fcaed5bce8a9fd2a77d8472f5ee4fa47154e7f6257366791e84e72264736f6c63430008130033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.