Contract 0x250b211ee44459dad5cd3bca803dd6a7ecb5d46c

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x61335337959530ba058932f4a2a5911343b6f47f85df24ad2c3b49a9cef0b89182310292021-06-12 10:57:3741 mins ago0xa6e8790a161d10c2529654317a295eb15c842890 IN  Switcheo: SWTH Token0 BNB0.00022178
0x1353729d086ae8dc359fd0e33fe8584a6ac4d9081c41309a27a6e4fa5f9a4ca682228792021-06-12 4:09:057 hrs 29 mins ago0x7940984ced4bbe2ee77a8e8388986e4afe4f3085 IN  Switcheo: SWTH Token0 BNB0.00022178
0x46f73b93727cc8eb7822864f51b19e14bc665fa2304537b906bc4edc107c6dac82139512021-06-11 20:41:3814 hrs 57 mins ago0x3439a93b9b543fd77fb63968798ce48df774ee47 IN  Switcheo: SWTH Token0 BNB0.00022178
0xb8eb102877ed9d74ce081ddee2baf9e89b606f6b2ef5b53a2ff4105912600cac82100462021-06-11 17:24:2218 hrs 14 mins ago0xd8fa0957b8e3c3b07210a9b1c14da07572be3a69 IN  Switcheo: SWTH Token0 BNB0.00022178
0x703eda6b72a715b74b24dbe3ecdef6e3550c2e325110beeefb6922a87e76de5281974302021-06-11 6:51:351 day 4 hrs ago0xfd8d5f6eacdd33cd38238ec2b3739c3e7b566da6 IN  Switcheo: SWTH Token0 BNB0.0002207
0xa4d874b13e69c97f0dcce081ef70376ed98148fd0e279fc58c1df4c6e395d58581897292021-06-11 0:26:071 day 11 hrs ago0x5fc1ea951402add65613e0437ce59d8b23442e2a IN  Switcheo: SWTH Token0 BNB0.000264552
0xce0b9127825a664976777247e6a9cc03c9e391d2965a3af67c7e2e0198320eed81826002021-06-10 18:27:401 day 17 hrs ago0x96994bf5b336acf66fe533b87c39e08e8e41a77b IN  Switcheo: SWTH Token0 BNB0.00022178
0x58955ed23fc1b6d811b314b731cae8116df5121a7eb7528c9bedad06c81923e781818462021-06-10 17:49:561 day 17 hrs ago0xb9a21cb3641a875a05312b4c499f91d031ff4e55 IN  Switcheo: SWTH Token0 BNB0.00022178
0x744b5a370015e11d259be447b1e7a9f70aa76c1d8405a77963e8c487a3815d4381815532021-06-10 17:35:161 day 18 hrs ago0xf5e8cf9d825d5af478b00d396b80695e5701d881 IN  Switcheo: SWTH Token0 BNB0.00022178
0x4f73ad0eb268289fc798c02b19fa72a6452dd651382da9e3d5f339c5fff32e8481811492021-06-10 17:15:041 day 18 hrs ago0xb01d5c254f2005c66237287e8d569a9436a00e75 IN  Switcheo: SWTH Token0 BNB0.00022178
0x3d9a525870b5fed0fc0a0a2c4017e5a71ed0deb92de7c92a0fca0d694d9bccba81808872021-06-10 17:01:581 day 18 hrs ago0x6f46e6a4d13c5f05e6eefeea0f2e77a0eba26d9d IN  Switcheo: SWTH Token0 BNB0.00018949
0x7e4826b4acf7d8d25826f87f47cb0e18b98ad5e3a9553402503273e3537872bb81785862021-06-10 15:04:351 day 20 hrs ago0x3b6bac259392b5db8c2349da9d41b9482b32538d IN  Switcheo: SWTH Token0 BNB0.00011449
0x333f29a4d92026a5a5c81e31c2d0eafff8061b9263522920212797aaf374bdf381755622021-06-10 12:32:521 day 23 hrs ago0x077eed12a2b27e1541e91bd0f6930fb8b1d8a4cd IN  Switcheo: SWTH Token0 BNB0.00018955
0x8660db80daac2371693473f6b38ab385747525ddbeada87d576a24283cc3f89b81751222021-06-10 12:10:521 day 23 hrs ago0x21bfb06c6a22ad81c30d5967073dc85cda0019cf IN  Switcheo: SWTH Token0 BNB0.00018949
0x4ebc975bf46fe9b64e8faf0a73740b24a7fa7dca16e69d12c799f62f21a5a11d81709832021-06-10 8:43:342 days 2 hrs ago0x077eed12a2b27e1541e91bd0f6930fb8b1d8a4cd IN  Switcheo: SWTH Token0 BNB0.00018955
0xa81b56fe487835ca20c6860373805249a5fa878ceb0104fbc38ec5e8b18f017d81696242021-06-10 7:35:372 days 4 hrs ago0x76a8d26b61495a4a8f60e08be83912194a820a5c IN  Switcheo: SWTH Token0 BNB0.00022178
0x73193cbc20ac78a146c00b5fdde85843dab7df381ec2e1dd5c453c7e476285f581696032021-06-10 7:34:342 days 4 hrs ago0x76a8d26b61495a4a8f60e08be83912194a820a5c IN  Switcheo: SWTH Token0 BNB0.0002207
0x136c9d10e9bf3bdf80094e99b1b9e00b53785593bf1bc21b9927c1bd6c6f3f4081695512021-06-10 7:31:582 days 4 hrs ago0x76a8d26b61495a4a8f60e08be83912194a820a5c IN  Switcheo: SWTH Token0 BNB0.00022034
0xb0c3e0588280c611d53678d7f1ecf81414f2d5947aa5b927c8f2ad0cd97ce4f881669412021-06-10 5:20:162 days 6 hrs ago0x077eed12a2b27e1541e91bd0f6930fb8b1d8a4cd IN  Switcheo: SWTH Token0 BNB0.00018955
0xabf561809a2d0d0bafe5a77fc0c3e5e6933d3bdd144412e2d41b1d6d7fa9397381636102021-06-10 2:33:362 days 9 hrs ago0xf3373dbc0b57eab48ba426c0be30844a1ccfa506 IN  Switcheo: SWTH Token0 BNB0.00022178
0x6bef2ee30defc46883153ce7156f9a532a7faeab0abde66f43fd681e0696d9f181616412021-06-10 0:55:072 days 10 hrs ago0xc4818c13eaeb513a8a4ec8422e45788bddb301cb IN  Switcheo: SWTH Token0 BNB0.00018949
0x372a8242c4cb5de4672043278532f87d65bf5819eeeb9c224009fbab0a5d13af81562712021-06-09 20:26:352 days 15 hrs ago0x41042d65bdd38f9028cb9291097ce2e4368a08d1 IN  Switcheo: SWTH Token0 BNB0.00022016
0x1d670413cb23329ebb534db2ccd170fbdc4bdd08490ec02e30dfa9a876fb72fc81560932021-06-09 20:17:412 days 15 hrs ago0x7752ca44c5e70005e72a5da482bf0caffef01d8b IN  Switcheo: SWTH Token0 BNB0.00026449
0x730a10162b5823f72276e273299eeeb1da9ad66aca3c61cc0f436a60ca3f385e81559032021-06-09 20:08:112 days 15 hrs ago0x3b6bac259392b5db8c2349da9d41b9482b32538d IN  Switcheo: SWTH Token0 BNB0.00011449
0xd4a3947cea6b61ef9c53cec092a629b91d516c249a9b93293703ca001f12b0bb81528422021-06-09 17:33:342 days 18 hrs ago0x5033d13ef9825877cd599f0264a7fa64251cf866 IN  Switcheo: SWTH Token0 BNB0.00011443
[ Download CSV Export 

OVERVIEW

Switcheo offers cross-chain trading protocol for any asset and its derivatives.

Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SwitcheoToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 5 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @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 2 of 5 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./IERC20.sol";
import "../../math/SafeMath.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 `ERC20Mintable`.
 *
 * *For a detailed writeup see our guide [How to implement supply
 * mechanisms](https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226).*
 *
 * 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 IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    /**
     * @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(msg.sender, recipient, amount);
        return true;
    }

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

    /**
     * @dev See `IERC20.approve`.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual override returns (bool) {
        _approve(msg.sender, spender, value);
        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 `value`.
     * - 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, msg.sender, _allowances[sender][msg.sender].sub(amount));
        return true;
    }

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

        _balances[sender] = _balances[sender].sub(amount);
        _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");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

     /**
     * @dev Destoys `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 value) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _totalSupply = _totalSupply.sub(value);
        _balances[account] = _balances[account].sub(value);
        emit Transfer(account, address(0), value);
    }

    /**
     * @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 value) 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] = value;
        emit Approval(owner, spender, value);
    }

    /**
     * @dev Destoys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See `_burn` and `_approve`.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, msg.sender, _allowances[account][msg.sender].sub(amount));
    }
}

File 3 of 5 : ERC20Detailed.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

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

File 4 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @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 5 of 5 : SwitcheoToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "../libs/token/ERC20/ERC20.sol";
import "../libs/token/ERC20/ERC20Detailed.sol";
import "../libs/math/SafeMath.sol";

/**
* @title SwitcheoToken - Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
*/
contract SwitcheoToken is ERC20, ERC20Detailed {
  using SafeMath for uint256;

  address public lockProxyAddress;

  constructor() ERC20Detailed("Switcheo Token", "SWTH", 8) public {}

  function initalize(address _lockProxyAddress) public {
      require(lockProxyAddress == address(0), "SwitcheoToken: Already Initialized");
      lockProxyAddress = _lockProxyAddress;
  }

  function _transfer(address sender, address recipient, uint256 amount) internal override {
      if (sender == lockProxyAddress) {
          require(recipient != lockProxyAddress, "SwitcheoToken: lockProxy should not call transfer to self");
          _mint(lockProxyAddress, amount); // lockProxy is the primary minter
      }

      super._transfer(sender, recipient, amount);

      if (recipient == lockProxyAddress) {
          _burn(lockProxyAddress, amount); // auto-burn to maintain total supply
      }
  }

}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","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":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lockProxyAddress","type":"address"}],"name":"initalize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockProxyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604080518082018252600e81526d29bbb4ba31b432b7902a37b5b2b760911b6020808301918252835180850190945260048452630a6aea8960e31b9084015281519192916008916100659160039190610096565b508151610079906004906020850190610096565b506005805460ff191660ff92909216919091179055506101299050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100d757805160ff1916838001178555610104565b82800160010185558215610104579182015b828111156101045782518255916020019190600101906100e9565b50610110929150610114565b5090565b5b808211156101105760008155600101610115565b610cfb806101386000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80634ad43eda1161008c57806395d89b411161006657806395d89b411461029d578063a457c2d7146102a5578063a9059cbb146102d1578063dd62ed3e146102fd576100cf565b80634ad43eda1461022b57806370a082311461024f5780638dc5fbf914610275576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc61032b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103c1565b604080519115158252519081900360200190f35b6101996103d7565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103dd565b6101e961042e565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610437565b61023361046d565b604080516001600160a01b039092168252519081900360200190f35b6101996004803603602081101561026557600080fd5b50356001600160a01b0316610481565b61029b6004803603602081101561028b57600080fd5b50356001600160a01b031661049c565b005b6100dc610511565b61017d600480360360408110156102bb57600080fd5b506001600160a01b038135169060200135610572565b61017d600480360360408110156102e757600080fd5b506001600160a01b0381351690602001356105a8565b6101996004803603604081101561031357600080fd5b506001600160a01b03813581169160200135166105b5565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b75780601f1061038c576101008083540402835291602001916103b7565b820191906000526020600020905b81548152906001019060200180831161039a57829003601f168201915b5050505050905090565b60006103ce3384846105e0565b50600192915050565b60025490565b60006103ea8484846106cc565b6001600160a01b03841660009081526001602090815260408083203380855292529091205461042491869161041f908661079a565b6105e0565b5060019392505050565b60055460ff1690565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103ce91859061041f90866107e3565b60055461010090046001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b60055461010090046001600160a01b0316156104e95760405162461bcd60e51b8152600401808060200182810382526022815260200180610c016022913960400191505060405180910390fd5b600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b75780601f1061038c576101008083540402835291602001916103b7565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103ce91859061041f908661079a565b60006103ce3384846106cc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166106255760405162461bcd60e51b8152600401808060200182810382526024815260200180610ca26024913960400191505060405180910390fd5b6001600160a01b03821661066a5760405162461bcd60e51b8152600401808060200182810382526022815260200180610bdf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6005546001600160a01b03848116610100909204161415610754576005546001600160a01b038381166101009092041614156107395760405162461bcd60e51b8152600401808060200182810382526039815260200180610c446039913960400191505060405180910390fd5b6005546107549061010090046001600160a01b03168261083d565b61075f838383610921565b6005546001600160a01b03838116610100909204161415610795576005546107959061010090046001600160a01b031682610a57565b505050565b60006107dc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b24565b9392505050565b6000828201838110156107dc576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610898576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6002546108a590826107e3565b6002556001600160a01b0382166000908152602081905260409020546108cb90826107e3565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0383166109665760405162461bcd60e51b8152600401808060200182810382526025815260200180610c7d6025913960400191505060405180910390fd5b6001600160a01b0382166109ab5760405162461bcd60e51b8152600401808060200182810382526023815260200180610bbc6023913960400191505060405180910390fd5b6001600160a01b0383166000908152602081905260409020546109ce908261079a565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109fd90826107e3565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6001600160a01b038216610a9c5760405162461bcd60e51b8152600401808060200182810382526021815260200180610c236021913960400191505060405180910390fd5b600254610aa9908261079a565b6002556001600160a01b038216600090815260208190526040902054610acf908261079a565b6001600160a01b038316600081815260208181526040808320949094558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050565b60008184841115610bb35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b78578181015183820152602001610b60565b50505050905090810190601f168015610ba55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373537769746368656f546f6b656e3a20416c726561647920496e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f2061646472657373537769746368656f546f6b656e3a206c6f636b50726f78792073686f756c64206e6f742063616c6c207472616e7366657220746f2073656c6645524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373a264697066735822122007121a119737c851c4c8b20975b51620fe1e2a9df5e65163c8d765ae95eb034364736f6c634300060c0033

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.