Contract 0x6Ce32Db3D3329A7CF0c891cFAdC34CC9589413aB 1

Contract Overview

Balance:
0 MATIC
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x78044f43dab594dd9142e01e857f2d55b86b04cee952075c107e0226170a7060Approve334635032023-03-23 9:43:4971 days 22 hrs ago0xd5742fafb58cabb89a355ce67c2b0c9dede6ddfb IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000400185 1.500000015
0x83a61638f9318ac43d4fe1e8fd69718dbbb44c76dcc616dd062ce91e5d28fb00Approve334634602023-03-23 9:42:1971 days 22 hrs ago0xd5742fafb58cabb89a355ce67c2b0c9dede6ddfb IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000698685 1.500000015
0x1911a3024447c55b24725cc32b31e97827a7162860be14b7dc10d3ccba9289ceApprove334633242023-03-23 9:37:2971 days 22 hrs ago0xdc89f9576281e87f78eef7dddebd61f7e7d82f82 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000400365 1.500000016
0xd4c7f3c74985ceb4788a635a09123dfbc7fdac19a7d8275e5f71ff5517a11484Approve334633122023-03-23 9:37:0571 days 22 hrs ago0xdc89f9576281e87f78eef7dddebd61f7e7d82f82 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000698865 1.500000016
0x09dfb69f22069a27675659d8af9f3d1a40a618021be6ab2e8dbcce399bcc883fApprove334632972023-03-23 9:36:3371 days 22 hrs ago0xdc89f9576281e87f78eef7dddebd61f7e7d82f82 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000698865 1.500000016
0x2625e48256611911a64f5040c223e8a93a8f2d20c8c2a72374889885a85a1832Approve334347332023-03-22 16:44:5372 days 15 hrs ago0x5105b6cfc1b712ae458eccf1b89679759a3d389b IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000694005 1.500000017
0x36bbbd4b348cd2377ebee76df0c40e2b0668c997e419f4502dfee3d38f643b0cApprove334231532023-03-22 9:54:4772 days 22 hrs ago0xdc89f9576281e87f78eef7dddebd61f7e7d82f82 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000698865 1.500000016
0xd997bff60cd7bf9ad3bb587a2b0de6d72fcd524ff38c6c2eb3d5b754e7c3cee0Approve334217072023-03-22 9:03:3372 days 23 hrs ago0x5105b6cfc1b712ae458eccf1b89679759a3d389b IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000698865 1.500000018
0x3e6052a05d513fc4c0721102cd72d8e463a9de9ceb828c8d06e302d4e08577e1Demo Mint333980842023-03-21 19:06:5573 days 13 hrs ago0xc6bdfa7e694db5621cdcb7242d1931fc586f6d1d IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000073044 1.500000016
0x1d6aebddd4cffe294a576a24b001f66df303eb67eff55b4ac81682ca536c827cApprove333971352023-03-21 18:33:1773 days 13 hrs ago0xd5742fafb58cabb89a355ce67c2b0c9dede6ddfb IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000698865 1.500000015
0x8022b4c408a085197fa483349752a569c93aa1bfdb44fcb98832023bd13069f1Approve333950292023-03-21 17:18:4373 days 15 hrs ago0xbf8fe9240804b898bfa455967d8691cc7102e12e IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000442365 1.500000016
0xbbdaee7141e886d079f8d47a4339ec71e7a9eef31b707f6a97f919826e57a58bDemo Mint333945712023-03-21 17:02:2973 days 15 hrs ago0xbf8fe9240804b898bfa455967d8691cc7102e12e IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000073026 1.500000019
0xd50878cfd4b0157e8051760324c926c98c09c253c227b202770fa316f6cc9945Demo Mint333924632023-03-21 15:47:4973 days 16 hrs ago0xc6bdfa7e694db5621cdcb7242d1931fc586f6d1d IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000086073138 1.767996445
0x2f74acfe8608ddf67d8a2aa0c38347d8f1bf14bc927a068d2d49e7ccca4e509bApprove332279332023-03-17 14:40:2877 days 17 hrs ago0x5105b6cfc1b712ae458eccf1b89679759a3d389b IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000698865 1.500000018
0x4e0aaef6c4b8a50998b3e23fcd41e45bfaa8e4bb66ea6c992e9099507b34c47aDemo Mint332279092023-03-17 14:39:3877 days 17 hrs ago0x5105b6cfc1b712ae458eccf1b89679759a3d389b IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000073044 1.500000018
0xf1410b8c6f7d57532322e0ea6a9f9658c31c71d87291b3e862e575a36b579ffcApprove329459082023-03-10 16:09:1684 days 16 hrs ago0xc6bdfa7e694db5621cdcb7242d1931fc586f6d1d IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000698865 1.500000016
0x1937a6c51d4e738e635f1e254da1795fa667dc8d4c1e95dabead18eb1815f286Demo Mint329433082023-03-10 14:37:0884 days 17 hrs ago0x5105b6cfc1b712ae458eccf1b89679759a3d389b IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000083511524 1.714956553
0x001deebd90673e7314802d6d66b6e305e981677a4229e699d7ff327894d66f15Approve329432172023-03-10 14:33:5684 days 17 hrs ago0xd0b0531c0af46351ce7a96d28c8e99997bf375dc IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000087040623 1.868185354
0x415696b9c73dd6f997cba5e133a0447ae07f699ee210e8308fea7a135b0e6e7fUser Mint329431862023-03-10 14:32:5084 days 17 hrs ago0xd0b0531c0af46351ce7a96d28c8e99997bf375dc IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000139857961 1.868185369
0x52d4b7d21e1a08183866748f9ee399c3841209cdf003005f49b1848ef2ed96d3Approve329076772023-03-09 17:35:1285 days 14 hrs ago0x943a96be7876599a1e763bd328c6887eda4eb898 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000087801227 1.884510471
0x7e52dbbba2e6dab0d5bb2424e4a325cbb3e5645779d1e8f2265de4fa67b142c1Transfer329076532023-03-09 17:34:2285 days 14 hrs ago0xdc89f9576281e87f78eef7dddebd61f7e7d82f82 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000096986331 1.884510471
0xd26c672216b535951e5c2e57fe7811a581372148bacc78ed6ef0a149a1d25f5aDemo Mint329076252023-03-09 17:33:2285 days 14 hrs ago0xdc89f9576281e87f78eef7dddebd61f7e7d82f82 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000081241658 1.668343572
0xf968f9ccd588e0967ffb48a26eac182baa1392b79e8cd79decbad902c2cc08acApprove329074702023-03-09 17:27:5285 days 14 hrs ago0x176ade061b3d896eba3a94d1bce0bc35a07ac882 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000075397901 1.618293265
0x2a7496e007b869c858a7924e0b1345766bef49589dcd0d29250599500adc29f8User Mint329074532023-03-09 17:27:1685 days 14 hrs ago0x176ade061b3d896eba3a94d1bce0bc35a07ac882 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.000128760004 1.719941826
0x381f811c152b8d52ead821a472cb95acd5e2b525c16fa78d96fcd29e13b58fc0Approve328627462023-03-08 15:03:5486 days 17 hrs ago0xdc89f9576281e87f78eef7dddebd61f7e7d82f82 IN  0x6ce32db3d3329a7cf0c891cfadc34cc9589413ab0 MATIC0.0000698865 1.500000015
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UsdtfToken

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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 {}
}

File 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @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);
}

File 3 of 6 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.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);
}

File 4 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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;
    }
}

File 5 of 6 : UsdtfToken.sol
// NOT USED: this is ONLY for dev
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./v3/interfaces/IAccessManager.sol";

contract UsdtfToken is ERC20 {
  uint256 limitPerUser = 3 * 1e6;
  uint256 limitInSeconds = 1 days;
  IAccessManager accessManager;
  mapping(address => uint256) public minted;

  modifier onlySuperOracle() {
    require(accessManager.isSuperOracle(msg.sender), "Only admin can call this function");
    _;
  }

  constructor(uint256 initialSupply, address _accessManager) ERC20("Usdt fake token", "USDTF") {
    _mint(msg.sender, initialSupply);
    accessManager = IAccessManager(_accessManager);
  }
  function decimals() public view virtual override returns (uint8) {
    return 6;
  }

  function getLimitAmount() public view returns (uint256) {
    return limitPerUser;
  }

  function getLimitTime() public view returns (uint256) {
    return limitInSeconds;
  }

  function isMinted(address user) public view returns (bool) {
    if (minted[user] == 0) {
      return false;
    }
    if (block.timestamp - minted[user] > limitInSeconds) {
      return false;
    }
    return true;
  }

  function userMint() public {
    require(!isMinted(msg.sender), "User has minted");
    minted[msg.sender] = block.timestamp;
    _mint(msg.sender, limitPerUser);
  }

  function demoMint(uint256 amount) public onlySuperOracle {
    _mint(msg.sender, amount * 1e6);
  }

  function changeLimitAmount(uint256 amount) public onlySuperOracle {
    limitPerUser = amount;
  }

  function changeLimitTime(uint256 time) public onlySuperOracle {
    limitInSeconds = time;
  }
}

File 6 of 6 : IAccessManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IAccessManager {
  event SuperOracleAdded(address user);
  event SuperOracleRemoved(address user);
  event KycOracleAdded(address user);
  event KycOracleRemoved(address user);

  function isSuperOracle(address user) external view returns (bool);
  function addSuperOracle(address user) external;
  function removeSuperOracle(address user) external;

  function isKycOracle(address user) external view returns (bool);
  function addKycOracle(address user) external;
  function removeKycOracle(address user) external;
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"address","name":"_accessManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":[{"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":"uint256","name":"amount","type":"uint256"}],"name":"changeLimitAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"changeLimitTime","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"amount","type":"uint256"}],"name":"demoMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getLimitAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLimitTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"user","type":"address"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userMint","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052622dc6c0600555620151806006553480156200001f57600080fd5b506040516200108438038062001084833981016040819052620000429162000254565b604080518082018252600f81526e2ab9b23a103330b5b2903a37b5b2b760891b6020808301918252835180850190945260058452642aa9a22a2360d91b9084015281519192916200009691600391620001ae565b508051620000ac906004906020840190620001ae565b505050620000c13383620000e860201b60201c565b600780546001600160a01b0319166001600160a01b039290921691909117905550620002f3565b6001600160a01b038216620001435760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000157919062000291565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b828054620001bc90620002b6565b90600052602060002090601f016020900481019282620001e057600085556200022b565b82601f10620001fb57805160ff19168380011785556200022b565b828001600101855582156200022b579182015b828111156200022b5782518255916020019190600101906200020e565b50620002399291506200023d565b5090565b5b808211156200023957600081556001016200023e565b6000806040838503121562000267578182fd5b825160208401519092506001600160a01b038116811462000286578182fd5b809150509250929050565b60008219821115620002b157634e487b7160e01b81526011600452602481fd5b500190565b600181811c90821680620002cb57607f821691505b60208210811415620002ed57634e487b7160e01b600052602260045260246000fd5b50919050565b610d8180620003036000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806363478662116100ad578063dd62ed3e11610071578063dd62ed3e14610255578063df8f460f14610268578063f7e99aae14610270578063f9f2a7ce14610283578063fb332c431461029657600080fd5b806363478662146101eb57806370a08231146101fe57806395d89b4114610227578063a457c2d71461022f578063a9059cbb1461024257600080fd5b80631e7269c5116100f45780631e7269c51461018e57806323b872dd146101ae578063313ce567146101c157806339509351146101d05780634dea85a7146101e357600080fd5b806306fdde0314610126578063095ea7b31461014457806318160ddd146101675780631837a3aa14610179575b600080fd5b61012e61029e565b60405161013b9190610c18565b60405180910390f35b610157610152366004610bb7565b610330565b604051901515815260200161013b565b6002545b60405190815260200161013b565b61018c610187366004610c00565b610348565b005b61016b61019c366004610b29565b60086020526000908152604090205481565b6101576101bc366004610b7c565b610401565b6040516006815260200161013b565b6101576101de366004610bb7565b610425565b60055461016b565b61018c6101f9366004610c00565b610447565b61016b61020c366004610b29565b6001600160a01b031660009081526020819052604090205490565b61012e6104e3565b61015761023d366004610bb7565b6104f2565b610157610250366004610bb7565b61056d565b61016b610263366004610b4a565b61057b565b61018c6105a6565b61018c61027e366004610c00565b61060f565b610157610291366004610b29565b6106ab565b60065461016b565b6060600380546102ad90610cfa565b80601f01602080910402602001604051908101604052809291908181526020018280546102d990610cfa565b80156103265780601f106102fb57610100808354040283529160200191610326565b820191906000526020600020905b81548152906001019060200180831161030957829003601f168201915b5050505050905090565b60003361033e81858561070c565b5060019392505050565b60075460405163e0d5ccb560e01b81523360048201526001600160a01b039091169063e0d5ccb59060240160206040518083038186803b15801561038b57600080fd5b505afa15801561039f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c39190610be0565b6103e85760405162461bcd60e51b81526004016103df90610c6b565b60405180910390fd5b6103fe336103f983620f4240610cc4565b610830565b50565b60003361040f8582856108ef565b61041a858585610969565b506001949350505050565b60003361033e818585610438838361057b565b6104429190610cac565b61070c565b60075460405163e0d5ccb560e01b81523360048201526001600160a01b039091169063e0d5ccb59060240160206040518083038186803b15801561048a57600080fd5b505afa15801561049e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c29190610be0565b6104de5760405162461bcd60e51b81526004016103df90610c6b565b600555565b6060600480546102ad90610cfa565b60003381610500828661057b565b9050838110156105605760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103df565b61041a828686840361070c565b60003361033e818585610969565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6105af336106ab565b156105ee5760405162461bcd60e51b815260206004820152600f60248201526e155cd95c881a185cc81b5a5b9d1959608a1b60448201526064016103df565b33600081815260086020526040902042905560055461060d9190610830565b565b60075460405163e0d5ccb560e01b81523360048201526001600160a01b039091169063e0d5ccb59060240160206040518083038186803b15801561065257600080fd5b505afa158015610666573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068a9190610be0565b6106a65760405162461bcd60e51b81526004016103df90610c6b565b600655565b6001600160a01b0381166000908152600860205260408120546106d057506000919050565b6006546001600160a01b0383166000908152600860205260409020546106f69042610ce3565b111561070457506000919050565b506001919050565b6001600160a01b03831661076e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103df565b6001600160a01b0382166107cf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103df565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166108865760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103df565b80600260008282546108989190610cac565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b60006108fb848461057b565b9050600019811461096357818110156109565760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103df565b610963848484840361070c565b50505050565b6001600160a01b0383166109cd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103df565b6001600160a01b038216610a2f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103df565b6001600160a01b03831660009081526020819052604090205481811015610aa75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103df565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610963565b80356001600160a01b0381168114610b2457600080fd5b919050565b600060208284031215610b3a578081fd5b610b4382610b0d565b9392505050565b60008060408385031215610b5c578081fd5b610b6583610b0d565b9150610b7360208401610b0d565b90509250929050565b600080600060608486031215610b90578081fd5b610b9984610b0d565b9250610ba760208501610b0d565b9150604084013590509250925092565b60008060408385031215610bc9578182fd5b610bd283610b0d565b946020939093013593505050565b600060208284031215610bf1578081fd5b81518015158114610b43578182fd5b600060208284031215610c11578081fd5b5035919050565b6000602080835283518082850152825b81811015610c4457858101830151858201604001528201610c28565b81811115610c555783604083870101525b50601f01601f1916929092016040019392505050565b60208082526021908201527f4f6e6c792061646d696e2063616e2063616c6c20746869732066756e6374696f6040820152603760f91b606082015260800190565b60008219821115610cbf57610cbf610d35565b500190565b6000816000190483118215151615610cde57610cde610d35565b500290565b600082821015610cf557610cf5610d35565b500390565b600181811c90821680610d0e57607f821691505b60208210811415610d2f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212204f327c540757c9c184eb7616598997f3c7b45974cd384a0628a4a6c84c6ab06864736f6c6343000804003300000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000003938e60c04ba63d13869ab28f8faf866a4253f78

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000003938e60c04ba63d13869ab28f8faf866a4253f78

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 1000000000000000
Arg [1] : _accessManager (address): 0x3938e60c04ba63d13869ab28f8faf866a4253f78

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Arg [1] : 0000000000000000000000003938e60c04ba63d13869ab28f8faf866a4253f78


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading