Contract 0xb017e40Ec7C7F55277447471c25a4d1d12aDEB8F

Contract Overview

Balance:
0 Ether

Token:
Txn Hash
Method
Block
From
To
Value
0x5cdc92311f133999734ca2ada3ee5270eb7e2ec46499da3df19142c0bb066243Convert100384272021-04-14 13:28:11442 days 8 hrs ago0xd0593b233be4411a236f22b42087345e1137170b IN  0xb017e40ec7c7f55277447471c25a4d1d12adeb8f0 Ether0.0002001982
0xaa24fa45b26a6f19e1fa3c0053ee4a5918cf45cedfcb8b5664e85b5073cf2854Convert100381362021-04-14 12:29:39442 days 9 hrs ago0xd0593b233be4411a236f22b42087345e1137170b IN  0xb017e40ec7c7f55277447471c25a4d1d12adeb8f0 Ether0.15220
0x6f21ddee5cd9eed5bef210772292b83a8801f0033bbcd4b94fb3049005c97a4bConvert100381112021-04-14 12:20:53442 days 9 hrs ago0xd0593b233be4411a236f22b42087345e1137170b IN  0xb017e40ec7c7f55277447471c25a4d1d12adeb8f0 Ether0.0001272682
0x3f26ffe403a43b39d5021d0cad61031f9119991f9b59c9b4278e88c8c65ebd770x60c06040100379132021-04-14 11:39:54442 days 10 hrs ago0xd0593b233be4411a236f22b42087345e1137170b IN  Create: Bridge0 Ether0.0033758882
[ Download CSV Export 
Latest 3 internal transactions
Parent Txn Hash Block From To Value
0x5cdc92311f133999734ca2ada3ee5270eb7e2ec46499da3df19142c0bb066243100384272021-04-14 13:28:11442 days 8 hrs ago 0xb017e40ec7c7f55277447471c25a4d1d12adeb8f 0x0481254a38531a3b74726e754a4916a7c925f1b30 Ether
0xaa24fa45b26a6f19e1fa3c0053ee4a5918cf45cedfcb8b5664e85b5073cf2854100381362021-04-14 12:29:39442 days 9 hrs ago 0xb017e40ec7c7f55277447471c25a4d1d12adeb8f 0x0481254a38531a3b74726e754a4916a7c925f1b30 Ether
0x6f21ddee5cd9eed5bef210772292b83a8801f0033bbcd4b94fb3049005c97a4b100381112021-04-14 12:20:53442 days 9 hrs ago 0xb017e40ec7c7f55277447471c25a4d1d12adeb8f 0x0481254a38531a3b74726e754a4916a7c925f1b30 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bridge

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-04-14
*/

/*
  * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
pragma solidity ^0.6.6;// SPDX-License-Identifier: MIT



/**
 * @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);
}
// SPDX-License-Identifier: MIT



/**
 * @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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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;
    }
}
// SPDX-License-Identifier: MIT



/**
 * @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 on 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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



/*
 * @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.
 */
abstract contract Context {
    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;
    }
}
// SPDX-License-Identifier: MIT



/**
 * @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");
        }
    }
}
// SPDX-License-Identifier: MIT



/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}
// SPDX-License-Identifier: MIT



/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        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;
    }
}
// SPDX-License-Identifier: MIT



/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}
// SPDX-License-Identifier: Apache-2.0


contract Bridge is ReentrancyGuard, Ownable {

    using SafeMath for uint;
    using Math for uint;
    using SafeERC20 for IERC20;

    // Can't change hold time rates before 1st May 2021
    uint public constant changeHoldTimeOptions = 1619827200;
    uint public constant DECIMAL_PRECISION_MULTIPLIER = 10**32;
    uint public constant DECIMAL_PRECISION = 10000;
    uint public constant MAX_STAKING_BONUS = 6;
    uint public immutable monthCount;
    uint public nonce;

    struct HoldTimeOption {
        uint endDate;
        uint rate; // Starts on April 2021 till January 2022
        uint16[MAX_STAKING_BONUS] stakingBonusInBP;
    }

    event Stake(
        address indexed user,
        uint amount,
        uint indexed holdTimeOption,
        uint stakeTime,
        uint id
    );

    address immutable token;

    HoldTimeOption[] holdTimeOptions;

    // TODO: Change dates
    constructor(address _token) public {
        token = _token;
        holdTimeOptions.push(HoldTimeOption(1619827200, DECIMAL_PRECISION_MULTIPLIER.mul(10), [0, 500, 700, 1200, 2500, 6000])); // Before 1st May 2021
        holdTimeOptions.push(HoldTimeOption(1622505600, DECIMAL_PRECISION_MULTIPLIER.mul(9), [0, 400, 500, 1000, 2000, 5000])); // Before 1st June 2021
        holdTimeOptions.push(HoldTimeOption(1625097600, DECIMAL_PRECISION_MULTIPLIER.mul(8), [0, 300, 400, 900, 1800, 4500])); // Before 1st July 2021
        holdTimeOptions.push(HoldTimeOption(1627776000, DECIMAL_PRECISION_MULTIPLIER.mul(7), [0, 200, 400, 800, 1600, 4000])); // Before 1st August 2021
        holdTimeOptions.push(HoldTimeOption(1630454400, DECIMAL_PRECISION_MULTIPLIER.mul(6), [0, 100, 300, 600, 1400, 3500])); // Before 1st September 2021
        holdTimeOptions.push(HoldTimeOption(1633046400, DECIMAL_PRECISION_MULTIPLIER.mul(5), [0, 100, 200, 500, 1200, 3000])); // Before 1st October 2021
        holdTimeOptions.push(HoldTimeOption(1635724800, DECIMAL_PRECISION_MULTIPLIER.mul(4), [0, 100, 100, 400, 1100, 2500])); // Before 1st November 2021
        holdTimeOptions.push(HoldTimeOption(1638316800, DECIMAL_PRECISION_MULTIPLIER.mul(3), [0, 100, 100, 300, 1000, 2000])); // Before 1st December 2021
        holdTimeOptions.push(HoldTimeOption(1640995200, DECIMAL_PRECISION_MULTIPLIER.mul(2), [0, 100, 100, 200, 900, 1500])); // Before 1st January 2022
        holdTimeOptions.push(HoldTimeOption(1643673600, DECIMAL_PRECISION_MULTIPLIER.mul(1), [0, 100, 100, 100, 800, 1000])); // All time after (this time never use)
        monthCount = holdTimeOptions.length;
    }

    function holdTimeOptionsForMonth(uint _month) public view returns (uint endDate, uint optionRate, uint16[6] memory options) {
        uint actualMonth = Math.min(holdTimeOptions.length - 1, _month);
        HoldTimeOption storage timeOption = holdTimeOptions[actualMonth];
        endDate = timeOption.endDate;
        optionRate = timeOption.rate;
        options = timeOption.stakingBonusInBP;
    }

    function monthFromStart(uint time) public view returns (uint) {
        for (uint i; i < holdTimeOptions.length; i++) {
            if (time < holdTimeOptions[i].endDate) {
                return i;
            }
        }
        return holdTimeOptions.length - 1;
    }

    function setHoldTimeOptions(uint _month, uint _endDate, uint _rate, uint16[6] calldata _holdTimeOptions) external onlyOwner {
        require(now >= changeHoldTimeOptions, "Bridge: TOO_EARLY");
        holdTimeOptions[_month] = HoldTimeOption(_endDate, _rate, _holdTimeOptions);
    }

    function convert(uint _stakeTimeOption, uint _amount) external nonReentrant {
        IERC20(token).safeTransferFrom(msg.sender, address(this), _amount);
        uint month = monthFromStart(now);
        uint percent = DECIMAL_PRECISION.add(_stakeTimeOptionForMonth(month, _stakeTimeOption));
        uint amountDSCP = _amount.mul(percent) / DECIMAL_PRECISION;
        uint amountDSCPL = amountDSCP.mul(_rate(month)) / DECIMAL_PRECISION_MULTIPLIER;
        nonce++;
        emit Stake(msg.sender, amountDSCPL, _stakeTimeOption, now, nonce);
    }

    function _stakeTimeOptionForMonth(uint _month, uint _stakeTimeOption) private view returns (uint) {
        HoldTimeOption storage timeOption = holdTimeOptions[_month];
        return timeOption.stakingBonusInBP[_stakeTimeOption];
    }

    function _rate(uint _monthFromStart) private view returns (uint) {
        return holdTimeOptions[Math.min(holdTimeOptions.length - 1, _monthFromStart)].rate;
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"holdTimeOption","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Stake","type":"event"},{"inputs":[],"name":"DECIMAL_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DECIMAL_PRECISION_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_STAKING_BONUS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"changeHoldTimeOptions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakeTimeOption","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_month","type":"uint256"}],"name":"holdTimeOptionsForMonth","outputs":[{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint256","name":"optionRate","type":"uint256"},{"internalType":"uint16[6]","name":"options","type":"uint16[6]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monthCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"monthFromStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_month","type":"uint256"},{"internalType":"uint256","name":"_endDate","type":"uint256"},{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint16[6]","name":"_holdTimeOptions","type":"uint16[6]"}],"name":"setHoldTimeOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b506040516200184d3803806200184d833981810160405260208110156200003757600080fd5b505160016000908155620000536001600160e01b036200087016565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350806001600160a01b031660a0816001600160a01b031660601b815250506003604051806060016040528063608c9a008152602001620000fe600a6d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c08101825260008082526101f46020838101919091526102bc838501526104b060608401526109c4608084015261177060a084015293840191909152845460018181018755958252908390208451600390920201908155918301519382019390935591810151909190620001809060028301906006620008dc565b505050600360405180606001604052806360b578808152602001620001c360096d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c08101825260008082526101906020838101919091526101f4838501526103e860608401526107d0608084015261138860a084015293840191909152845460018181018755958252908390208451600390920201908155918301519382019390935591810151909190620002459060028301906006620008dc565b505050600360405180606001604052806360dd058081526020016200028860086d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c081018252600080825261012c602083810191909152610190838501526103846060840152610708608084015261119460a0840152938401919091528454600181810187559582529083902084516003909202019081559183015193820193909355918101519091906200030a9060028301906006620008dc565b50505060036040518060600160405280636105e40081526020016200034d60076d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c081018252600080825260c86020838101919091526101908385015261032060608401526106406080840152610fa060a084015293840191909152845460018181018755958252908390208451600390920201908155918301519382019390935591810151909190620003ce9060028301906006620008dc565b5050506003604051806060016040528063612ec28081526020016200041160066d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c0810182526000808252606460208381019190915261012c8385015261025860608401526105786080840152610dac60a084015293840191909152845460018181018755958252908390208451600390920201908155918301519382019390935591810151909190620004929060028301906006620008dc565b505050600360405180606001604052806361564f808152602001620004d560056d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c0810182526000808252606460208381019190915260c8838501526101f460608401526104b06080840152610bb860a084015293840191909152845460018181018755958252908390208451600390920201908155918301519382019390935591810151909190620005559060028301906006620008dc565b5050506003604051806060016040528063617f2e0081526020016200059860046d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c08101825260008082526064602083810182905283850191909152610190606084015261044c60808401526109c460a084015293840191909152845460018181018755958252908390208451600390920201908155918301519382019390935591810151909190620006189060028301906006620008dc565b505050600360405180606001604052806361a6bb0081526020016200065b60036d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c0810182526000808252606460208381018290528385019190915261012c60608401526103e860808401526107d060a084015293840191909152845460018181018755958252908390208451600390920201908155918301519382019390935591810151909190620006db9060028301906006620008dc565b505050600360405180606001604052806361cf998081526020016200071e60026d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c0810182526000808252606460208381018290528385019190915260c8606084015261038460808401526105dc60a0840152938401919091528454600181810187559582529083902084516003909202019081559183015193820193909355918101519091906200079d9060028301906006620008dc565b505050600360405180606001604052806361f878008152602001620007e060016d04ee2d6d415b85acef81000000006200087560201b620009631790919060201c565b81526040805160c081018252600080825260646020838101829052838501829052606084019190915261032060808401526103e860a0840152938401919091528454600181810187559582529083902084516003909202019081559183015193820193909355918101519091906200085f9060028301906006620008dc565b5050600354608052506200099b9050565b335b90565b6000826200088657506000620008d6565b828202828482816200089457fe5b0414620008d35760405162461bcd60e51b81526004018080602001828103825260218152602001806200182c6021913960400191505060405180910390fd5b90505b92915050565b600183019183908215620009675791602002820160005b838211156200093557835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620008f3565b8015620009655782816101000a81549061ffff021916905560020160208160010104928301926001030262000935565b505b506200097592915062000979565b5090565b6200087291905b808211156200097557805461ffff1916815560010162000980565b60805160a05160601c610e6a620009c26000398061046a5250806102f15250610e6a6000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063a20baee611610066578063a20baee6146101da578063affed0e0146101e2578063c8a415c2146101ea578063f2fde38b14610219576100cf565b80638da5cb5b1461017657806396e4ee3d1461019a5780639afadf8d146101bd576100cf565b80630bbfb1cc146100d45780630d4e57a41461013a57806358f2c74f146101545780636e4952ff1461015c578063715018a614610164578063874a5e261461016e575b600080fd5b6100f1600480360360208110156100ea57600080fd5b503561023f565b6040518084815260200183815260200182600660200280838360005b8381101561012557818101518382015260200161010d565b50505050905001935050505060405180910390f35b6101426102ef565b60408051918252519081900360200190f35b610142610313565b61014261031b565b61016c61032d565b005b6101426103eb565b61017e6103f0565b604080516001600160a01b039092168252519081900360200190f35b61016c600480360360408110156101b057600080fd5b5080359060200135610400565b610142600480360360208110156101d357600080fd5b5035610578565b6101426105ca565b6101426105d0565b61016c600480360361012081101561020157600080fd5b508035906020810135906040810135906060016105d6565b61016c6004803603602081101561022f57600080fd5b50356001600160a01b0316610724565b60008061024a610cca565b60035460009061025e906000190186610839565b905060006003828154811061026f57fe5b600091825260208220600390910201805460018201546040805160c08101918290529299509097509193509160028401916006918390855b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116102a75790505050505050925050509193909250565b7f000000000000000000000000000000000000000000000000000000000000000081565b63608c9a0081565b6d04ee2d6d415b85acef810000000081565b610335610853565b6001600160a01b03166103466103f0565b6001600160a01b0316146103a1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b600681565b6001546001600160a01b03165b90565b60026000541415610458576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000556104986001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633308463ffffffff61085716565b60006104a342610578565b905060006104c36104b483866108b7565b6127109063ffffffff61090916565b905060006127106104da858463ffffffff61096316565b816104e157fe5b04905060006d04ee2d6d415b85acef810000000061050e610501866109bc565b849063ffffffff61096316565b8161051557fe5b60028054600101908190556040805193909204808452426020850152838301919091529051909250879133917f2720efa4b2dd4f3f8a347da3cbd290a522e9432da9072c5b8e6300496fdde2829181900360600190a35050600160005550505050565b6000805b6003548110156105bb576003818154811061059357fe5b9060005260206000209060030201600001548310156105b35790506105c5565b60010161057c565b5050600354600019015b919050565b61271081565b60025481565b6105de610853565b6001600160a01b03166105ef6103f0565b6001600160a01b03161461064a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b63608c9a00421015610697576040805162461bcd60e51b81526020600482015260116024820152704272696467653a20544f4f5f4541524c5960781b604482015290519081900360640190fd5b60405180606001604052808481526020018381526020018260068060200260405190810160405280929190826006602002808284376000920191909152505050905260038054869081106106e757fe5b60009182526020918290208351600390920201908155908201516001820155604082015161071b9060028301906006610ce8565b50505050505050565b61072c610853565b6001600160a01b031661073d6103f0565b6001600160a01b031614610798576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166107dd5760405162461bcd60e51b8152600401808060200182810382526026815260200180610d9e6026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000818310610848578161084a565b825b90505b92915050565b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108b19085906109f5565b50505050565b600080600384815481106108c757fe5b906000526020600020906003020190508060020183600681106108e657fe5b601081049190910154600f9091166002026101000a900461ffff16949350505050565b60008282018381101561084a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826109725750600061084d565b8282028284828161097f57fe5b041461084a5760405162461bcd60e51b8152600401808060200182810382526021815260200180610dea6021913960400191505060405180910390fd5b600060036109d260016003805490500384610839565b815481106109dc57fe5b9060005260206000209060030201600101549050919050565b6060610a4a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610aab9092919063ffffffff16565b805190915015610aa657808060200190516020811015610a6957600080fd5b5051610aa65760405162461bcd60e51b815260040180806020018281038252602a815260200180610e0b602a913960400191505060405180910390fd5b505050565b6060610aba8484600085610ac4565b90505b9392505050565b606082471015610b055760405162461bcd60e51b8152600401808060200182810382526026815260200180610dc46026913960400191505060405180910390fd5b610b0e85610c20565b610b5f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610b9e5780518252601f199092019160209182019101610b7f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610c00576040519150601f19603f3d011682016040523d82523d6000602084013e610c05565b606091505b5091509150610c15828286610c26565b979650505050505050565b3b151590565b60608315610c35575081610abd565b825115610c455782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c8f578181015183820152602001610c77565b50505050905090810190601f168015610cbc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040518060c001604052806006906020820280368337509192915050565b600183019183908215610d6e5791602002820160005b83821115610d3e57835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302610cfe565b8015610d6c5782816101000a81549061ffff0219169055600201602081600101049283019260010302610d3e565b505b50610d7a929150610d7e565b5090565b6103fd91905b80821115610d7a57805461ffff19168155600101610d8456fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212200dcf11fc422a9d2d32d5d2152c8df740e9c38a971930fa12ca45626d9266361d64736f6c63430006060033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f770000000000000000000000000481254a38531a3b74726e754a4916a7c925f1b3

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

0000000000000000000000000481254a38531a3b74726e754a4916a7c925f1b3

-----Decoded View---------------
Arg [0] : _token (address): 0x0481254a38531a3b74726e754a4916a7c925f1b3

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000481254a38531a3b74726e754a4916a7c925f1b3


Deployed ByteCode Sourcemap

29203:4585:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;29203:4585:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;31814:407:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;31814:407:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;31814:407:0;;;;;;;;;;;;;;;;;;29633:32;;;:::i;:::-;;;;;;;;;;;;;;;;29404:55;;;:::i;29466:58::-;;;:::i;25964:148::-;;;:::i;:::-;;29584:42;;;:::i;25313:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;25313:87:0;;;;;;;;;;;;;;32810:554;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;32810:554:0;;;;;;;:::i;32229:278::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;32229:278:0;;:::i;29531:46::-;;;:::i;29672:17::-;;;:::i;32515:287::-;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;32515:287:0;;;;;;;;;;;;;;;;:::i;26267:244::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;26267:244:0;-1:-1:-1;;;;;26267:244:0;;:::i;31814:407::-;31881:12;31895:15;31912:24;;:::i;:::-;31977:15;:22;31949:16;;31968:44;;-1:-1:-1;;31977:26:0;32005:6;31968:8;:44::i;:::-;31949:63;;32023:33;32059:15;32075:11;32059:28;;;;;;;;;;;;;;;;;;;;32108:18;;32150:15;;;;32176:37;;;;;;;;;;32108:18;;-1:-1:-1;32150:15:0;;-1:-1:-1;32059:28:0;;-1:-1:-1;32176:37:0;32186:27;;;;32176:37;;32186:27;;32176:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31814:407;;;;;;;:::o;29633:32::-;;;:::o;29404:55::-;29449:10;29404:55;:::o;29466:58::-;29518:6;29466:58;:::o;25964:148::-;25544:12;:10;:12::i;:::-;-1:-1:-1;;;;;25533:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25533:23:0;;25525:68;;;;;-1:-1:-1;;;25525:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26055:6:::1;::::0;26034:40:::1;::::0;26071:1:::1;::::0;-1:-1:-1;;;;;26055:6:0::1;::::0;26034:40:::1;::::0;26071:1;;26034:40:::1;26085:6;:19:::0;;-1:-1:-1;;;;;;26085:19:0::1;::::0;;25964:148::o;29584:42::-;29625:1;29584:42;:::o;25313:87::-;25386:6;;-1:-1:-1;;;;;25386:6:0;25313:87;;:::o;32810:554::-;28206:1;28812:7;;:19;;28804:63;;;;;-1:-1:-1;;;28804:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28206:1;28945:7;:18;32897:66:::1;-1:-1:-1::0;;;;;32904:5:0::1;32897:30;32928:10;32948:4;32955:7:::0;32897:66:::1;:30;:66;:::i;:::-;32974:10;32987:19;33002:3;32987:14;:19::i;:::-;32974:32;;33017:12;33032:72;33054:49;33079:5;33086:16;33054:24;:49::i;:::-;29572:5;::::0;33032:72:::1;:21;:72;:::i;:::-;33017:87:::0;-1:-1:-1;33115:15:0::1;29572:5;33133:20;:7:::0;33017:87;33133:20:::1;:11;:20;:::i;:::-;:40;;;;;;33115:58;;33184:16;29518:6;33203:28;33218:12;33224:5;33218;:12::i;:::-;33203:10:::0;;:28:::1;:14;:28;:::i;:::-;:59;;;;;33273:5;:7:::0;;::::1;;::::0;;;;33296:60:::1;::::0;;33203:59;;;::::1;33296:60:::0;;;33345:3:::1;33296:60;::::0;::::1;::::0;;;;;;;;;;33203:59;;-1:-1:-1;33327:16:0;;33302:10:::1;::::0;33296:60:::1;::::0;;;;;;;::::1;-1:-1:-1::0;;28162:1:0;29124:7;:22;-1:-1:-1;;;;32810:554:0:o;32229:278::-;32285:4;32307:6;32302:154;32319:15;:22;32315:26;;32302:154;;;32374:15;32390:1;32374:18;;;;;;;;;;;;;;;;;;:26;;;32367:4;:33;32363:82;;;32428:1;-1:-1:-1;32421:8:0;;32363:82;32343:3;;32302:154;;;-1:-1:-1;;32473:15:0;:22;-1:-1:-1;;32473:26:0;32229:278;;;;:::o;29531:46::-;29572:5;29531:46;:::o;29672:17::-;;;;:::o;32515:287::-;25544:12;:10;:12::i;:::-;-1:-1:-1;;;;;25533:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25533:23:0;;25525:68;;;;;-1:-1:-1;;;25525:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29449:10:::1;32658:3;:28;;32650:58;;;::::0;;-1:-1:-1;;;32650:58:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32650:58:0;;;;;;;;;;;;;::::1;;32745:49;;;;;;;;32760:8;32745:49;;;;32770:5;32745:49;;;;32777:16;32745:49;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16:::0;::::1;74:27:::0;;;;-1:-1;;;32745:49:0;;32719:15:::1;:23:::0;;32735:6;;32719:23;::::1;;;;;;::::0;;;::::1;::::0;;;;:75;;:23:::1;::::0;;::::1;;:75:::0;;;;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;;;32515:287:0:o;26267:244::-;25544:12;:10;:12::i;:::-;-1:-1:-1;;;;;25533:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25533:23:0;;25525:68;;;;;-1:-1:-1;;;25525:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26356:22:0;::::1;26348:73;;;;-1:-1:-1::0;;;26348:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26458:6;::::0;26437:38:::1;::::0;-1:-1:-1;;;;;26437:38:0;;::::1;::::0;26458:6:::1;::::0;26437:38:::1;::::0;26458:6:::1;::::0;26437:38:::1;26486:6;:17:::0;;-1:-1:-1;;;;;;26486:17:0::1;-1:-1:-1::0;;;;;26486:17:0;;;::::1;::::0;;;::::1;::::0;;26267:244::o;23834:106::-;23892:7;23923:1;23919;:5;:13;;23931:1;23919:13;;;23927:1;23919:13;23912:20;;23834:106;;;;;:::o;19427:::-;19515:10;19427:106;:::o;20562:205::-;20690:68;;;-1:-1:-1;;;;;20690:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;20690:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;20663:96:0;;20683:5;;20663:19;:96::i;:::-;20562:205;;;;:::o;33372:239::-;33464:4;33481:33;33517:15;33533:6;33517:23;;;;;;;;;;;;;;;;;;33481:59;;33558:10;:27;;33586:16;33558:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;33372:239:0:o;6203:179::-;6261:7;6293:5;;;6317:6;;;;6309:46;;;;;-1:-1:-1;;;6309:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;7082:220;7140:7;7164:6;7160:20;;-1:-1:-1;7179:1:0;7172:8;;7160:20;7203:5;;;7207:1;7203;:5;:1;7227:5;;;;;:10;7219:56;;;;-1:-1:-1;;;7219:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33619:166;33678:4;33702:15;33718:53;33752:1;33727:15;:22;;;;:26;33755:15;33718:8;:53::i;:::-;33702:70;;;;;;;;;;;;;;;;;;:75;;;33695:82;;33619:166;;;:::o;22682:761::-;23106:23;23132:69;23160:4;23132:69;;;;;;;;;;;;;;;;;23140:5;-1:-1:-1;;;;;23132:27:0;;;:69;;;;;:::i;:::-;23216:17;;23106:95;;-1:-1:-1;23216:21:0;23212:224;;23358:10;23347:30;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;23347:30:0;23339:85;;;;-1:-1:-1;;;23339:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22682:761;;;:::o;14506:195::-;14609:12;14641:52;14663:6;14671:4;14677:1;14680:12;14641:21;:52::i;:::-;14634:59;;14506:195;;;;;;:::o;15558:530::-;15685:12;15743:5;15718:21;:30;;15710:81;;;;-1:-1:-1;;;15710:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15810:18;15821:6;15810:10;:18::i;:::-;15802:60;;;;;-1:-1:-1;;;15802:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15936:12;15950:23;15977:6;-1:-1:-1;;;;;15977:11:0;15997:5;16005:4;15977:33;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;15977:33:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;15935:75:0;;;;16028:52;16046:7;16055:10;16067:12;16028:17;:52::i;:::-;16021:59;15558:530;-1:-1:-1;;;;;;;15558:530:0:o;11588:422::-;11955:20;11994:8;;;11588:422::o;18098:742::-;18213:12;18242:7;18238:595;;;-1:-1:-1;18273:10:0;18266:17;;18238:595;18387:17;;:21;18383:439;;18650:10;18644:17;18711:15;18698:10;18694:2;18690:19;18683:44;18598:148;18793:12;18786:20;;-1:-1:-1;;;18786:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;18786:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29203:4585;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;-1:-1;29203:4585:0;;;-1:-1:-1;;29203:4585:0:o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29203:4585:0;;;-1:-1:-1;29203:4585:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;-1:-1:-1;;29203:4585:0;;;;;;

Swarm Source

ipfs://0dcf11fc422a9d2d32d5d2152c8df740e9c38a971930fa12ca45626d9266361d
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

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.