Contract 0x745c8e1c0315162c33408454b48e53c9f178eb68

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x77397d4cfebe43602efcbee4d64e0226a27c5d5845dc74e173bc942232fc3ee8Withdraw130268252021-11-28 15:22:322 days 15 hrs ago0x3a091cddc0c0c5aebfbe695d42964ffe8ff6af22 IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
0x3b0702dc22a4bfbaa889a9a4d93f117227c117f5c38cd7bf6725137ce7d9a724Deposit130267862021-11-28 15:20:142 days 15 hrs ago0x3a091cddc0c0c5aebfbe695d42964ffe8ff6af22 IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674185
0x5e96fc740eb48f2871cac0dac15d7ccb22b31da73ea379a6e70d40c50f1a878eWithdraw130267172021-11-28 15:16:402 days 15 hrs ago0x413391e550ddbc35569e37c726a60c252dafe742 IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
0xc59198d932517b48fce2e6798184af312d1776020a9e971afc242f1aabcda09dDeposit130266912021-11-28 15:15:102 days 15 hrs ago0x413391e550ddbc35569e37c726a60c252dafe742 IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674185
0xdcea16e537afd2f44b9a39f377a813e7061d6d57cef31f8593c6baa554f46c1aWithdraw129786242021-11-26 20:16:064 days 10 hrs ago0xf482f1fcc386f0b62e4933c44cd4bfd89585add3 IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
0x7de7c52cedefda10cf90d6b0237a85419cdedcac82013e40bf997ce920897507Deposit129786082021-11-26 20:15:184 days 10 hrs ago0xf482f1fcc386f0b62e4933c44cd4bfd89585add3 IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674125
0x49b5b9a413f023cdd64843be7c648df5832cfb2a984d06d30b6df9eff0a0e5ccWithdraw129641532021-11-26 6:59:034 days 23 hrs ago0x8426bbd6885e76c79c745aaf575c4777eac4f7e4 IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000203665
0xc52aaaef3e1f83f7a428dd3ad630f48c1f909d73d47a526a3e5b9199ab8733f1Deposit129641392021-11-26 6:58:054 days 23 hrs ago0x8426bbd6885e76c79c745aaf575c4777eac4f7e4 IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.001724165
0x0835b0d1cf3ff87d97cd4d30c57eaebc971e00276b285fd69cac6466389e2e35Withdraw129585082021-11-26 1:18:335 days 5 hrs ago0x58141b458a5fb87e2bd99f6273028843fc1e1d2a IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.001072775
0xf3eb73bcaf44f7326c448b4b4e9ce33633529b9ae158d3f675babc6ba6682adcDeposit129581582021-11-26 0:56:395 days 5 hrs ago0x58141b458a5fb87e2bd99f6273028843fc1e1d2a IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674185
0x81ec52f1da655d77dc1797f62a858d791fe6f941f0f38fa54de7bb3bbfef8001Withdraw129544012021-11-25 21:23:375 days 9 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
0x9782af37c3697f173e4e86598bbccaac524353736cb76d4b312a5945b7db1ef9Deposit129543752021-11-25 21:22:105 days 9 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674185
0x61c1cba6a7274a8e86e002c18831a110564fc12b7bb3155261f15abdc39f63d1Withdraw129542752021-11-25 21:17:105 days 9 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
0xdc32fff22f68459ca2e7eac89d8724ae9dd1983ca7119ddc0e9a0444e67b6f82Deposit129542242021-11-25 21:14:375 days 9 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000123285
0x90f26c6946f2421bbce5d6530cfb5fbfa89d0270722cba5b421dc665d0cc0af9Deposit129541772021-11-25 21:12:135 days 9 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674185
0x1c485e67aa482403b5c4f8af54fa14f1709ce6de25eaa65fdd7cf63bbea8704aWithdraw129541082021-11-25 21:08:455 days 9 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
0xb2de87cfe75582dbb272072bfb89b899aabdf1ad4bb1a30140a44f70c381233dDeposit129540472021-11-25 21:05:425 days 9 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674185
0x943e0f3a06ee64f8baf23cb03b09c3c627dfd4f305e77b3fea07b76b94d9874fWithdraw129540162021-11-25 21:04:085 days 9 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
0xac5d3526c0cdc0340fff7f4ad7820bba3db0a0d2629e45d34b336446d773813fDeposit129539922021-11-25 21:02:565 days 9 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674005
0xd3506b088d6f548f93ba63a82f226100068bedaa4f47f7f010647f363022eba5Deposit129070212021-11-24 3:29:507 days 3 hrs ago0x76a8d26b61495a4a8f60e08be83912194a820a5c IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674005
0xc4fbd458cf3eb2f99f56eff3457d425012edfa65cc70894bac70732559fb0016Withdraw129052702021-11-24 1:57:357 days 4 hrs ago0x37dd8b4af171f9d7046621ca363325f5b4bff38e IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
0x1ecacaea65568072aee0e80df3ca82b916e7896ce45c21c85cbb44f479f9520cDeposit129052552021-11-24 1:56:497 days 4 hrs ago0x37dd8b4af171f9d7046621ca363325f5b4bff38e IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674185
0xd44ba31227b93295d5593f2744b39cfeb64108c26f7dd1d039af873db9521f19Withdraw128299032021-11-21 8:59:539 days 21 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
0xf3196575da8959f07b9c39f4fc689d9bb5702f8f585a242b4b6e4d56c52db4abDeposit128298942021-11-21 8:59:269 days 21 hrs ago0x7aaff03d60aeb937325783bf489a2d5aa10bb51d IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000674185
0xe42409862e19ba46450b832eaf7910b887a984bb8c301e882fcdacba404e6f12Withdraw128249742021-11-21 4:50:2910 days 2 hrs ago0x355a3018fd22acf0ace1c3fb8f5762554d5ec157 IN  0x745c8e1c0315162c33408454b48e53c9f178eb680 BNB0.000997775
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BaoSwap

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-04-24
*/

// File: utils/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}
// File: utils/Context.sol



pragma solidity ^0.6.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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }

    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}
// File: utils/IERC20.sol



pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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



pragma solidity ^0.6.0;




/**
 * @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 {ERC20MinterPauser}.
 *
 * 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 guidelines: functions revert instead
 * of 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 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` 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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is 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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @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 to 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 { }
}
// File: utils/Pausable.sol



pragma solidity ^0.6.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// File: utils/Ownable.sol



pragma solidity ^0.6.0;

/**
 * @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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}
// File: Swapper.sol



pragma solidity ^0.6.11;





contract BaoSwap is Ownable, Pausable {
    using SafeMath for uint;
    
	address private _token1;
	address private _token2;
	
	uint8 private _fee;
	
	struct Balance {
		uint256 balance1;
		uint256 balance2;
		address depositedToken;
		uint256 pendingBlock;
	}
	
	mapping (address => Balance) private _pendingBalances;
	
	constructor(address token1, address token2) Ownable() public {
		_token1 = token1;
		_token2 = token2;
	}
	
	modifier onlySupportedToken(address token) {
		require(token == _token1 || token == _token2, "Unsupported token");
		_;
	}
	
	modifier noDeposit(address account) {
		require(_pendingBalances[account].depositedToken == address(0), "Deposit already open");
		_;
	}
	
	function token1() public view returns (address) {
		return _token1;
	}
	
	function token2() public view returns (address) {
		return _token2;
	}
	
	function balance1() public view returns (uint256) {
	    return ERC20(_token1).balanceOf(address(this));
	} 
	
	function balance2() public view returns (uint256) {
	    return ERC20(_token2).balanceOf(address(this));
	}
	
	function fee() public view returns (uint8) {
		return _fee;
	}
	
	function depositedToken(address account) public view returns (address) {
		return _pendingBalances[account].depositedToken;
	}
	
	function pendingBlock(address account) public view returns (uint256) {
		return _pendingBalances[account].pendingBlock;
	}
	
	function pendingBalance(address account, address token) onlySupportedToken(token) public view returns (uint256) {
		if (token == _pendingBalances[account].depositedToken) {
			return _pendingBalances[account].balance1;
		}
		return _pendingBalances[account].balance2;
	}
	
	function canWithdraw(address account) public view returns (bool) {
	    return _pendingBalances[account].pendingBlock <= block.number && _pendingBalances[account].balance1 > 0;
	}
	
	function withdrawableBalance(address account, address token) onlySupportedToken(token) public view returns (uint256) {
		if (_pendingBalances[account].pendingBlock > block.number) {
			return 0;
		}
		if (token == _pendingBalances[account].depositedToken) {
			return _pendingBalances[account].balance1;
		}
		return _pendingBalances[account].balance2;
	}
	
	function swap(address fromToken, uint256 amount) private view returns (uint256) {
		ERC20 erc1 = ERC20(fromToken);
		ERC20 erc2 = fromToken == _token1 ? ERC20(_token2) : ERC20(_token1);
		return amount.mul(10**uint256(erc2.decimals())).div(10**uint256(erc1.decimals()));
	}
	
	function applyFee(uint256 amount) private view returns (uint256) {
	    if (_fee == 0) {
	        return amount;
	    }
	    return amount.mul(100-_fee).div(100);
	}
	
	function swapWithFee(address fromToken, uint256 amount) public view returns (uint256) {
	    return applyFee(swap(fromToken, amount));
	}
	
	function deposit(address token, uint256 amount) whenNotPaused() onlySupportedToken(token) noDeposit(msg.sender) public {
		require(amount > 0, "Zero amount");
		ERC20 erc = ERC20(token);
		uint256 balance = erc.balanceOf(address(this));
		require(erc.transferFrom(msg.sender, address(this), amount), "Token transfer failed");
		uint256 newBalance = erc.balanceOf(address(this));
		require(newBalance > balance, "No tokens were received");
		uint256 received = newBalance - balance;               //this can't underflow
		uint256 _balance2 = swapWithFee(token, received);
		require(_balance2 > 0, "Amount too low");
		_pendingBalances[msg.sender] = Balance(applyFee(received), _balance2, token, block.number+1);
	}
	
	function withdraw(address token) whenNotPaused() onlySupportedToken(token) public {
		uint256 balance = withdrawableBalance(msg.sender, token);
		require (balance > 0, "No withdrawable balance");
		_pendingBalances[msg.sender] = Balance(0, 0, address(0), 0);
		ERC20 erc = ERC20(token);
		require(erc.transfer(msg.sender, balance), "Token transfer failed");
	}
	
	function setFee(uint8 __fee) onlyOwner() public {
		require(__fee < 100, "Fee can't be 100 or higher");
		_fee = __fee;
	}
	
	function pause() onlyOwner() public {
		_pause();
	}
	
	function unpause() onlyOwner() public {
		_unpause();
	}
	
	function withdrawOnlyAdmin(address token, uint256 amount) onlyOwner() public {
		ERC20(token).transfer(msg.sender, amount);
	}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"token1","type":"address"},{"internalType":"address","name":"token2","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"balance1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"canWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"depositedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"pendingBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"pendingBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"__fee","type":"uint8"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swapWithFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawOnlyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"withdrawableBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516116f23803806116f28339818101604052604081101561003357600080fd5b50805160209091015160006100466100ce565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b19169055600180546001600160a01b039384166001600160a01b031991821617909155600280549290931691161790556100d2565b3390565b611611806100e16000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063c45c4f581161007c578063c45c4f581461030a578063cb122a0914610312578063d21220a714610332578063d30735341461033a578063ddca3f4314610360578063f2fde38b1461037e57610137565b8063715018a61461029e5780638456cb59146102a65780638da5cb5b146102ae578063907b503d146102b6578063b4244063146102dc57610137565b806347e7ef24116100ff57806347e7ef24146101ec57806351cff8d9146102185780635c975abb1461023e5780636138a13f146102465780636b85ab5b1461027257610137565b806319262d301461013c57806325be124e146101765780633bbe1ecd1461019a5780633f4ba83a146101da57806340441eec146101e4575b600080fd5b6101626004803603602081101561015257600080fd5b50356001600160a01b03166103a4565b604080519115158252519081900360200190f35b61017e6103ee565b604080516001600160a01b039092168252519081900360200190f35b6101c8600480360360408110156101b057600080fd5b506001600160a01b03813581169160200135166103fd565b60408051918252519081900360200190f35b6101e261050b565b005b6101c861056d565b6101e26004803603604081101561020257600080fd5b506001600160a01b0381351690602001356105e9565b6101e26004803603602081101561022e57600080fd5b50356001600160a01b0316610a4a565b610162610c95565b6101e26004803603604081101561025c57600080fd5b506001600160a01b038135169060200135610ca5565b6101c86004803603604081101561028857600080fd5b506001600160a01b038135169060200135610d76565b6101e2610d93565b6101e2610e35565b61017e610e95565b61017e600480360360208110156102cc57600080fd5b50356001600160a01b0316610ea4565b6101c8600480360360408110156102f257600080fd5b506001600160a01b0381358116916020013516610ec5565b6101c8610f38565b6101e26004803603602081101561032857600080fd5b503560ff16610f83565b61017e611053565b6101c86004803603602081101561035057600080fd5b50356001600160a01b0316611062565b610368611081565b6040805160ff9092168252519081900360200190f35b6101e26004803603602081101561039457600080fd5b50356001600160a01b0316611091565b6001600160a01b03811660009081526003602081905260408220015443108015906103e657506001600160a01b03821660009081526003602052604090205415155b90505b919050565b6002546001600160a01b031690565b60015460009082906001600160a01b038083169116148061042b57506002546001600160a01b038281169116145b610470576040805162461bcd60e51b81526020600482015260116024820152702ab739bab83837b93a32b2103a37b5b2b760791b604482015290519081900360640190fd5b6001600160a01b0384166000908152600360208190526040909120015443101561049d5760009150610504565b6001600160a01b03808516600090815260036020526040902060020154848216911614156104e5576001600160a01b0384166000908152600360205260409020549150610504565b6001600160a01b03841660009081526003602052604090206001015491505b5092915050565b610513611189565b6000546001600160a01b03908116911614610563576040805162461bcd60e51b815260206004820181905260248201526000805160206115bc833981519152604482015290519081900360640190fd5b61056b61118d565b565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156105b857600080fd5b505afa1580156105cc573d6000803e3d6000fd5b505050506040513d60208110156105e257600080fd5b5051905090565b600054600160a01b900460ff161561063b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60015482906001600160a01b038083169116148061066657506002546001600160a01b038281169116145b6106ab576040805162461bcd60e51b81526020600482015260116024820152702ab739bab83837b93a32b2103a37b5b2b760791b604482015290519081900360640190fd5b336000818152600360205260409020600201546001600160a01b031615610710576040805162461bcd60e51b81526020600482015260146024820152732232b837b9b4ba1030b63932b0b23c9037b832b760611b604482015290519081900360640190fd5b60008311610753576040805162461bcd60e51b815260206004820152600b60248201526a16995c9bc8185b5bdd5b9d60aa1b604482015290519081900360640190fd5b604080516370a0823160e01b8152306004820152905185916000916001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561079e57600080fd5b505afa1580156107b2573d6000803e3d6000fd5b505050506040513d60208110156107c857600080fd5b5051604080516323b872dd60e01b81523360048201523060248201526044810188905290519192506001600160a01b038416916323b872dd916064808201926020929091908290030181600087803b15801561082357600080fd5b505af1158015610837573d6000803e3d6000fd5b505050506040513d602081101561084d57600080fd5b5051610898576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108e757600080fd5b505afa1580156108fb573d6000803e3d6000fd5b505050506040513d602081101561091157600080fd5b50519050818111610969576040805162461bcd60e51b815260206004820152601760248201527f4e6f20746f6b656e732077657265207265636569766564000000000000000000604482015290519081900360640190fd5b81810360006109788983610d76565b9050600081116109c0576040805162461bcd60e51b815260206004820152600e60248201526d416d6f756e7420746f6f206c6f7760901b604482015290519081900360640190fd5b60405180608001604052806109d484611235565b81526020808201939093526001600160a01b039a8b16604080830191909152436001908101606093840152336000908152600380875290839020855181559585015191860191909155908301516002850180546001600160a01b03191691909d1617909b55015198019790975550505050505050565b600054600160a01b900460ff1615610a9c576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60015481906001600160a01b0380831691161480610ac757506002546001600160a01b038281169116145b610b0c576040805162461bcd60e51b81526020600482015260116024820152702ab739bab83837b93a32b2103a37b5b2b760791b604482015290519081900360640190fd5b6000610b1833846103fd565b905060008111610b6f576040805162461bcd60e51b815260206004820152601760248201527f4e6f20776974686472617761626c652062616c616e6365000000000000000000604482015290519081900360640190fd5b604080516080810182526000808252602080830182815283850183815260608501848152338086526003808652888720975188559351600188015591516002870180546001600160a01b0319166001600160a01b0392831617905590519590920194909455845163a9059cbb60e01b81526004810194909452602484018690529351879485169363a9059cbb9360448083019493928390030190829087803b158015610c1a57600080fd5b505af1158015610c2e573d6000803e3d6000fd5b505050506040513d6020811015610c4457600080fd5b5051610c8f576040805162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b50505050565b600054600160a01b900460ff1690565b610cad611189565b6000546001600160a01b03908116911614610cfd576040805162461bcd60e51b815260206004820181905260248201526000805160206115bc833981519152604482015290519081900360640190fd5b6040805163a9059cbb60e01b81523360048201526024810183905290516001600160a01b0384169163a9059cbb9160448083019260209291908290030181600087803b158015610d4c57600080fd5b505af1158015610d60573d6000803e3d6000fd5b505050506040513d6020811015610c8f57600080fd5b6000610d8a610d85848461127a565b611235565b90505b92915050565b610d9b611189565b6000546001600160a01b03908116911614610deb576040805162461bcd60e51b815260206004820181905260248201526000805160206115bc833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610e3d611189565b6000546001600160a01b03908116911614610e8d576040805162461bcd60e51b815260206004820181905260248201526000805160206115bc833981519152604482015290519081900360640190fd5b61056b6113ae565b6000546001600160a01b031690565b6001600160a01b039081166000908152600360205260409020600201541690565b60015460009082906001600160a01b0380831691161480610ef357506002546001600160a01b038281169116145b61049d576040805162461bcd60e51b81526020600482015260116024820152702ab739bab83837b93a32b2103a37b5b2b760791b604482015290519081900360640190fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156105b857600080fd5b610f8b611189565b6000546001600160a01b03908116911614610fdb576040805162461bcd60e51b815260206004820181905260248201526000805160206115bc833981519152604482015290519081900360640190fd5b60648160ff1610611033576040805162461bcd60e51b815260206004820152601a60248201527f4665652063616e277420626520313030206f7220686967686572000000000000604482015290519081900360640190fd5b6002805460ff909216600160a01b0260ff60a01b19909216919091179055565b6001546001600160a01b031690565b6001600160a01b03166000908152600360208190526040909120015490565b600254600160a01b900460ff1690565b611099611189565b6000546001600160a01b039081169116146110e9576040805162461bcd60e51b815260206004820181905260248201526000805160206115bc833981519152604482015290519081900360640190fd5b6001600160a01b03811661112e5760405162461bcd60e51b81526004018080602001828103825260268152602001806115756026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b600054600160a01b900460ff166111e2576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611218611189565b604080516001600160a01b039092168252519081900360200190a1565b600254600090600160a01b900460ff166112505750806103e9565b6002546103e69060649061127490859060ff600160a01b909104811684031661143c565b90611495565b600154600090839082906001600160a01b038084169116146112a7576001546001600160a01b03166112b4565b6002546001600160a01b03165b90506113a5826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156112f257600080fd5b505afa158015611306573d6000803e3d6000fd5b505050506040513d602081101561131c57600080fd5b50516040805163313ce56760e01b8152905160ff909216600a0a91611274916001600160a01b0386169163313ce56791600480820192602092909190829003018186803b15801561136c57600080fd5b505afa158015611380573d6000803e3d6000fd5b505050506040513d602081101561139657600080fd5b5051879060ff16600a0a61143c565b95945050505050565b600054600160a01b900460ff1615611400576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611218611189565b60008261144b57506000610d8d565b8282028284828161145857fe5b0414610d8a5760405162461bcd60e51b815260040180806020018281038252602181526020018061159b6021913960400191505060405180910390fd5b6000610d8a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506000818361155e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561152357818101518382015260200161150b565b50505050905090810190601f1680156115505780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161156a57fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122099fbc3153b518da25e150cbfb88959ff71c8e5c0c4878ed64e4658709493c6fd64736f6c634300060c003300000000000000000000000047dcc83a14ad53ed1f13d3cae8aa4115f07557c0000000000000000000000000d2eca3cff5f09cfc9c425167d12f0a005fc97c8c

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

00000000000000000000000047dcc83a14ad53ed1f13d3cae8aa4115f07557c0000000000000000000000000d2eca3cff5f09cfc9c425167d12f0a005fc97c8c

-----Decoded View---------------
Arg [0] : token1 (address): 0x47dcc83a14ad53ed1f13d3cae8aa4115f07557c0
Arg [1] : token2 (address): 0xd2eca3cff5f09cfc9c425167d12f0a005fc97c8c

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000047dcc83a14ad53ed1f13d3cae8aa4115f07557c0
Arg [1] : 000000000000000000000000d2eca3cff5f09cfc9c425167d12f0a005fc97c8c


Deployed ByteCode Sourcemap

24473:4380:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26205:181;;;;;;;;;;;;;;;;-1:-1:-1;26205:181:0;-1:-1:-1;;;;;26205:181:0;;:::i;:::-;;;;;;;;;;;;;;;;;;25281:72;;;:::i;:::-;;;;-1:-1:-1;;;;;25281:72:0;;;;;;;;;;;;;;26392:363;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26392:363:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;28658:58;;;:::i;:::-;;25475:109;;;:::i;27365:724::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27365:724:0;;;;;;;;:::i;28095:366::-;;;;;;;;;;;;;;;;-1:-1:-1;28095:366:0;-1:-1:-1;;;;;28095:366:0;;:::i;21286:78::-;;;:::i;28722:128::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28722:128:0;;;;;;;;:::i;27220:139::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27220:139:0;;;;;;;;:::i;23857:148::-;;;:::i;28598:54::-;;;:::i;23215:79::-;;;:::i;25660:128::-;;;;;;;;;;;;;;;;-1:-1:-1;25660:128:0;-1:-1:-1;;;;;25660:128:0;;:::i;25924:275::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25924:275:0;;;;;;;;;;:::i;25359:109::-;;;:::i;28467:125::-;;;;;;;;;;;;;;;;-1:-1:-1;28467:125:0;;;;:::i;25203:72::-;;;:::i;25794:124::-;;;;;;;;;;;;;;;;-1:-1:-1;25794:124:0;-1:-1:-1;;;;;25794:124:0;;:::i;25590:64::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24160:244;;;;;;;;;;;;;;;;-1:-1:-1;24160:244:0;-1:-1:-1;;;;;24160:244:0;;:::i;26205:181::-;-1:-1:-1;;;;;26285:25:0;;26264:4;26285:25;;;:16;:25;;;;;;;:38;;26327:12;-1:-1:-1;26285:54:0;;;:96;;-1:-1:-1;;;;;;26343:25:0;;26380:1;26343:25;;;:16;:25;;;;;:34;:38;;26285:96;26278:103;;26205:181;;;;:::o;25281:72::-;25341:7;;-1:-1:-1;;;;;25341:7:0;25281:72;:::o;26392:363::-;24992:7;;26500;;26472:5;;-1:-1:-1;;;;;24983:16:0;;;24992:7;;24983:16;;:36;;-1:-1:-1;25012:7:0;;-1:-1:-1;;;;;25003:16:0;;;25012:7;;25003:16;24983:36;24975:66;;;;;-1:-1:-1;;;24975:66:0;;;;;;;;;;;;-1:-1:-1;;;24975:66:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;26518:25:0;::::1;;::::0;;;:16:::1;:25;::::0;;;;;;;:38:::1;::::0;26559:12:::1;-1:-1:-1::0;26514:79:0::1;;;26586:1;26579:8;;;;26514:79;-1:-1:-1::0;;;;;26610:25:0;;::::1;;::::0;;;:16:::1;:25;::::0;;;;:40:::1;;::::0;26601:49;;::::1;26610:40:::0;::::1;26601:49;26597:108;;;-1:-1:-1::0;;;;;26665:25:0;::::1;;::::0;;;:16:::1;:25;::::0;;;;:34;;-1:-1:-1;26658:41:0::1;;26597:108;-1:-1:-1::0;;;;;26716:25:0;::::1;;::::0;;;:16:::1;:25;::::0;;;;:34:::1;;::::0;;-1:-1:-1;25046:1:0::1;26392:363:::0;;;;;:::o;28658:58::-;23437:12;:10;:12::i;:::-;23427:6;;-1:-1:-1;;;;;23427:6:0;;;:22;;;23419:67;;;;;-1:-1:-1;;;23419:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23419:67:0;;;;;;;;;;;;;;;28701:10:::1;:8;:10::i;:::-;28658:58::o:0;25475:109::-;25546:7;;25540:39;;;-1:-1:-1;;;25540:39:0;;25573:4;25540:39;;;;;;25516:7;;-1:-1:-1;;;;;25546:7:0;;25540:24;;:39;;;;;;;;;;;;;;25546:7;25540:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25540:39:0;;-1:-1:-1;25475:109:0;:::o;27365:724::-;21523:7;;-1:-1:-1;;;21523:7:0;;;;21522:8;21514:37;;;;;-1:-1:-1;;;21514:37:0;;;;;;;;;;;;-1:-1:-1;;;21514:37:0;;;;;;;;;;;;;;;24992:7:::1;::::0;27448:5;;-1:-1:-1;;;;;24983:16:0;;::::1;24992:7:::0;::::1;24983:16;::::0;:36:::1;;-1:-1:-1::0;25012:7:0::1;::::0;-1:-1:-1;;;;;25003:16:0;;::::1;25012:7:::0;::::1;25003:16;24983:36;24975:66;;;::::0;;-1:-1:-1;;;24975:66:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;24975:66:0;;;;;;;;;;;;;::::1;;27465:10:::2;25159:1;25107:25:::0;;;:16:::2;:25;::::0;;;;:40:::2;;::::0;-1:-1:-1;;;;;25107:40:0::2;:54:::0;25099:87:::2;;;::::0;;-1:-1:-1;;;25099:87:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;25099:87:0;;;;;;;;;;;;;::::2;;27506:1:::3;27497:6;:10;27489:34;;;::::0;;-1:-1:-1;;;27489:34:0;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;27489:34:0;;;;;;;;;;;;;::::3;;27575:28;::::0;;-1:-1:-1;;;27575:28:0;;27597:4:::3;27575:28;::::0;::::3;::::0;;;27546:5;;27528:9:::3;::::0;-1:-1:-1;;;;;27575:13:0;::::3;::::0;::::3;::::0;:28;;;;;::::3;::::0;;;;;;;;:13;:28;::::3;;::::0;::::3;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;27575:28:0;27616:51:::3;::::0;;-1:-1:-1;;;27616:51:0;;27633:10:::3;27616:51;::::0;::::3;::::0;27653:4:::3;27616:51:::0;;;;;;;;;;;;27575:28;;-1:-1:-1;;;;;;27616:16:0;::::3;::::0;::::3;::::0;:51;;;;;27575:28:::3;::::0;27616:51;;;;;;;;-1:-1:-1;27616:16:0;:51;::::3;;::::0;::::3;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;27616:51:0;27608:85:::3;;;::::0;;-1:-1:-1;;;27608:85:0;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;27608:85:0;;;;;;;;;;;;;::::3;;27698:18;27719:3;-1:-1:-1::0;;;;;27719:13:0::3;;27741:4;27719:28;;;;;;;;;;;;;-1:-1:-1::0;;;;;27719:28:0::3;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;27719:28:0;;-1:-1:-1;27760:20:0;;::::3;27752:56;;;::::0;;-1:-1:-1;;;27752:56:0;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;::::3;::::0;;;;;;;;;;;;;::::3;;27832:20:::0;;::::3;27813:16;27914:28;27926:5:::0;27832:20;27914:11:::3;:28::i;:::-;27894:48;;27967:1;27955:9;:13;27947:40;;;::::0;;-1:-1:-1;;;27947:40:0;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;27947:40:0;;;;;;;;;;;;;::::3;;28023:61;;;;;;;;28031:18;28040:8;28031;:18::i;:::-;28023:61:::0;;::::3;::::0;;::::3;::::0;;;;-1:-1:-1;;;;;28023:61:0;;::::3;::::0;;;;;;;;28069:12:::3;28082:1;28069:14:::0;;::::3;28023:61:::0;;;;;28009:10:::3;-1:-1:-1::0;27992:28:0;;;:16:::3;:28:::0;;;;;;;:92;;;;;;::::3;::::0;;;::::3;::::0;;;;;;::::3;::::0;::::3;::::0;::::3;::::0;;-1:-1:-1;;;;;;27992:92:0::3;::::0;;;::::3;;::::0;;;::::3;::::0;;::::3;::::0;;;;-1:-1:-1;;;;;;;27365:724:0:o;28095:366::-;21523:7;;-1:-1:-1;;;21523:7:0;;;;21522:8;21514:37;;;;;-1:-1:-1;;;21514:37:0;;;;;;;;;;;;-1:-1:-1;;;21514:37:0;;;;;;;;;;;;;;;24992:7:::1;::::0;28163:5;;-1:-1:-1;;;;;24983:16:0;;::::1;24992:7:::0;::::1;24983:16;::::0;:36:::1;;-1:-1:-1::0;25012:7:0::1;::::0;-1:-1:-1;;;;;25003:16:0;;::::1;25012:7:::0;::::1;25003:16;24983:36;24975:66;;;::::0;;-1:-1:-1;;;24975:66:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;24975:66:0;;;;;;;;;;;;;::::1;;28182:15:::2;28200:38;28220:10;28232:5;28200:19;:38::i;:::-;28182:56;;28262:1;28252:7;:11;28243:48;;;::::0;;-1:-1:-1;;;28243:48:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;28327:28;::::0;;::::2;::::0;::::2;::::0;;-1:-1:-1;28327:28:0;;;::::2;::::0;;::::2;::::0;;;;;;;;;;;;;;;28313:10:::2;28296:28:::0;;;:16:::2;:28:::0;;;;;;:59;;;;;;::::2;::::0;::::2;::::0;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;;28296:59:0::2;-1:-1:-1::0;;;;;28296:59:0;;::::2;;::::0;;;;;;;::::2;::::0;;;;28397:33;;-1:-1:-1;;;28397:33:0;;::::2;::::0;::::2;::::0;;;;;;;;;;;;28378:5;;28397:12;::::2;::::0;::::2;::::0;:33;;;;;28327:28;28397:33;;;;;;;;:12;:33;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;28397:33:0;28389:67:::2;;;::::0;;-1:-1:-1;;;28389:67:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;28389:67:0;;;;;;;;;;;;;::::2;;25046:1;;21562::::1;28095:366:::0;:::o;21286:78::-;21325:4;21349:7;-1:-1:-1;;;21349:7:0;;;;;21286:78::o;28722:128::-;23437:12;:10;:12::i;:::-;23427:6;;-1:-1:-1;;;;;23427:6:0;;;:22;;;23419:67;;;;;-1:-1:-1;;;23419:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23419:67:0;;;;;;;;;;;;;;;28804:41:::1;::::0;;-1:-1:-1;;;28804:41:0;;28826:10:::1;28804:41;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;28804:21:0;::::1;::::0;::::1;::::0;:41;;;;;::::1;::::0;;;;;;;;-1:-1:-1;28804:21:0;:41;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;27220:139:::0;27297:7;27321:33;27330:23;27335:9;27346:6;27330:4;:23::i;:::-;27321:8;:33::i;:::-;27314:40;;27220:139;;;;;:::o;23857:148::-;23437:12;:10;:12::i;:::-;23427:6;;-1:-1:-1;;;;;23427:6:0;;;:22;;;23419:67;;;;;-1:-1:-1;;;23419:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23419:67:0;;;;;;;;;;;;;;;23964:1:::1;23948:6:::0;;23927:40:::1;::::0;-1:-1:-1;;;;;23948:6:0;;::::1;::::0;23927:40:::1;::::0;23964:1;;23927:40:::1;23995:1;23978:19:::0;;-1:-1:-1;;;;;;23978:19:0::1;::::0;;23857:148::o;28598:54::-;23437:12;:10;:12::i;:::-;23427:6;;-1:-1:-1;;;;;23427:6:0;;;:22;;;23419:67;;;;;-1:-1:-1;;;23419:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23419:67:0;;;;;;;;;;;;;;;28639:8:::1;:6;:8::i;23215:79::-:0;23253:7;23280:6;-1:-1:-1;;;;;23280:6:0;23215:79;:::o;25660:128::-;-1:-1:-1;;;;;25743:25:0;;;25722:7;25743:25;;;:16;:25;;;;;:40;;;;;25660:128::o;25924:275::-;24992:7;;26027;;25999:5;;-1:-1:-1;;;;;24983:16:0;;;24992:7;;24983:16;;:36;;-1:-1:-1;25012:7:0;;-1:-1:-1;;;;;25003:16:0;;;25012:7;;25003:16;24983:36;24975:66;;;;;-1:-1:-1;;;24975:66:0;;;;;;;;;;;;-1:-1:-1;;;24975:66:0;;;;;;;;;;;;;;25359:109;25430:7;;25424:39;;;-1:-1:-1;;;25424:39:0;;25457:4;25424:39;;;;;;25400:7;;-1:-1:-1;;;;;25430:7:0;;25424:24;;:39;;;;;;;;;;;;;;25430:7;25424:39;;;;;;;;;;28467:125;23437:12;:10;:12::i;:::-;23427:6;;-1:-1:-1;;;;;23427:6:0;;;:22;;;23419:67;;;;;-1:-1:-1;;;23419:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23419:67:0;;;;;;;;;;;;;;;28536:3:::1;28528:5;:11;;;28520:50;;;::::0;;-1:-1:-1;;;28520:50:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;28575:4;:12:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;28575:12:0::1;-1:-1:-1::0;;;;28575:12:0;;::::1;::::0;;;::::1;::::0;;28467:125::o;25203:72::-;25263:7;;-1:-1:-1;;;;;25263:7:0;25203:72;:::o;25794:124::-;-1:-1:-1;;;;;25875:25:0;25854:7;25875:25;;;:16;:25;;;;;;;;:38;;;25794:124::o;25590:64::-;25645:4;;-1:-1:-1;;;25645:4:0;;;;;25590:64::o;24160:244::-;23437:12;:10;:12::i;:::-;23427:6;;-1:-1:-1;;;;;23427:6:0;;;:22;;;23419:67;;;;;-1:-1:-1;;;23419:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23419:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24249:22:0;::::1;24241:73;;;;-1:-1:-1::0;;;24241:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24351:6;::::0;;24330:38:::1;::::0;-1:-1:-1;;;;;24330:38:0;;::::1;::::0;24351:6;::::1;::::0;24330:38:::1;::::0;::::1;24379:6;:17:::0;;-1:-1:-1;;;;;;24379:17:0::1;-1:-1:-1::0;;;;;24379:17:0;;;::::1;::::0;;;::::1;::::0;;24160:244::o;6180:106::-;6268:10;6180:106;:::o;22019:120::-;21722:7;;-1:-1:-1;;;21722:7:0;;;;21714:40;;;;;-1:-1:-1;;;21714:40:0;;;;;;;;;;;;-1:-1:-1;;;21714:40:0;;;;;;;;;;;;;;;22088:5:::1;22078:15:::0;;-1:-1:-1;;;;22078:15:0::1;::::0;;22109:22:::1;22118:12;:10;:12::i;:::-;22109:22;::::0;;-1:-1:-1;;;;;22109:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;22019:120::o:0;27044:170::-;27121:4;;27100:7;;-1:-1:-1;;;27121:4:0;;;;27117:49;;-1:-1:-1;27151:6:0;27144:13;;27117:49;27195:4;;27180:29;;27205:3;;27180:20;;:6;;27195:4;-1:-1:-1;;;27195:4:0;;;;;27191:8;;27180:20;:10;:20::i;:::-;:24;;:29::i;26761:277::-;26906:7;;26832;;26865:9;;26832:7;;-1:-1:-1;;;;;26893:20:0;;;26906:7;;26893:20;:54;;26939:7;;-1:-1:-1;;;;;26939:7:0;26893:54;;;26922:7;;-1:-1:-1;;;;;26922:7:0;26893:54;26880:67;;26959:74;27016:4;-1:-1:-1;;;;;27016:13:0;;:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27016:15:0;26982;;;-1:-1:-1;;;26982:15:0;;;;27008:24;;;;27004:2;:28;;26959:40;;-1:-1:-1;;;;;26982:13:0;;;;;:15;;;;;27016;;26982;;;;;;;;:13;:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26982:15:0;26959:6;;26974:24;;26970:2;:28;26959:10;:40::i;:74::-;26952:81;26761:277;-1:-1:-1;;;;;26761:277:0:o;21837:118::-;21523:7;;-1:-1:-1;;;21523:7:0;;;;21522:8;21514:37;;;;;-1:-1:-1;;;21514:37:0;;;;;;;;;;;;-1:-1:-1;;;21514:37:0;;;;;;;;;;;;;;;21897:7:::1;:14:::0;;-1:-1:-1;;;;21897:14:0::1;-1:-1:-1::0;;;21897:14:0::1;::::0;;21927:20:::1;21934:12;:10;:12::i;2255:471::-:0;2313:7;2558:6;2554:47;;-1:-1:-1;2588:1:0;2581:8;;2554:47;2625:5;;;2629:1;2625;:5;:1;2649:5;;;;;:10;2641:56;;;;-1:-1:-1;;;2641:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3194:132;3252:7;3279:39;3283:1;3286;3279:39;;;;;;;;;;;;;;;;;3900:7;4002:12;3995:5;3987:28;;;;-1:-1:-1;;;3987:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4026:9;4042:1;4038;:5;;;;;;;3814:345;-1:-1:-1;;;;;3814:345:0:o

Swarm Source

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