ETH Price: $2,352.07 (+0.07%)

Contract

0xB338dF5Ee1F515bafF8DE46a05de19Ce1Bcaab94
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exchange Shares119915962021-03-07 13:18:441291 days ago1615123124IN
0xB338dF5E...e1Bcaab94
0 ETH0.0087613795
Exchange Shares119794692021-03-05 16:38:211293 days ago1614962301IN
0xB338dF5E...e1Bcaab94
0 ETH0.00348594154
Exchange Shares119794692021-03-05 16:38:211293 days ago1614962301IN
0xB338dF5E...e1Bcaab94
0 ETH0.01146655124.3
Exchange Shares119794482021-03-05 16:32:581293 days ago1614961978IN
0xB338dF5E...e1Bcaab94
0 ETH0.01042278113.00000145
Exchange Shares119793382021-03-05 16:10:371293 days ago1614960637IN
0xB338dF5E...e1Bcaab94
0 ETH0.00759075137
Exchange Shares119792782021-03-05 15:58:401293 days ago1614959920IN
0xB338dF5E...e1Bcaab94
0 ETH0.00698128126.00000145
Exchange Shares119790802021-03-05 15:18:341293 days ago1614957514IN
0xB338dF5E...e1Bcaab94
0 ETH0.01420449154
Exchange Shares119789602021-03-05 14:50:581293 days ago1614955858IN
0xB338dF5E...e1Bcaab94
0 ETH0.01153262125
Exchange Shares119789592021-03-05 14:50:511293 days ago1614955851IN
0xB338dF5E...e1Bcaab94
0 ETH0.00958036124
Exchange Shares119788762021-03-05 14:33:391293 days ago1614954819IN
0xB338dF5E...e1Bcaab94
0 ETH0.01228449159
Exchange Shares119788712021-03-05 14:33:041293 days ago1614954784IN
0xB338dF5E...e1Bcaab94
0 ETH0.01273201138.00000145
Exchange Shares119788612021-03-05 14:31:541293 days ago1614954714IN
0xB338dF5E...e1Bcaab94
0 ETH0.01291654140
Exchange Shares119788052021-03-05 14:20:071293 days ago1614954007IN
0xB338dF5E...e1Bcaab94
0 ETH0.02038968221
Exchange Shares119783792021-03-05 12:45:301293 days ago1614948330IN
0xB338dF5E...e1Bcaab94
0 ETH0.0092261100
Exchange Shares119783562021-03-05 12:40:541293 days ago1614948054IN
0xB338dF5E...e1Bcaab94
0 ETH0.01033323112
Exchange Shares119781932021-03-05 12:09:121293 days ago1614946152IN
0xB338dF5E...e1Bcaab94
0 ETH0.0118094128.00000145
Exchange Shares119781522021-03-05 11:58:491293 days ago1614945529IN
0xB338dF5E...e1Bcaab94
0 ETH0.01116212121
Exchange Shares119779222021-03-05 11:05:501293 days ago1614942350IN
0xB338dF5E...e1Bcaab94
0 ETH0.00931836101
Exchange Shares119778332021-03-05 10:46:391293 days ago1614941199IN
0xB338dF5E...e1Bcaab94
0 ETH0.0078411685
Exchange Shares119777892021-03-05 10:35:111293 days ago1614940511IN
0xB338dF5E...e1Bcaab94
0 ETH0.0085802793
Exchange Shares119777382021-03-05 10:23:561293 days ago1614939836IN
0xB338dF5E...e1Bcaab94
0 ETH0.0079344486
Exchange Shares119776712021-03-05 10:12:201293 days ago1614939140IN
0xB338dF5E...e1Bcaab94
0 ETH0.0089481597
Exchange Shares119776322021-03-05 10:02:561293 days ago1614938576IN
0xB338dF5E...e1Bcaab94
0 ETH0.00950288103
Exchange Shares119771822021-03-05 8:17:471293 days ago1614932267IN
0xB338dF5E...e1Bcaab94
0 ETH0.01189819154
Exchange Shares119771392021-03-05 8:06:301293 days ago1614931590IN
0xB338dF5E...e1Bcaab94
0 ETH0.0118094128
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShareExchange

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 Etherscan.io on 2021-02-26
*/

// File: @openzeppelin/contracts/token/ERC20/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: @openzeppelin/contracts/math/SafeMath.sol

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) {
        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: @openzeppelin/contracts/utils/Address.sol


pragma solidity ^0.6.2;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol


pragma solidity ^0.6.0;




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

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

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

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

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

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

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

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

// File: contracts/utils/ContractGuard.sol

pragma solidity ^0.6.12;

contract ContractGuard {
    mapping(uint256 => mapping(address => bool)) private _status;

    function checkSameOriginReentranted() internal view returns (bool) {
        return _status[block.number][tx.origin];
    }

    function checkSameSenderReentranted() internal view returns (bool) {
        return _status[block.number][msg.sender];
    }

    modifier onlyOneBlock() {
        require(
            !checkSameOriginReentranted(),
            'ContractGuard: one block, one function'
        );
        require(
            !checkSameSenderReentranted(),
            'ContractGuard: one block, one function'
        );

        _;

        _status[block.number][tx.origin] = true;
        _status[block.number][msg.sender] = true;
    }
}

// File: contracts/ShareExchange.sol

pragma solidity ^0.6.0;




//Mint 350k Shares to this contract
contract ShareExchange is ContractGuard {
    using SafeERC20 for IERC20;

    address public share_old;
    address public share_new;

    constructor(address _share_old, address _share_new) public {
        share_old = _share_old;
        share_new = _share_new;
    }

    function exchangeShares(uint256 amount)
        external
        onlyOneBlock
    {
        require(amount > 0, 'ShareExchange: amount must be > 0');

        //reverts if amount > sender's balance, so I don't need to check if amount <= sender's balance
        IERC20(share_old).safeTransferFrom(msg.sender, address(this), amount);
        //reverts if amount > the contract's balance, so I don't need to check if amount <= contract's balance
        IERC20(share_new).safeTransfer(msg.sender, amount);

        emit ExchangedShares(msg.sender, amount);
    }

    /* ========== VIEW FUNCTIONS ========== */

    function getBalance() public view returns (uint256) {
        return IERC20(share_new).balanceOf(address(this));
    }

    // CORE
    event ExchangedShares(address indexed from, uint256 amount);
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_share_old","type":"address"},{"internalType":"address","name":"_share_new","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ExchangedShares","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"exchangeShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"share_new","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"share_old","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516107473803806107478339818101604052604081101561003357600080fd5b508051602090910151600180546001600160a01b039384166001600160a01b031991821617909155600280549390921692169190911790556106cd8061007a6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063036f66981461005157806312065fe01461007557806375fbf1751461008f578063e833863f14610097575b600080fd5b6100596100b6565b604080516001600160a01b039092168252519081900360200190f35b61007d6100c5565b60408051918252519081900360200190f35b610059610141565b6100b4600480360360208110156100ad57600080fd5b5035610150565b005b6001546001600160a01b031681565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561011057600080fd5b505afa158015610124573d6000803e3d6000fd5b505050506040513d602081101561013a57600080fd5b5051905090565b6002546001600160a01b031681565b6101586102b8565b156101945760405162461bcd60e51b81526004018080602001828103825260268152602001806106726026913960400191505060405180910390fd5b61019c6102d7565b156101d85760405162461bcd60e51b81526004018080602001828103825260268152602001806106726026913960400191505060405180910390fd5b600081116102175760405162461bcd60e51b81526004018080602001828103825260218152602001806106276021913960400191505060405180910390fd5b60015461022f906001600160a01b03163330846102f6565b600254610246906001600160a01b03163383610356565b60408051828152905133917fdbb357e6e000fea9d3c04a2d5df1e7a191bed6ff78a0d799ef4f448a20a65d66919081900360200190a250436000908152602081815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b4360009081526020818152604080832032845290915290205460ff1690565b4360009081526020818152604080832033845290915290205460ff1690565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526103509085906103ad565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526103a89084906103ad565b505050565b6060610402826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661045e9092919063ffffffff16565b8051909150156103a85780806020019051602081101561042157600080fd5b50516103a85760405162461bcd60e51b815260040180806020018281038252602a815260200180610648602a913960400191505060405180910390fd5b606061046d8484600085610475565b949350505050565b606061048085610620565b6104d1576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106105105780518252601f1990920191602091820191016104f1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610572576040519150601f19603f3d011682016040523d82523d6000602084013e610577565b606091505b5091509150811561058b57915061046d9050565b80511561059b5780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156105e55781810151838201526020016105cd565b50505050905090810190601f1680156106125780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b3b15159056fe536861726545786368616e67653a20616d6f756e74206d757374206265203e20305361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756e6374696f6ea2646970667358221220f22d783c5fa21586c26eb3803f3ba9d366f4af380cb4c5bf6cffe103cc2908a964736f6c634300060c00330000000000000000000000004b4d2e899658fb59b1d518b68fe836b100ee8958000000000000000000000000b58dfbb72e648a0b035b8c85b3628123cc9bb881

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063036f66981461005157806312065fe01461007557806375fbf1751461008f578063e833863f14610097575b600080fd5b6100596100b6565b604080516001600160a01b039092168252519081900360200190f35b61007d6100c5565b60408051918252519081900360200190f35b610059610141565b6100b4600480360360208110156100ad57600080fd5b5035610150565b005b6001546001600160a01b031681565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561011057600080fd5b505afa158015610124573d6000803e3d6000fd5b505050506040513d602081101561013a57600080fd5b5051905090565b6002546001600160a01b031681565b6101586102b8565b156101945760405162461bcd60e51b81526004018080602001828103825260268152602001806106726026913960400191505060405180910390fd5b61019c6102d7565b156101d85760405162461bcd60e51b81526004018080602001828103825260268152602001806106726026913960400191505060405180910390fd5b600081116102175760405162461bcd60e51b81526004018080602001828103825260218152602001806106276021913960400191505060405180910390fd5b60015461022f906001600160a01b03163330846102f6565b600254610246906001600160a01b03163383610356565b60408051828152905133917fdbb357e6e000fea9d3c04a2d5df1e7a191bed6ff78a0d799ef4f448a20a65d66919081900360200190a250436000908152602081815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b4360009081526020818152604080832032845290915290205460ff1690565b4360009081526020818152604080832033845290915290205460ff1690565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526103509085906103ad565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526103a89084906103ad565b505050565b6060610402826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661045e9092919063ffffffff16565b8051909150156103a85780806020019051602081101561042157600080fd5b50516103a85760405162461bcd60e51b815260040180806020018281038252602a815260200180610648602a913960400191505060405180910390fd5b606061046d8484600085610475565b949350505050565b606061048085610620565b6104d1576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106105105780518252601f1990920191602091820191016104f1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610572576040519150601f19603f3d011682016040523d82523d6000602084013e610577565b606091505b5091509150811561058b57915061046d9050565b80511561059b5780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156105e55781810151838201526020016105cd565b50505050905090810190601f1680156106125780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b3b15159056fe536861726545786368616e67653a20616d6f756e74206d757374206265203e20305361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756e6374696f6ea2646970667358221220f22d783c5fa21586c26eb3803f3ba9d366f4af380cb4c5bf6cffe103cc2908a964736f6c634300060c0033

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

0000000000000000000000004b4d2e899658fb59b1d518b68fe836b100ee8958000000000000000000000000b58dfbb72e648a0b035b8c85b3628123cc9bb881

-----Decoded View---------------
Arg [0] : _share_old (address): 0x4b4D2e899658FB59b1D518b68fe836B100ee8958
Arg [1] : _share_new (address): 0xb58DFBB72e648a0b035B8C85B3628123CC9bb881

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004b4d2e899658fb59b1d518b68fe836b100ee8958
Arg [1] : 000000000000000000000000b58dfbb72e648a0b035b8c85b3628123cc9bb881


Deployed Bytecode Sourcemap

18918:1121:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19000:24;;;:::i;:::-;;;;-1:-1:-1;;;;;19000:24:0;;;;;;;;;;;;;;19835:120;;;:::i;:::-;;;;;;;;;;;;;;;;19031:24;;;:::i;19205:572::-;;;;;;;;;;;;;;;;-1:-1:-1;19205:572:0;;:::i;:::-;;19000:24;;;-1:-1:-1;;;;;19000:24:0;;:::o;19835:120::-;19912:9;;19905:42;;;-1:-1:-1;;;19905:42:0;;19941:4;19905:42;;;;;;19878:7;;-1:-1:-1;;;;;19912:9:0;;19905:27;;:42;;;;;;;;;;;;;;19912:9;19905:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19905:42:0;;-1:-1:-1;19835:120:0;:::o;19031:24::-;;;-1:-1:-1;;;;;19031:24:0;;:::o;19205:572::-;18454:28;:26;:28::i;:::-;18453:29;18431:117;;;;-1:-1:-1;;;18431:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18582:28;:26;:28::i;:::-;18581:29;18559:117;;;;-1:-1:-1;;;18559:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19318:1:::1;19309:6;:10;19301:56;;;;-1:-1:-1::0;;;19301:56:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19481:9;::::0;19474:69:::1;::::0;-1:-1:-1;;;;;19481:9:0::1;19509:10;19529:4;19536:6:::0;19474:34:::1;:69::i;:::-;19673:9;::::0;19666:50:::1;::::0;-1:-1:-1;;;;;19673:9:0::1;19697:10;19709:6:::0;19666:30:::1;:50::i;:::-;19734:35;::::0;;;;;;;19750:10:::1;::::0;19734:35:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;18711:12:0;18703:7;:21;;;;;;;;;;;18725:9;18703:32;;;;;;;;:39;;18738:4;-1:-1:-1;;18703:39:0;;;;;;;;18775:10;18753:33;;;;;;:40;;;;;;;;;;19205:572::o;18129:125::-;18222:12;18190:4;18214:21;;;;;;;;;;;18236:9;18214:32;;;;;;;;;;18129:125;:::o;18262:126::-;18355:12;18323:4;18347:21;;;;;;;;;;;18369:10;18347:33;;;;;;;;;;18262:126;:::o;15068:205::-;15196:68;;;-1:-1:-1;;;;;15196:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15196:68:0;-1:-1:-1;;;15196:68:0;;;15169:96;;15189:5;;15169:19;:96::i;:::-;15068:205;;;;:::o;14883:177::-;14993:58;;;-1:-1:-1;;;;;14993:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14993:58:0;-1:-1:-1;;;14993:58:0;;;14966:86;;14986:5;;14966:19;:86::i;:::-;14883:177;;;:::o;17188:761::-;17612:23;17638:69;17666:4;17638:69;;;;;;;;;;;;;;;;;17646:5;-1:-1:-1;;;;;17638:27:0;;;:69;;;;;:::i;:::-;17722:17;;17612:95;;-1:-1:-1;17722:21:0;17718:224;;17864:10;17853:30;;;;;;;;;;;;;;;-1:-1:-1;17853:30:0;17845:85;;;;-1:-1:-1;;;17845:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11864:196;11967:12;11999:53;12022:6;12030:4;12036:1;12039:12;11999:22;:53::i;:::-;11992:60;11864:196;-1:-1:-1;;;;11864:196:0:o;13241:979::-;13371:12;13404:18;13415:6;13404:10;:18::i;:::-;13396:60;;;;;-1:-1:-1;;;13396:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13530:12;13544:23;13571:6;-1:-1:-1;;;;;13571:11:0;13591:8;13602:4;13571:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13571:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13529:78;;;;13622:7;13618:595;;;13653:10;-1:-1:-1;13646:17:0;;-1:-1:-1;13646:17:0;13618:595;13767:17;;:21;13763:439;;14030:10;14024:17;14091:15;14078:10;14074:2;14070:19;14063:44;13978:148;14173:12;14166:20;;-1:-1:-1;;;14166:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8946:422;9313:20;9352:8;;;8946:422::o

Swarm Source

ipfs://f22d783c5fa21586c26eb3803f3ba9d366f4af380cb4c5bf6cffe103cc2908a9

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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