ETH Price: $2,611.04 (-2.09%)

Contract

0xCE40e56a4D67C41184Aeb93Dc2089B2224e0fE0F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw ERC20114955202020-12-21 8:05:451379 days ago1608537945IN
0xCE40e56a...224e0fE0F
0 ETH0.0016533438
Swap114954862020-12-21 7:55:231379 days ago1608537323IN
0xCE40e56a...224e0fE0F
0 ETH0.0030382733
Swap114954802020-12-21 7:53:541379 days ago1608537234IN
0xCE40e56a...224e0fE0F
0 ETH0.0008117430
Swap114954652020-12-21 7:50:471379 days ago1608537047IN
0xCE40e56a...224e0fE0F
0 ETH0.0011093741
Swap114954612020-12-21 7:49:261379 days ago1608536966IN
0xCE40e56a...224e0fE0F
0 ETH0.0006764525
Swap114954502020-12-21 7:47:131379 days ago1608536833IN
0xCE40e56a...224e0fE0F
0 ETH0.0010011437
Swap114954462020-12-21 7:46:181379 days ago1608536778IN
0xCE40e56a...224e0fE0F
0 ETH0.0019228271
Swap114954422020-12-21 7:45:301379 days ago1608536730IN
0xCE40e56a...224e0fE0F
0 ETH0.0014070152
Swap114954362020-12-21 7:44:421379 days ago1608536682IN
0xCE40e56a...224e0fE0F
0 ETH0.0006770525
Swap114954322020-12-21 7:44:141379 days ago1608536654IN
0xCE40e56a...224e0fE0F
0 ETH0.0014070152
Swap114954212020-12-21 7:41:141379 days ago1608536474IN
0xCE40e56a...224e0fE0F
0 ETH0.0007302427
Swap114954122020-12-21 7:39:311379 days ago1608536371IN
0xCE40e56a...224e0fE0F
0 ETH0.0007305627.00000145
Swap114953882020-12-21 7:34:581379 days ago1608536098IN
0xCE40e56a...224e0fE0F
0 ETH0.0011364342
Swap114953752020-12-21 7:31:511379 days ago1608535911IN
0xCE40e56a...224e0fE0F
0 ETH0.0007305627
Swap114953532020-12-21 7:27:261379 days ago1608535646IN
0xCE40e56a...224e0fE0F
0 ETH0.0006283723.2027
Swap114953442020-12-21 7:25:291379 days ago1608535529IN
0xCE40e56a...224e0fE0F
0 ETH0.0006283723.2027
Swap114953332020-12-21 7:23:031379 days ago1608535383IN
0xCE40e56a...224e0fE0F
0 ETH0.0006283723.2027
Swap114953092020-12-21 7:19:101379 days ago1608535150IN
0xCE40e56a...224e0fE0F
0 ETH0.0014709823.69
Swap114952952020-12-21 7:15:491379 days ago1608534949IN
0xCE40e56a...224e0fE0F
0 ETH0.0008647231.93
Swap114952872020-12-21 7:14:381379 days ago1608534878IN
0xCE40e56a...224e0fE0F
0 ETH0.0005939522
Swap114952872020-12-21 7:14:381379 days ago1608534878IN
0xCE40e56a...224e0fE0F
0 ETH0.000569421.1
Swap114952872020-12-21 7:14:381379 days ago1608534878IN
0xCE40e56a...224e0fE0F
0 ETH0.000569421.1
Swap114952872020-12-21 7:14:381379 days ago1608534878IN
0xCE40e56a...224e0fE0F
0 ETH0.000569421.1
Swap114952872020-12-21 7:14:381379 days ago1608534878IN
0xCE40e56a...224e0fE0F
0 ETH0.000569421.1
Swap114952872020-12-21 7:14:381379 days ago1608534878IN
0xCE40e56a...224e0fE0F
0 ETH0.000569421.1
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:
rSwap

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-20
*/

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



pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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 <0.8.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 <0.8.0;

/**
 * @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);
    }

    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);
            }
        }
    }
}

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



pragma solidity >=0.6.0 <0.8.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: @openzeppelin/contracts/GSN/Context.sol



pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: contracts/rSwap.sol

pragma solidity 0.7.6;
// SPDX-License-Identifier: GPL-3.0-or-later
// Forked from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/drafts/rSwap.sol




/**
 * @title rSwap
 * @dev A token swap contract that gradually releases tokens on its balance
 */
contract rSwap is Ownable {
    // solhint-disable not-rely-on-time

    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    event TokensSwapped(address account, uint256 amount);

    // Durations and timestamps in UNIX time, also in block.timestamp.
    uint256 public immutable start;
    uint256 public immutable duration;
    IERC20 public immutable rHEGIC;
    IERC20 public immutable HEGIC;

    uint public released;

    /**
     * @dev Creates a contract that can be used for swapping rHEGIC into HEGIC
     * @param _start UNIX time at which the unlock period starts
     * @param _duration Duration in seconds for unlocking tokens
     */
    constructor (uint256 _start, uint256 _duration, IERC20 _rHEGIC, IERC20 _HEGIC) {
        // solhint-disable-next-line max-line-length
        require(_duration > 0, "TokenSwap: duration is 0");
        // solhint-disable-next-line max-line-length
        require(_start.add(_duration) > block.timestamp, "rSwap: The final unlock time point is before the current time point");

        duration = _duration;
        start = _start;
        rHEGIC =_rHEGIC;
        HEGIC = _HEGIC;
    }

    function swap(uint amount) external {
        require(availableAmount() > amount, "rSwap: This amount has not been unlocked yet");

        rHEGIC.safeTransferFrom(msg.sender, address(this), amount);
        released = released.add(amount);
        HEGIC.safeTransfer(msg.sender, amount);

        emit TokensSwapped(msg.sender, amount);
    }

    function withdrawERC20(IERC20 token) external onlyOwner {
        token.safeTransfer(owner(), token.balanceOf(address(this)));
    }

    /**
     * @dev Calculates the amount of tokens that has already been unlocked but hasn't been swapped yet
     */
    function availableAmount() public view returns (uint256) {
        return totalUnlockedAmount().sub(released);
    }

    /**
     * @dev Calculates the total amount of tokens that has already been unlocked
     */
    function totalUnlockedAmount() public view returns (uint256) {
        uint256 currentBalance = HEGIC.balanceOf(address(this));
        uint256 totalBalance = currentBalance.add(released);
        if(block.timestamp < start)
            return 0;
        if (block.timestamp >= start.add(duration)) {
            return totalBalance;
        } else {
            return totalBalance.mul(block.timestamp.sub(start)).div(duration);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"contract IERC20","name":"_rHEGIC","type":"address"},{"internalType":"contract IERC20","name":"_HEGIC","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensSwapped","type":"event"},{"inputs":[],"name":"HEGIC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","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":"rHEGIC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalUnlockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61010060405234801561001157600080fd5b506040516110b43803806110b48339818101604052608081101561003457600080fd5b50805160208201516040830151606090930151919290916000610055610172565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600083116100f4576040805162461bcd60e51b815260206004820152601860248201527f546f6b656e537761703a206475726174696f6e20697320300000000000000000604482015290519081900360640190fd5b4261010c848661017660201b6107b31790919060201c565b116101485760405162461bcd60e51b81526004018080602001828103825260438152602001806110716043913960600191505060405180910390fd5b60a0929092526080929092526001600160601b0319606092831b811660c052911b1660e0526101d7565b3390565b6000828201838110156101d0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60805160a05160c05160601c60e05160601c610e3761023a600039806101c35280610418528061051f52508061043c52806104da52508061019c52806102c9528061030152508061027252806102a85280610329528061058c5250610e376000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806391f7cfb91161007157806391f7cfb91461011957806394b918de14610121578063961325211461013e578063be9a655514610146578063f2fde38b1461014e578063f4f3b20014610174576100b4565b80630fb5a6b4146100b95780634924a322146100d3578063715018a6146100db57806371e395a8146100e55780637bf91af7146101095780638da5cb5b14610111575b600080fd5b6100c161019a565b60408051918252519081900360200190f35b6100c16101be565b6100e3610362565b005b6100ed610416565b604080516001600160a01b039092168252519081900360200190f35b6100ed61043a565b6100ed61045e565b6100c161046d565b6100e36004803603602081101561013757600080fd5b5035610488565b6100c1610584565b6100c161058a565b6100e36004803603602081101561016457600080fd5b50356001600160a01b03166105ae565b6100e36004803603602081101561018a57600080fd5b50356001600160a01b03166106b8565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561022e57600080fd5b505afa158015610242573d6000803e3d6000fd5b505050506040513d602081101561025857600080fd5b505160015490915060009061026e9083906107b3565b90507f00000000000000000000000000000000000000000000000000000000000000004210156102a35760009250505061035f565b6102ed7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006107b3565b42106102fc57915061035f9050565b61035a7f000000000000000000000000000000000000000000000000000000000000000061035461034d427f0000000000000000000000000000000000000000000000000000000000000000610816565b8490610858565b906108b1565b925050505b90565b61036a6108f3565b6000546001600160a01b039081169116146103cc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031690565b600061048360015461047d6101be565b90610816565b905090565b8061049161046d565b116104cd5760405162461bcd60e51b815260040180806020018281038252602c815260200180610d3f602c913960400191505060405180910390fd5b6105026001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846108f7565b60015461050f90826107b3565b6001556105466001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610957565b604080513381526020810183905281517f560c2d01b390b6779e2d10c443fb354f5ce2ec169ef6617c3bb2208938f82dc9929181900390910190a150565b60015481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6105b66108f3565b6000546001600160a01b03908116911614610618576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661065d5760405162461bcd60e51b8152600401808060200182810382526026815260200180610d6b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6106c06108f3565b6000546001600160a01b03908116911614610722576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107b061072d61045e565b604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b15801561077357600080fd5b505afa158015610787573d6000803e3d6000fd5b505050506040513d602081101561079d57600080fd5b50516001600160a01b0384169190610957565b50565b60008282018381101561080d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061080d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109ae565b60008261086757506000610810565b8282028284828161087457fe5b041461080d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610db76021913960400191505060405180910390fd5b600061080d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610a4a565b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610951908590610aaf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526109a9908490610aaf565b505050565b60008184841115610a3d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610a025781810151838201526020016109ea565b50505050905090810190601f168015610a2f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50508183035b9392505050565b60008183610a995760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610a025781810151838201526020016109ea565b506000838581610aa557fe5b0495945050505050565b6000610b04826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b609092919063ffffffff16565b8051909150156109a957808060200190516020811015610b2357600080fd5b50516109a95760405162461bcd60e51b815260040180806020018281038252602a815260200180610dd8602a913960400191505060405180910390fd5b6060610b6f8484600085610b77565b949350505050565b606082471015610bb85760405162461bcd60e51b8152600401808060200182810382526026815260200180610d916026913960400191505060405180910390fd5b610bc185610cd2565b610c12576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310610c505780518252601f199092019160209182019101610c31565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cb2576040519150601f19603f3d011682016040523d82523d6000602084013e610cb7565b606091505b5091509150610cc7828286610cd8565b979650505050505050565b3b151590565b60608315610ce7575081610a43565b825115610cf75782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610a025781810151838201526020016109ea56fe72537761703a205468697320616d6f756e7420686173206e6f74206265656e20756e6c6f636b6564207965744f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212202bc3a3193a735ae0f5f78c8087e993f1df3812c8f127211fe4b0167c82f656c164736f6c6343000706003372537761703a205468652066696e616c20756e6c6f636b2074696d6520706f696e74206973206265666f7265207468652063757272656e742074696d6520706f696e74000000000000000000000000000000000000000000000000000000005fdf3cc00000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000047c0ad2ae6c0ed4bcf7bc5b380d7205e89436e84000000000000000000000000584bc13c7d411c00c01a62e8019472de68768430

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806391f7cfb91161007157806391f7cfb91461011957806394b918de14610121578063961325211461013e578063be9a655514610146578063f2fde38b1461014e578063f4f3b20014610174576100b4565b80630fb5a6b4146100b95780634924a322146100d3578063715018a6146100db57806371e395a8146100e55780637bf91af7146101095780638da5cb5b14610111575b600080fd5b6100c161019a565b60408051918252519081900360200190f35b6100c16101be565b6100e3610362565b005b6100ed610416565b604080516001600160a01b039092168252519081900360200190f35b6100ed61043a565b6100ed61045e565b6100c161046d565b6100e36004803603602081101561013757600080fd5b5035610488565b6100c1610584565b6100c161058a565b6100e36004803603602081101561016457600080fd5b50356001600160a01b03166105ae565b6100e36004803603602081101561018a57600080fd5b50356001600160a01b03166106b8565b7f0000000000000000000000000000000000000000000000000000000000093a8081565b6000807f000000000000000000000000584bc13c7d411c00c01a62e8019472de687684306001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561022e57600080fd5b505afa158015610242573d6000803e3d6000fd5b505050506040513d602081101561025857600080fd5b505160015490915060009061026e9083906107b3565b90507f000000000000000000000000000000000000000000000000000000005fdf3cc04210156102a35760009250505061035f565b6102ed7f000000000000000000000000000000000000000000000000000000005fdf3cc07f0000000000000000000000000000000000000000000000000000000000093a806107b3565b42106102fc57915061035f9050565b61035a7f0000000000000000000000000000000000000000000000000000000000093a8061035461034d427f000000000000000000000000000000000000000000000000000000005fdf3cc0610816565b8490610858565b906108b1565b925050505b90565b61036a6108f3565b6000546001600160a01b039081169116146103cc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f000000000000000000000000584bc13c7d411c00c01a62e8019472de6876843081565b7f00000000000000000000000047c0ad2ae6c0ed4bcf7bc5b380d7205e89436e8481565b6000546001600160a01b031690565b600061048360015461047d6101be565b90610816565b905090565b8061049161046d565b116104cd5760405162461bcd60e51b815260040180806020018281038252602c815260200180610d3f602c913960400191505060405180910390fd5b6105026001600160a01b037f00000000000000000000000047c0ad2ae6c0ed4bcf7bc5b380d7205e89436e84163330846108f7565b60015461050f90826107b3565b6001556105466001600160a01b037f000000000000000000000000584bc13c7d411c00c01a62e8019472de68768430163383610957565b604080513381526020810183905281517f560c2d01b390b6779e2d10c443fb354f5ce2ec169ef6617c3bb2208938f82dc9929181900390910190a150565b60015481565b7f000000000000000000000000000000000000000000000000000000005fdf3cc081565b6105b66108f3565b6000546001600160a01b03908116911614610618576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661065d5760405162461bcd60e51b8152600401808060200182810382526026815260200180610d6b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6106c06108f3565b6000546001600160a01b03908116911614610722576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107b061072d61045e565b604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b15801561077357600080fd5b505afa158015610787573d6000803e3d6000fd5b505050506040513d602081101561079d57600080fd5b50516001600160a01b0384169190610957565b50565b60008282018381101561080d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061080d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109ae565b60008261086757506000610810565b8282028284828161087457fe5b041461080d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610db76021913960400191505060405180910390fd5b600061080d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610a4a565b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610951908590610aaf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526109a9908490610aaf565b505050565b60008184841115610a3d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610a025781810151838201526020016109ea565b50505050905090810190601f168015610a2f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50508183035b9392505050565b60008183610a995760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610a025781810151838201526020016109ea565b506000838581610aa557fe5b0495945050505050565b6000610b04826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b609092919063ffffffff16565b8051909150156109a957808060200190516020811015610b2357600080fd5b50516109a95760405162461bcd60e51b815260040180806020018281038252602a815260200180610dd8602a913960400191505060405180910390fd5b6060610b6f8484600085610b77565b949350505050565b606082471015610bb85760405162461bcd60e51b8152600401808060200182810382526026815260200180610d916026913960400191505060405180910390fd5b610bc185610cd2565b610c12576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310610c505780518252601f199092019160209182019101610c31565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cb2576040519150601f19603f3d011682016040523d82523d6000602084013e610cb7565b606091505b5091509150610cc7828286610cd8565b979650505050505050565b3b151590565b60608315610ce7575081610a43565b825115610cf75782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610a025781810151838201526020016109ea56fe72537761703a205468697320616d6f756e7420686173206e6f74206265656e20756e6c6f636b6564207965744f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212202bc3a3193a735ae0f5f78c8087e993f1df3812c8f127211fe4b0167c82f656c164736f6c63430007060033

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

000000000000000000000000000000000000000000000000000000005fdf3cc00000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000047c0ad2ae6c0ed4bcf7bc5b380d7205e89436e84000000000000000000000000584bc13c7d411c00c01a62e8019472de68768430

-----Decoded View---------------
Arg [0] : _start (uint256): 1608465600
Arg [1] : _duration (uint256): 604800
Arg [2] : _rHEGIC (address): 0x47C0aD2aE6c0Ed4bcf7bc5b380D7205E89436e84
Arg [3] : _HEGIC (address): 0x584bC13c7D411c00c01A62e8019472dE68768430

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000005fdf3cc0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [2] : 00000000000000000000000047c0ad2ae6c0ed4bcf7bc5b380d7205e89436e84
Arg [3] : 000000000000000000000000584bc13c7d411c00c01a62e8019472de68768430


Deployed Bytecode Sourcemap

22582:2498:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22896:33;;;:::i;:::-;;;;;;;;;;;;;;;;24622:455;;;:::i;21704:148::-;;;:::i;:::-;;22973:29;;;:::i;:::-;;;;-1:-1:-1;;;;;22973:29:0;;;;;;;;;;;;;;22936:30;;;:::i;21062:79::-;;;:::i;24396:118::-;;;:::i;23773:351::-;;;;;;;;;;;;;;;;-1:-1:-1;23773:351:0;;:::i;23011:20::-;;;:::i;22859:30::-;;;:::i;22007:244::-;;;;;;;;;;;;;;;;-1:-1:-1;22007:244:0;-1:-1:-1;;;;;22007:244:0;;:::i;24132:134::-;;;;;;;;;;;;;;;;-1:-1:-1;24132:134:0;-1:-1:-1;;;;;24132:134:0;;:::i;22896:33::-;;;:::o;24622:455::-;24674:7;24694:22;24719:5;-1:-1:-1;;;;;24719:15:0;;24743:4;24719:30;;;;;;;;;;;;;-1:-1:-1;;;;;24719:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24719:30:0;24802:8;;24719:30;;-1:-1:-1;24760:20:0;;24783:28;;24719:30;;24783:18;:28::i;:::-;24760:51;;24843:5;24825:15;:23;24822:49;;;24870:1;24863:8;;;;;;24822:49;24905:19;:5;24915:8;24905:9;:19::i;:::-;24886:15;:38;24882:188;;24948:12;-1:-1:-1;24941:19:0;;-1:-1:-1;24941:19:0;24882:188;25000:58;25049:8;25000:44;25017:26;:15;25037:5;25017:19;:26::i;:::-;25000:12;;:16;:44::i;:::-;:48;;:58::i;:::-;24993:65;;;;24622:455;;:::o;21704:148::-;21284:12;:10;:12::i;:::-;21274:6;;-1:-1:-1;;;;;21274:6:0;;;:22;;;21266:67;;;;;-1:-1:-1;;;21266:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21811:1:::1;21795:6:::0;;21774:40:::1;::::0;-1:-1:-1;;;;;21795:6:0;;::::1;::::0;21774:40:::1;::::0;21811:1;;21774:40:::1;21842:1;21825:19:::0;;-1:-1:-1;;;;;;21825:19:0::1;::::0;;21704:148::o;22973:29::-;;;:::o;22936:30::-;;;:::o;21062:79::-;21100:7;21127:6;-1:-1:-1;;;;;21127:6:0;21062:79;:::o;24396:118::-;24444:7;24471:35;24497:8;;24471:21;:19;:21::i;:::-;:25;;:35::i;:::-;24464:42;;24396:118;:::o;23773:351::-;23848:6;23828:17;:15;:17::i;:::-;:26;23820:83;;;;-1:-1:-1;;;23820:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23916:58;-1:-1:-1;;;;;23916:6:0;:23;23940:10;23960:4;23967:6;23916:23;:58::i;:::-;23996:8;;:20;;24009:6;23996:12;:20::i;:::-;23985:8;:31;24027:38;-1:-1:-1;;;;;24027:5:0;:18;24046:10;24058:6;24027:18;:38::i;:::-;24083:33;;;24097:10;24083:33;;;;;;;;;;;;;;;;;;;;;23773:351;:::o;23011:20::-;;;;:::o;22859:30::-;;;:::o;22007:244::-;21284:12;:10;:12::i;:::-;21274:6;;-1:-1:-1;;;;;21274:6:0;;;:22;;;21266:67;;;;;-1:-1:-1;;;21266:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22096:22:0;::::1;22088:73;;;;-1:-1:-1::0;;;22088:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22198:6;::::0;;22177:38:::1;::::0;-1:-1:-1;;;;;22177:38:0;;::::1;::::0;22198:6;::::1;::::0;22177:38:::1;::::0;::::1;22226:6;:17:::0;;-1:-1:-1;;;;;;22226:17:0::1;-1:-1:-1::0;;;;;22226:17:0;;;::::1;::::0;;;::::1;::::0;;22007:244::o;24132:134::-;21284:12;:10;:12::i;:::-;21274:6;;-1:-1:-1;;;;;21274:6:0;;;:22;;;21266:67;;;;;-1:-1:-1;;;21266:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24199:59:::1;24218:7;:5;:7::i;:::-;24227:30;::::0;;-1:-1:-1;;;24227:30:0;;24251:4:::1;24227:30;::::0;::::1;::::0;;;-1:-1:-1;;;;;24227:15:0;::::1;::::0;::::1;::::0;:30;;;;;::::1;::::0;;;;;;;;:15;:30;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;24227:30:0;-1:-1:-1;;;;;24199:18:0;::::1;::::0;:59;:18:::1;:59::i;:::-;24132:134:::0;:::o;3744:181::-;3802:7;3834:5;;;3858:6;;;;3850:46;;;;;-1:-1:-1;;;3850:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3916:1;-1:-1:-1;3744:181:0;;;;;:::o;4208:136::-;4266:7;4293:43;4297:1;4300;4293:43;;;;;;;;;;;;;;;;;:3;:43::i;5098:471::-;5156:7;5401:6;5397:47;;-1:-1:-1;5431:1:0;5424:8;;5397:47;5468:5;;;5472:1;5468;:5;:1;5492:5;;;;;:10;5484:56;;;;-1:-1:-1;;;5484:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6045:132;6103:7;6130:39;6134:1;6137;6130:39;;;;;;;;;;;;;;;;;:3;:39::i;19606:106::-;19694:10;19606:106;:::o;16084:205::-;16212:68;;;-1:-1:-1;;;;;16212:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16212:68:0;-1:-1:-1;;;16212:68:0;;;16185:96;;16205:5;;16185:19;:96::i;:::-;16084:205;;;;:::o;15899:177::-;16009:58;;;-1:-1:-1;;;;;16009:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16009:58:0;-1:-1:-1;;;16009:58:0;;;15982:86;;16002:5;;15982:19;:86::i;:::-;15899:177;;;:::o;4647:192::-;4733:7;4769:12;4761:6;;;;4753:29;;;;-1:-1:-1;;;4753:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4805:5:0;;;4647:192;;;;;;:::o;6673:278::-;6759:7;6794:12;6787:5;6779:28;;;;-1:-1:-1;;;6779:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6818:9;6834:1;6830;:5;;;;;;;6673:278;-1:-1:-1;;;;;6673:278:0:o;18204:761::-;18628:23;18654:69;18682:4;18654:69;;;;;;;;;;;;;;;;;18662:5;-1:-1:-1;;;;;18654:27:0;;;:69;;;;;:::i;:::-;18738:17;;18628:95;;-1:-1:-1;18738:21:0;18734:224;;18880:10;18869:30;;;;;;;;;;;;;;;-1:-1:-1;18869:30:0;18861:85;;;;-1:-1:-1;;;18861:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11896:195;11999:12;12031:52;12053:6;12061:4;12067:1;12070:12;12031:21;:52::i;:::-;12024:59;11896:195;-1:-1:-1;;;;11896:195:0:o;12948:530::-;13075:12;13133:5;13108:21;:30;;13100:81;;;;-1:-1:-1;;;13100:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13200:18;13211:6;13200:10;:18::i;:::-;13192:60;;;;;-1:-1:-1;;;13192:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13326:12;13340:23;13367:6;-1:-1:-1;;;;;13367:11:0;13387:5;13395:4;13367:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13367:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13325:75;;;;13418:52;13436:7;13445:10;13457:12;13418:17;:52::i;:::-;13411:59;12948:530;-1:-1:-1;;;;;;;12948:530:0:o;8978:422::-;9345:20;9384:8;;;8978:422::o;14484:742::-;14599:12;14628:7;14624:595;;;-1:-1:-1;14659:10:0;14652:17;;14624:595;14773:17;;:21;14769:439;;15036:10;15030:17;15097:15;15084:10;15080:2;15076:19;15069:44;14984:148;15172:20;;-1:-1:-1;;;15172:20:0;;;;;;;;;;;;;;;;;15179:12;;15172:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://2bc3a3193a735ae0f5f78c8087e993f1df3812c8f127211fe4b0167c82f656c1

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.