Contract 0x3c37f97F7d8f705cc230f97a0668f77a0e05D0aA

 
Txn Hash Method
Block
From
To
Value
0x7ca57ece2bb3d4695787c555dabc5e10eeac952c7e197e969e6b0357f871ba50_liquidate Accou...117163742021-01-24 5:11:27243 days 6 hrs ago0x0efe54e77e5cc430342088da27ef73f42b482d33 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.0037122211575.65
0x3ccf5435be4c79b8ce9f9b35d294d8ec7315d828e5555018d3ec388e0f6da0d9_liquidate Accou...115705772021-01-01 20:19:44265 days 15 hrs ago0x0efe54e77e5cc430342088da27ef73f42b482d33 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00736065150
0x9af8618b1ff21a819f44442ede173f28e7807a2cd7b42ef2aa10c970e02cf433_liquidate Accou...115705622021-01-01 20:17:04265 days 15 hrs ago0x0efe54e77e5cc430342088da27ef73f42b482d33 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00735885150
0xd8ff81964e1f46af254f505062e73dce41991bd4e949af6f53822ae5b860b6a2_liquidate Accou...115371852020-12-27 17:30:22270 days 18 hrs ago0x0efe54e77e5cc430342088da27ef73f42b482d33 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00736065150
0x3309deb5f74a66f72c2aed6b985c513e7f2a6f22d520dde3c0a09c56f81cb98a_liquidate Accou...115371722020-12-27 17:26:23270 days 18 hrs ago0x0efe54e77e5cc430342088da27ef73f42b482d33 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00736065150
0xf1998c68905e632ee89afa4533c20856832b77066f51ffca170f64c9c9c17bd7_liquidate Accou...115371532020-12-27 17:22:29270 days 18 hrs ago0x0efe54e77e5cc430342088da27ef73f42b482d33 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00736065150
0x3b7196635136c67fe4d56ced1bbfc5c2e72b775d0323c1a18d2fd4d719597289Withdraw Collate...114857912020-12-19 20:11:01278 days 15 hrs ago0x70acb1bc926487350d434ce232d7a7417510d959 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.0181559240
0x286c99deaf81479162df56a224ca2ab0a34b06d11a5c8ccd8550834cfb544013Withdraw Collate...114857252020-12-19 19:55:53278 days 16 hrs ago0x70acb1bc926487350d434ce232d7a7417510d959 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.01540985434
0x4685b4a8622670acea1fce3f0e342215d0ce362c20ece1648db56e682dd4014fWithdraw Collate...114788412020-12-18 18:44:35279 days 17 hrs ago0x7f3a152f09324f2aee916ce069d3908603449173 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.02023640
0xf28d1538d9723bdef047cb5addf3a4cf6c7977c23e251f29984238d19d4824e6Withdraw Collate...114765402020-12-18 10:05:48280 days 1 hr ago0xb30f61798db19c404cf5723a24b92fa9c7c1e26d IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.0401695575
0xb81fee4c97589f749be8665ef4b67a8711880c409a1ba9cad639793bec274c2dWithdraw Collate...114759982020-12-18 8:04:53280 days 3 hrs ago0xc494a87a34f90c6cbf423776fda3c072edb42a65 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.02359416663754.000001459
0x4eca54cc267c579529daed61de5cfe3bc6e03d78602d40fde428dbde05c0da42Withdraw Collate...114747422020-12-18 3:33:29280 days 8 hrs ago0xa7d862394234c3480a1f3f278fa710e1a0d2d728 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.03606090573
0x39c3b16a7c8783e7c732946f5fa1b513c1df1c168f4ab57213e31eb3b11d3a04Withdraw Collate...114742022020-12-18 1:34:24280 days 10 hrs ago0x7f3a152f09324f2aee916ce069d3908603449173 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.0373407582
0xba28187cdabe0fd6a047133d5643f65222edb6dede886f158f520672a66cad80Withdraw Collate...114740912020-12-18 1:08:56280 days 10 hrs ago0x7f3a152f09324f2aee916ce069d3908603449173 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.0381507285
0x0da7280ac85c50f06fc7de0b818f5662e2ecc056bb3f6bf55c2d0d4ca9004f7dWithdraw Collate...114737382020-12-17 23:40:57280 days 12 hrs ago0x7f3a152f09324f2aee916ce069d3908603449173 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.03385973673
0x68f255f94f3a0cb420d038d1610bc8c4fc113b962b2920b2d7f2919f57d33cd3Withdraw Collate...114737282020-12-17 23:38:16280 days 12 hrs ago0x4d4937f2e4a79e2d09461f74fd62c05b630d7618 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.01485558634
0xa33be8dc5e109070c06ba9077dab7bed4ee1741b9974d02eb3237a548dea2375Withdraw Collate...114736982020-12-17 23:33:06280 days 12 hrs ago0x4d4937f2e4a79e2d09461f74fd62c05b630d7618 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.01746104844
0xcd96bfb40a7bf8bcf402b360472c025387a93745be7527e62d1b1857b2c94c88Provide Collater...114736242020-12-17 23:20:04280 days 12 hrs ago0x4d4937f2e4a79e2d09461f74fd62c05b630d7618 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.002841767652.6
0xc2881c7656a2baf49ecc97b58333a439b9a7e725dcc51e614e6099c2b065e08bWithdraw Collate...114735362020-12-17 23:01:41280 days 13 hrs ago0xf9107317b0ff77ed5b7adea15e50514a3564002b IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.0214683755
0x39563f7c3702f449f5af9731b957623bea944331e0ee48745e86f2b8e22a54e1Provide Collater...114727862020-12-17 20:20:50280 days 15 hrs ago0xb30f61798db19c404cf5723a24b92fa9c7c1e26d IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00429286110
0x5b0227dbe737232567d15d36c051c165a1fccc228f0bf7ac08ba2fe8628f9a77Provide Collater...114726402020-12-17 19:48:59280 days 16 hrs ago0xb30f61798db19c404cf5723a24b92fa9c7c1e26d IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00448799115
0x0ce4a221f9fbea54b555ab87d6924df281b1eebcbee57a658757920469628defProvide Collater...114707512020-12-17 12:52:48280 days 23 hrs ago0x83193738e5432ae814a1d551d2da623ce9b500c6 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00594286110
0x0014e8943bcad690af2939d2983fc2d82776bc0b3d0f8a45e7d6a3b7114d2935Provide Collater...114699012020-12-17 9:48:45281 days 2 hrs ago0x5876d971cbcd2e5c0c763bd23487b51dd09da2d3 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.007402366179
0x18acdc29b13783a0ce7e224f06d6e1959dbf2938f21ecea3a85cf51afd28fdacProvide Collater...114697852020-12-17 9:22:38281 days 2 hrs ago0xa905366592eb4b83aec2704ad6e5965ef3bf851f IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00945455175
0x2617f61df92f69b03d1731f5237715350f19dfe60b882940c5ce885e34b0b349Provide Collater...114687542020-12-17 5:26:32281 days 6 hrs ago0xa7d862394234c3480a1f3f278fa710e1a0d2d728 IN  0x3c37f97f7d8f705cc230f97a0668f77a0e05d0aa0 Ether0.00513252402695.001
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x36effd58d2cc1f4404a95d984c77ec8233d5feaf819962a0e4fc619b7f4d7dd6114622092020-12-16 5:24:12282 days 6 hrs ago 0x36c6bafb43718b776d32f2389cdf9c25823c1965  Contract Creation0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WarpVaultLP

Compiler Version
v0.6.6+commit.6c089d02

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-16
*/

// File: node_modules\@openzeppelin\contracts\GSN\Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
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

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

// File: @openzeppelin\contracts\math\SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        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\token\ERC20\IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

// File: node_modules\@openzeppelin\contracts\utils\Address.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;





/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

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

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

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

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

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

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

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

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

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

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

// File: contracts\WarpWrapperToken.sol

pragma solidity ^0.6.2;



////////////////////////////////////////////////////////////////////////////////////////////
/// @title WarpWrapperToken
/// @author Christopher Dixon
////////////////////////////////////////////////////////////////////////////////////////////
/**
@notice the WarpWrapperToken contract is designed  as a token Wrapper to represent ownership of stablecoins added to a specific
        WarpVault. This contract inherits Ownership and ERC20 functionality from the Open Zeppelin Library.
**/
contract WarpWrapperToken is Ownable, ERC20 {
    address public stablecoin;

    ///@notice constructor sets up token names and symbols for the WarpWrapperToken
    constructor(
        address _SC,
        string memory _tokenName,
        string memory _tokenSymbol
    ) public ERC20(_tokenSymbol, _tokenName) {
        stablecoin = _SC;
    }

    /**
    @notice mint is an only owner function that allows the owner to mint new tokens to an input account
    @param _to is the address that will receive the new tokens
    @param _amount is the amount of token they will receive
    **/
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }

    /**
    @notice burn is an only owner function that allows the owner to burn  tokens from an input account
    @param _from is the address where the tokens will be burnt
    @param _amount is the amount of token to be burnt
    **/
    function burn(address _from, uint256 _amount) public onlyOwner {
        _burn(_from, _amount);
    }
}

// File: contracts\interfaces\WarpControlI.sol

pragma solidity ^0.6.0;

////////////////////////////////////////////////////////////////////////////////////////////
/// @title WarpVaultI
/// @author Christopher Dixon
////////////////////////////////////////////////////////////////////////////////////////////
/**
The WarpControlI contract is an abstract contract used by individual WarpVault contracts to call the
  maxWithdrawAllowed function on the WarpControl contract
**/

abstract contract WarpControlI {
    function getMaxWithdrawAllowed(address account, address lpToken)
        public
        virtual
        returns (uint256);

    function viewMaxWithdrawAllowed(address account, address lpToken)
        public
        virtual
        view
        returns (uint256);

    function viewPriceOfCollateral(address lpToken)
        public
        virtual
        view
        returns (uint256);

    function addMemberToGroup(address _refferalCode, address _member)
        public
        virtual;

    function checkIfGroupMember(address _account)
        public
        virtual
        view
        returns (bool);

    function getTotalAvailableCollateralValue(address _account)
        public
        virtual
        returns (uint256);

    function viewTotalAvailableCollateralValue(address _account)
        public
        virtual
        view
        returns (uint256);

    function viewPriceOfToken(address token)
        public
        virtual
        view
        returns (uint256);

    function viewTotalBorrowedValue(address _account)
        public
        virtual
        view
        returns (uint256);

    function getTotalBorrowedValue(address _account)
        public
        virtual
        returns (uint256);

    function calcBorrowLimit(uint256 _collateralValue)
        public
        virtual
        pure
        returns (uint256);

    function calcCollateralRequired(uint256 _borrowAmount)
        public
        virtual
        view
        returns (uint256);

    function getBorrowLimit(address _account) public virtual returns (uint256);

    function viewBorrowLimit(address _account)
        public
        virtual
        view
        returns (uint256);

    function liquidateAccount(address _borrower) public virtual;
}

// File: contracts\WarpVaultLP.sol

pragma solidity ^0.6.2;






////////////////////////////////////////////////////////////////////////////////////////////
/// @title WarpVaultLP
/// @author Christopher Dixon
////////////////////////////////////////////////////////////////////////////////////////////
/**
@notice the WarpVaultLP contract is the main point of interface for a specific LP asset class and an end user in the
Warp lending platform. This contract is responsible for distributing WarpWrapper tokens in exchange for stablecoin assets,
holding and accounting of stablecoins and LP tokens and all associates lending/borrowing calculations for a specific Warp LP asset class.
This contract inherits Ownership and ERC20 functionality from the Open Zeppelin Library as well as Exponential and the InterestRateModel contracts
from the coumpound protocol.
**/

contract WarpVaultLP {
    using SafeMath for uint256;

    uint256 public timeWizard;
    string public lpName;

    IERC20 public LPtoken;
    WarpControlI public warpControl;

    mapping(address => uint256) public collateralizedLP;

    event CollateralProvided(address _account, uint256 _amount);
    event CollateralWithdraw(address _account, uint256 _amount);
    event WarpControlChanged(address _newControl, address _oldControl);
    event AccountLiquidated(
        address _account,
        address _liquidator,
        uint256 _amount
    );

    /**
     * @dev Throws if called by any account other than a warp control
     */
    modifier onlyWarpControl() {
        require(msg.sender == address(warpControl));
        _;
    }

    /**
@dev Throws if a function is called before the time wizard allows it
**/
    modifier angryWizard() {
        require(now > timeWizard);
        _;
    }

    /**
    @notice constructor sets up token names and symbols for the WarpWrapperToken
    @param _lp is the address of the lp token a specific Warp vault will represent
    @param _lpName is the name of the lp token
    @param _timelock is a variable representing the number of seconds the timeWizard will prevent withdraws and borrows from a contracts(one week is 605800 seconds)
    @dev this function instantiates the lp token as a useable object and generates three WarpWrapperToken contracts to represent
        each type of stable coin this vault can hold. this also instantiates each of these contracts as a usable object in this contract giving
        this contract the ability to call their mint and burn functions.
    **/
    constructor(
        uint256 _timelock,
        address _lp,
        address _WarpControl,
        string memory _lpName
    ) public {
        lpName = _lpName;
        LPtoken = IERC20(_lp);
        warpControl = WarpControlI(_WarpControl);
        timeWizard = now.add(_timelock);
    }

    function updateWarpControl(address _warpControl) public onlyWarpControl {
        emit WarpControlChanged(_warpControl, address(warpControl));
        warpControl = WarpControlI(_warpControl);
    }

    /**
    @notice provideCollateral allows a user to collateralize this contracts associated LP token
    @param _amount is the amount of LP being collateralized
    **/
    function provideCollateral(uint256 _amount) public {
        require(
            LPtoken.allowance(msg.sender, address(this)) >= _amount,
            "Vault must have enough allowance."
        );
        require(
            LPtoken.balanceOf(msg.sender) >= _amount,
            "Must have enough LP to provide"
        );
        LPtoken.transferFrom(msg.sender, address(this), _amount);
        collateralizedLP[msg.sender] = collateralizedLP[msg.sender].add(
            _amount
        );

        emit CollateralProvided(msg.sender, _amount);
    }

    /**
    @notice withdrawCollateral allows the user to trade in his WarpLP tokens for hiss underlying LP token collateral
    @param _amount is the amount of LP tokens he wishes to withdraw
    **/
    function withdrawCollateral(uint256 _amount) public {
        uint256 amount;
        uint256 maxAmount = warpControl.getMaxWithdrawAllowed(
            msg.sender,
            address(LPtoken)
        );
        if (_amount == 0) {
            amount = maxAmount;
        } else {
            amount = _amount;
        }

        //require the availible value of the LP locked in this contract the user has
        //is greater than or equal to the amount being withdrawn
        require(maxAmount >= amount, "Trying to withdraw too much");
        //require the user has locked up enough collateral to withdraw this amount
        require(
            collateralizedLP[msg.sender] >= amount,
            "you are trying to withdraw more collateral than you have locked"
        );

        //subtract withdrawn amount from amount stored
        collateralizedLP[msg.sender] = collateralizedLP[msg.sender].sub(amount);
        //transfer them their token
        LPtoken.transfer(msg.sender, amount);
        emit CollateralWithdraw(msg.sender, amount);
    }

    /**
    @notice getAssetAdd allows for easy retrieval of a WarpVaults LP token Adress
    **/
    function getAssetAdd() public view returns (address) {
        return address(LPtoken);
    }

    /**
    @notice collateralOfAccount is a view function to retreive an accounts collateralized LP amount
    @param _account is the address of the account being looked up
    **/
    function collateralOfAccount(address _account)
        public
        view
        returns (uint256)
    {
        return collateralizedLP[_account];
    }

    /**
    @notice _liquidateAccount is a function to liquidate the LP tokens of the input account
    @param _account is the address of the account being liquidated
    @param _liquidator is the address of the account doing the liquidating who receives the liquidated LP's
    @dev this function uses the onlyWarpControl modifier meaning that only the Warp Control contract can call it
    **/
    function _liquidateAccount(address _account, address _liquidator)
        public
        onlyWarpControl
        angryWizard
    {
        emit AccountLiquidated(
            _account,
            _liquidator,
            collateralizedLP[_account]
        );
        //transfer the LP tokens to the liquidator
        LPtoken.transfer(_liquidator, collateralizedLP[_account]);
        //reset the borrowers collateral tracker
        collateralizedLP[_account] = 0;
    }

    function valueOfAccountCollateral(address _account)
        external
        view
        returns (uint256)
    {
        uint256 collateralPrice = warpControl.viewPriceOfCollateral(
            address(LPtoken)
        );
        uint256 collateralValue = collateralizedLP[_account].mul(
            collateralPrice
        );
        return collateralValue;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_timelock","type":"uint256"},{"internalType":"address","name":"_lp","type":"address"},{"internalType":"address","name":"_WarpControl","type":"address"},{"internalType":"string","name":"_lpName","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"address","name":"_liquidator","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AccountLiquidated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"CollateralProvided","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"CollateralWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_newControl","type":"address"},{"indexed":false,"internalType":"address","name":"_oldControl","type":"address"}],"name":"WarpControlChanged","type":"event"},{"inputs":[],"name":"LPtoken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_liquidator","type":"address"}],"name":"_liquidateAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"collateralOfAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collateralizedLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAssetAdd","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"provideCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"timeWizard","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_warpControl","type":"address"}],"name":"updateWarpControl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"valueOfAccountCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"warpControl","outputs":[{"internalType":"contract WarpControlI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162000f5238038062000f52833981810160405260808110156200003757600080fd5b8151602083015160408085015160608601805192519496939591949391820192846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82516401000000008111828201881017156200009c57600080fd5b82525081516020918201929091019080838360005b83811015620000cb578181015183820152602001620000b1565b50505050905090810190601f168015620000f95780820380516001836020036101000a031916815260200191505b50604052505081516200011591506001906020840190620001d0565b50600280546001600160a01b03199081166001600160a01b0386811691909117909255600380549091169184169190911790556200016042856200016e602090811b62000b2517901c565b600055506200027592505050565b600082820183811015620001c9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021357805160ff191683800117855562000243565b8280016001018555821562000243579182015b828111156200024357825182559160200191906001019062000226565b506200025192915062000255565b5090565b6200027291905b808211156200025157600081556001016200025c565b90565b610ccd80620002856000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063c14cba3e11610071578063c14cba3e146101df578063c453e557146101e7578063cb7b42061461020d578063f0c3c06b14610215578063f4b5e3e414610232578063f919b4bf14610260576100b4565b806346cd6801146100b95780634c20ac74146101365780634cf3e7841461015a5780636112fe2e14610182578063763e4a0d1461019f578063bbb7d489146101d7575b600080fd5b6100c1610286565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61013e610313565b604080516001600160a01b039092168252519081900360200190f35b6101806004803603602081101561017057600080fd5b50356001600160a01b0316610322565b005b6101806004803603602081101561019857600080fd5b50356103a3565b6101c5600480360360208110156101b557600080fd5b50356001600160a01b03166105d2565b60408051918252519081900360200190f35b61013e6105e4565b61013e6105f3565b6101c5600480360360208110156101fd57600080fd5b50356001600160a01b0316610602565b6101c56106b5565b6101806004803603602081101561022b57600080fd5b50356106bb565b6101806004803603604081101561024857600080fd5b506001600160a01b0381358116916020013516610935565b6101c56004803603602081101561027657600080fd5b50356001600160a01b0316610a66565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030b5780601f106102e05761010080835404028352916020019161030b565b820191906000526020600020905b8154815290600101906020018083116102ee57829003601f168201915b505050505081565b6002546001600160a01b031690565b6003546001600160a01b0316331461033957600080fd5b600354604080516001600160a01b038085168252909216602083015280517ff31f198b56fc88f5180e2da8285f8fc0e39731c96e24af25bab67838a32c5d799281900390910190a1600380546001600160a01b0319166001600160a01b0392909216919091179055565b6003546002546040805163ab5e2c9960e01b81523360048201526001600160a01b03928316602482015290516000938493169163ab5e2c9991604480830192602092919082900301818787803b1580156103fc57600080fd5b505af1158015610410573d6000803e3d6000fd5b505050506040513d602081101561042657600080fd5b50519050826104375780915061043b565b8291505b81811015610490576040805162461bcd60e51b815260206004820152601b60248201527f547279696e6720746f20776974686472617720746f6f206d7563680000000000604482015290519081900360640190fd5b336000908152600460205260409020548211156104de5760405162461bcd60e51b815260040180806020018281038252603f815260200180610c17603f913960400191505060405180910390fd5b336000908152600460205260409020546104fe908363ffffffff610a8116565b33600081815260046020818152604080842095909555600254855163a9059cbb60e01b8152928301949094526024820187905293516001600160a01b039093169363a9059cbb9360448084019492939192918390030190829087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b505050506040513d602081101561059057600080fd5b5050604080513381526020810184905281517f92682d28e4c16f4a2ddb833ecdd2bab2f2da69e2f325cda58d421e7d634b8e27929181900390910190a1505050565b60046020526000908152604090205481565b6003546001600160a01b031681565b6002546001600160a01b031681565b6003546002546040805163272c85f760e11b81526001600160a01b039283166004820152905160009384931691634e590bee916024808301926020929190829003018186803b15801561065457600080fd5b505afa158015610668573d6000803e3d6000fd5b505050506040513d602081101561067e57600080fd5b50516001600160a01b038416600090815260046020526040812054919250906106ad908363ffffffff610acc16565b949350505050565b60005481565b60025460408051636eb1769f60e11b8152336004820152306024820152905183926001600160a01b03169163dd62ed3e916044808301926020929190829003018186803b15801561070b57600080fd5b505afa15801561071f573d6000803e3d6000fd5b505050506040513d602081101561073557600080fd5b505110156107745760405162461bcd60e51b8152600401808060200182810382526021815260200180610c776021913960400191505060405180910390fd5b600254604080516370a0823160e01b8152336004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107be57600080fd5b505afa1580156107d2573d6000803e3d6000fd5b505050506040513d60208110156107e857600080fd5b5051101561083d576040805162461bcd60e51b815260206004820152601e60248201527f4d757374206861766520656e6f756768204c5020746f2070726f766964650000604482015290519081900360640190fd5b600254604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561089757600080fd5b505af11580156108ab573d6000803e3d6000fd5b505050506040513d60208110156108c157600080fd5b5050336000908152600460205260409020546108e3908263ffffffff610b2516565b3360008181526004602090815260409182902093909355805191825291810183905281517f304548d20eea45684a7db179080f94dce8e4442923ddd63688ab5b7e270a4849929181900390910190a150565b6003546001600160a01b0316331461094c57600080fd5b600054421161095a57600080fd5b6001600160a01b03808316600081815260046020908152604091829020548251938452938516908301528181019290925290517fb45e156992a4fbdcc0ac5b35d795eaabed404816fd7b53363a18a5da1ae16a699181900360600190a16002546001600160a01b03838116600090815260046020818152604080842054815163a9059cbb60e01b815288871694810194909452602484015251939094169363a9059cbb9360448084019492939192918390030190829087803b158015610a1f57600080fd5b505af1158015610a33573d6000803e3d6000fd5b505050506040513d6020811015610a4957600080fd5b5050506001600160a01b0316600090815260046020526040812055565b6001600160a01b031660009081526004602052604090205490565b6000610ac383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b7f565b90505b92915050565b600082610adb57506000610ac6565b82820282848281610ae857fe5b0414610ac35760405162461bcd60e51b8152600401808060200182810382526021815260200180610c566021913960400191505060405180910390fd5b600082820183811015610ac3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008184841115610c0e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610bd3578181015183820152602001610bbb565b50505050905090810190601f168015610c005780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fe796f752061726520747279696e6720746f207769746864726177206d6f726520636f6c6c61746572616c207468616e20796f752068617665206c6f636b6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775661756c74206d757374206861766520656e6f75676820616c6c6f77616e63652ea2646970667358221220acdf2d78a7d4c383e3bba05aacc14929fc00ef77fc224203b58925da8beb4ac864736f6c634300060600330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bb2b8038a1640196fbe3e38816f3e67cba72d940000000000000000000000000ba539b9a5c2d412cb10e5770435f362094f9541c00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000009574254432d574554480000000000000000000000000000000000000000000000

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

0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bb2b8038a1640196fbe3e38816f3e67cba72d940000000000000000000000000ba539b9a5c2d412cb10e5770435f362094f9541c00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000009574254432d574554480000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _timelock (uint256): 0
Arg [1] : _lp (address): 0xbb2b8038a1640196fbe3e38816f3e67cba72d940
Arg [2] : _WarpControl (address): 0xba539b9a5c2d412cb10e5770435f362094f9541c
Arg [3] : _lpName (string): WBTC-WETH

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 000000000000000000000000bb2b8038a1640196fbe3e38816f3e67cba72d940
Arg [2] : 000000000000000000000000ba539b9a5c2d412cb10e5770435f362094f9541c
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 574254432d574554480000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

33613:6099:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;33613:6099:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;33708:20:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;33708:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37978:95;;;:::i;:::-;;;;-1:-1:-1;;;;;37978:95:0;;;;;;;;;;;;;;35615:201;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35615:201:0;-1:-1:-1;;;;;35615:201:0;;:::i;:::-;;36783:1086;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36783:1086:0;;:::i;33805:51::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;33805:51:0;-1:-1:-1;;;;;33805:51:0;;:::i;:::-;;;;;;;;;;;;;;;;33765:31;;;:::i;33737:21::-;;;:::i;39332:377::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;39332:377:0;-1:-1:-1;;;;;39332:377:0;;:::i;33676:25::-;;;:::i;36000:570::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36000:570:0;;:::i;38838:486::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;38838:486:0;;;;;;;;;;:::i;38267:161::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;38267:161:0;-1:-1:-1;;;;;38267:161:0;;:::i;33708:20::-;;;;;;;;;;;;;;;-1:-1:-1;;33708:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;37978:95::-;38057:7;;-1:-1:-1;;;;;38057:7:0;37978:95;:::o;35615:201::-;34349:11;;-1:-1:-1;;;;;34349:11:0;34327:10;:34;34319:43;;12:1:-1;9;2:12;34319:43:0;35744:11:::1;::::0;35703:54:::1;::::0;;-1:-1:-1;;;;;35703:54:0;;::::1;::::0;;35744:11;;::::1;35703:54;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;35768:11;:40:::0;;-1:-1:-1;;;;;;35768:40:0::1;-1:-1:-1::0;;;;;35768:40:0;;;::::1;::::0;;;::::1;::::0;;35615:201::o;36783:1086::-;36891:11;;36972:7;;36891:100;;;-1:-1:-1;;;36891:100:0;;36939:10;36891:100;;;;-1:-1:-1;;;;;36972:7:0;;;36891:100;;;;;;36846:14;;;;36891:11;;:33;;:100;;;;;;;;;;;;;;36846:14;36891:11;:100;;;2:2:-1;;;;27:1;24;17:12;2:2;36891:100:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36891:100:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36891:100:0;;-1:-1:-1;37006:12:0;37002:112;;37044:9;37035:18;;37002:112;;;37095:7;37086:16;;37002:112;37299:6;37286:9;:19;;37278:59;;;;;-1:-1:-1;;;37278:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37471:10;37454:28;;;;:16;:28;;;;;;:38;-1:-1:-1;37454:38:0;37432:151;;;;-1:-1:-1;;;37432:151:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37700:10;37683:28;;;;:16;:28;;;;;;:40;;37716:6;37683:40;:32;:40;:::i;:::-;37669:10;37652:28;;;;:16;:28;;;;;;;;:71;;;;37771:7;;:36;;-1:-1:-1;;;37771:36:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37771:7:0;;;;:16;;:36;;;;;37652:28;;37771:36;;;;;;;;;;:7;:36;;;2:2:-1;;;;27:1;24;17:12;2:2;37771:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37771:36:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;37823:38:0;;;37842:10;37823:38;;37771:36;37823:38;;;;;;;;;;;;;;;;;;36783:1086;;;:::o;33805:51::-;;;;;;;;;;;;;:::o;33765:31::-;;;-1:-1:-1;;;;;33765:31:0;;:::o;33737:21::-;;;-1:-1:-1;;;;;33737:21:0;;:::o;39332:377::-;39485:11;;39541:7;;39485:75;;;-1:-1:-1;;;39485:75:0;;-1:-1:-1;;;;;39541:7:0;;;39485:75;;;;;;39434:7;;;;39485:11;;:33;;:75;;;;;;;;;;;;;;:11;:75;;;2:2:-1;;;;27:1;24;17:12;2:2;39485:75:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39485:75:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;39485:75:0;-1:-1:-1;;;;;39597:26:0;;39571:23;39597:26;;;:16;39485:75;39597:26;;;;;39485:75;;-1:-1:-1;39571:23:0;39597:71;;39485:75;39597:71;:30;:71;:::i;:::-;39571:97;39332:377;-1:-1:-1;;;;39332:377:0:o;33676:25::-;;;;:::o;36000:570::-;36084:7;;:44;;;-1:-1:-1;;;36084:44:0;;36102:10;36084:44;;;;36122:4;36084:44;;;;;;36132:7;;-1:-1:-1;;;;;36084:7:0;;:17;;:44;;;;;;;;;;;;;;:7;:44;;;2:2:-1;;;;27:1;24;17:12;2:2;36084:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36084:44:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36084:44:0;:55;;36062:138;;;;-1:-1:-1;;;36062:138:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36233:7;;:29;;;-1:-1:-1;;;36233:29:0;;36251:10;36233:29;;;;;;36266:7;;-1:-1:-1;;;;;36233:7:0;;:17;;:29;;;;;;;;;;;;;;:7;:29;;;2:2:-1;;;;27:1;24;17:12;2:2;36233:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36233:29:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36233:29:0;:40;;36211:120;;;;;-1:-1:-1;;;36211:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;36342:7;;:56;;;-1:-1:-1;;;36342:56:0;;36363:10;36342:56;;;;36383:4;36342:56;;;;;;;;;;;;-1:-1:-1;;;;;36342:7:0;;;;:20;;:56;;;;;;;;;;;;;;;:7;;:56;;;2:2:-1;;;;27:1;24;17:12;2:2;36342:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36342:56:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;36457:10:0;36440:28;;;;:16;36342:56;36440:28;;;;;:65;;36487:7;36440:65;:32;:65;:::i;:::-;36426:10;36409:28;;;;:16;:28;;;;;;;;;:96;;;;36523:39;;;;;;;;;;;;;;;;;;;;;;;;36000:570;:::o;38838:486::-;34349:11;;-1:-1:-1;;;;;34349:11:0;34327:10;:34;34319:43;;12:1:-1;9;2:12;34319:43:0;34522:10:::1;;34516:3;:16;34508:25;;12:1:-1;9::::0;2:12:::1;34508:25:0;-1:-1:-1::0;;;;;39068:26:0;;::::2;;::::0;;;:16:::2;:26;::::0;;;;;;;;;38987:118;;;;;;;::::2;::::0;;::::2;::::0;;;;;;;;;;::::2;::::0;;;;;;;::::2;39168:7;::::0;-1:-1:-1;;;;;39198:26:0;;::::2;39168:7;39198:26:::0;;;:16:::2;:26;::::0;;;;;;;;39168:57;;-1:-1:-1;;;39168:57:0;;;;::::2;::::0;;::::2;::::0;;;;;;;;;:7;;;::::2;::::0;:16:::2;::::0;:57;;;;;39198:26;;39168:57;;;;;;;;;;:7;:57;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;39168:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;39168:57:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;;;;;;;;39286:26:0::2;39315:1;39286:26:::0;;;:16:::2;39168:57;39286:26:::0;;;;:30;38838:486::o;38267:161::-;-1:-1:-1;;;;;38394:26:0;38362:7;38394:26;;;:16;:26;;;;;;;38267:161::o;4765:136::-;4823:7;4850:43;4854:1;4857;4850:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4843:50;;4765:136;;;;;:::o;5655:471::-;5713:7;5958:6;5954:47;;-1:-1:-1;5988:1:0;5981:8;;5954:47;6025:5;;;6029:1;6025;:5;:1;6049:5;;;;;:10;6041:56;;;;-1:-1:-1;;;6041:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4301:181;4359:7;4391:5;;;4415:6;;;;4407:46;;;;;-1:-1:-1;;;4407:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5204:192;5290:7;5326:12;5318:6;;;;5310:29;;;;-1:-1:-1;;;5310:29: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;5310:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5362:5:0;;;5204:192::o

Swarm Source

ipfs://acdf2d78a7d4c383e3bba05aacc14929fc00ef77fc224203b58925da8beb4ac8
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.