ETH Price: $2,393.66 (-0.85%)

Token

Safuchain (SAFU)
 

Overview

Max Total Supply

10,000,000,000 SAFU

Holders

317

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Balance
3,157,321.63 SAFU

Value
$0.00
0x0ba744604dbbd3fe3f99912b9acd6f39528bcd88
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Safuchain

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : Safuchain.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "./IGovernanceToken.sol";
import "./ITaxHandler.sol";
import "./ITreasuryHandler.sol";

/**
 * @title Safuchain token contract
 * @dev The Safuchain token has modular systems for tax and treasury handler as well as governance capabilities.
 */
contract Safuchain is IERC20, IGovernanceToken, Ownable {
    /// @dev Registry of user token balances.
    mapping(address => uint256) private _balances;

    /// @dev Registry of addresses users have given allowances to.
    mapping(address => mapping(address => uint256)) private _allowances;

    /// @notice Registry of user delegates for governance.
    mapping(address => address) public delegates;

    /// @notice Registry of nonces for vote delegation.
    mapping(address => uint256) public nonces;

    /// @notice Registry of the number of balance checkpoints an account has.
    mapping(address => uint32) public numCheckpoints;

    /// @notice Registry of balance checkpoints per account.
    mapping(address => mapping(uint32 => Checkpoint)) public checkpoints;

    /// @notice The EIP-712 typehash for the contract's domain.
    bytes32 public constant DOMAIN_TYPEHASH =
        keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract.
    bytes32 public constant DELEGATION_TYPEHASH =
        keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice The contract implementing tax calculations.
    ITaxHandler public taxHandler;

    /// @notice The contract that performs treasury-related operations.
    ITreasuryHandler public treasuryHandler;

    /// @notice Emitted when the tax handler contract is changed.
    event TaxHandlerChanged(address oldAddress, address newAddress);

    /// @notice Emitted when the treasury handler contract is changed.
    event TreasuryHandlerChanged(address oldAddress, address newAddress);

    /// @dev Name of the token.
    string private _name;

    /// @dev Symbol of the token.
    string private _symbol;

    /**
     * @param name_ Name of the token.
     * @param symbol_ Symbol of the token.
     * @param taxHandlerAddress Initial tax handler contract.
     * @param treasuryHandlerAddress Initial treasury handler contract.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        address taxHandlerAddress,
        address treasuryHandlerAddress
    ) {
        _name = name_;
        _symbol = symbol_;

        taxHandler = ITaxHandler(taxHandlerAddress);
        treasuryHandler = ITreasuryHandler(treasuryHandlerAddress);

        _balances[_msgSender()] = totalSupply();

        emit Transfer(address(0), _msgSender(), totalSupply());
    }

    /**
     * @notice Get token name.
     * @return Name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @notice Get token symbol.
     * @return Symbol of the token.
     */
    function symbol() external view returns (string memory) {
        return _symbol;
    }

    /**
     * @notice Get number of decimals used by the token.
     * @return Number of decimals used by the token.
     */
    function decimals() external pure returns (uint8) {
        return 9;
    }

    /**
     * @notice Get the maximum number of tokens.
     * @return The maximum number of tokens that will ever be in existence.
     */
    function totalSupply() public pure override returns (uint256) {
        // Ten billion, i.e., 10,000,000,000 tokens.
        return 1e10 * 1e9;
    }

    /**
     * @notice Get token balance of given given account.
     * @param account Address to retrieve balance for.
     * @return The number of tokens owned by `account`.
     */
    function balanceOf(address account) external view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @notice Transfer tokens from caller's address to another.
     * @param recipient Address to send the caller's tokens to.
     * @param amount The number of tokens to transfer to recipient.
     * @return True if transfer succeeds, else an error is raised.
     */
    function transfer(address recipient, uint256 amount) external override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @notice Get the allowance `owner` has given `spender`.
     * @param owner The address on behalf of whom tokens can be spent by `spender`.
     * @param spender The address authorized to spend tokens on behalf of `owner`.
     * @return The allowance `owner` has given `spender`.
     */
    function allowance(address owner, address spender) external view override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @notice Approve address to spend caller's tokens.
     * @dev This method can be exploited by malicious spenders if their allowance is already non-zero. See the following
     * document for details: https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/edit.
     * Ensure the spender can be trusted before calling this method if they've already been approved before. Otherwise
     * use either the `increaseAllowance`/`decreaseAllowance` functions, or first set their allowance to zero, before
     * setting a new allowance.
     * @param spender Address to authorize for token expenditure.
     * @param amount The number of tokens `spender` is allowed to spend.
     * @return True if the approval succeeds, else an error is raised.
     */
    function approve(address spender, uint256 amount) external override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @notice Transfer tokens from one address to another.
     * @param sender Address to move tokens from.
     * @param recipient Address to send the caller's tokens to.
     * @param amount The number of tokens to transfer to recipient.
     * @return True if the transfer succeeds, else an error is raised.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(
            currentAllowance >= amount,
            "SAFUCHAIN:transferFrom:ALLOWANCE_EXCEEDED: Transfer amount exceeds allowance."
        );
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @notice Increase spender's allowance.
     * @param spender Address of user authorized to spend caller's tokens.
     * @param addedValue The number of tokens to add to `spender`'s allowance.
     * @return True if the allowance is successfully increased, else an error is raised.
     */
    function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);

        return true;
    }

    /**
     * @notice Decrease spender's allowance.
     * @param spender Address of user authorized to spend caller's tokens.
     * @param subtractedValue The number of tokens to remove from `spender`'s allowance.
     * @return True if the allowance is successfully decreased, else an error is raised.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(
            currentAllowance >= subtractedValue,
            "SAFUCHAIN:decreaseAllowance:ALLOWANCE_UNDERFLOW: Subtraction results in sub-zero allowance."
        );
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @notice Delegate votes to given address.
     * @dev It should be noted that users that want to vote themselves, also need to call this method, albeit with their
     * own address.
     * @param delegatee Address to delegate votes to.
     */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegate votes from signatory to `delegatee`.
     * @param delegatee The address to delegate votes to.
     * @param nonce The contract state required to match the signature.
     * @param expiry The time at which to expire the signature.
     * @param v The recovery byte of the signature.
     * @param r Half of the ECDSA signature pair.
     * @param s Half of the ECDSA signature pair.
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external {
        bytes32 domainSeparator = keccak256(
            abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), block.chainid, address(this))
        );
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);

        require(signatory != address(0), "SAFUCHAIN:delegateBySig:INVALID_SIGNATURE: Received signature was invalid.");
        require(block.timestamp <= expiry, "SAFUCHAIN:delegateBySig:EXPIRED_SIGNATURE: Received signature has expired.");
        require(nonce == nonces[signatory]++, "SAFUCHAIN:delegateBySig:INVALID_NONCE: Received nonce was invalid.");

        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Determine the number of votes for an account as of a block number.
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check.
     * @param blockNumber The block number to get the vote balance at.
     * @return The number of votes the account had as of the given block.
     */
    function getVotesAtBlock(address account, uint32 blockNumber) public view returns (uint224) {
        require(
            blockNumber < block.number,
            "SAFUCHAIN:getVotesAtBlock:FUTURE_BLOCK: Cannot get votes at a block in the future."
        );

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance.
        if (checkpoints[account][nCheckpoints - 1].blockNumber <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance.
        if (checkpoints[account][0].blockNumber > blockNumber) {
            return 0;
        }

        // Perform binary search.
        uint32 lowerBound = 0;
        uint32 upperBound = nCheckpoints - 1;
        while (upperBound > lowerBound) {
            uint32 center = upperBound - (upperBound - lowerBound) / 2;
            Checkpoint memory checkpoint = checkpoints[account][center];

            if (checkpoint.blockNumber == blockNumber) {
                return checkpoint.votes;
            } else if (checkpoint.blockNumber < blockNumber) {
                lowerBound = center;
            } else {
                upperBound = center - 1;
            }
        }

        // No exact block found. Use last known balance before that block number.
        return checkpoints[account][lowerBound].votes;
    }

    /**
     * @notice Set new tax handler contract.
     * @param taxHandlerAddress Address of new tax handler contract.
     */
    function setTaxHandler(address taxHandlerAddress) external onlyOwner {
        address oldTaxHandlerAddress = address(taxHandler);
        taxHandler = ITaxHandler(taxHandlerAddress);

        emit TaxHandlerChanged(oldTaxHandlerAddress, taxHandlerAddress);
    }

    /**
     * @notice Set new treasury handler contract.
     * @param treasuryHandlerAddress Address of new treasury handler contract.
     */
    function setTreasuryHandler(address treasuryHandlerAddress) external onlyOwner {
        address oldTreasuryHandlerAddress = address(treasuryHandler);
        treasuryHandler = ITreasuryHandler(treasuryHandlerAddress);

        emit TreasuryHandlerChanged(oldTreasuryHandlerAddress, treasuryHandlerAddress);
    }

    /**
     * @notice Delegate votes from one address to another.
     * @param delegator Address from which to delegate votes for.
     * @param delegatee Address to delegate votes to.
     */
    function _delegate(address delegator, address delegatee) private {
        address currentDelegate = delegates[delegator];
        uint256 delegatorBalance = _balances[delegator];
        delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, uint224(delegatorBalance));
    }

    /**
     * @notice Move delegates from one address to another.
     * @param from Representative to move delegates from.
     * @param to Representative to move delegates to.
     * @param amount Number of delegates to move.
     */
    function _moveDelegates(
        address from,
        address to,
        uint224 amount
    ) private {
        // No need to update checkpoints if the votes don't actually move between different delegates. This can be the
        // case where tokens are transferred between two parties that have delegated their votes to the same address.
        if (from == to) {
            return;
        }

        // Some users preemptively delegate their votes (i.e. before they have any tokens). No need to perform an update
        // to the checkpoints in that case.
        if (amount == 0) {
            return;
        }

        if (from != address(0)) {
            uint32 fromRepNum = numCheckpoints[from];
            uint224 fromRepOld = fromRepNum > 0 ? checkpoints[from][fromRepNum - 1].votes : 0;
            uint224 fromRepNew = fromRepOld - amount;

            _writeCheckpoint(from, fromRepNum, fromRepOld, fromRepNew);
        }

        if (to != address(0)) {
            uint32 toRepNum = numCheckpoints[to];
            uint224 toRepOld = toRepNum > 0 ? checkpoints[to][toRepNum - 1].votes : 0;
            uint224 toRepNew = toRepOld + amount;

            _writeCheckpoint(to, toRepNum, toRepOld, toRepNew);
        }
    }

    /**
     * @notice Write balance checkpoint to chain.
     * @param delegatee The address to write the checkpoint for.
     * @param nCheckpoints The number of checkpoints `delegatee` already has.
     * @param oldVotes Number of votes prior to this checkpoint.
     * @param newVotes Number of votes `delegatee` now has.
     */
    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint224 oldVotes,
        uint224 newVotes
    ) private {
        uint32 blockNumber = uint32(block.number);

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].blockNumber == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    /**
     * @notice Approve spender on behalf of owner.
     * @param owner Address on behalf of whom tokens can be spent by `spender`.
     * @param spender Address to authorize for token expenditure.
     * @param amount The number of tokens `spender` is allowed to spend.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) private {
        require(owner != address(0), "SAFUCHAIN:_approve:OWNER_ZERO: Cannot approve for the zero address.");
        require(spender != address(0), "SAFUCHAIN:_approve:SPENDER_ZERO: Cannot approve to the zero address.");

        _allowances[owner][spender] = amount;

        emit Approval(owner, spender, amount);
    }

    /**
     * @notice Transfer `amount` tokens from account `from` to account `to`.
     * @param from Address the tokens are moved out of.
     * @param to Address the tokens are moved to.
     * @param amount The number of tokens to transfer.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) private {
        require(from != address(0), "SAFUCHAIN:_transfer:FROM_ZERO: Cannot transfer from the zero address.");
        require(to != address(0), "SAFUCHAIN:_transfer:TO_ZERO: Cannot transfer to the zero address.");
        require(amount > 0, "SAFUCHAIN:_transfer:ZERO_AMOUNT: Transfer amount must be greater than zero.");
        require(amount <= _balances[from], "SAFUCHAIN:_transfer:INSUFFICIENT_BALANCE: Transfer amount exceeds balance.");

        treasuryHandler.beforeTransferHandler(from, to, amount);

        uint256 tax = taxHandler.getTax(from, to, amount);
        uint256 taxedAmount = amount - tax;

        _balances[from] -= amount;
        _balances[to] += taxedAmount;
        _moveDelegates(delegates[from], delegates[to], uint224(taxedAmount));

        if (tax > 0) {
            _balances[address(treasuryHandler)] += tax;

            _moveDelegates(delegates[from], delegates[address(treasuryHandler)], uint224(tax));

            emit Transfer(from, address(treasuryHandler), tax);
        }

        treasuryHandler.afterTransferHandler(from, to, amount);

        emit Transfer(from, to, taxedAmount);
    }
}

File 2 of 7 : ITreasuryHandler.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/**
 * @title Treasury handler interface
 * @dev Any class that implements this interface can be used for protocol-specific operations pertaining to the treasury.
 */
interface ITreasuryHandler {
    /**
     * @notice Perform operations before a transfer is executed.
     * @param benefactor Address of the benefactor.
     * @param beneficiary Address of the beneficiary.
     * @param amount Number of tokens in the transfer.
     */
    function beforeTransferHandler(
        address benefactor,
        address beneficiary,
        uint256 amount
    ) external;

    /**
     * @notice Perform operations after a transfer is executed.
     * @param benefactor Address of the benefactor.
     * @param beneficiary Address of the beneficiary.
     * @param amount Number of tokens in the transfer.
     */
    function afterTransferHandler(
        address benefactor,
        address beneficiary,
        uint256 amount
    ) external;
}

File 3 of 7 : ITaxHandler.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/**
 * @title Tax handler interface
 * @dev Any class that implements this interface can be used for protocol-specific tax calculations.
 */
interface ITaxHandler {
    /**
     * @notice Get number of tokens to pay as tax.
     * @param benefactor Address of the benefactor.
     * @param beneficiary Address of the beneficiary.
     * @param amount Number of tokens in the transfer.
     * @return Number of tokens to pay as tax.
     */
    function getTax(
        address benefactor,
        address beneficiary,
        uint256 amount
    ) external view returns (uint256);
}

File 4 of 7 : IGovernanceToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/**
 * @title Governance token interface.
 */
interface IGovernanceToken {
    /// @notice A checkpoint for marking number of votes as of a given block.
    struct Checkpoint {
        // The 32-bit unsigned integer is valid until these estimated dates for these given chains:
        //  - BSC: Sat Dec 23 2428 18:23:11 UTC
        //  - ETH: Tue Apr 18 3826 09:27:12 UTC
        // This assumes that block mining rates don't speed up.
        uint32 blockNumber;
        // This type is set to `uint224` for optimizations purposes (i.e., specifically to fit in a 32-byte block). It
        // assumes that the number of votes for the implementing governance token never exceeds the maximum value for a
        // 224-bit number.
        uint224 votes;
    }

    /**
     * @notice Determine the number of votes for an account as of a block number.
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check.
     * @param blockNumber The block number to get the vote balance at.
     * @return The number of votes the account had as of the given block.
     */
    function getVotesAtBlock(address account, uint32 blockNumber) external view returns (uint224);

    /// @notice Emitted whenever a new delegate is set for an account.
    event DelegateChanged(address delegator, address currentDelegate, address newDelegate);

    /// @notice Emitted when a delegate's vote count changes.
    event DelegateVotesChanged(address delegatee, uint224 oldVotes, uint224 newVotes);
}

File 5 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

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

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

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

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

File 6 of 7 : 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 7 of 7 : 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"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"taxHandlerAddress","type":"address"},{"internalType":"address","name":"treasuryHandlerAddress","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":false,"internalType":"address","name":"delegator","type":"address"},{"indexed":false,"internalType":"address","name":"currentDelegate","type":"address"},{"indexed":false,"internalType":"address","name":"newDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"delegatee","type":"address"},{"indexed":false,"internalType":"uint224","name":"oldVotes","type":"uint224"},{"indexed":false,"internalType":"uint224","name":"newVotes","type":"uint224"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"TaxHandlerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"TreasuryHandlerChanged","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"blockNumber","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"blockNumber","type":"uint32"}],"name":"getVotesAtBlock","outputs":[{"internalType":"uint224","name":"","type":"uint224"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"taxHandlerAddress","type":"address"}],"name":"setTaxHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasuryHandlerAddress","type":"address"}],"name":"setTreasuryHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxHandler","outputs":[{"internalType":"contract ITaxHandler","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"treasuryHandler","outputs":[{"internalType":"contract ITreasuryHandler","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162002175380380620021758339810160408190526200003491620002fb565b6200003f336200011b565b8351620000549060099060208701906200016b565b5082516200006a90600a9060208601906200016b565b50600780546001600160a01b038085166001600160a01b0319928316179092556008805492841692909116919091179055620000ab678ac7230489e8000090565b60016000336001600160a01b03168152602081019190915260400160002055336001600160a01b031660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef678ac7230489e8000060405190815260200160405180910390a350505050620003c7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000179906200038a565b90600052602060002090601f0160209004810192826200019d5760008555620001e8565b82601f10620001b857805160ff1916838001178555620001e8565b82800160010185558215620001e8579182015b82811115620001e8578251825591602001919060010190620001cb565b50620001f6929150620001fa565b5090565b5b80821115620001f65760008155600101620001fb565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023957600080fd5b81516001600160401b038082111562000256576200025662000211565b604051601f8301601f19908116603f0116810190828211818310171562000281576200028162000211565b816040528381526020925086838588010111156200029e57600080fd5b600091505b83821015620002c25785820183015181830184015290820190620002a3565b83821115620002d45760008385830101525b9695505050505050565b80516001600160a01b0381168114620002f657600080fd5b919050565b600080600080608085870312156200031257600080fd5b84516001600160401b03808211156200032a57600080fd5b620003388883890162000227565b955060208701519150808211156200034f57600080fd5b506200035e8782880162000227565b9350506200036f60408601620002de565b91506200037f60608601620002de565b905092959194509250565b600181811c908216806200039f57607f821691505b60208210811415620003c157634e487b7160e01b600052602260045260246000fd5b50919050565b611d9e80620003d76000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636fcfff45116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e1461040e578063e7a324dc14610447578063f1127ed81461046e578063f2fde38b146104d557600080fd5b8063a9059cbb146103d5578063a9373b7b146103e8578063c3cda520146103fb57600080fd5b80637ecebe00116100d35780637ecebe00146103895780638da5cb5b146103a957806395d89b41146103ba578063a457c2d7146103c257600080fd5b80636fcfff451461031d57806370a0823114610358578063715018a61461038157600080fd5b806323b872dd11610166578063395093511161014057806339509351146102b9578063488d4a51146102cc578063587cde1e146102e15780635c19a95c1461030a57600080fd5b806323b872dd1461026c578063271a45291461027f578063313ce567146102aa57600080fd5b806306fdde03146101ae578063095ea7b3146101cc57806312280ba8146101ef578063178896331461021a57806318160ddd1461022d57806320606b7014610245575b600080fd5b6101b66104e8565b6040516101c39190611a28565b60405180910390f35b6101df6101da366004611a99565b61057a565b60405190151581526020016101c3565b600754610202906001600160a01b031681565b6040516001600160a01b0390911681526020016101c3565b600854610202906001600160a01b031681565b678ac7230489e800005b6040519081526020016101c3565b6102377f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6101df61027a366004611ac3565b610591565b61029261028d366004611aff565b61066b565b6040516001600160e01b0390911681526020016101c3565b604051600981526020016101c3565b6101df6102c7366004611a99565b610937565b6102df6102da366004611b3f565b610973565b005b6102026102ef366004611b3f565b6003602052600090815260409020546001600160a01b031681565b6102df610318366004611b3f565b6109dc565b61034361032b366004611b3f565b60056020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101c3565b610237610366366004611b3f565b6001600160a01b031660009081526001602052604090205490565b6102df6109e9565b610237610397366004611b3f565b60046020526000908152604090205481565b6000546001600160a01b0316610202565b6101b66109fd565b6101df6103d0366004611a99565b610a0c565b6101df6103e3366004611a99565b610ae3565b6102df6103f6366004611b3f565b610af0565b6102df610409366004611b61565b610b52565b61023761041c366004611bc1565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6102377fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6104b161047c366004611aff565b600660209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160e01b031682565b6040805163ffffffff90931683526001600160e01b039091166020830152016101c3565b6102df6104e3366004611b3f565b610e91565b6060600980546104f790611bf4565b80601f016020809104026020016040519081016040528092919081815260200182805461052390611bf4565b80156105705780601f1061054557610100808354040283529160200191610570565b820191906000526020600020905b81548152906001019060200180831161055357829003601f168201915b5050505050905090565b6000610587338484610f07565b5060015b92915050565b600061059e84848461107a565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156106535760405162461bcd60e51b815260206004820152604d60248201527f53414655434841494e3a7472616e7366657246726f6d3a414c4c4f57414e434560448201527f5f45584345454445443a205472616e7366657220616d6f756e7420657863656560648201526c32399030b63637bbb0b731b29760991b608482015260a4015b60405180910390fd5b6106608533858403610f07565b506001949350505050565b6000438263ffffffff16106107035760405162461bcd60e51b815260206004820152605260248201527f53414655434841494e3a676574566f7465734174426c6f636b3a46555455524560448201527f5f424c4f434b3a2043616e6e6f742067657420766f746573206174206120626c60648201527137b1b59034b7103a343290333aba3ab9329760711b608482015260a40161064a565b6001600160a01b03831660009081526005602052604090205463ffffffff168061073157600091505061058b565b6001600160a01b038416600090815260066020526040812063ffffffff85169161075c600185611c45565b63ffffffff908116825260208201929092526040016000205416116107cf576001600160a01b03841660009081526006602052604081209061079f600184611c45565b63ffffffff168152602081019190915260400160002054600160201b90046001600160e01b0316915061058b9050565b6001600160a01b038416600090815260066020908152604080832083805290915290205463ffffffff8085169116111561080d57600091505061058b565b60008061081b600184611c45565b90505b8163ffffffff168163ffffffff1611156108f257600060026108408484611c45565b61084a9190611c6a565b6108549083611c45565b6001600160a01b038816600090815260066020908152604080832063ffffffff858116855290835292819020815180830190925254808416808352600160201b9091046001600160e01b03169282019290925292935090881614156108c35760200151945061058b9350505050565b805163ffffffff808916911610156108dd578193506108eb565b6108e8600183611c45565b92505b505061081e565b506001600160a01b038516600090815260066020908152604080832063ffffffff909416835292905220546001600160e01b03600160201b9091041691505092915050565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161058791859061096e908690611c9b565b610f07565b61097b6115b3565b600780546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527ed910c9481701ba32afe0c247572aaece27072f230c8ec769bf245fc0b38de691015b60405180910390a15050565b6109e6338261160d565b50565b6109f16115b3565b6109fb600061169f565b565b6060600a80546104f790611bf4565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610acc5760405162461bcd60e51b815260206004820152605b60248201527f53414655434841494e3a6465637265617365416c6c6f77616e63653a414c4c4f60448201527f57414e43455f554e444552464c4f573a205375627472616374696f6e2072657360648201527f756c747320696e207375622d7a65726f20616c6c6f77616e63652e0000000000608482015260a40161064a565b610ad93385858403610f07565b5060019392505050565b600061058733848461107a565b610af86115b3565b600880546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f1bf87992a35ee29395ab494f9adb9a500a7fa60c3082cba0ef02701bb35900d991016109d0565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610b7d6104e8565b8051602091820120604080518084019490945283810191909152466060840152306080808501919091528151808503909101815260a0840182528051908301207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08501526001600160a01b038b1660e085015261010084018a90526101208085018a90528251808603909101815261014085019092528151919092012061190160f01b61016084015261016283018290526101828301819052909250906000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610cae573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610d4a5760405162461bcd60e51b815260206004820152604a60248201527f53414655434841494e3a64656c656761746542795369673a494e56414c49445f60448201527f5349474e41545552453a205265636569766564207369676e6174757265207761606482015269399034b73b30b634b21760b11b608482015260a40161064a565b87421115610dd35760405162461bcd60e51b815260206004820152604a60248201527f53414655434841494e3a64656c656761746542795369673a455850495245445f60448201527f5349474e41545552453a205265636569766564207369676e6174757265206861606482015269399032bc3834b932b21760b11b608482015260a40161064a565b6001600160a01b0381166000908152600460205260408120805491610df783611cb3565b919050558914610e7a5760405162461bcd60e51b815260206004820152604260248201527f53414655434841494e3a64656c656761746542795369673a494e56414c49445f60448201527f4e4f4e43453a205265636569766564206e6f6e63652077617320696e76616c69606482015261321760f11b608482015260a40161064a565b610e84818b61160d565b505050505b505050505050565b610e996115b3565b6001600160a01b038116610efe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161064a565b6109e68161169f565b6001600160a01b038316610f8f5760405162461bcd60e51b815260206004820152604360248201527f53414655434841494e3a5f617070726f76653a4f574e45525f5a45524f3a204360448201527f616e6e6f7420617070726f766520666f7220746865207a65726f20616464726560648201526239b99760e91b608482015260a40161064a565b6001600160a01b0382166110195760405162461bcd60e51b8152602060048201526044602482018190527f53414655434841494e3a5f617070726f76653a5350454e4445525f5a45524f3a908201527f2043616e6e6f7420617070726f766520746f20746865207a65726f206164647260648201526332b9b99760e11b608482015260a40161064a565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166111045760405162461bcd60e51b815260206004820152604560248201527f53414655434841494e3a5f7472616e736665723a46524f4d5f5a45524f3a204360448201527f616e6e6f74207472616e736665722066726f6d20746865207a65726f206164646064820152643932b9b99760d91b608482015260a40161064a565b6001600160a01b03821661118a5760405162461bcd60e51b815260206004820152604160248201527f53414655434841494e3a5f7472616e736665723a544f5f5a45524f3a2043616e60448201527f6e6f74207472616e7366657220746f20746865207a65726f20616464726573736064820152601760f91b608482015260a40161064a565b600081116112145760405162461bcd60e51b815260206004820152604b60248201527f53414655434841494e3a5f7472616e736665723a5a45524f5f414d4f554e543a60448201527f205472616e7366657220616d6f756e74206d757374206265206772656174657260648201526a103a3430b7103d32b9379760a91b608482015260a40161064a565b6001600160a01b0383166000908152600160205260409020548111156112b55760405162461bcd60e51b815260206004820152604a60248201527f53414655434841494e3a5f7472616e736665723a494e53554646494349454e5460448201527f5f42414c414e43453a205472616e7366657220616d6f756e742065786365656460648201526939903130b630b731b29760b11b608482015260a40161064a565b60085460405163c6512cc160e01b81526001600160a01b0385811660048301528481166024830152604482018490529091169063c6512cc190606401600060405180830381600087803b15801561130b57600080fd5b505af115801561131f573d6000803e3d6000fd5b50506007546040516335eb486b60e21b81526001600160a01b03878116600483015286811660248301526044820186905260009450909116915063d7ad21ac90606401602060405180830381865afa15801561137f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a39190611cce565b905060006113b18284611ce7565b6001600160a01b0386166000908152600160205260408120805492935085929091906113de908490611ce7565b90915550506001600160a01b0384166000908152600160205260408120805483929061140b908490611c9b565b90915550506001600160a01b03808616600090815260036020526040808220548784168352912054611442929182169116836116ef565b81156114f1576008546001600160a01b031660009081526001602052604081208054849290611472908490611c9b565b90915550506001600160a01b0380861660009081526003602052604080822054600854841683529120546114ab929182169116846116ef565b6008546040518381526001600160a01b03918216918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b60085460405163e613b1cd60e01b81526001600160a01b0387811660048301528681166024830152604482018690529091169063e613b1cd90606401600060405180830381600087803b15801561154757600080fd5b505af115801561155b573d6000803e3d6000fd5b50505050836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516115a491815260200190565b60405180910390a35050505050565b6000546001600160a01b031633146109fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6001600160a01b03828116600081815260036020818152604080842080546001845294829020549383528787166001600160a01b03198616811790915581519586529390951690840181905293830191909152907f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9060600160405180910390a16116998284836116ef565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316141561170e57505050565b6001600160e01b03811661172157505050565b6001600160a01b038316156117c8576001600160a01b03831660009081526005602052604081205463ffffffff16908161175c5760006117a8565b6001600160a01b038516600090815260066020526040812090611780600185611c45565b63ffffffff168152602081019190915260400160002054600160201b90046001600160e01b03165b905060006117b68483611cfe565b90506117c486848484611870565b5050505b6001600160a01b0382161561186b576001600160a01b03821660009081526005602052604081205463ffffffff16908161180357600061184f565b6001600160a01b038416600090815260066020526040812090611827600185611c45565b63ffffffff168152602081019190915260400160002054600160201b90046001600160e01b03165b9050600061185d8483611d1e565b9050610e8985848484611870565b505050565b4363ffffffff8416158015906118c857506001600160a01b038516600090815260066020526040812063ffffffff8316916118ac600188611c45565b63ffffffff908116825260208201929092526040016000205416145b15611938576001600160a01b038516600090815260066020526040812083916118f2600188611c45565b63ffffffff1663ffffffff16815260200190815260200160002060000160046101000a8154816001600160e01b0302191690836001600160e01b031602179055506119cf565b60408051808201825263ffffffff80841682526001600160e01b0380861660208085019182526001600160a01b038b166000908152600682528681208b86168252909152949094209251935116600160201b02921691909117905561199e846001611d49565b6001600160a01b0386166000908152600560205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160a01b03871681526001600160e01b03858116602083015284168183015290517fda5a64c2947c0b7bf4d6e7bf736c6f84d9d1c5f991770f88bbeb3fe19c85a1349181900360600190a15050505050565b600060208083528351808285015260005b81811015611a5557858101830151858201604001528201611a39565b81811115611a67576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114611a9457600080fd5b919050565b60008060408385031215611aac57600080fd5b611ab583611a7d565b946020939093013593505050565b600080600060608486031215611ad857600080fd5b611ae184611a7d565b9250611aef60208501611a7d565b9150604084013590509250925092565b60008060408385031215611b1257600080fd5b611b1b83611a7d565b9150602083013563ffffffff81168114611b3457600080fd5b809150509250929050565b600060208284031215611b5157600080fd5b611b5a82611a7d565b9392505050565b60008060008060008060c08789031215611b7a57600080fd5b611b8387611a7d565b95506020870135945060408701359350606087013560ff81168114611ba757600080fd5b9598949750929560808101359460a0909101359350915050565b60008060408385031215611bd457600080fd5b611bdd83611a7d565b9150611beb60208401611a7d565b90509250929050565b600181811c90821680611c0857607f821691505b60208210811415611c2957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff83811690831681811015611c6257611c62611c2f565b039392505050565b600063ffffffff80841680611c8f57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60008219821115611cae57611cae611c2f565b500190565b6000600019821415611cc757611cc7611c2f565b5060010190565b600060208284031215611ce057600080fd5b5051919050565b600082821015611cf957611cf9611c2f565b500390565b60006001600160e01b0383811690831681811015611c6257611c62611c2f565b60006001600160e01b03828116848216808303821115611d4057611d40611c2f565b01949350505050565b600063ffffffff808316818516808303821115611d4057611d40611c2f56fea2646970667358221220ec20a51068091969cb1c30637d9f53db39619287958acc2682b1cf4e91f678cb64736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000673ed2dbd171a2cb7f596bc8bf7bc6080b592afe000000000000000000000000673ed2dbd171a2cb7f596bc8bf7bc6080b592afe000000000000000000000000000000000000000000000000000000000000000953616675636861696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045341465500000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80636fcfff45116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e1461040e578063e7a324dc14610447578063f1127ed81461046e578063f2fde38b146104d557600080fd5b8063a9059cbb146103d5578063a9373b7b146103e8578063c3cda520146103fb57600080fd5b80637ecebe00116100d35780637ecebe00146103895780638da5cb5b146103a957806395d89b41146103ba578063a457c2d7146103c257600080fd5b80636fcfff451461031d57806370a0823114610358578063715018a61461038157600080fd5b806323b872dd11610166578063395093511161014057806339509351146102b9578063488d4a51146102cc578063587cde1e146102e15780635c19a95c1461030a57600080fd5b806323b872dd1461026c578063271a45291461027f578063313ce567146102aa57600080fd5b806306fdde03146101ae578063095ea7b3146101cc57806312280ba8146101ef578063178896331461021a57806318160ddd1461022d57806320606b7014610245575b600080fd5b6101b66104e8565b6040516101c39190611a28565b60405180910390f35b6101df6101da366004611a99565b61057a565b60405190151581526020016101c3565b600754610202906001600160a01b031681565b6040516001600160a01b0390911681526020016101c3565b600854610202906001600160a01b031681565b678ac7230489e800005b6040519081526020016101c3565b6102377f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6101df61027a366004611ac3565b610591565b61029261028d366004611aff565b61066b565b6040516001600160e01b0390911681526020016101c3565b604051600981526020016101c3565b6101df6102c7366004611a99565b610937565b6102df6102da366004611b3f565b610973565b005b6102026102ef366004611b3f565b6003602052600090815260409020546001600160a01b031681565b6102df610318366004611b3f565b6109dc565b61034361032b366004611b3f565b60056020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101c3565b610237610366366004611b3f565b6001600160a01b031660009081526001602052604090205490565b6102df6109e9565b610237610397366004611b3f565b60046020526000908152604090205481565b6000546001600160a01b0316610202565b6101b66109fd565b6101df6103d0366004611a99565b610a0c565b6101df6103e3366004611a99565b610ae3565b6102df6103f6366004611b3f565b610af0565b6102df610409366004611b61565b610b52565b61023761041c366004611bc1565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6102377fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6104b161047c366004611aff565b600660209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160e01b031682565b6040805163ffffffff90931683526001600160e01b039091166020830152016101c3565b6102df6104e3366004611b3f565b610e91565b6060600980546104f790611bf4565b80601f016020809104026020016040519081016040528092919081815260200182805461052390611bf4565b80156105705780601f1061054557610100808354040283529160200191610570565b820191906000526020600020905b81548152906001019060200180831161055357829003601f168201915b5050505050905090565b6000610587338484610f07565b5060015b92915050565b600061059e84848461107a565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156106535760405162461bcd60e51b815260206004820152604d60248201527f53414655434841494e3a7472616e7366657246726f6d3a414c4c4f57414e434560448201527f5f45584345454445443a205472616e7366657220616d6f756e7420657863656560648201526c32399030b63637bbb0b731b29760991b608482015260a4015b60405180910390fd5b6106608533858403610f07565b506001949350505050565b6000438263ffffffff16106107035760405162461bcd60e51b815260206004820152605260248201527f53414655434841494e3a676574566f7465734174426c6f636b3a46555455524560448201527f5f424c4f434b3a2043616e6e6f742067657420766f746573206174206120626c60648201527137b1b59034b7103a343290333aba3ab9329760711b608482015260a40161064a565b6001600160a01b03831660009081526005602052604090205463ffffffff168061073157600091505061058b565b6001600160a01b038416600090815260066020526040812063ffffffff85169161075c600185611c45565b63ffffffff908116825260208201929092526040016000205416116107cf576001600160a01b03841660009081526006602052604081209061079f600184611c45565b63ffffffff168152602081019190915260400160002054600160201b90046001600160e01b0316915061058b9050565b6001600160a01b038416600090815260066020908152604080832083805290915290205463ffffffff8085169116111561080d57600091505061058b565b60008061081b600184611c45565b90505b8163ffffffff168163ffffffff1611156108f257600060026108408484611c45565b61084a9190611c6a565b6108549083611c45565b6001600160a01b038816600090815260066020908152604080832063ffffffff858116855290835292819020815180830190925254808416808352600160201b9091046001600160e01b03169282019290925292935090881614156108c35760200151945061058b9350505050565b805163ffffffff808916911610156108dd578193506108eb565b6108e8600183611c45565b92505b505061081e565b506001600160a01b038516600090815260066020908152604080832063ffffffff909416835292905220546001600160e01b03600160201b9091041691505092915050565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161058791859061096e908690611c9b565b610f07565b61097b6115b3565b600780546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527ed910c9481701ba32afe0c247572aaece27072f230c8ec769bf245fc0b38de691015b60405180910390a15050565b6109e6338261160d565b50565b6109f16115b3565b6109fb600061169f565b565b6060600a80546104f790611bf4565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610acc5760405162461bcd60e51b815260206004820152605b60248201527f53414655434841494e3a6465637265617365416c6c6f77616e63653a414c4c4f60448201527f57414e43455f554e444552464c4f573a205375627472616374696f6e2072657360648201527f756c747320696e207375622d7a65726f20616c6c6f77616e63652e0000000000608482015260a40161064a565b610ad93385858403610f07565b5060019392505050565b600061058733848461107a565b610af86115b3565b600880546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f1bf87992a35ee29395ab494f9adb9a500a7fa60c3082cba0ef02701bb35900d991016109d0565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610b7d6104e8565b8051602091820120604080518084019490945283810191909152466060840152306080808501919091528151808503909101815260a0840182528051908301207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08501526001600160a01b038b1660e085015261010084018a90526101208085018a90528251808603909101815261014085019092528151919092012061190160f01b61016084015261016283018290526101828301819052909250906000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610cae573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610d4a5760405162461bcd60e51b815260206004820152604a60248201527f53414655434841494e3a64656c656761746542795369673a494e56414c49445f60448201527f5349474e41545552453a205265636569766564207369676e6174757265207761606482015269399034b73b30b634b21760b11b608482015260a40161064a565b87421115610dd35760405162461bcd60e51b815260206004820152604a60248201527f53414655434841494e3a64656c656761746542795369673a455850495245445f60448201527f5349474e41545552453a205265636569766564207369676e6174757265206861606482015269399032bc3834b932b21760b11b608482015260a40161064a565b6001600160a01b0381166000908152600460205260408120805491610df783611cb3565b919050558914610e7a5760405162461bcd60e51b815260206004820152604260248201527f53414655434841494e3a64656c656761746542795369673a494e56414c49445f60448201527f4e4f4e43453a205265636569766564206e6f6e63652077617320696e76616c69606482015261321760f11b608482015260a40161064a565b610e84818b61160d565b505050505b505050505050565b610e996115b3565b6001600160a01b038116610efe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161064a565b6109e68161169f565b6001600160a01b038316610f8f5760405162461bcd60e51b815260206004820152604360248201527f53414655434841494e3a5f617070726f76653a4f574e45525f5a45524f3a204360448201527f616e6e6f7420617070726f766520666f7220746865207a65726f20616464726560648201526239b99760e91b608482015260a40161064a565b6001600160a01b0382166110195760405162461bcd60e51b8152602060048201526044602482018190527f53414655434841494e3a5f617070726f76653a5350454e4445525f5a45524f3a908201527f2043616e6e6f7420617070726f766520746f20746865207a65726f206164647260648201526332b9b99760e11b608482015260a40161064a565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166111045760405162461bcd60e51b815260206004820152604560248201527f53414655434841494e3a5f7472616e736665723a46524f4d5f5a45524f3a204360448201527f616e6e6f74207472616e736665722066726f6d20746865207a65726f206164646064820152643932b9b99760d91b608482015260a40161064a565b6001600160a01b03821661118a5760405162461bcd60e51b815260206004820152604160248201527f53414655434841494e3a5f7472616e736665723a544f5f5a45524f3a2043616e60448201527f6e6f74207472616e7366657220746f20746865207a65726f20616464726573736064820152601760f91b608482015260a40161064a565b600081116112145760405162461bcd60e51b815260206004820152604b60248201527f53414655434841494e3a5f7472616e736665723a5a45524f5f414d4f554e543a60448201527f205472616e7366657220616d6f756e74206d757374206265206772656174657260648201526a103a3430b7103d32b9379760a91b608482015260a40161064a565b6001600160a01b0383166000908152600160205260409020548111156112b55760405162461bcd60e51b815260206004820152604a60248201527f53414655434841494e3a5f7472616e736665723a494e53554646494349454e5460448201527f5f42414c414e43453a205472616e7366657220616d6f756e742065786365656460648201526939903130b630b731b29760b11b608482015260a40161064a565b60085460405163c6512cc160e01b81526001600160a01b0385811660048301528481166024830152604482018490529091169063c6512cc190606401600060405180830381600087803b15801561130b57600080fd5b505af115801561131f573d6000803e3d6000fd5b50506007546040516335eb486b60e21b81526001600160a01b03878116600483015286811660248301526044820186905260009450909116915063d7ad21ac90606401602060405180830381865afa15801561137f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a39190611cce565b905060006113b18284611ce7565b6001600160a01b0386166000908152600160205260408120805492935085929091906113de908490611ce7565b90915550506001600160a01b0384166000908152600160205260408120805483929061140b908490611c9b565b90915550506001600160a01b03808616600090815260036020526040808220548784168352912054611442929182169116836116ef565b81156114f1576008546001600160a01b031660009081526001602052604081208054849290611472908490611c9b565b90915550506001600160a01b0380861660009081526003602052604080822054600854841683529120546114ab929182169116846116ef565b6008546040518381526001600160a01b03918216918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b60085460405163e613b1cd60e01b81526001600160a01b0387811660048301528681166024830152604482018690529091169063e613b1cd90606401600060405180830381600087803b15801561154757600080fd5b505af115801561155b573d6000803e3d6000fd5b50505050836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516115a491815260200190565b60405180910390a35050505050565b6000546001600160a01b031633146109fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064a565b6001600160a01b03828116600081815260036020818152604080842080546001845294829020549383528787166001600160a01b03198616811790915581519586529390951690840181905293830191909152907f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9060600160405180910390a16116998284836116ef565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316141561170e57505050565b6001600160e01b03811661172157505050565b6001600160a01b038316156117c8576001600160a01b03831660009081526005602052604081205463ffffffff16908161175c5760006117a8565b6001600160a01b038516600090815260066020526040812090611780600185611c45565b63ffffffff168152602081019190915260400160002054600160201b90046001600160e01b03165b905060006117b68483611cfe565b90506117c486848484611870565b5050505b6001600160a01b0382161561186b576001600160a01b03821660009081526005602052604081205463ffffffff16908161180357600061184f565b6001600160a01b038416600090815260066020526040812090611827600185611c45565b63ffffffff168152602081019190915260400160002054600160201b90046001600160e01b03165b9050600061185d8483611d1e565b9050610e8985848484611870565b505050565b4363ffffffff8416158015906118c857506001600160a01b038516600090815260066020526040812063ffffffff8316916118ac600188611c45565b63ffffffff908116825260208201929092526040016000205416145b15611938576001600160a01b038516600090815260066020526040812083916118f2600188611c45565b63ffffffff1663ffffffff16815260200190815260200160002060000160046101000a8154816001600160e01b0302191690836001600160e01b031602179055506119cf565b60408051808201825263ffffffff80841682526001600160e01b0380861660208085019182526001600160a01b038b166000908152600682528681208b86168252909152949094209251935116600160201b02921691909117905561199e846001611d49565b6001600160a01b0386166000908152600560205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160a01b03871681526001600160e01b03858116602083015284168183015290517fda5a64c2947c0b7bf4d6e7bf736c6f84d9d1c5f991770f88bbeb3fe19c85a1349181900360600190a15050505050565b600060208083528351808285015260005b81811015611a5557858101830151858201604001528201611a39565b81811115611a67576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114611a9457600080fd5b919050565b60008060408385031215611aac57600080fd5b611ab583611a7d565b946020939093013593505050565b600080600060608486031215611ad857600080fd5b611ae184611a7d565b9250611aef60208501611a7d565b9150604084013590509250925092565b60008060408385031215611b1257600080fd5b611b1b83611a7d565b9150602083013563ffffffff81168114611b3457600080fd5b809150509250929050565b600060208284031215611b5157600080fd5b611b5a82611a7d565b9392505050565b60008060008060008060c08789031215611b7a57600080fd5b611b8387611a7d565b95506020870135945060408701359350606087013560ff81168114611ba757600080fd5b9598949750929560808101359460a0909101359350915050565b60008060408385031215611bd457600080fd5b611bdd83611a7d565b9150611beb60208401611a7d565b90509250929050565b600181811c90821680611c0857607f821691505b60208210811415611c2957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff83811690831681811015611c6257611c62611c2f565b039392505050565b600063ffffffff80841680611c8f57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60008219821115611cae57611cae611c2f565b500190565b6000600019821415611cc757611cc7611c2f565b5060010190565b600060208284031215611ce057600080fd5b5051919050565b600082821015611cf957611cf9611c2f565b500390565b60006001600160e01b0383811690831681811015611c6257611c62611c2f565b60006001600160e01b03828116848216808303821115611d4057611d40611c2f565b01949350505050565b600063ffffffff808316818516808303821115611d4057611d40611c2f56fea2646970667358221220ec20a51068091969cb1c30637d9f53db39619287958acc2682b1cf4e91f678cb64736f6c634300080b0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000673ed2dbd171a2cb7f596bc8bf7bc6080b592afe000000000000000000000000673ed2dbd171a2cb7f596bc8bf7bc6080b592afe000000000000000000000000000000000000000000000000000000000000000953616675636861696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045341465500000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Safuchain
Arg [1] : symbol_ (string): SAFU
Arg [2] : taxHandlerAddress (address): 0x673ed2DbD171a2cB7F596Bc8bF7bc6080b592Afe
Arg [3] : treasuryHandlerAddress (address): 0x673ed2DbD171a2cB7F596Bc8bF7bc6080b592Afe

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000673ed2dbd171a2cb7f596bc8bf7bc6080b592afe
Arg [3] : 000000000000000000000000673ed2dbd171a2cb7f596bc8bf7bc6080b592afe
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 53616675636861696e0000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 5341465500000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.