Contract 0x187ae45f2d361cbce37c6a8622119c91148f261b 2

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x344a5041a303175144cff207c16b2f6024f6b6954f1546ebb78da66b81e27959Transfer284913372022-05-19 2:26:4727 secs ago0xea71f70c9f751ea70c6f9a89b107632301403b1a IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.002272877357 50.826900964
0xfa25294ee2ed768790f2f9b98d96fed0b4403fabcbd7b762d807ec4ebad4c650Transfer284909192022-05-19 2:12:1714 mins ago0xd267527764da38f7eecd9c94f0daeec927902f17 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.002237962329 50.046118562
0x55ff5bcdcb5173cf9b7ff7c9cf3cb009921b439c2123e997cf26ed945b8f192cTransfer284900652022-05-19 1:40:4946 mins ago0x5ddaf139b6c4171458405d01614e8509e640dd8b IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.003577440001 80.000000031
0xd98b5dd459f7359d7a142b3ba5b208349d230bf4cb09b971c2badc1dd4c4fa8aTransfer284895142022-05-19 1:21:511 hr 5 mins ago0x5ddaf139b6c4171458405d01614e8509e640dd8b IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.004945440014 80.000000229
0x4ff19507a617e85d889fa2d5cad5cc7fbd63861b836058cb82fc1ad7e0d66731Approve284893562022-05-19 1:16:271 hr 10 mins ago0x6a3af1d980408217777138f569b5dfdcaf28f5b5 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.001656679549 35.776779457
0xe67b8e678f8a71bcda545a4c87c8f33f55d2c9303816fb4540e0c6b7c15ca34cTransfer284892212022-05-19 1:11:491 hr 15 mins ago0x9ac5637d295fea4f51e086c329d791cc157b1c84 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.003330300669 50.000010055
0x68123f893725a2724e2af193162708f5628eea0141be87431259a3e19b800123Transfer284841232022-05-18 22:12:484 hrs 14 mins ago0x9ac5637d295fea4f51e086c329d791cc157b1c84 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.003329100013 50.000000203
0xe5b062c644ba0288e5ed5949fd1473f13c3fb03ed2897f555c688cbcde01cbd5Transfer284789702022-05-18 19:07:507 hrs 19 mins ago0x9ac5637d295fea4f51e086c329d791cc157b1c84 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.010222001106 153.469674
0xfc02387ba486ccbe92bc08e68363435392cafb011ede5258cf50c89daeae917bTransfer284774852022-05-18 18:12:368 hrs 14 mins ago0x95d9fde70a5debb0bf3e06c0c52af94b2c0d53ba IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.001453875511 32.520814022
0xd69dd448d4f724e917c8f7d4a96b4c41fe2a8920dd4d136db12616d7c5761597Transfer284763622022-05-18 17:34:028 hrs 53 mins ago0x27373205dcefb7f200f5591e15ed8b86d5a276ea IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.002177990531 48.705007642
0x9b2fd8e806f33e4094a2658d79713650480524c94864ded20ad6f27e7ee3528eApprove284756002022-05-18 17:03:349 hrs 23 mins ago0xd886039acc976d8f0ab4eaf830c609b4f5b4e50c IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.001546205425 33.193195347
0x7ddf67b0f0637fe3883d5bd3f44c482dc1b2ae0375cdc3d0ef1852d67e387bd9Transfer284720402022-05-18 14:50:3011 hrs 36 mins ago0x27373205dcefb7f200f5591e15ed8b86d5a276ea IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.020805501549 336.560573776
0xa0d0292468d85605c1f37c5f5931acde69bb846c0781c8c9c50f75d9dea88b73Transfer284713062022-05-18 14:25:1812 hrs 1 min ago0xbee6af3469ca8210381499b3d002c27c0f6fea68 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.030909 500
0xbea7d06ddb9a0d724ac8b80f318bb5f54333bac63517c5eb82bfc510c1c3d45eTransfer284704402022-05-18 13:49:0612 hrs 38 mins ago0x999d6e05210c918403bee11689d8f1b9de9c768f IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.003327570699 67.248104341
0x00426c4e7cf8c8c18845ac27758c44fa684a634be0d540226beea94e7ff884aeTransfer284695972022-05-18 13:19:0013 hrs 8 mins ago0x999d6e05210c918403bee11689d8f1b9de9c768f IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.00217127946 32.604731067
0xfff693ea24107e2c018e24746269a159cf74e5f5ea546f447db4d46b38e072b3Transfer284691612022-05-18 12:58:4413 hrs 28 mins ago0xc1c872978e17009e303fa1d93bc0a6ba367bb421 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.00228966043737.038733659
0x80b7024c2f70a7846a1efe43630d9b09c99889c8ca7374e5c1f7996131b41ff2Transfer284689142022-05-18 12:49:2213 hrs 37 mins ago0x95d9fde70a5debb0bf3e06c0c52af94b2c0d53ba IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.001855260656 30.011657707
0xfb634abecfddfcb22283945bd7e06f95959cc704e6ab91a72ae7b20f4ed3cc21Transfer284677402022-05-18 12:06:4514 hrs 20 mins ago0x9ac5637d295fea4f51e086c329d791cc157b1c84 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.0033303 50.000000015
0x5cc8b00682b26f76e52aac776b46683f3a83a6c166199e428c6d315cae556794Transfer284669592022-05-18 11:37:4714 hrs 49 mins ago0x9ac5637d295fea4f51e086c329d791cc157b1c84 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.0024741 50.000000013
0x07afa775b93b6530031aa4be4af9cb0c83605b986c4ede14656bba0a6df1f35dTransfer284659542022-05-18 11:01:1015 hrs 26 mins ago0x31e3d4e6b7962e363ec0c0aa0c859358c7879157 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.001359521278 30.410264368
0xa821e759f5a8f9850206cd99f15267c80cb45ba47aa1151c597f4096c594f3a5Transfer284648982022-05-18 10:22:4616 hrs 4 mins ago0x0ab5cfa7b930891ff9134b61e13f7fe1c2550c6d IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.0022359 50.000000017
0xad1f7a82b7e9805735d309e3dcbfe49c1201f1545b6f7fddf18b4d34760b56f2Transfer284597922022-05-18 7:16:3119 hrs 10 mins ago0x31e3d4e6b7962e363ec0c0aa0c859358c7879157 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.001567961353 35.072727453
0xfe7d313a156bb445a07a515e75fe52d1a81a6355901d24f97d947fe3da8c9727Transfer284537412022-05-18 3:31:1622 hrs 55 mins ago0x61bc23296253d300a740f866ebc9af630b0fdba4 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.001927078586 31.191586321
0x13823d9511e7a792e074e6ef9f14910895dd21ac4f7daa49c7d5e9f62d53b2b5Transfer284527412022-05-18 2:54:4823 hrs 32 mins ago0xc1c872978e17009e303fa1d93bc0a6ba367bb421 IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.00210217428534.005860521
0x52c1988a70556b56539ff0c1ae75ec15d10f60bf263c22e9853cfeb5a1be068cTransfer284520632022-05-18 2:29:2023 hrs 57 mins ago0x386c8c28fb70ba94b34627009b2201120feb3c6a IN  0x187ae45f2d361cbce37c6a8622119c91148f261b0 MATIC0.0022347 50.000000009
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PolylasticV3

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : PolylasticV3.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";

contract PolylasticV3 is Ownable, ERC20 {
    using Address for address;
    using SafeERC20 for IERC20;

    address public bridgeContract;

    address public treasury;

    uint8 burnPercentage = 3;

    uint8 treasuryPercentage = 6;

    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _totalSupply,
        address _treasury
    ) ERC20(_name, _symbol) {
        treasury = _treasury;
        _mint(_msgSender(), _totalSupply * (10**18));
    }

    function updateBurnPercentage(uint8 _percent) external onlyOwner {
        require(_percent <= 100);
        burnPercentage = _percent;
    }

    function updateTreasuryPercentage(uint8 _percent) external onlyOwner {
        require(_percent <= 100);
        treasuryPercentage = _percent;
    }

    function setBridgeContractAddress(address _bridgeContract) external onlyOwner {
        require(_bridgeContract.isContract(), "Bridge Address should be a contract address");
        bridgeContract = _bridgeContract;
    }

    function setTreasury(address _treasury) external onlyOwner {
        treasury = _treasury;
    }

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        require(recipient != address(0), "ERC20: transfer to the zero address");
        if (
            _msgSender() != bridgeContract &&
            recipient != bridgeContract &&
            _msgSender() != treasury &&
            recipient != treasury
        ) {
            uint256 burnableTokens = (amount * burnPercentage) / 100;
            uint256 treasuryTokens = (amount * treasuryPercentage) / 100;
            uint256 taxedTokens = burnableTokens + treasuryTokens;
            _burn(_msgSender(), burnableTokens);
            super.transfer(treasury, treasuryTokens);
            super.transfer(recipient, (amount - taxedTokens));
            return true;
        }
        super.transfer(recipient, amount);
        return true;
    }

    function withdrawERC20(IERC20 _token) external onlyOwner {
        uint256 balance = _token.balanceOf(address(this));
        _token.safeTransfer(owner(), balance);
    }
}

File 2 of 8 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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.zeppelin.solutions/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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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;
        _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;
        }
        _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 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 3 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}

File 5 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

File 7 of 8 : 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 8 of 8 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"address","name":"_treasury","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[],"name":"bridgeContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridgeContract","type":"address"}],"name":"setBridgeContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","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":[{"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":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_percent","type":"uint8"}],"name":"updateBurnPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_percent","type":"uint8"}],"name":"updateTreasuryPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526007805461ffff60a01b191661060360a01b1790553480156200002657600080fd5b50604051620018a2380380620018a2833981016040819052620000499162000360565b83836200005633620000cf565b81516200006b90600490602085019062000207565b5080516200008190600590602084019062000207565b5050600780546001600160a01b0319166001600160a01b03841617905550620000c5620000ab3390565b620000bf84670de0b6b3a76400006200040c565b6200011f565b5050505062000497565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166200017a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600360008282546200018e9190620003f1565b90915550506001600160a01b03821660009081526001602052604081208054839290620001bd908490620003f1565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b82805462000215906200042e565b90600052602060002090601f01602090048101928262000239576000855562000284565b82601f106200025457805160ff191683800117855562000284565b8280016001018555821562000284579182015b828111156200028457825182559160200191906001019062000267565b506200029292915062000296565b5090565b5b8082111562000292576000815560010162000297565b600082601f830112620002be578081fd5b81516001600160401b0380821115620002db57620002db62000481565b604051601f8301601f19908116603f0116810190828211818310171562000306576200030662000481565b8160405283815260209250868385880101111562000322578485fd5b8491505b8382101562000345578582018301518183018401529082019062000326565b838211156200035657848385830101525b9695505050505050565b6000806000806080858703121562000376578384fd5b84516001600160401b03808211156200038d578586fd5b6200039b88838901620002ad565b95506020870151915080821115620003b1578485fd5b50620003c087828801620002ad565b60408701516060880151919550935090506001600160a01b0381168114620003e6578182fd5b939692955090935050565b600082198211156200040757620004076200046b565b500190565b60008160001904831182151516156200042957620004296200046b565b500290565b600181811c908216806200044357607f821691505b602082108114156200046557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6113fb80620004a76000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063a9059cbb1161007c578063a9059cbb14610287578063cd5965831461029a578063dd62ed3e146102ad578063f0f44260146102e6578063f2fde38b146102f9578063f4f3b2001461030c57600080fd5b8063715018a6146102405780638da5cb5b1461024857806395d89b4114610259578063a457c2d714610261578063a60fc37b1461027457600080fd5b806323b872dd116100ff57806323b872dd146101b7578063313ce567146101ca57806339509351146101d957806361d027b3146101ec57806370a082311461021757600080fd5b806306fdde031461013c578063095ea7b31461015a5780631120a7191461017d57806318160ddd146101925780631b936246146101a4575b600080fd5b61014461031f565b604051610151919061121a565b60405180910390f35b61016d61016836600461117a565b6103b1565b6040519015158152602001610151565b61019061018b3660046110e6565b6103c8565b005b6003545b604051908152602001610151565b6101906101b23660046111dd565b610488565b61016d6101c536600461113a565b6104e3565b60405160128152602001610151565b61016d6101e736600461117a565b61058f565b6007546101ff906001600160a01b031681565b6040516001600160a01b039091168152602001610151565b6101966102253660046110e6565b6001600160a01b031660009081526001602052604090205490565b6101906105cb565b6000546001600160a01b03166101ff565b610144610601565b61016d61026f36600461117a565b610610565b6101906102823660046111dd565b6106a9565b61016d61029536600461117a565b610704565b6006546101ff906001600160a01b031681565b6101966102bb366004611102565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6101906102f43660046110e6565b610849565b6101906103073660046110e6565b610895565b61019061031a3660046110e6565b610930565b60606004805461032e9061135f565b80601f016020809104026020016040519081016040528092919081815260200182805461035a9061135f565b80156103a75780601f1061037c576101008083540402835291602001916103a7565b820191906000526020600020905b81548152906001019060200180831161038a57829003601f168201915b5050505050905090565b60006103be338484610a00565b5060015b92915050565b6000546001600160a01b031633146103fb5760405162461bcd60e51b81526004016103f290611290565b60405180910390fd5b6001600160a01b0381163b6104665760405162461bcd60e51b815260206004820152602b60248201527f42726964676520416464726573732073686f756c64206265206120636f6e747260448201526a616374206164647265737360a81b60648201526084016103f2565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104b25760405162461bcd60e51b81526004016103f290611290565b60648160ff1611156104c357600080fd5b6007805460ff909216600160a01b0260ff60a01b19909216919091179055565b60006104f0848484610b25565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156105755760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016103f2565b6105828533858403610a00565b60019150505b9392505050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916103be9185906105c69086906112c5565b610a00565b6000546001600160a01b031633146105f55760405162461bcd60e51b81526004016103f290611290565b6105ff6000610cb9565b565b60606005805461032e9061135f565b3360009081526002602090815260408083206001600160a01b0386168452909152812054828110156106925760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103f2565b61069f3385858403610a00565b5060019392505050565b6000546001600160a01b031633146106d35760405162461bcd60e51b81526004016103f290611290565b60648160ff1611156106e457600080fd5b6007805460ff909216600160a81b0260ff60a81b19909216919091179055565b60006001600160a01b03831661072c5760405162461bcd60e51b81526004016103f29061124d565b6006546001600160a01b0316336001600160a01b03161415801561075e57506006546001600160a01b03848116911614155b801561077e57506007546001600160a01b0316336001600160a01b031614155b801561079857506007546001600160a01b03848116911614155b1561083f576007546000906064906107ba90600160a01b900460ff16856112fd565b6107c491906112dd565b6007549091506000906064906107e490600160a81b900460ff16866112fd565b6107ee91906112dd565b905060006107fc82846112c5565b90506108083384610d09565b60075461081e906001600160a01b031683610e54565b506108328661082d838861131c565b610e54565b50600193505050506103c2565b61069f8383610e54565b6000546001600160a01b031633146108735760405162461bcd60e51b81526004016103f290611290565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146108bf5760405162461bcd60e51b81526004016103f290611290565b6001600160a01b0381166109245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103f2565b61092d81610cb9565b50565b6000546001600160a01b0316331461095a5760405162461bcd60e51b81526004016103f290611290565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561099c57600080fd5b505afa1580156109b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d491906111c5565b90506109fc6109eb6000546001600160a01b031690565b6001600160a01b0384169083610e61565b5050565b6001600160a01b038316610a625760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103f2565b6001600160a01b038216610ac35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103f2565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610b895760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103f2565b6001600160a01b038216610baf5760405162461bcd60e51b81526004016103f29061124d565b6001600160a01b03831660009081526001602052604090205481811015610c275760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103f2565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290610c5e9084906112c5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610caa91815260200190565b60405180910390a35b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216610d695760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103f2565b6001600160a01b03821660009081526001602052604090205481811015610ddd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103f2565b6001600160a01b0383166000908152600160205260408120838303905560038054849290610e0c90849061131c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610b18565b505050565b60006103be338484610b25565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610e4f92869291600091610ef1918516908490610f6e565b805190915015610e4f5780806020019051810190610f0f91906111a5565b610e4f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103f2565b6060610f7d8484600085610f85565b949350505050565b606082471015610fe65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103f2565b843b6110345760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103f2565b600080866001600160a01b0316858760405161105091906111fe565b60006040518083038185875af1925050503d806000811461108d576040519150601f19603f3d011682016040523d82523d6000602084013e611092565b606091505b50915091506110a28282866110ad565b979650505050505050565b606083156110bc575081610588565b8251156110cc5782518084602001fd5b8160405162461bcd60e51b81526004016103f2919061121a565b6000602082840312156110f7578081fd5b8135610588816113b0565b60008060408385031215611114578081fd5b823561111f816113b0565b9150602083013561112f816113b0565b809150509250929050565b60008060006060848603121561114e578081fd5b8335611159816113b0565b92506020840135611169816113b0565b929592945050506040919091013590565b6000806040838503121561118c578182fd5b8235611197816113b0565b946020939093013593505050565b6000602082840312156111b6578081fd5b81518015158114610588578182fd5b6000602082840312156111d6578081fd5b5051919050565b6000602082840312156111ee578081fd5b813560ff81168114610588578182fd5b60008251611210818460208701611333565b9190910192915050565b6020815260008251806020840152611239816040850160208701611333565b601f01601f19169190910160400192915050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156112d8576112d861139a565b500190565b6000826112f857634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156113175761131761139a565b500290565b60008282101561132e5761132e61139a565b500390565b60005b8381101561134e578181015183820152602001611336565b83811115610cb35750506000910152565b600181811c9082168061137357607f821691505b6020821081141561139457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461092d57600080fdfea2646970667358221220aee1b12e881ba90daa2e637249ff9474182e8f63ea6c4b981e4606a137e2eef364736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000174876e8000000000000000000000000003e3b38202d3f00555dc0af0eabc30a77ac2f2aaf000000000000000000000000000000000000000000000000000000000000000a506f6c796c6173746963000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004504f4c5800000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000174876e8000000000000000000000000003e3b38202d3f00555dc0af0eabc30a77ac2f2aaf000000000000000000000000000000000000000000000000000000000000000a506f6c796c6173746963000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004504f4c5800000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Polylastic
Arg [1] : _symbol (string): POLX
Arg [2] : _totalSupply (uint256): 100000000000
Arg [3] : _treasury (address): 0x3e3b38202d3f00555dc0af0eabc30a77ac2f2aaf

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000000000000000000000000000000000174876e800
Arg [3] : 0000000000000000000000003e3b38202d3f00555dc0af0eabc30a77ac2f2aaf
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 506f6c796c617374696300000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 504f4c5800000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.