FTM Price: $0.43 (-1.51%)
Gas: 21 Gwei

Contract

0xC09A82aD5075B3067D80F54f05e1E22229699Cc1
 

Sponsored

Transaction Hash
Method
Block
From
To
Value
Withdraw759950542024-02-20 14:31:028 hrs 54 mins ago1708439462IN
0xC09A82...29699Cc1
0 FTM0.0014406322.59954531
Approve755346342024-02-12 12:08:508 days 11 hrs ago1707739730IN
0xC09A82...29699Cc1
0 FTM0.00049110.60261534
Approve754990142024-02-11 21:50:409 days 1 hr ago1707688240IN
0xC09A82...29699Cc1
0 FTM0.0005478911.76089142
Approve747472302024-01-24 19:57:4527 days 3 hrs ago1706126265IN
0xC09A82...29699Cc1
0 FTM0.001483432.02383278
Approve742504612024-01-15 16:04:2236 days 7 hrs ago1705334662IN
0xC09A82...29699Cc1
0 FTM0.0010039421.67874507
Approve741531652024-01-13 10:19:5838 days 13 hrs ago1705141198IN
0xC09A82...29699Cc1
0 FTM0.001070123.12539224
Deposit741531522024-01-13 10:19:2938 days 13 hrs ago1705141169IN
0xC09A82...29699Cc1
0 FTM0.0019417625.25346572
Deposit735582662024-01-01 11:26:5350 days 11 hrs ago1704108413IN
0xC09A82...29699Cc1
0 FTM0.0022443934.74132867
Approve732586602023-12-27 0:17:0155 days 23 hrs ago1703636221IN
0xC09A82...29699Cc1
0 FTM0.001221639.83076769
Approve730672922023-12-24 6:42:0058 days 16 hrs ago1703400120IN
0xC09A82...29699Cc1
0 FTM0.0011131124.04859744
Approve730672632023-12-24 6:41:1358 days 16 hrs ago1703400073IN
0xC09A82...29699Cc1
0 FTM0.0007040424.11274462
Withdraw730668622023-12-24 6:26:4358 days 16 hrs ago1703399203IN
0xC09A82...29699Cc1
0 FTM0.0013850521.65664862
Approve730663552023-12-24 6:09:4358 days 17 hrs ago1703398183IN
0xC09A82...29699Cc1
0 FTM0.0009994120.55901281
Approve726377532023-12-16 15:50:5966 days 7 hrs ago1702741859IN
0xC09A82...29699Cc1
0 FTM0.0026702157.67453566
Approve726328192023-12-16 14:00:4366 days 9 hrs ago1702735243IN
0xC09A82...29699Cc1
0 FTM0.0013593351.49373795
Approve726326652023-12-16 13:55:4866 days 9 hrs ago1702734948IN
0xC09A82...29699Cc1
0 FTM0.0013003849.26065284
Approve726325992023-12-16 13:54:1266 days 9 hrs ago1702734852IN
0xC09A82...29699Cc1
0 FTM0.0013372450.65708798
Approve726325422023-12-16 13:51:4166 days 9 hrs ago1702734701IN
0xC09A82...29699Cc1
0 FTM0.00330361125.14636104
Approve726323232023-12-16 13:46:2866 days 9 hrs ago1702734388IN
0xC09A82...29699Cc1
0 FTM0.0021513846.46814752
Withdraw717767432023-12-02 12:10:5480 days 11 hrs ago1701519054IN
0xC09A82...29699Cc1
0 FTM0.0044146452
Approve717766252023-12-02 12:08:0680 days 11 hrs ago1701518886IN
0xC09A82...29699Cc1
0 FTM0.0026576957.38917508
Deposit716952702023-11-30 3:45:4582 days 19 hrs ago1701315945IN
0xC09A82...29699Cc1
0 FTM0.0031246938.24459012
Approve710152042023-11-22 18:40:0890 days 4 hrs ago1700678408IN
0xC09A82...29699Cc1
0 FTM0.00867854357.11227583
Approve709875882023-11-22 4:26:2290 days 18 hrs ago1700627182IN
0xC09A82...29699Cc1
0 FTM0.0012961827.82344331
Approve707736282023-11-17 22:51:5295 days 34 mins ago1700261512IN
0xC09A82...29699Cc1
0 FTM0.0006800227.98235069
View all transactions

Latest 1 internal transaction

Parent Txn Hash Block From To Value
324040852022-03-03 2:34:41719 days 20 hrs ago1646274881  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WrappedBOMB

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : WrappedBOMB.sol
// SPDX-License-Identifier: UNLICENSED
// made with love
pragma solidity 0.8.11;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IWrappedBOMBTaxManager.sol";
import "./interfaces/IBOMB.sol";

contract WrappedBOMB is ERC20, Ownable {
  using SafeERC20 for IERC20;

  // this variable is used to keep track of how much bomb has yet to be burned,
  // in cases where less than 1 wBOMB is burned.
  uint256 unburntBombFraction;

  address public bomb = address(0x8503eb4A136bDBeB323E37Aa6e0FA0C772228378);
  IWrappedBOMBTaxManager public taxManager;

  mapping (address => bool) public fromWhitelisted;
  mapping (address => bool) public toWhitelisted;
  
  constructor (IWrappedBOMBTaxManager _taxManager) ERC20("Wrapped BOMB", "wBOMB") {
    taxManager = _taxManager;
  }

  function isWhitelisted(address from, address to) private view returns (bool) {
    return fromWhitelisted[from] || toWhitelisted[to];
  }

  function deposit(uint256 amount) external returns (bool) {
    IERC20(bomb).safeTransferFrom(msg.sender, address(this), amount);
    _mint(msg.sender, (amount * 99 / 100) * 1e18);
    return true;
  }

  function withdraw(uint256 amount) external returns (bool) {
    _burn(msg.sender, amount / 1e18 * 1e18);
    IERC20(bomb).safeTransfer(msg.sender, amount / 1e18);
    return true;
  }

  function _transfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual override {
    uint256 amountWithBurn = amount;
    bool shouldTax;

    // this call is wrapped in a try/catch to avoid
    // unintentional freezing of all transactions in the
    // event of a tax manager contract substitution
    try taxManager.shouldTax(from, to) returns (bool result) {
      shouldTax = result;
    } catch {
      shouldTax = true;
    }

    if (shouldTax && !isWhitelisted(from, to)) {
      amountWithBurn = amount * 99 / 100;
    }

    super._transfer(from, to, amountWithBurn);
    super._burn(from, amount - amountWithBurn);

    unburntBombFraction += amount - amountWithBurn;
    if (unburntBombFraction >= 1e18) {
      uint toBurn = unburntBombFraction / 1e18;
      unburntBombFraction -= toBurn * 1e18;
      IBOMB(bomb).burn(toBurn);
    }
  }

  function setWhitelistTo(address addr, bool whitelist) external onlyOwner {
    toWhitelisted[addr] = whitelist;
  }

  function setWhitelistFrom(address addr, bool whitelist) external onlyOwner {
    fromWhitelisted[addr] = whitelist;
  }

  function setTaxManager(IWrappedBOMBTaxManager manager) external onlyOwner {
    taxManager = manager;
  }
}

File 2 of 10 : 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 3 of 10 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

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

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

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

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

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        _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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

File 4 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 `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);

    /**
     * @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 5 of 10 : 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 6 of 10 : IWrappedBOMBTaxManager.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.11;

interface IWrappedBOMBTaxManager {
  function shouldTax(address from, address to) external view returns (bool);
}

File 7 of 10 : IBOMB.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.5.0;

interface IBOMB {
  function burn(uint256 amount) external;
}

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

pragma solidity ^0.8.0;

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

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

File 9 of 10 : 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 10 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IWrappedBOMBTaxManager","name":"_taxManager","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":"bomb","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":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"fromWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":"contract IWrappedBOMBTaxManager","name":"manager","type":"address"}],"name":"setTaxManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"whitelist","type":"bool"}],"name":"setWhitelistFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"whitelist","type":"bool"}],"name":"setWhitelistTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxManager","outputs":[{"internalType":"contract IWrappedBOMBTaxManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"toWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6080604052600780546001600160a01b031916738503eb4a136bdbeb323e37aa6e0fa0c7722283781790553480156200003757600080fd5b5060405162001bec38038062001bec8339810160408190526200005a9162000200565b604080518082018252600c81526b2bb930b83832b2102127a6a160a11b6020808301918252835180850190945260058452643ba127a6a160d91b908401528151919291620000ab916003916200015a565b508051620000c19060049060208401906200015a565b505050620000de620000d86200010460201b60201c565b62000108565b600880546001600160a01b0319166001600160a01b03929092169190911790556200026f565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001689062000232565b90600052602060002090601f0160209004810192826200018c5760008555620001d7565b82601f10620001a757805160ff1916838001178555620001d7565b82800160010185558215620001d7579182015b82811115620001d7578251825591602001919060010190620001ba565b50620001e5929150620001e9565b5090565b5b80821115620001e55760008155600101620001ea565b6000602082840312156200021357600080fd5b81516001600160a01b03811681146200022b57600080fd5b9392505050565b600181811c908216806200024757607f821691505b602082108114156200026957634e487b7160e01b600052602260045260246000fd5b50919050565b61196d806200027f6000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c806370a08231116100e3578063b1b0c49e1161008c578063dd62ed3e11610066578063dd62ed3e1461034c578063f2fde38b14610385578063f98812131461039857600080fd5b8063b1b0c49e14610313578063b6b55f2514610326578063d159fc7d1461033957600080fd5b806395d89b41116100bd57806395d89b41146102e5578063a457c2d7146102ed578063a9059cbb1461030057600080fd5b806370a08231146102a3578063715018a6146102cc5780638da5cb5b146102d457600080fd5b80632e1a7d4d11610145578063395093511161011f57806339509351146102425780634a3632fd146102555780634d2377301461027857600080fd5b80632e1a7d4d1461020d578063313ce5671461022057806336a1e6e61461022f57600080fd5b8063095ea7b311610176578063095ea7b3146101c557806318160ddd146101e857806323b872dd146101fa57600080fd5b806306fdde0314610192578063095e3913146101b0575b600080fd5b61019a6103bb565b6040516101a79190611656565b60405180910390f35b6101c36101be3660046116bc565b61044d565b005b6101d86101d33660046116d9565b6104e6565b60405190151581526020016101a7565b6002545b6040519081526020016101a7565b6101d8610208366004611705565b6104fe565b6101d861021b366004611746565b610524565b604051601281526020016101a7565b6101c361023d36600461176d565b610584565b6101d86102503660046116d9565b610627565b6101d86102633660046116bc565b600a6020526000908152604090205460ff1681565b60085461028b906001600160a01b031681565b6040516001600160a01b0390911681526020016101a7565b6101ec6102b13660046116bc565b6001600160a01b031660009081526020819052604090205490565b6101c3610666565b6005546001600160a01b031661028b565b61019a6106cc565b6101d86102fb3660046116d9565b6106db565b6101d861030e3660046116d9565b610790565b60075461028b906001600160a01b031681565b6101d8610334366004611746565b61079e565b6101c361034736600461176d565b6107eb565b6101ec61035a3660046117a6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101c36103933660046116bc565b61088e565b6101d86103a63660046116bc565b60096020526000908152604090205460ff1681565b6060600380546103ca906117d4565b80601f01602080910402602001604051908101604052809291908181526020018280546103f6906117d4565b80156104435780601f1061041857610100808354040283529160200191610443565b820191906000526020600020905b81548152906001019060200180831161042657829003601f168201915b5050505050905090565b6005546001600160a01b031633146104ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000336104f4818585610970565b5060019392505050565b60003361050c858285610ac9565b610517858585610b79565b60019150505b9392505050565b60006105533361053c670de0b6b3a764000085611857565b61054e90670de0b6b3a7640000611892565b610d70565b61057c33610569670de0b6b3a764000085611857565b6007546001600160a01b03169190610ef2565b506001919050565b6005546001600160a01b031633146105de5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6001600160a01b03919091166000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906104f490829086906106619087906118cf565b610970565b6005546001600160a01b031633146106c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6106ca6000610fb9565b565b6060600480546103ca906117d4565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156107785760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016104a3565b6107858286868403610970565b506001949350505050565b6000336104f4818585610b79565b6007546000906107b9906001600160a01b0316333085611023565b61057c3360646107ca856063611892565b6107d49190611857565b6107e690670de0b6b3a7640000611892565b611074565b6005546001600160a01b031633146108455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6001600160a01b0391909116600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6005546001600160a01b031633146108e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6001600160a01b0381166109645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104a3565b61096d81610fb9565b50565b6001600160a01b0383166109eb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b038216610a675760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610b735781811015610b665760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104a3565b610b738484848403610970565b50505050565b6008546040517f8f3cbcb50000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015284811660248301528392600092911690638f3cbcb590604401602060405180830381865afa925050508015610c22575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610c1f918101906118e7565b60015b610c2e57506001610c31565b90505b808015610c455750610c438585611153565b155b15610c64576064610c57846063611892565b610c619190611857565b91505b610c6f858584611196565b610c7d8561054e8486611904565b610c878284611904565b60066000828254610c9891906118cf565b9091555050600654670de0b6b3a764000011610d69576000670de0b6b3a7640000600654610cc69190611857565b9050610cda81670de0b6b3a7640000611892565b60066000828254610ceb9190611904565b90915550506007546040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015610d4f57600080fd5b505af1158015610d63573d6000803e3d6000fd5b50505050505b5050505050565b6001600160a01b038216610dec5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b03821660009081526020819052604090205481811015610e7b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610eaa908490611904565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610abc565b505050565b6040516001600160a01b038316602482015260448101829052610eed9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526113ad565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610b739085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610f37565b6001600160a01b0382166110ca5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104a3565b80600260008282546110dc91906118cf565b90915550506001600160a01b038216600090815260208190526040812080548392906111099084906118cf565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821660009081526009602052604081205460ff168061051d5750506001600160a01b03166000908152600a602052604090205460ff16919050565b6001600160a01b0383166112125760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b03821661128e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b0383166000908152602081905260409020548181101561131d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906113549084906118cf565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113a091815260200190565b60405180910390a3610b73565b6000611402826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114929092919063ffffffff16565b805190915015610eed578080602001905181019061142091906118e7565b610eed5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104a3565b60606114a184846000856114a9565b949350505050565b6060824710156115215760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b0385163b6115785760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104a3565b600080866001600160a01b03168587604051611594919061191b565b60006040518083038185875af1925050503d80600081146115d1576040519150601f19603f3d011682016040523d82523d6000602084013e6115d6565b606091505b50915091506115e68282866115f1565b979650505050505050565b6060831561160057508161051d565b8251156116105782518084602001fd5b8160405162461bcd60e51b81526004016104a39190611656565b60005b8381101561164557818101518382015260200161162d565b83811115610b735750506000910152565b602081526000825180602084015261167581604085016020870161162a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6001600160a01b038116811461096d57600080fd5b6000602082840312156116ce57600080fd5b813561051d816116a7565b600080604083850312156116ec57600080fd5b82356116f7816116a7565b946020939093013593505050565b60008060006060848603121561171a57600080fd5b8335611725816116a7565b92506020840135611735816116a7565b929592945050506040919091013590565b60006020828403121561175857600080fd5b5035919050565b801515811461096d57600080fd5b6000806040838503121561178057600080fd5b823561178b816116a7565b9150602083013561179b8161175f565b809150509250929050565b600080604083850312156117b957600080fd5b82356117c4816116a7565b9150602083013561179b816116a7565b600181811c908216806117e857607f821691505b60208210811415611822577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008261188d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156118ca576118ca611828565b500290565b600082198211156118e2576118e2611828565b500190565b6000602082840312156118f957600080fd5b815161051d8161175f565b60008282101561191657611916611828565b500390565b6000825161192d81846020870161162a565b919091019291505056fea2646970667358221220642e5ccf153fedff9bf524bd3b61ff503e66d93a67ee85ad98a9325437791dd564736f6c634300080b0033000000000000000000000000675b187d4d0c5155a4d595e4ee01800fd81745d1

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018d5760003560e01c806370a08231116100e3578063b1b0c49e1161008c578063dd62ed3e11610066578063dd62ed3e1461034c578063f2fde38b14610385578063f98812131461039857600080fd5b8063b1b0c49e14610313578063b6b55f2514610326578063d159fc7d1461033957600080fd5b806395d89b41116100bd57806395d89b41146102e5578063a457c2d7146102ed578063a9059cbb1461030057600080fd5b806370a08231146102a3578063715018a6146102cc5780638da5cb5b146102d457600080fd5b80632e1a7d4d11610145578063395093511161011f57806339509351146102425780634a3632fd146102555780634d2377301461027857600080fd5b80632e1a7d4d1461020d578063313ce5671461022057806336a1e6e61461022f57600080fd5b8063095ea7b311610176578063095ea7b3146101c557806318160ddd146101e857806323b872dd146101fa57600080fd5b806306fdde0314610192578063095e3913146101b0575b600080fd5b61019a6103bb565b6040516101a79190611656565b60405180910390f35b6101c36101be3660046116bc565b61044d565b005b6101d86101d33660046116d9565b6104e6565b60405190151581526020016101a7565b6002545b6040519081526020016101a7565b6101d8610208366004611705565b6104fe565b6101d861021b366004611746565b610524565b604051601281526020016101a7565b6101c361023d36600461176d565b610584565b6101d86102503660046116d9565b610627565b6101d86102633660046116bc565b600a6020526000908152604090205460ff1681565b60085461028b906001600160a01b031681565b6040516001600160a01b0390911681526020016101a7565b6101ec6102b13660046116bc565b6001600160a01b031660009081526020819052604090205490565b6101c3610666565b6005546001600160a01b031661028b565b61019a6106cc565b6101d86102fb3660046116d9565b6106db565b6101d861030e3660046116d9565b610790565b60075461028b906001600160a01b031681565b6101d8610334366004611746565b61079e565b6101c361034736600461176d565b6107eb565b6101ec61035a3660046117a6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101c36103933660046116bc565b61088e565b6101d86103a63660046116bc565b60096020526000908152604090205460ff1681565b6060600380546103ca906117d4565b80601f01602080910402602001604051908101604052809291908181526020018280546103f6906117d4565b80156104435780601f1061041857610100808354040283529160200191610443565b820191906000526020600020905b81548152906001019060200180831161042657829003601f168201915b5050505050905090565b6005546001600160a01b031633146104ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000336104f4818585610970565b5060019392505050565b60003361050c858285610ac9565b610517858585610b79565b60019150505b9392505050565b60006105533361053c670de0b6b3a764000085611857565b61054e90670de0b6b3a7640000611892565b610d70565b61057c33610569670de0b6b3a764000085611857565b6007546001600160a01b03169190610ef2565b506001919050565b6005546001600160a01b031633146105de5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6001600160a01b03919091166000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906104f490829086906106619087906118cf565b610970565b6005546001600160a01b031633146106c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6106ca6000610fb9565b565b6060600480546103ca906117d4565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156107785760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016104a3565b6107858286868403610970565b506001949350505050565b6000336104f4818585610b79565b6007546000906107b9906001600160a01b0316333085611023565b61057c3360646107ca856063611892565b6107d49190611857565b6107e690670de0b6b3a7640000611892565b611074565b6005546001600160a01b031633146108455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6001600160a01b0391909116600090815260096020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6005546001600160a01b031633146108e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6001600160a01b0381166109645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104a3565b61096d81610fb9565b50565b6001600160a01b0383166109eb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b038216610a675760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610b735781811015610b665760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104a3565b610b738484848403610970565b50505050565b6008546040517f8f3cbcb50000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015284811660248301528392600092911690638f3cbcb590604401602060405180830381865afa925050508015610c22575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610c1f918101906118e7565b60015b610c2e57506001610c31565b90505b808015610c455750610c438585611153565b155b15610c64576064610c57846063611892565b610c619190611857565b91505b610c6f858584611196565b610c7d8561054e8486611904565b610c878284611904565b60066000828254610c9891906118cf565b9091555050600654670de0b6b3a764000011610d69576000670de0b6b3a7640000600654610cc69190611857565b9050610cda81670de0b6b3a7640000611892565b60066000828254610ceb9190611904565b90915550506007546040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015610d4f57600080fd5b505af1158015610d63573d6000803e3d6000fd5b50505050505b5050505050565b6001600160a01b038216610dec5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b03821660009081526020819052604090205481811015610e7b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610eaa908490611904565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610abc565b505050565b6040516001600160a01b038316602482015260448101829052610eed9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526113ad565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610b739085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610f37565b6001600160a01b0382166110ca5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104a3565b80600260008282546110dc91906118cf565b90915550506001600160a01b038216600090815260208190526040812080548392906111099084906118cf565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821660009081526009602052604081205460ff168061051d5750506001600160a01b03166000908152600a602052604090205460ff16919050565b6001600160a01b0383166112125760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b03821661128e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b0383166000908152602081905260409020548181101561131d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906113549084906118cf565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113a091815260200190565b60405180910390a3610b73565b6000611402826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114929092919063ffffffff16565b805190915015610eed578080602001905181019061142091906118e7565b610eed5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104a3565b60606114a184846000856114a9565b949350505050565b6060824710156115215760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104a3565b6001600160a01b0385163b6115785760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104a3565b600080866001600160a01b03168587604051611594919061191b565b60006040518083038185875af1925050503d80600081146115d1576040519150601f19603f3d011682016040523d82523d6000602084013e6115d6565b606091505b50915091506115e68282866115f1565b979650505050505050565b6060831561160057508161051d565b8251156116105782518084602001fd5b8160405162461bcd60e51b81526004016104a39190611656565b60005b8381101561164557818101518382015260200161162d565b83811115610b735750506000910152565b602081526000825180602084015261167581604085016020870161162a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6001600160a01b038116811461096d57600080fd5b6000602082840312156116ce57600080fd5b813561051d816116a7565b600080604083850312156116ec57600080fd5b82356116f7816116a7565b946020939093013593505050565b60008060006060848603121561171a57600080fd5b8335611725816116a7565b92506020840135611735816116a7565b929592945050506040919091013590565b60006020828403121561175857600080fd5b5035919050565b801515811461096d57600080fd5b6000806040838503121561178057600080fd5b823561178b816116a7565b9150602083013561179b8161175f565b809150509250929050565b600080604083850312156117b957600080fd5b82356117c4816116a7565b9150602083013561179b816116a7565b600181811c908216806117e857607f821691505b60208210811415611822577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008261188d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156118ca576118ca611828565b500290565b600082198211156118e2576118e2611828565b500190565b6000602082840312156118f957600080fd5b815161051d8161175f565b60008282101561191657611916611828565b500390565b6000825161192d81846020870161162a565b919091019291505056fea2646970667358221220642e5ccf153fedff9bf524bd3b61ff503e66d93a67ee85ad98a9325437791dd564736f6c634300080b0033

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

000000000000000000000000675b187d4d0c5155a4d595e4ee01800fd81745d1

-----Decoded View---------------
Arg [0] : _taxManager (address): 0x675b187d4D0C5155a4d595e4EE01800Fd81745d1

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000675b187d4d0c5155a4d595e4ee01800fd81745d1


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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