More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 221 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Lend To Warp Vau... | 17421423 | 630 days ago | IN | 0 ETH | 0.00403016 | ||||
Redeem | 16840430 | 712 days ago | IN | 0 ETH | 0.00482381 | ||||
Redeem | 16268624 | 792 days ago | IN | 0 ETH | 0.00170866 | ||||
Repay Borrow | 15585318 | 888 days ago | IN | 0 ETH | 0.00132954 | ||||
Lend To Warp Vau... | 15456406 | 908 days ago | IN | 0 ETH | 0.00146987 | ||||
Redeem | 15305448 | 931 days ago | IN | 0 ETH | 0.00151543 | ||||
Redeem | 15294220 | 933 days ago | IN | 0 ETH | 0.00072603 | ||||
Redeem | 15102547 | 963 days ago | IN | 0 ETH | 0.01342554 | ||||
Lend To Warp Vau... | 15006581 | 979 days ago | IN | 0 ETH | 0.00297313 | ||||
Redeem | 14956182 | 988 days ago | IN | 0 ETH | 0.01114355 | ||||
Redeem | 14870107 | 1002 days ago | IN | 0 ETH | 0.00514514 | ||||
Lend To Warp Vau... | 14852643 | 1005 days ago | IN | 0 ETH | 0.00633578 | ||||
Redeem | 14763150 | 1020 days ago | IN | 0 ETH | 0.02031796 | ||||
Repay Borrow | 14760962 | 1020 days ago | IN | 0 ETH | 0.02211331 | ||||
Repay Borrow | 14751093 | 1022 days ago | IN | 0 ETH | 0.00815914 | ||||
Redeem | 14751085 | 1022 days ago | IN | 0 ETH | 0.00836888 | ||||
Redeem | 14537367 | 1055 days ago | IN | 0 ETH | 0.00674689 | ||||
Lend To Warp Vau... | 14487932 | 1063 days ago | IN | 0 ETH | 0.00489107 | ||||
Repay Borrow | 14447926 | 1069 days ago | IN | 0 ETH | 0.00303338 | ||||
Redeem | 14426172 | 1073 days ago | IN | 0 ETH | 0.00252277 | ||||
Redeem | 14426113 | 1073 days ago | IN | 0 ETH | 0.00392483 | ||||
Redeem | 14393044 | 1078 days ago | IN | 0 ETH | 0.01068227 | ||||
Redeem | 14351699 | 1084 days ago | IN | 0 ETH | 0.00509671 | ||||
Lend To Warp Vau... | 14341017 | 1086 days ago | IN | 0 ETH | 0.00596862 | ||||
Lend To Warp Vau... | 14333949 | 1087 days ago | IN | 0 ETH | 0.00592094 |
Latest 3 internal transactions
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
11654936 | 1503 days ago | Contract Creation | 0 ETH | |||
11654936 | 1503 days ago | Contract Creation | 0 ETH | |||
11654936 | 1503 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xcE8a95ec...4698643c4 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
WarpVaultSC
Compiler Version
v0.6.6+commit.6c089d02
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-01-14 */ // 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: node_modules\@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\math\SafeMath.sol // 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: @openzeppelin\contracts\token\ERC20\SafeERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts\compound\CarefulMath.sol pragma solidity ^0.6.0; /** * @title Careful Math * @author Compound /blob/master/contracts/math/SafeMath.sol */ contract CarefulMath { /** * @dev Possible error codes that we can return */ enum MathError { NO_ERROR, DIVISION_BY_ZERO, INTEGER_OVERFLOW, INTEGER_UNDERFLOW } /** * @dev Multiplies two numbers, returns an error on overflow. */ function mulUInt(uint a, uint b) internal pure returns (MathError, uint) { if (a == 0) { return (MathError.NO_ERROR, 0); } uint c = a * b; if (c / a != b) { return (MathError.INTEGER_OVERFLOW, 0); } else { return (MathError.NO_ERROR, c); } } /** * @dev Integer division of two numbers, truncating the quotient. */ function divUInt(uint a, uint b) internal pure returns (MathError, uint) { if (b == 0) { return (MathError.DIVISION_BY_ZERO, 0); } return (MathError.NO_ERROR, a / b); } /** * @dev Subtracts two numbers, returns an error on overflow (i.e. if subtrahend is greater than minuend). */ function subUInt(uint a, uint b) internal pure returns (MathError, uint) { if (b <= a) { return (MathError.NO_ERROR, a - b); } else { return (MathError.INTEGER_UNDERFLOW, 0); } } /** * @dev Adds two numbers, returns an error on overflow. */ function addUInt(uint a, uint b) internal pure returns (MathError, uint) { uint c = a + b; if (c >= a) { return (MathError.NO_ERROR, c); } else { return (MathError.INTEGER_OVERFLOW, 0); } } /** * @dev add a and b and then subtract c */ function addThenSubUInt(uint a, uint b, uint c) internal pure returns (MathError, uint) { (MathError err0, uint sum) = addUInt(a, b); if (err0 != MathError.NO_ERROR) { return (err0, 0); } return subUInt(sum, c); } } // File: contracts\compound\Exponential.sol pragma solidity ^0.6.0; /** * @title Exponential module for storing fixed-precision decimals * @author Compound * @notice Exp is a struct which stores decimals with a fixed precision of 18 decimal places. * Thus, if we wanted to store the 5.1, mantissa would store 5.1e18. That is: * `Exp({mantissa: 5100000000000000000})`. */ contract Exponential is CarefulMath { uint constant expScale = 1e18; uint constant doubleScale = 1e36; uint constant halfExpScale = expScale/2; uint constant mantissaOne = expScale; struct Exp { uint mantissa; } struct Double { uint mantissa; } /** * @dev Creates an exponential from numerator and denominator values. * Note: Returns an error if (`num` * 10e18) > MAX_INT, * or if `denom` is zero. */ function getExp(uint num, uint denom) pure internal returns (MathError, Exp memory) { (MathError err0, uint scaledNumerator) = mulUInt(num, expScale); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } (MathError err1, uint rational) = divUInt(scaledNumerator, denom); if (err1 != MathError.NO_ERROR) { return (err1, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: rational})); } /** * @dev Adds two exponentials, returning a new exponential. */ function addExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { (MathError error, uint result) = addUInt(a.mantissa, b.mantissa); return (error, Exp({mantissa: result})); } /** * @dev Subtracts two exponentials, returning a new exponential. */ function subExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { (MathError error, uint result) = subUInt(a.mantissa, b.mantissa); return (error, Exp({mantissa: result})); } /** * @dev Multiply an Exp by a scalar, returning a new Exp. */ function mulScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) { (MathError err0, uint scaledMantissa) = mulUInt(a.mantissa, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: scaledMantissa})); } /** * @dev Multiply an Exp by a scalar, then truncate to return an unsigned integer. */ function mulScalarTruncate(Exp memory a, uint scalar) pure internal returns (MathError, uint) { (MathError err, Exp memory product) = mulScalar(a, scalar); if (err != MathError.NO_ERROR) { return (err, 0); } return (MathError.NO_ERROR, truncate(product)); } /** * @dev Multiply an Exp by a scalar, truncate, then add an to an unsigned integer, returning an unsigned integer. */ function mulScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) pure internal returns (MathError, uint) { (MathError err, Exp memory product) = mulScalar(a, scalar); if (err != MathError.NO_ERROR) { return (err, 0); } return addUInt(truncate(product), addend); } /** * @dev Divide an Exp by a scalar, returning a new Exp. */ function divScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) { (MathError err0, uint descaledMantissa) = divUInt(a.mantissa, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: descaledMantissa})); } /** * @dev Divide a scalar by an Exp, returning a new Exp. */ function divScalarByExp(uint scalar, Exp memory divisor) pure internal returns (MathError, Exp memory) { /* We are doing this as: getExp(mulUInt(expScale, scalar), divisor.mantissa) How it works: Exp = a / b; Scalar = s; `s / (a / b)` = `b * s / a` and since for an Exp `a = mantissa, b = expScale` */ (MathError err0, uint numerator) = mulUInt(expScale, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return getExp(numerator, divisor.mantissa); } /** * @dev Divide a scalar by an Exp, then truncate to return an unsigned integer. */ function divScalarByExpTruncate(uint scalar, Exp memory divisor) pure internal returns (MathError, uint) { (MathError err, Exp memory fraction) = divScalarByExp(scalar, divisor); if (err != MathError.NO_ERROR) { return (err, 0); } return (MathError.NO_ERROR, truncate(fraction)); } /** * @dev Multiplies two exponentials, returning a new exponential. */ function mulExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { (MathError err0, uint doubleScaledProduct) = mulUInt(a.mantissa, b.mantissa); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } // We add half the scale before dividing so that we get rounding instead of truncation. // See "Listing 6" and text above it at https://accu.org/index.php/journals/1717 // Without this change, a result like 6.6...e-19 will be truncated to 0 instead of being rounded to 1e-18. (MathError err1, uint doubleScaledProductWithHalfScale) = addUInt(halfExpScale, doubleScaledProduct); if (err1 != MathError.NO_ERROR) { return (err1, Exp({mantissa: 0})); } (MathError err2, uint product) = divUInt(doubleScaledProductWithHalfScale, expScale); // The only error `div` can return is MathError.DIVISION_BY_ZERO but we control `expScale` and it is not zero. assert(err2 == MathError.NO_ERROR); return (MathError.NO_ERROR, Exp({mantissa: product})); } /** * @dev Multiplies two exponentials given their mantissas, returning a new exponential. */ function mulExp(uint a, uint b) pure internal returns (MathError, Exp memory) { return mulExp(Exp({mantissa: a}), Exp({mantissa: b})); } /** * @dev Multiplies three exponentials, returning a new exponential. */ function mulExp3(Exp memory a, Exp memory b, Exp memory c) pure internal returns (MathError, Exp memory) { (MathError err, Exp memory ab) = mulExp(a, b); if (err != MathError.NO_ERROR) { return (err, ab); } return mulExp(ab, c); } /** * @dev Divides two exponentials, returning a new exponential. * (a/scale) / (b/scale) = (a/scale) * (scale/b) = a/b, * which we can scale as an Exp by calling getExp(a.mantissa, b.mantissa) */ function divExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { return getExp(a.mantissa, b.mantissa); } /** * @dev Truncates the given exp to a whole number value. * For example, truncate(Exp{mantissa: 15 * expScale}) = 15 */ function truncate(Exp memory exp) pure internal returns (uint) { // Note: We are not using careful math here as we're performing a division that cannot fail return exp.mantissa / expScale; } /** * @dev Checks if first Exp is less than second Exp. */ function lessThanExp(Exp memory left, Exp memory right) pure internal returns (bool) { return left.mantissa < right.mantissa; } /** * @dev Checks if left Exp <= right Exp. */ function lessThanOrEqualExp(Exp memory left, Exp memory right) pure internal returns (bool) { return left.mantissa <= right.mantissa; } /** * @dev Checks if left Exp > right Exp. */ function greaterThanExp(Exp memory left, Exp memory right) pure internal returns (bool) { return left.mantissa > right.mantissa; } /** * @dev returns true if Exp is exactly zero */ function isZeroExp(Exp memory value) pure internal returns (bool) { return value.mantissa == 0; } function safe224(uint n, string memory errorMessage) pure internal returns (uint224) { require(n < 2**224, errorMessage); return uint224(n); } function safe32(uint n, string memory errorMessage) pure internal returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function add_(Exp memory a, Exp memory b) pure internal returns (Exp memory) { return Exp({mantissa: add_(a.mantissa, b.mantissa)}); } function add_(Double memory a, Double memory b) pure internal returns (Double memory) { return Double({mantissa: add_(a.mantissa, b.mantissa)}); } function add_(uint a, uint b) pure internal returns (uint) { return add_(a, b, "addition overflow"); } function add_(uint a, uint b, string memory errorMessage) pure internal returns (uint) { uint c = a + b; require(c >= a, errorMessage); return c; } function sub_(Exp memory a, Exp memory b) pure internal returns (Exp memory) { return Exp({mantissa: sub_(a.mantissa, b.mantissa)}); } function sub_(Double memory a, Double memory b) pure internal returns (Double memory) { return Double({mantissa: sub_(a.mantissa, b.mantissa)}); } function sub_(uint a, uint b) pure internal returns (uint) { return sub_(a, b, "subtraction underflow"); } function sub_(uint a, uint b, string memory errorMessage) pure internal returns (uint) { require(b <= a, errorMessage); return a - b; } function mul_(Exp memory a, Exp memory b) pure internal returns (Exp memory) { return Exp({mantissa: mul_(a.mantissa, b.mantissa) / expScale}); } function mul_(Exp memory a, uint b) pure internal returns (Exp memory) { return Exp({mantissa: mul_(a.mantissa, b)}); } function mul_(uint a, Exp memory b) pure internal returns (uint) { return mul_(a, b.mantissa) / expScale; } function mul_(Double memory a, Double memory b) pure internal returns (Double memory) { return Double({mantissa: mul_(a.mantissa, b.mantissa) / doubleScale}); } function mul_(Double memory a, uint b) pure internal returns (Double memory) { return Double({mantissa: mul_(a.mantissa, b)}); } function mul_(uint a, Double memory b) pure internal returns (uint) { return mul_(a, b.mantissa) / doubleScale; } function mul_(uint a, uint b) pure internal returns (uint) { return mul_(a, b, "multiplication overflow"); } function mul_(uint a, uint b, string memory errorMessage) pure internal returns (uint) { if (a == 0 || b == 0) { return 0; } uint c = a * b; require(c / a == b, errorMessage); return c; } function div_(Exp memory a, Exp memory b) pure internal returns (Exp memory) { return Exp({mantissa: div_(mul_(a.mantissa, expScale), b.mantissa)}); } function div_(Exp memory a, uint b) pure internal returns (Exp memory) { return Exp({mantissa: div_(a.mantissa, b)}); } function div_(uint a, Exp memory b) pure internal returns (uint) { return div_(mul_(a, expScale), b.mantissa); } function div_(Double memory a, Double memory b) pure internal returns (Double memory) { return Double({mantissa: div_(mul_(a.mantissa, doubleScale), b.mantissa)}); } function div_(Double memory a, uint b) pure internal returns (Double memory) { return Double({mantissa: div_(a.mantissa, b)}); } function div_(uint a, Double memory b) pure internal returns (uint) { return div_(mul_(a, doubleScale), b.mantissa); } function div_(uint a, uint b) pure internal returns (uint) { return div_(a, b, "divide by zero"); } function div_(uint a, uint b, string memory errorMessage) pure internal returns (uint) { require(b > 0, errorMessage); return a / b; } function fraction(uint a, uint b) pure internal returns (Double memory) { return Double({mantissa: div_(mul_(a, doubleScale), b)}); } } // File: contracts\compound\InterestRateModel.sol pragma solidity ^0.6.0; /** * @title Compound's InterestRateModel Interface * @author Compound */ abstract contract InterestRateModel { /// @notice Indicator that this is an InterestRateModel contract (for inspection) bool public constant isInterestRateModel = true; /** * @notice Calculates the current borrow interest rate per block * @param cash The total amount of cash the market has * @param borrows The total amount of borrows the market has outstanding * @param reserves The total amount of reserves the market has * @return The borrow rate per block (as a percentage, and scaled by 1e18) */ function getBorrowRate(uint cash, uint borrows, uint reserves) external virtual view returns (uint); /** * @notice Calculates the current supply interest rate per block * @param cash The total amount of cash the market has * @param borrows The total amount of borrows the market has outstanding * @param reserves The total amount of reserves the market has * @param reserveFactorMantissa The current reserve factor the market has * @return The supply rate per block (as a percentage, and scaled by 1e18) */ function getSupplyRate(uint cash, uint borrows, uint reserves, uint reserveFactorMantissa) external virtual view returns (uint); } // 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 getPriceOfCollateral(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 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 liquidateAccount(address _borrower) public virtual; } // File: contracts\WarpVaultSC.sol pragma solidity ^0.6.2; //import "./interfaces/UniswapLPOracleFactoryI.sol"; //////////////////////////////////////////////////////////////////////////////////////////// /// @title WarpVaultSC /// @author Christopher Dixon //////////////////////////////////////////////////////////////////////////////////////////// /** @notice the WarpVaultSC 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 WarpVaultSC is Exponential { using SafeMath for uint256; using SafeERC20 for ERC20; uint256 internal initialExchangeRateMantissa; uint256 public reserveFactorMantissa; uint256 public accrualBlockNumber; uint256 public borrowIndex; uint256 public totalBorrows; uint256 public totalReserves; uint256 internal constant borrowRateMaxMantissa = 0.0005e16; uint256 public percent = 1500; uint256 public divisor = 10000; uint256 public timeWizard; address public warpTeam; ERC20 public stablecoin; WarpWrapperToken public wStableCoin; WarpWrapperToken public wbRewardCoin; WarpControlI public warpControl; InterestRateModel public InterestRate; mapping(address => BorrowSnapshot) public accountBorrows; mapping(address => uint256) public principalBalance; mapping(address => uint256) public historicalReward; event InterestAccrued( uint256 accrualBlockNumber, uint256 borrowIndex, uint256 totalBorrows, uint256 totalReserves ); event StableCoinLent( address _lender, uint256 _amountLent, uint256 _amountOfWarpMinted ); event StableCoinWithdraw( address _lender, uint256 _amountWithdrawn, uint256 _amountOfWarpBurnt ); event LoanRepayed( address _borrower, uint256 _repayAmount, uint256 remainingPrinciple, uint256 remainingInterest ); event ReserveWithdraw(uint256 _amount); event InterestShortCircuit(uint256 _blockNumber); event WarpControlChanged(address _newControl, address _oldControl); event WarpTeamChanged(address _newTeam, address _newControl); event InterestRateModelUpdate(address _newIRM); event ReserveFactorUpdated(uint256 _newRF); /** @notice struct for borrow balance information @member principal Total balance (with accrued interest), after applying the most recent balance-changing action @member interestIndex Global borrowIndex as of the most recent balance-changing action */ struct BorrowSnapshot { uint256 principal; uint256 interestIndex; uint256 principalLeft; } /** @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); _; } /** @dev Throws if a function is called by anyone but the warp team **/ modifier onlyWarpTeam() { require(msg.sender == warpTeam); _; } /** @notice constructor sets up token names and symbols for the WarpWrapperToken @param _InterestRate is the address of the Interest Rate Model this vault will be using @param _StableCoin is the address of the stablecoin this vault will manage @param _warpTeam is the address of the Warp Team used for fees @param _initialExchangeRate is the initial exchange rate mantissa used to determine how a Warp wrapper token will be distributed when stablecoin is received @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) **/ constructor( address _InterestRate, address _StableCoin, address _warpControl, address _warpTeam, uint256 _initialExchangeRate, uint256 _timelock, uint256 _reserveFactorMantissa ) public { warpControl = WarpControlI(_warpControl); stablecoin = ERC20(_StableCoin); InterestRate = InterestRateModel(_InterestRate); accrualBlockNumber = getBlockNumber(); borrowIndex = mantissaOne; initialExchangeRateMantissa = _initialExchangeRate; //sets the initialExchangeRateMantissa warpTeam = _warpTeam; timeWizard = now.add(_timelock); reserveFactorMantissa = _reserveFactorMantissa; bytes memory name = abi.encodePacked("Warp-"); name = abi.encodePacked(name, stablecoin.name()); bytes memory symbol = abi.encodePacked("W-"); symbol = abi.encodePacked(symbol, stablecoin.symbol()); string memory assetName = string(name); string memory assetSymbol = string(symbol); wStableCoin = new WarpWrapperToken( address(stablecoin), assetName, assetSymbol ); bytes memory borrowSuffix = abi.encodePacked("-B"); name = abi.encodePacked(name, borrowSuffix); symbol = abi.encodePacked(symbol, borrowSuffix); assetName = string(name); assetSymbol = string(symbol); wbRewardCoin = new WarpWrapperToken( address(stablecoin), assetName, assetSymbol ); } /** @notice getSCDecimals allows for easy retrieval of the vaults stablecoin decimals **/ function getSCDecimals() public view returns (uint8) { return stablecoin.decimals(); } /** @notice getSCAddress allows for the easy retrieval of the vaults stablecoin address **/ function getSCAddress() public view returns (address) { return address(stablecoin); } /** @notice upgrade is used when upgrading to a new version of the WarpControl contracts @dev this is a protected function that can only be called by the WarpControl contract **/ function updateWarpControl(address _warpControl) public onlyWarpControl { emit WarpControlChanged(_warpControl, address(warpControl)); warpControl = WarpControlI(_warpControl); } function updateTeam(address _team) public onlyWarpControl { emit WarpTeamChanged(_team, warpTeam); warpTeam = _team; } /** @notice getCashPrior is a view funcion that returns the USD balance of all held underlying stablecoin assets **/ function getCashPrior() public view returns (uint256) { return stablecoin.balanceOf(address(this)); } /** @notice calculateFee is used to calculate the fee earned by the Warp Platform @param _payedAmount is a uint representing the full amount of stablecoin earned as interest **/ function calculateFee(uint256 _payedAmount) public view returns (uint256) { uint256 fee = _payedAmount.mul(percent).div(divisor); return fee; } /** @notice withdrawFees allows the warp team to withdraw the reserves earned by fees @param _amount is the amount of a stablecoin being withdrawn @dev this is a protected function that can only be called by the warpTeam address **/ function withdrawFees(uint256 _amount) public onlyWarpTeam { require( totalReserves >= _amount, "You are trying to withdraw too much" ); totalReserves = totalReserves.sub(_amount); stablecoin.safeTransfer(warpTeam, _amount); emit ReserveWithdraw(_amount); } /** @notice setNewInterestModel allows for a new interest rate model to be set for this vault @param _newModel is the address of the new interest rate model contract @dev this is a protected function that can only be called by the WarpControl contract **/ function setNewInterestModel(address _newModel) public onlyWarpControl { InterestRate = InterestRateModel(_newModel); emit InterestRateModelUpdate(_newModel); } /** @notice updateReserve allows for a new reserv percentage to be set @param _newReserveMantissa is the reserve percentage scaled by 1e18 **/ function updateReserve(uint256 _newReserveMantissa) public onlyWarpTeam { reserveFactorMantissa = _newReserveMantissa; emit ReserveFactorUpdated(_newReserveMantissa); } /** @notice Applies accrued interest to total borrows and reserves @dev This calculates interest accrued from the last checkpointed block up to the current block and writes new checkpoint to storage. **/ function accrueInterest() public { //Remember the initial block number uint256 currentBlockNumber = getBlockNumber(); uint256 accrualBlockNumberPrior = accrualBlockNumber; //Short-circuit accumulating 0 interest if (accrualBlockNumberPrior == currentBlockNumber) { emit InterestShortCircuit(currentBlockNumber); return; } //Read the previous values out of storage uint256 cashPrior = getCashPrior(); uint256 borrowsPrior = totalBorrows; uint256 reservesPrior = totalReserves; uint256 borrowIndexPrior = borrowIndex; //Calculate the current borrow interest rate uint256 borrowRateMantissa = InterestRate.getBorrowRate(cashPrior, borrowsPrior, reservesPrior); require( borrowRateMantissa <= borrowRateMaxMantissa, "Borrow Rate mantissa error" ); //Calculate the number of blocks elapsed since the last accrual (MathError mathErr, uint256 blockDelta) = subUInt(currentBlockNumber, accrualBlockNumberPrior); //Calculate the interest accumulated into borrows and reserves and the new index: Exp memory simpleInterestFactor; uint256 interestAccumulated; uint256 totalBorrowsNew; uint256 totalReservesNew; uint256 borrowIndexNew; //simpleInterestFactor = borrowRate * blockDelta (mathErr, simpleInterestFactor) = mulScalar( Exp({mantissa: borrowRateMantissa}), blockDelta ); //interestAccumulated = simpleInterestFactor * totalBorrows (mathErr, interestAccumulated) = mulScalarTruncate( simpleInterestFactor, borrowsPrior ); //totalBorrowsNew = interestAccumulated + totalBorrows (mathErr, totalBorrowsNew) = addUInt(interestAccumulated, borrowsPrior); //totalReservesNew = interestAccumulated * reserveFactor + totalReserves (mathErr, totalReservesNew) = mulScalarTruncateAddUInt( Exp({mantissa: reserveFactorMantissa}), interestAccumulated, reservesPrior ); //borrowIndexNew = simpleInterestFactor * borrowIndex + borrowIndex (mathErr, borrowIndexNew) = mulScalarTruncateAddUInt( simpleInterestFactor, borrowIndexPrior, borrowIndexPrior ); //Write the previously calculated values into storage accrualBlockNumber = currentBlockNumber; borrowIndex = borrowIndexNew; totalBorrows = totalBorrowsNew; totalReserves = totalReservesNew; emit InterestAccrued( accrualBlockNumber, borrowIndex, totalBorrows, totalReserves ); } /** @notice returns last calculated account's borrow balance using the prior borrowIndex @param account The address whose balance should be calculated after updating borrowIndex @return The calculated balance **/ function borrowBalancePrior(address account) public view returns (uint256) { MathError mathErr; uint256 principalTimesIndex; uint256 result; //Get borrowBalance and borrowIndex BorrowSnapshot storage borrowSnapshot = accountBorrows[account]; //If borrowBalance = 0 then borrowIndex is likely also 0. //Rather than failing the calculation with a division by 0, we immediately return 0 in this case. if (borrowSnapshot.principal == 0) { return (0); } //Calculate new borrow balance using the interest index: //recentBorrowBalance = borrower.borrowBalance * market.borrowIndex / borrower.borrowIndex (mathErr, principalTimesIndex) = mulUInt( borrowSnapshot.principal, borrowIndex ); //if theres a math error return zero so as not to fail if (mathErr != MathError.NO_ERROR) { return (0); } (mathErr, result) = divUInt( principalTimesIndex, borrowSnapshot.interestIndex ); //if theres a math error return zero so as not to fail if (mathErr != MathError.NO_ERROR) { return (0); } return (result); } /** @notice Accrue interest to updated borrowIndex and then calculate account's borrow balance using the updated borrowIndex @param account The address whose balance should be calculated after updating borrowIndex @return The calculated balance **/ function borrowBalanceCurrent(address account) public returns (uint256) { accrueInterest(); return borrowBalancePrior(account); } /** @notice getBlockNumber allows for easy retrieval of block number **/ function getBlockNumber() internal view returns (uint256) { return block.number; } /** @notice Returns the current per-block borrow interest rate for this cToken @return The borrow interest rate per block, scaled by 1e18 **/ function borrowRatePerBlock() public view returns (uint256) { return InterestRate.getBorrowRate( getCashPrior(), totalBorrows, totalReserves ); } /** @notice Returns the current per-block supply interest rate for this cToken @return The supply interest rate per block, scaled by 1e18 **/ function supplyRatePerBlock() public view returns (uint256) { return InterestRate.getSupplyRate( getCashPrior(), totalBorrows, totalReserves, reserveFactorMantissa ); } /** @notice Returns the current total borrows plus accrued interest @return The total borrows with interest **/ function totalBorrowsCurrent() external returns (uint256) { accrueInterest(); return totalBorrows; } /** @notice return the not up-to-date exchange rate @return Calculated exchange rate scaled by 1e18 **/ function exchangeRatePrior() public view returns (uint256) { if (wStableCoin.totalSupply() == 0) { //If there are no tokens minted: exchangeRate = initialExchangeRate return initialExchangeRateMantissa; } else { //Otherwise: exchangeRate = (totalCash + totalBorrows - totalReserves) / totalSupply uint256 totalCash = getCashPrior(); //get contract asset balance uint256 cashPlusBorrowsMinusReserves; Exp memory exchangeRate; MathError mathErr; //calculate total value held by contract plus owed to contract (mathErr, cashPlusBorrowsMinusReserves) = addThenSubUInt( totalCash, totalBorrows, totalReserves ); //calculate exchange rate (mathErr, exchangeRate) = getExp( cashPlusBorrowsMinusReserves, wStableCoin.totalSupply() ); return (exchangeRate.mantissa); } } /** @notice Accrue interest then return the up-to-date exchange rate @return Calculated exchange rate scaled by 1e18 **/ function exchangeRateCurrent() public returns (uint256) { accrueInterest(); if (wStableCoin.totalSupply() == 0) { //If there are no tokens minted: exchangeRate = initialExchangeRate return initialExchangeRateMantissa; } else { //Otherwise: exchangeRate = (totalCash + totalBorrows - totalReserves) / totalSupply uint256 totalCash = getCashPrior(); //get contract asset balance uint256 cashPlusBorrowsMinusReserves; Exp memory exchangeRate; MathError mathErr; //calculate total value held by contract plus owed to contract (mathErr, cashPlusBorrowsMinusReserves) = addThenSubUInt( totalCash, totalBorrows, totalReserves ); //calculate exchange rate (mathErr, exchangeRate) = getExp( cashPlusBorrowsMinusReserves, wStableCoin.totalSupply() ); return (exchangeRate.mantissa); } } /** @notice Get cash balance of this cToken in the underlying asset in other contracts @return The quantity of underlying asset owned by this contract **/ function getCash() external view returns (uint256) { return getCashPrior(); } //struct used by mint to avoid stack too deep errors struct MintLocalVars { MathError mathErr; uint256 exchangeRateMantissa; uint256 mintTokens; bool isMember; } /** @notice lendToWarpVault is used to lend stablecoin assets to a WaprVault @param _amount is the amount of the asset being lent @dev the user will need to first approve the transfer of the underlying asset **/ function lendToWarpVault(uint256 _amount) public { //declare struct MintLocalVars memory vars; //retrieve exchange rate vars.exchangeRateMantissa = exchangeRateCurrent(); //We get the current exchange rate and calculate the number of WarpWrapperToken to be minted: //mintTokens = _amount / exchangeRate (vars.mathErr, vars.mintTokens) = divScalarByExpTruncate( _amount, Exp({mantissa: vars.exchangeRateMantissa}) ); //transfer appropriate amount of DAI from msg.sender to the Vault stablecoin.safeTransferFrom(msg.sender, address(this), _amount); principalBalance[msg.sender] = principalBalance[msg.sender] + _amount; //mint appropriate Warp DAI wStableCoin.mint(msg.sender, vars.mintTokens); emit StableCoinLent(msg.sender, _amount, vars.mintTokens); } struct RedeemLocalVars { MathError mathErr; uint256 exchangeRateMantissa; uint256 burnTokens; uint256 currentWarpBalance; uint256 currentCoinBalance; uint256 principalRedeemed; uint256 amount; } /** @notice redeem allows a user to redeem their Warp Wrapper Token for the appropriate amount of underlying stablecoin asset @param _amount is the amount of StableCoin the user wishes to exchange **/ function redeem(uint256 _amount) public { RedeemLocalVars memory vars; //retreive the users current Warp Wrapper balance vars.currentWarpBalance = wStableCoin.balanceOf(msg.sender); //retreive current exchange rate vars.exchangeRateMantissa = exchangeRateCurrent(); (vars.mathErr, vars.currentCoinBalance) = mulScalarTruncate( Exp({mantissa: vars.exchangeRateMantissa}), vars.currentWarpBalance ); if (_amount == 0) { vars.amount = vars.currentCoinBalance; } else { vars.amount = _amount; } //We get the current exchange rate and calculate the number of WarpWrapperToken to be burned: //burnTokens = _amount / exchangeRate (vars.mathErr, vars.burnTokens) = divScalarByExpTruncate( vars.amount, Exp({mantissa: vars.exchangeRateMantissa}) ); //require the vault has enough stablecoin require( stablecoin.balanceOf(address(this)) >= vars.amount, "Not enough stablecoin in vault." ); //calculate the users current stablecoin balance //calculate and record balances for historical tracking uint256 currentStableCoinReward = 0; if (vars.currentCoinBalance > principalBalance[msg.sender]) { currentStableCoinReward = vars.currentCoinBalance.sub( principalBalance[msg.sender] ); } vars.principalRedeemed = vars.amount.sub(currentStableCoinReward); if (vars.amount >= currentStableCoinReward) { historicalReward[msg.sender] = historicalReward[msg.sender].add( currentStableCoinReward ); require( vars.principalRedeemed <= principalBalance[msg.sender], "Error calculating reward." ); principalBalance[msg.sender] = principalBalance[msg.sender].sub( vars.principalRedeemed ); } else { historicalReward[msg.sender] = historicalReward[msg.sender].add( vars.amount ); } //mint appropriate Warp DAI wStableCoin.burn(msg.sender, vars.burnTokens); stablecoin.safeTransfer(msg.sender, vars.amount); emit StableCoinWithdraw(msg.sender, vars.amount, vars.burnTokens); } /** @notice viewAccountBalance is used to view the current balance of an account @param _account is the account whos balance is being viewed **/ function viewAccountBalance(address _account) public view returns (uint256) { uint256 exchangeRate = exchangeRatePrior(); uint256 accountBalance = wStableCoin.balanceOf(_account); MathError mathError; uint256 balance; (mathError, balance) = mulScalarTruncate( Exp({mantissa: exchangeRate}), accountBalance ); return balance; } /** @notice viewHistoricalReward is used to view the total gains of an account @param _account is the account whos gains are being viewed **/ function viewHistoricalReward(address _account) public view returns (uint256) { uint256 exchangeRate = exchangeRatePrior(); uint256 currentWarpBalance = wStableCoin.balanceOf(_account); uint256 principal = principalBalance[_account]; if (currentWarpBalance == 0) { return historicalReward[_account]; } MathError mathError; uint256 currentStableCoinBalance; (mathError, currentStableCoinBalance) = mulScalarTruncate( Exp({mantissa: exchangeRate}), currentWarpBalance ); uint256 currentGains = currentStableCoinBalance.sub(principal); uint256 totalGains = currentGains.add(historicalReward[_account]); return totalGains; } //struct used by borrow function to avoid stack too deep errors struct BorrowLocalVars { MathError mathErr; uint256 accountBorrows; uint256 accountBorrowsNew; uint256 totalBorrowsNew; } /** @notice Sender borrows stablecoin assets from the protocol to their own address @param _borrowAmount The amount of the underlying asset to borrow */ function _borrow(uint256 _borrowAmount, address _borrower) external onlyWarpControl angryWizard { //create local vars storage BorrowLocalVars memory vars; //Fail if protocol has insufficient underlying cash require(getCashPrior() > _borrowAmount, "Not enough tokens to lend"); //calculate the new borrower and total borrow balances, failing on overflow: vars.accountBorrows = borrowBalancePrior(_borrower); //accountBorrowsNew = accountBorrows + borrowAmount (vars.mathErr, vars.accountBorrowsNew) = addUInt( vars.accountBorrows, _borrowAmount ); //totalBorrowsNew = totalBorrows + borrowAmount (vars.mathErr, vars.totalBorrowsNew) = addUInt( totalBorrows, _borrowAmount ); //We write the previously calculated values into storage accountBorrows[_borrower].principal = vars.accountBorrowsNew; accountBorrows[_borrower].interestIndex = borrowIndex; accountBorrows[_borrower].principalLeft += _borrowAmount; totalBorrows = vars.totalBorrowsNew; //send them their loaned asset stablecoin.safeTransfer(_borrower, _borrowAmount); // mint borrow reward wbRewardCoin.mint(_borrower, _borrowAmount); } struct RepayBorrowLocalVars { MathError mathErr; uint256 repayAmount; uint256 borrowerIndex; uint256 accountBorrows; uint256 accountBorrowsNew; uint256 totalBorrowsNew; uint256 totalOwed; uint256 borrowPrinciple; uint256 interestPayed; } /** @notice Sender repays their own borrow @param _repayAmount The amount to repay */ function repayBorrow(uint256 _repayAmount) public angryWizard { //create local vars storage RepayBorrowLocalVars memory vars; //We fetch the amount the borrower owes, with accumulated interest vars.accountBorrows = borrowBalanceCurrent(msg.sender); //require the borrower cant pay more than they owe require( _repayAmount <= vars.accountBorrows, "You are trying to pay back more than you owe" ); //If repayAmount == 0, repayAmount = accountBorrows if (_repayAmount == 0) { vars.repayAmount = vars.accountBorrows; } else { vars.repayAmount = _repayAmount; } require( stablecoin.balanceOf(msg.sender) >= vars.repayAmount, "Not enough stablecoin to repay" ); //transfer the stablecoin from the borrower stablecoin.safeTransferFrom( msg.sender, address(this), vars.repayAmount ); //We calculate the new borrower and total borrow balances //accountBorrowsNew = accountBorrows - actualRepayAmount (vars.mathErr, vars.accountBorrowsNew) = subUInt( vars.accountBorrows, vars.repayAmount ); require( vars.mathErr == MathError.NO_ERROR, "Repay borrow new account balance calculation failed" ); //totalBorrowsNew = totalBorrows - actualRepayAmount (vars.mathErr, vars.totalBorrowsNew) = subUInt( totalBorrows, vars.repayAmount ); require( vars.mathErr == MathError.NO_ERROR, "Repay borrow new total balance calculation failed" ); // require user to burn his reward tokens: min(repay amount, principalLeft) uint256 rewardToBurn = accountBorrows[msg.sender].principalLeft < _repayAmount ? accountBorrows[msg.sender].principalLeft : _repayAmount; uint256 rewardWrapperBalance = wbRewardCoin.balanceOf(msg.sender); require( rewardWrapperBalance >= rewardToBurn, "You don't have enough borrower tokens to repay your loan" ); // burn users's borrower reward tokens wbRewardCoin.burn(msg.sender, rewardToBurn); /* We write the previously calculated values into storage */ totalBorrows = vars.totalBorrowsNew; accountBorrows[msg.sender].principal = vars.accountBorrowsNew; accountBorrows[msg.sender].interestIndex = borrowIndex; accountBorrows[msg.sender].principalLeft -= rewardToBurn; emit LoanRepayed( msg.sender, _repayAmount, accountBorrows[msg.sender].principal, accountBorrows[msg.sender].interestIndex ); } /** @notice repayLiquidatedLoan is a function used by the Warp Control contract to repay a loan on behalf of a liquidator @param _borrower is the address of the borrower who took out the loan @param _liquidator is the address of the account who is liquidating the loan @param _amount is the amount of StableCoin being repayed @dev this function uses the onlyWarpControl modifier which means it can only be called by the Warp Control contract **/ function _repayLiquidatedLoan( address _borrower, address _liquidator, uint256 _amount ) public onlyWarpControl angryWizard { stablecoin.safeTransferFrom(_liquidator, address(this), _amount); //calculate the fee on the principle received // uint256 fee = calculateFee(_amount); // //transfer fee amount to Warp team // totalReserves = totalReserves.add(fee); // Clear the borrowers loan accountBorrows[_borrower].principal = 0; accountBorrows[_borrower].interestIndex = 0; totalBorrows = totalBorrows.sub(_amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_InterestRate","type":"address"},{"internalType":"address","name":"_StableCoin","type":"address"},{"internalType":"address","name":"_warpControl","type":"address"},{"internalType":"address","name":"_warpTeam","type":"address"},{"internalType":"uint256","name":"_initialExchangeRate","type":"uint256"},{"internalType":"uint256","name":"_timelock","type":"uint256"},{"internalType":"uint256","name":"_reserveFactorMantissa","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"accrualBlockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"borrowIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalReserves","type":"uint256"}],"name":"InterestAccrued","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_newIRM","type":"address"}],"name":"InterestRateModelUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"InterestShortCircuit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"_repayAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"remainingPrinciple","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"remainingInterest","type":"uint256"}],"name":"LoanRepayed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_newRF","type":"uint256"}],"name":"ReserveFactorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ReserveWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_lender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountLent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountOfWarpMinted","type":"uint256"}],"name":"StableCoinLent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_lender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountWithdrawn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountOfWarpBurnt","type":"uint256"}],"name":"StableCoinWithdraw","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_newTeam","type":"address"},{"indexed":false,"internalType":"address","name":"_newControl","type":"address"}],"name":"WarpTeamChanged","type":"event"},{"inputs":[],"name":"InterestRate","outputs":[{"internalType":"contract InterestRateModel","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_borrowAmount","type":"uint256"},{"internalType":"address","name":"_borrower","type":"address"}],"name":"_borrow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_borrower","type":"address"},{"internalType":"address","name":"_liquidator","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"_repayLiquidatedLoan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountBorrows","outputs":[{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"interestIndex","type":"uint256"},{"internalType":"uint256","name":"principalLeft","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accrualBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accrueInterest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalanceCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalancePrior","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_payedAmount","type":"uint256"}],"name":"calculateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"divisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exchangeRateCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exchangeRatePrior","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCashPrior","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSCAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSCDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"historicalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"lendToWarpVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"percent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"principalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_repayAmount","type":"uint256"}],"name":"repayBorrow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveFactorMantissa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newModel","type":"address"}],"name":"setNewInterestModel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stablecoin","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeWizard","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBorrows","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBorrowsCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newReserveMantissa","type":"uint256"}],"name":"updateReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_team","type":"address"}],"name":"updateTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_warpControl","type":"address"}],"name":"updateWarpControl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"viewAccountBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"viewHistoricalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wStableCoin","outputs":[{"internalType":"contract WarpWrapperToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"warpControl","outputs":[{"internalType":"contract WarpControlI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"warpTeam","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wbRewardCoin","outputs":[{"internalType":"contract WarpWrapperToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025e5760003560e01c80638f840ddd11610146578063bd6d894d116100c3578063db006a7511610087578063db006a7514610592578063dd5a612c146105af578063e6136ab6146105b7578063e68fc0ee146105dd578063e9cbd82214610603578063f8f9da281461060b5761025e565b8063bd6d894d1461052e578063cb7b420614610536578063cd5c6f571461053e578063d40e8f4a14610546578063d62386471461058a5761025e565b8063ab292f9b1161010a578063ab292f9b1461049c578063ae9d70b0146104d2578063b1be82f1146104da578063b23f359414610500578063bbb7d489146105265761025e565b80638f840ddd1461044957806394d359901461045157806399a5d7471461046f578063a6afed951461048c578063aa5af0fd146104945761025e565b80634cf3e784116101df5780635e318e07116101a35780635e318e07146103c85780636c540baf146103e557806370ba1113146103ed57806373acee98146103f55780637746efab146103fd5780638f7bf4fd146104235761025e565b80634cf3e7841461036d5780634ee8acc01461039357806357d32b7a1461039b578063591cec86146103b85780635cf57389146103c05761025e565b80633662454d116102265780633662454d146102f657806336820e4b146103135780633b1d21a21461033957806347bd37181461034157806348dc0b6e146103495761025e565b80630e75270214610263578063173b99041461028257806317bfdfbc1461029c5780631f2dc5ef146102c2578063232d46d2146102ca575b600080fd5b6102806004803603602081101561027957600080fd5b5035610613565b005b61028a610a6c565b60408051918252519081900360200190f35b61028a600480360360208110156102b257600080fd5b50356001600160a01b0316610a72565b61028a610a8d565b610280600480360360408110156102e057600080fd5b50803590602001356001600160a01b0316610a93565b6102806004803603602081101561030c57600080fd5b5035610c4a565b61028a6004803603602081101561032957600080fd5b50356001600160a01b0316610c9c565b61028a610cae565b61028a610cbe565b610351610cc4565b604080516001600160a01b039092168252519081900360200190f35b6102806004803603602081101561038357600080fd5b50356001600160a01b0316610cd3565b610351610d54565b610280600480360360208110156103b157600080fd5b5035610d63565b610351610e9d565b610351610eac565b610280600480360360208110156103de57600080fd5b5035610ebb565b61028a610f82565b61028a610f88565b61028a610f8e565b61028a6004803603602081101561041357600080fd5b50356001600160a01b0316610f9f565b61028a6004803603602081101561043957600080fd5b50356001600160a01b0316611042565b61028a6110f7565b6104596110fd565b6040805160ff9092168252519081900360200190f35b61028a6004803603602081101561048557600080fd5b5035611173565b6102806111a4565b61028a611407565b610280600480360360608110156104b257600080fd5b506001600160a01b0381358116916020810135909116906040013561140d565b61028a61148a565b610280600480360360208110156104f057600080fd5b50356001600160a01b03166114f8565b6102806004803603602081101561051657600080fd5b50356001600160a01b0316611563565b6103516115e4565b61028a6115f3565b61028a611744565b61028a61174a565b61056c6004803603602081101561055c57600080fd5b50356001600160a01b031661178f565b60408051938452602084019290925282820152519081900360600190f35b6103516117b0565b610280600480360360208110156105a857600080fd5b50356117bf565b61028a611c08565b61028a600480360360208110156105cd57600080fd5b50356001600160a01b0316611c53565b61028a600480360360208110156105f357600080fd5b50356001600160a01b0316611d8d565b610351611d9f565b61028a611dae565b600854421161062157600080fd5b610629612685565b61063233610a72565b606082018190528211156106775760405162461bcd60e51b815260040180806020018281038252602c815260200180612778602c913960400191505060405180910390fd5b8161068b5760608101516020820152610693565b602081018290525b602080820151600a54604080516370a0823160e01b8152336004820152905192936001600160a01b03909216926370a0823192602480840193919291829003018186803b1580156106e357600080fd5b505afa1580156106f7573d6000803e3d6000fd5b505050506040513d602081101561070d57600080fd5b50511015610762576040805162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f75676820737461626c65636f696e20746f2072657061790000604482015290519081900360640190fd5b6020810151600a54610789916001600160a01b03909116903390309063ffffffff611e1216565b61079b81606001518260200151611e72565b60808301819052828260038111156107af57fe5b60038111156107ba57fe5b90525060009050815160038111156107ce57fe5b1461080a5760405162461bcd60e51b81526004018080602001828103825260338152602001806127e86033913960400191505060405180910390fd5b61081a6004548260200151611e72565b60a083018190528282600381111561082e57fe5b600381111561083957fe5b905250600090508151600381111561084d57fe5b146108895760405162461bcd60e51b815260040180806020018281038252603181526020018061281b6031913960400191505060405180910390fd5b336000908152600f602052604081206002015483116108a857826108bc565b336000908152600f60205260409020600201545b600c54604080516370a0823160e01b815233600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561090d57600080fd5b505afa158015610921573d6000803e3d6000fd5b505050506040513d602081101561093757600080fd5b505190508181101561097a5760405162461bcd60e51b815260040180806020018281038252603881526020018061284c6038913960400191505060405180910390fd5b600c5460408051632770a7eb60e21b81523360048201526024810185905290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b1580156109cd57600080fd5b505af11580156109e1573d6000803e3d6000fd5b50505060a084015160045550608080840151336000818152600f602090815260409182902084815560035460018201819055600290910180548990039055825193845290830189905282820193909352606082019290925290517f0bc102cfc64751888477c44e529873a602bf746175b1e41c6b54e45f926f90f9929181900390910190a150505050565b60015481565b6000610a7c6111a4565b610a8582610f9f565b90505b919050565b60075481565b600d546001600160a01b03163314610aaa57600080fd5b6008544211610ab857600080fd5b610ac06126d2565b82610ac9611c08565b11610b1b576040805162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f75676820746f6b656e7320746f206c656e6400000000000000604482015290519081900360640190fd5b610b2482610f9f565b60208201819052610b359084611e98565b6040830181905282826003811115610b4957fe5b6003811115610b5457fe5b8152505050610b6560045484611e98565b6060830181905282826003811115610b7957fe5b6003811115610b8457fe5b905250506040808201516001600160a01b038085166000908152600f6020529290922090815560035460018201556002018054850190556060820151600455600a54610bd89116838563ffffffff611ebe16565b600c54604080516340c10f1960e01b81526001600160a01b03858116600483015260248201879052915191909216916340c10f1991604480830192600092919082900301818387803b158015610c2d57600080fd5b505af1158015610c41573d6000803e3d6000fd5b50505050505050565b6009546001600160a01b03163314610c6157600080fd5b60018190556040805182815290517f1804cd3c6ff50c5878703b3136dbf22bce42299e390b6627af008fde9bc763ae9181900360200190a150565b60116020526000908152604090205481565b6000610cb8611c08565b90505b90565b60045481565b600e546001600160a01b031681565b600d546001600160a01b03163314610cea57600080fd5b600d54604080516001600160a01b038085168252909216602083015280517ff31f198b56fc88f5180e2da8285f8fc0e39731c96e24af25bab67838a32c5d799281900390910190a1600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031681565b610d6b6126fb565b610d736115f3565b602080830191825260408051918201905290518152610d93908390611f15565b6040830181905282826003811115610da757fe5b6003811115610db257fe5b90525050600a54610dd4906001600160a01b031633308563ffffffff611e1216565b33600081815260106020526040808220805486019055600b548482015182516340c10f1960e01b81526004810195909552602485015290516001600160a01b03909116926340c10f1992604480830193919282900301818387803b158015610e3b57600080fd5b505af1158015610e4f573d6000803e3d6000fd5b5050506040808301518151338152602081018690528083019190915290517fac45f50416433593e7c9a1f3e0d5f887c530c22d776e1057ecaacb750d24b94092509081900360600190a15050565b600a546001600160a01b031690565b6009546001600160a01b031681565b6009546001600160a01b03163314610ed257600080fd5b806005541015610f135760405162461bcd60e51b81526004018080602001828103825260238152602001806127a46023913960400191505060405180910390fd5b600554610f26908263ffffffff611f6816565b600555600954600a54610f4c916001600160a01b0391821691168363ffffffff611ebe16565b6040805182815290517f2b33eb7f7ae0d9bb1596ccbff4b5ed6460dd64eb6bef0c24870065aa469bbb749181900360200190a150565b60025481565b60065481565b6000610f986111a4565b5060045490565b6001600160a01b0381166000908152600f60205260408120805482918291829190610fd1576000945050505050610a88565b610fe18160000154600354611fb3565b90945092506000846003811115610ff457fe5b14611006576000945050505050610a88565b611014838260010154611ff2565b9094509150600084600381111561102757fe5b14611039576000945050505050610a88565b50949350505050565b60008061104d61174a565b600b54604080516370a0823160e01b81526001600160a01b038781166004830152915193945060009391909216916370a08231916024808301926020929190829003018186803b1580156110a057600080fd5b505afa1580156110b4573d6000803e3d6000fd5b505050506040513d60208110156110ca57600080fd5b5051604080516020810190915283815290915060009081906110ec908461201d565b979650505050505050565b60055481565b600a546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561114257600080fd5b505afa158015611156573d6000803e3d6000fd5b505050506040513d602081101561116c57600080fd5b5051905090565b60008061119d6007546111916006548661203490919063ffffffff16565b9063ffffffff61208d16565b9392505050565b60006111ae6120cf565b600254909150808214156111f6576040805183815290517fe307fb74a265b8255fabc1154131917ce875f96118a807f88eda1e751722538d9181900360200190a15050611405565b6000611200611c08565b60048054600554600354600e54604080516315f2405360e01b81529586018790526024860185905260448601849052519596509294919390926000926001600160a01b03909116916315f24053916064808301926020929190829003018186803b15801561126d57600080fd5b505afa158015611281573d6000803e3d6000fd5b505050506040513d602081101561129757600080fd5b5051905065048c273950008111156112f6576040805162461bcd60e51b815260206004820152601a60248201527f426f72726f772052617465206d616e7469737361206572726f72000000000000604482015290519081900360640190fd5b6000806113038989611e72565b9150915061130f612726565b60008060008061132d60405180602001604052808a815250876120d3565b909750945061133c858c61201d565b909750935061134b848c611e98565b60408051602081019091526001548152919850935061136b90858c61213b565b909750915061137b858a8061213b565b80925081985050508d6002819055508060038190555082600481905550816005819055507fe3972ae250606e82c6683843383cb8a51755588d2f443af42e8cb5b1e085392d6002546003546004546005546040518085815260200184815260200183815260200182815260200194505050505060405180910390a150505050505050505050505050505b565b60035481565b600d546001600160a01b0316331461142457600080fd5b600854421161143257600080fd5b600a54611450906001600160a01b031683308463ffffffff611e1216565b6001600160a01b0383166000908152600f6020526040812081815560010155600454611482908263ffffffff611f6816565b600455505050565b600e546000906001600160a01b031663b81688166114a6611c08565b6004546005546001546040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b15801561114257600080fd5b600d546001600160a01b0316331461150f57600080fd5b600e80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f7d15df4d1352c1d406124f1da1c26fb576738b2a62fb49aad60d454485c6afb29181900360200190a150565b600d546001600160a01b0316331461157a57600080fd5b600954604080516001600160a01b038085168252909216602083015280517fe1ad690b4e5d7c6172f2c241aa6998a8ebcb0392e02cdf10105a33b3955538b49281900390910190a1600980546001600160a01b0319166001600160a01b0392909216919091179055565b600d546001600160a01b031681565b60006115fd6111a4565b600b60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561164b57600080fd5b505afa15801561165f573d6000803e3d6000fd5b505050506040513d602081101561167557600080fd5b50516116845750600054610cbb565b600061168e611c08565b9050600061169a612726565b60006116ab84600454600554612197565b809450819250505061173683600b60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561170557600080fd5b505afa158015611719573d6000803e3d6000fd5b505050506040513d602081101561172f57600080fd5b50516121d5565b519550610cbb945050505050565b60085481565b600b54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561164b57600080fd5b600f6020526000908152604090208054600182015460029092015490919083565b600c546001600160a01b031681565b6117c7612739565b600b54604080516370a0823160e01b815233600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561181257600080fd5b505afa158015611826573d6000803e3d6000fd5b505050506040513d602081101561183c57600080fd5b5051606082015261184b6115f3565b602080830191825260408051918201905290518152606082015161186f919061201d565b608083018190528282600381111561188357fe5b600381111561188e57fe5b90525050816118a657608081015160c08201526118ae565b60c081018290525b6118ce8160c0015160405180602001604052808460200151815250611f15565b60408301819052828260038111156118e257fe5b60038111156118ed57fe5b9052505060c0810151600a54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561194157600080fd5b505afa158015611955573d6000803e3d6000fd5b505050506040513d602081101561196b57600080fd5b505110156119c0576040805162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f75676820737461626c65636f696e20696e207661756c742e00604482015290519081900360640190fd5b3360009081526010602052604081205460808301511115611a02573360009081526010602052604090205460808301516119ff9163ffffffff611f6816565b90505b60c0820151611a17908263ffffffff611f6816565b60a083015260c08201518111611af45733600090815260116020526040902054611a47908263ffffffff61228616565b3360009081526011602090815260408083209390935560109052205460a08301511115611abb576040805162461bcd60e51b815260206004820152601960248201527f4572726f722063616c63756c6174696e67207265776172642e00000000000000604482015290519081900360640190fd5b60a082015133600090815260106020526040902054611adf9163ffffffff611f6816565b33600090815260106020526040902055611b29565b60c082015133600090815260116020526040902054611b189163ffffffff61228616565b336000908152601160205260409020555b600b546040808401518151632770a7eb60e21b8152336004820152602481019190915290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b158015611b8157600080fd5b505af1158015611b95573d6000803e3d6000fd5b50505060c0830151600a54611bbc92506001600160a01b031690339063ffffffff611ebe16565b60c08201516040808401518151338152602081019390935282820152517f01fee552fc58f62ae566675c42acc86f4aeaf48d6a4e21385c0e23bd551ecd129181900360600190a1505050565b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561114257600080fd5b600080611c5e61174a565b600b54604080516370a0823160e01b81526001600160a01b038781166004830152915193945060009391909216916370a08231916024808301926020929190829003018186803b158015611cb157600080fd5b505afa158015611cc5573d6000803e3d6000fd5b505050506040513d6020811015611cdb57600080fd5b50516001600160a01b03851660009081526010602052604090205490915081611d2057505050506001600160a01b038116600090815260116020526040902054610a88565b600080611d3b6040518060200160405280878152508561201d565b90925090506000611d52828563ffffffff611f6816565b6001600160a01b03891660009081526011602052604081205491925090611d8090839063ffffffff61228616565b9998505050505050505050565b60106020526000908152604090205481565b600a546001600160a01b031681565b600e546000906001600160a01b03166315f24053611dca611c08565b6004546005546040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b15801561114257600080fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611e6c9085906122e0565b50505050565b600080838311611e89575060009050818303611e91565b506003905060005b9250929050565b600080838301848110611eb057600092509050611e91565b506002915060009050611e91565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611f109084906122e0565b505050565b6000806000611f22612726565b611f2c8686612391565b90925090506000826003811115611f3f57fe5b14611f505750915060009050611e91565b6000611f5b826123f0565b9350935050509250929050565b6000611faa83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506123ff565b90505b92915050565b60008083611fc657506000905080611e91565b83830283858281611fd357fe5b0414611fe757506002915060009050611e91565b600092509050611e91565b600080826120065750600190506000611e91565b600083858161201157fe5b04915091509250929050565b600080600061202a612726565b611f2c86866120d3565b60008261204357506000611fad565b8282028284828161205057fe5b0414611faa5760405162461bcd60e51b81526004018080602001828103825260218152602001806127c76021913960400191505060405180910390fd5b6000611faa83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612496565b4390565b60006120dd612726565b6000806120ee866000015186611fb3565b9092509050600082600381111561210157fe5b1461212057506040805160208101909152600081529092509050611e91565b60408051602081019091529081526000969095509350505050565b6000806000612148612726565b61215287876120d3565b9092509050600082600381111561216557fe5b14612176575091506000905061218f565b612188612182826123f0565b86611e98565b9350935050505b935093915050565b6000806000806121a78787611e98565b909250905060008260038111156121ba57fe5b146121cb575091506000905061218f565b6121888186611e72565b60006121df612726565b6000806121f486670de0b6b3a7640000611fb3565b9092509050600082600381111561220757fe5b1461222657506040805160208101909152600081529092509050611e91565b6000806122338388611ff2565b9092509050600082600381111561224657fe5b146122695781604051806020016040528060008152509550955050505050611e91565b604080516020810190915290815260009890975095505050505050565b600082820183811015611faa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6060612335826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124fb9092919063ffffffff16565b805190915015611f105780806020019051602081101561235457600080fd5b5051611f105760405162461bcd60e51b815260040180806020018281038252602a815260200180612884602a913960400191505060405180910390fd5b600061239b612726565b6000806123b0670de0b6b3a764000087611fb3565b909250905060008260038111156123c357fe5b146123e257506040805160208101909152600081529092509050611e91565b611f5b8186600001516121d5565b51670de0b6b3a7640000900490565b6000818484111561248e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561245357818101518382015260200161243b565b50505050905090810190601f1680156124805780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836124e55760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561245357818101518382015260200161243b565b5060008385816124f157fe5b0495945050505050565b606061250a8484600085612512565b949350505050565b606061251d8561267f565b61256e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106125ad5780518252601f19909201916020918201910161258e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461260f576040519150601f19603f3d011682016040523d82523d6000602084013e612614565b606091505b5091509150811561262857915061250a9050565b8051156126385780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561245357818101518382015260200161243b565b3b151590565b604080516101208101909152806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b6040805160808101909152806000815260200160008152602001600081526020016000151581525090565b6040518060200160405280600081525090565b6040805160e081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152509056fe596f752061726520747279696e6720746f20706179206261636b206d6f7265207468616e20796f75206f7765596f752061726520747279696e6720746f20776974686472617720746f6f206d756368536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77526570617920626f72726f77206e6577206163636f756e742062616c616e63652063616c63756c6174696f6e206661696c6564526570617920626f72726f77206e657720746f74616c2062616c616e63652063616c63756c6174696f6e206661696c6564596f7520646f6e2774206861766520656e6f75676820626f72726f77657220746f6b656e7320746f20726570617920796f7572206c6f616e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c4731a8592df0b0d4769a4e9559b175b761f52fc4cea769ff4774c2b89f6b87a64736f6c63430006060033
Deployed Bytecode Sourcemap
53397:29532:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;53397:29532:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;78854:2949:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;78854:2949:0;;:::i;:::-;;53558:36;;;:::i;:::-;;;;;;;;;;;;;;;;66481:152;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;66481:152:0;-1:-1:-1;;;;;66481:152:0;;:::i;53845:30::-;;;:::i;77024:1385::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;77024:1385:0;;;;;;-1:-1:-1;;;;;77024:1385:0;;:::i;61353:191::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;61353:191:0;;:::i;54266:51::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;54266:51:0;-1:-1:-1;;;;;54266:51:0;;:::i;70557:91::-;;;:::i;53674:27::-;;;:::i;54099:37::-;;;:::i;:::-;;;;-1:-1:-1;;;;;54099:37:0;;;;;;;;;;;;;;59130:201;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;59130:201:0;-1:-1:-1;;;;;59130:201:0;;:::i;53976:35::-;;;:::i;71108:916::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;71108:916:0;;:::i;58824:99::-;;;:::i;53914:23::-;;;:::i;60377:333::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;60377:333:0;;:::i;53601:33::-;;;:::i;53809:29::-;;;:::i;67820:123::-;;;:::i;64911:1288::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;64911:1288:0;-1:-1:-1;;;;;64911:1288:0;;:::i;75166:456::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;75166:456:0;-1:-1:-1;;;;;75166:456:0;;:::i;53708:28::-;;;:::i;58609:100::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;59945:166;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;59945:166:0;;:::i;61785:2880::-;;;:::i;53641:26::-;;;:::i;82292:634::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;82292:634:0;;;;;;;;;;;;;;;;;:::i;67401:276::-;;;:::i;60999:183::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;60999:183:0;-1:-1:-1;;;;;60999:183:0;;:::i;59339:141::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;59339:141:0;-1:-1:-1;;;;;59339:141:0;;:::i;54061:31::-;;;:::i;69288:1086::-;;;:::i;53882:25::-;;;:::i;68076:1060::-;;;:::i;54145:56::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;54145:56:0;-1:-1:-1;;;;;54145:56:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;54018:36;;;:::i;72523:2470::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;72523:2470:0;;:::i;59620:115::-;;;:::i;75792:812::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;75792:812:0;-1:-1:-1;;;;;75792:812:0;;:::i;54208:51::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;54208:51:0;-1:-1:-1;;;;;54208:51:0;;:::i;53946:23::-;;;:::i;66995:236::-;;;:::i;78854:2949::-;56004:10;;55998:3;:16;55990:25;;12:1:-1;9;2:12;55990:25:0;78964:32:::1;;:::i;:::-;79107;79128:10;79107:20;:32::i;:::-;79085:19;::::0;::::1;:54:::0;;;79242:35;::::1;;79220:129;;;;-1:-1:-1::0;;;79220:129:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79427:17:::0;79423:152:::1;;79480:19;::::0;::::1;::::0;79461:16:::1;::::0;::::1;:38:::0;79423:152:::1;;;79532:16;::::0;::::1;:31:::0;;;79423:152:::1;79645:16;::::0;;::::1;::::0;79609:10:::1;::::0;:32:::1;::::0;;-1:-1:-1;;;79609:32:0;;79630:10:::1;79609:32;::::0;::::1;::::0;;;79645:16;;-1:-1:-1;;;;;79609:10:0;;::::1;::::0;:20:::1;::::0;:32;;;;;79645:16;;79609:32;;;;;;:10;:32;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;79609:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;79609:32:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;79609:32:0;:52:::1;;79587:132;;;::::0;;-1:-1:-1;;;79587:132:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;79878:16;::::0;::::1;::::0;79783:10:::1;::::0;:122:::1;::::0;-1:-1:-1;;;;;79783:10:0;;::::1;::::0;79825::::1;::::0;79858:4:::1;::::0;79783:122:::1;:27;:122;:::i;:::-;80092:83;80114:4;:19;;;80148:4;:16;;;80092:7;:83::i;:::-;80066:22;::::0;::::1;80051:124:::0;;;80052:4;80051:124;::::1;::::0;::::1;;;;;;;;;;;;;;::::0;;-1:-1:-1;80224:18:0::1;::::0;-1:-1:-1;80208:12:0;;:34:::1;::::0;::::1;;;;;;;80186:135;;;;-1:-1:-1::0;;;80186:135:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80435:76;80457:12;;80484:4;:16;;;80435:7;:76::i;:::-;80411:20;::::0;::::1;80396:115:::0;;;80397:4;80396:115;::::1;::::0;::::1;;;;;;;;;;;;;;::::0;;-1:-1:-1;80560:18:0::1;::::0;-1:-1:-1;80544:12:0;;:34:::1;::::0;::::1;;;;;;;80522:133;;;;-1:-1:-1::0;;;80522:133:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80808:10;80757:20;80793:26:::0;;;:14:::1;:26;::::0;;;;:40:::1;;::::0;:55;-1:-1:-1;80793:147:0::1;;80928:12;80793:147;;;80883:10;80868:26;::::0;;;:14:::1;:26;::::0;;;;:40:::1;;::::0;80793:147:::1;80984:12;::::0;:34:::1;::::0;;-1:-1:-1;;;80984:34:0;;81007:10:::1;80984:34;::::0;::::1;::::0;;;80757:183;;-1:-1:-1;80953:28:0::1;::::0;-1:-1:-1;;;;;80984:12:0;;::::1;::::0;:22:::1;::::0;:34;;;;;::::1;::::0;;;;;;;;;:12;:34;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;80984:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;80984:34:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;80984:34:0;;-1:-1:-1;81051:36:0;;::::1;;81029:142;;;;-1:-1:-1::0;;;81029:142:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81232:12;::::0;:43:::1;::::0;;-1:-1:-1;;;81232:43:0;;81250:10:::1;81232:43;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;81232:12:0;;::::1;::::0;:17:::1;::::0;:43;;;;;:12:::1;::::0;:43;;;;;;;;:12;;:43;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;81232:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;-1:-1:::0;;;81373:20:0::1;::::0;::::1;::::0;81358:12:::1;:35:::0;-1:-1:-1;81443:22:0::1;::::0;;::::1;::::0;81419:10:::1;81404:26;::::0;;;:14:::1;:26;::::0;;;;;;;;:61;;;81519:11:::1;::::0;81476:40:::1;::::0;::::1;:54:::0;;;81541:40:::1;::::0;;::::1;:56:::0;;;;::::1;::::0;;81615:180;;;;;;;::::1;::::0;;;;;;;;;;;;;;;;;;;::::1;::::0;;;;;;;;;::::1;56026:1;;;78854:2949:::0;:::o;53558:36::-;;;;:::o;66481:152::-;66544:7;66564:16;:14;:16::i;:::-;66598:27;66617:7;66598:18;:27::i;:::-;66591:34;;66481:152;;;;:::o;53845:30::-;;;;:::o;77024:1385::-;55823:11;;-1:-1:-1;;;;;55823:11:0;55801:10;:34;55793:43;;12:1:-1;9;2:12;55793:43:0;56004:10:::1;;55998:3;:16;55990:25;;12:1:-1;9::::0;2:12:::1;55990:25:0;77200:27:::2;;:::i;:::-;77326:13;77309:14;:12;:14::i;:::-;:30;77301:68;;;::::0;;-1:-1:-1;;;77301:68:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;77490:29;77509:9;77490:18;:29::i;:::-;77468:19;::::0;::::2;:51:::0;;;77634:80:::2;::::0;77690:13;77634:7:::2;:80::i;:::-;77608:22;::::0;::::2;77593:121:::0;;;77594:4;77593:121;::::2;::::0;::::2;;;;;;;;;;;;;;;;::::0;::::2;;77823:73;77845:12;;77872:13;77823:7;:73::i;:::-;77799:20;::::0;::::2;77784:112:::0;;;77785:4;77784:112;::::2;::::0;::::2;;;;;;;;;;;;;;::::0;;-1:-1:-1;;78013:22:0::2;::::0;;::::2;::::0;-1:-1:-1;;;;;77975:25:0;;::::2;;::::0;;;:14:::2;:25;::::0;;;;;:60;;;78088:11:::2;::::0;78046:39:::2;::::0;::::2;:53:::0;78110:39:::2;;:56:::0;;;::::2;::::0;;78192:20:::2;::::0;::::2;::::0;78177:12:::2;:35:::0;78265:10:::2;::::0;:49:::2;::::0;:10:::2;77990:9:::0;78153:13;78265:49:::2;:23;:49;:::i;:::-;78358:12;::::0;:43:::2;::::0;;-1:-1:-1;;;78358:43:0;;-1:-1:-1;;;;;78358:43:0;;::::2;;::::0;::::2;::::0;;;;;;;;;:12;;;::::2;::::0;:17:::2;::::0;:43;;;;;:12:::2;::::0;:43;;;;;;;:12;;:43;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;78358:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;78358:43:0;;;;56026:1;77024:1385:::0;;:::o;61353:191::-;56187:8;;-1:-1:-1;;;;;56187:8:0;56173:10;:22;56165:31;;12:1:-1;9;2:12;56165:31:0;61436:21:::1;:43:::0;;;61495:41:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;61353:191:::0;:::o;54266:51::-;;;;;;;;;;;;;:::o;70557:91::-;70599:7;70626:14;:12;:14::i;:::-;70619:21;;70557:91;;:::o;53674:27::-;;;;:::o;54099:37::-;;;-1:-1:-1;;;;;54099:37:0;;:::o;59130:201::-;55823:11;;-1:-1:-1;;;;;55823:11:0;55801:10;:34;55793:43;;12:1:-1;9;2:12;55793:43:0;59259:11:::1;::::0;59218:54:::1;::::0;;-1:-1:-1;;;;;59218:54:0;;::::1;::::0;;59259:11;;::::1;59218:54;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;59283:11;:40:::0;;-1:-1:-1;;;;;;59283:40:0::1;-1:-1:-1::0;;;;;59283:40:0;;;::::1;::::0;;;::::1;::::0;;59130:201::o;53976:35::-;;;-1:-1:-1;;;;;53976:35:0;;:::o;71108:916::-;71194:25;;:::i;:::-;71292:21;:19;:21::i;:::-;71264:25;;;;:49;;;71567:42;;;;;;;;71582:25;;71567:42;;71508:112;;71545:7;;71508:22;:112::i;:::-;71489:15;;;71474:146;;;71475:4;71474:146;;;;;;;;;;;;;;;;;;;-1:-1:-1;;71708:10:0;;:63;;-1:-1:-1;;;;;71708:10:0;71736;71756:4;71763:7;71708:63;:27;:63;:::i;:::-;71832:10;71815:28;;;;:16;:28;;;;;;;;:38;;71784:69;;71903:11;;71932:15;;;;71903:45;;-1:-1:-1;;;71903:45:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;71903:11:0;;;;:16;;:45;;;;;71815:28;;71903:45;;;;;71815:28;71903:11;:45;;;2:2:-1;;;;27:1;24;17:12;2:2;71903:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;72000:15:0;;;;;71964:52;;71979:10;71964:52;;;;;;;;;;;;;;;;;;;-1:-1:-1;71964:52:0;;;;;;;;71108:916;;:::o;58824:99::-;58904:10;;-1:-1:-1;;;;;58904:10:0;58824:99;:::o;53914:23::-;;;-1:-1:-1;;;;;53914:23:0;;:::o;60377:333::-;56187:8;;-1:-1:-1;;;;;56187:8:0;56173:10;:22;56165:31;;12:1:-1;9;2:12;56165:31:0;60486:7:::1;60469:13;;:24;;60447:109;;;;-1:-1:-1::0;;;60447:109:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60583:13;::::0;:26:::1;::::0;60601:7;60583:26:::1;:17;:26;:::i;:::-;60567:13;:42:::0;60644:8:::1;::::0;60620:10:::1;::::0;:42:::1;::::0;-1:-1:-1;;;;;60620:10:0;;::::1;::::0;60644:8:::1;60654:7:::0;60620:42:::1;:23;:42;:::i;:::-;60678:24;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;60377:333:::0;:::o;53601:33::-;;;;:::o;53809:29::-;;;;:::o;67820:123::-;67869:7;67889:16;:14;:16::i;:::-;-1:-1:-1;67923:12:0;;67820:123;:::o;64911:1288::-;-1:-1:-1;;;;;65175:23:0;;64977:7;65175:23;;;:14;:23;;;;;65387:24;;64977:7;;;;;;65175:23;65383:72;;65441:1;65433:10;;;;;;;;65383:72;65664:83;65686:14;:24;;;65725:11;;65664:7;:83::i;:::-;65631:116;;-1:-1:-1;65631:116:0;-1:-1:-1;65837:18:0;65826:7;:29;;;;;;;;;65822:72;;65880:1;65872:10;;;;;;;;65822:72;65924:95;65946:19;65980:14;:28;;;65924:7;:95::i;:::-;65904:115;;-1:-1:-1;65904:115:0;-1:-1:-1;66109:18:0;66098:7;:29;;;;;;;;;66094:72;;66152:1;66144:10;;;;;;;;66094:72;-1:-1:-1;66184:6:0;64911:1288;-1:-1:-1;;;;64911:1288:0:o;75166:456::-;75260:7;75285:20;75308:19;:17;:19::i;:::-;75363:11;;:31;;;-1:-1:-1;;;75363:31:0;;-1:-1:-1;;;;;75363:31:0;;;;;;;;;75285:42;;-1:-1:-1;75338:22:0;;75363:11;;;;;:21;;:31;;;;;;;;;;;;;;:11;:31;;;2:2:-1;;;;27:1;24;17:12;2:2;75363:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;75363:31:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;75363:31:0;75518:29;;;75363:31;75518:29;;;;;;;;75363:31;;-1:-1:-1;75407:19:0;;;;75486:101;;75363:31;75486:17;:101::i;:::-;75463:124;75166:456;-1:-1:-1;;;;;;;75166:456:0:o;53708:28::-;;;;:::o;58609:100::-;58680:10;;:21;;;-1:-1:-1;;;58680:21:0;;;;58655:5;;-1:-1:-1;;;;;58680:10:0;;:19;;:21;;;;;;;;;;;;;;:10;:21;;;2:2:-1;;;;27:1;24;17:12;2:2;58680:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;58680:21:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;58680:21:0;;-1:-1:-1;58609:100:0;:::o;59945:166::-;60010:7;60030:11;60044:38;60074:7;;60044:25;60061:7;;60044:12;:16;;:25;;;;:::i;:::-;:29;:38;:29;:38;:::i;:::-;60030:52;59945:166;-1:-1:-1;;;59945:166:0:o;61785:2880::-;61874:26;61903:16;:14;:16::i;:::-;61964:18;;61874:45;;-1:-1:-1;62048:45:0;;;62044:144;;;62115:40;;;;;;;;;;;;;;;;;62170:7;;;;62044:144;62251:17;62271:14;:12;:14::i;:::-;62319:12;;;62366:13;;62417:11;;62535:12;;:66;;;-1:-1:-1;;;62535:66:0;;;;;;;;;;;;;;;;;;;;;62251:34;;-1:-1:-1;62319:12:0;;62366:13;;62417:11;;62296:20;;-1:-1:-1;;;;;62535:12:0;;;;:26;;:66;;;;;;;;;;;;;;:12;:66;;;2:2:-1;;;;27:1;24;17:12;2:2;62535:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;62535:66:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;62535:66:0;;-1:-1:-1;53793:9:0;62634:43;;;62612:119;;;;;-1:-1:-1;;;62612:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;62816:17;62835:18;62870:52;62878:18;62898:23;62870:7;:52::i;:::-;62815:107;;;;63024:31;;:::i;:::-;63066:27;63104:23;63138:24;63173:22;63298:95;63322:35;;;;;;;;63337:18;63322:35;;;63372:10;63298:9;:95::i;:::-;63264:129;;-1:-1:-1;63264:129:0;-1:-1:-1;63506:90:0;63264:129;63573:12;63506:17;:90::i;:::-;63473:123;;-1:-1:-1;63473:123:0;-1:-1:-1;63700:42:0;63473:123;63729:12;63700:7;:42::i;:::-;63904:38;;;;;;;;;63919:21;;63904:38;;63671:71;;-1:-1:-1;63671:71:0;-1:-1:-1;63865:150:0;;63957:19;63991:13;63865:24;:150::i;:::-;63835:180;;-1:-1:-1;63835:180:0;-1:-1:-1;64131:132:0;64170:20;64205:16;;64131:24;:132::i;:::-;64103:160;;;;;;;;64360:18;64339;:39;;;;64403:14;64389:11;:28;;;;64443:15;64428:12;:30;;;;64485:16;64469:13;:32;;;;64517:140;64547:18;;64580:11;;64606:12;;64633:13;;64517:140;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61785:2880;;;;;;;;;;;;;;;:::o;53641:26::-;;;;:::o;82292:634::-;55823:11;;-1:-1:-1;;;;;55823:11:0;55801:10;:34;55793:43;;12:1:-1;9;2:12;55793:43:0;56004:10:::1;;55998:3;:16;55990:25;;12:1:-1;9::::0;2:12:::1;55990:25:0;82459:10:::2;::::0;:64:::2;::::0;-1:-1:-1;;;;;82459:10:0::2;82487:11:::0;82508:4:::2;82515:7:::0;82459:64:::2;:27;:64;:::i;:::-;-1:-1:-1::0;;;;;82774:25:0;::::2;82812:1;82774:25:::0;;;:14:::2;:25;::::0;;;;:39;;;82824::::2;;:43:::0;82893:12:::2;::::0;:25:::2;::::0;82910:7;82893:25:::2;:16;:25;:::i;:::-;82878:12;:40:::0;-1:-1:-1;;;82292:634:0:o;67401:276::-;67492:12;;67452:7;;-1:-1:-1;;;;;67492:12:0;:26;67537:14;:12;:14::i;:::-;67570:12;;67601:13;;67633:21;;67492:177;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;60999:183:0;55823:11;;-1:-1:-1;;;;;55823:11:0;55801:10;:34;55793:43;;12:1:-1;9;2:12;55793:43:0;61081:12:::1;:43:::0;;-1:-1:-1;;;;;61081:43:0;::::1;-1:-1:-1::0;;;;;;61081:43:0;;::::1;::::0;::::1;::::0;;;61140:34:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;60999:183:::0;:::o;59339:141::-;55823:11;;-1:-1:-1;;;;;55823:11:0;55801:10;:34;55793:43;;12:1:-1;9;2:12;55793:43:0;59436:8:::1;::::0;59413:32:::1;::::0;;-1:-1:-1;;;;;59413:32:0;;::::1;::::0;;59436:8;;::::1;59413:32;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;59456:8;:16:::0;;-1:-1:-1;;;;;;59456:16:0::1;-1:-1:-1::0;;;;;59456:16:0;;;::::1;::::0;;;::::1;::::0;;59339:141::o;54061:31::-;;;-1:-1:-1;;;;;54061:31:0;;:::o;69288:1086::-;69335:7;69355:16;:14;:16::i;:::-;69388:11;;;;;;;;;-1:-1:-1;;;;;69388:11:0;-1:-1:-1;;;;;69388:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;69388:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69388:25:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;69388:25:0;69384:983;;-1:-1:-1;69523:27:0;;69516:34;;69384:983;69681:17;69701:14;:12;:14::i;:::-;69681:34;;69759:36;69810:23;;:::i;:::-;69848:17;69998:120;70031:9;70059:12;;70090:13;;69998:14;:120::i;:::-;69956:162;;;;;;;;70198:112;70223:28;70270:11;;;;;;;;;-1:-1:-1;;;;;70270:11:0;-1:-1:-1;;;;;70270:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;70270:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70270:25:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;70270:25:0;70198:6;:112::i;:::-;70333:21;;-1:-1:-1;70325:30:0;;-1:-1:-1;;;;;70325:30:0;53882:25;;;;:::o;68076:1060::-;68150:11;;:25;;;-1:-1:-1;;;68150:25:0;;;;68126:7;;-1:-1:-1;;;;;68150:11:0;;:23;;:25;;;;;;;;;;;;;;:11;:25;;;2:2:-1;;;;27:1;24;17:12;54145:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;54018:36::-;;;-1:-1:-1;;;;;54018:36:0;;:::o;72523:2470::-;72574:27;;:::i;:::-;72697:11;;:33;;;-1:-1:-1;;;72697:33:0;;72719:10;72697:33;;;;;;-1:-1:-1;;;;;72697:11:0;;;;:21;;:33;;;;;;;;;;;;;;;:11;:33;;;2:2:-1;;;;27:1;24;17:12;2:2;72697:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;72697:33:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;72697:33:0;72671:23;;;:59;72811:21;:19;:21::i;:::-;72783:25;;;;:49;;;72919:42;;;;;;;;72934:25;;72919:42;;72976:23;;;;72887:123;;72919:42;72887:17;:123::i;:::-;72860:23;;;72845:165;;;72846:4;72845:165;;;;;;;;;;;;;;;;;;;-1:-1:-1;;73025:12:0;73021:136;;73068:23;;;;73054:11;;;:37;73021:136;;;73124:11;;;:21;;;73021:136;73351:116;73388:4;:11;;;73414:42;;;;;;;;73429:4;:25;;;73414:42;;;73351:22;:116::i;:::-;73332:15;;;73317:150;;;73318:4;73317:150;;;;;;;;;;;;;;;;;;;-1:-1:-1;;73590:11:0;;;;73551:10;;:35;;;-1:-1:-1;;;73551:35:0;;73580:4;73551:35;;;;;;-1:-1:-1;;;;;73551:10:0;;;;:20;;:35;;;;;;;;;;;;;;;:10;:35;;;2:2:-1;;;;27:1;24;17:12;2:2;73551:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73551:35:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;73551:35:0;:50;;73529:131;;;;;-1:-1:-1;;;73529:131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;73889:10;73796:31;73872:28;;;:16;:28;;;;;;73846:23;;;;:54;73842:202;;;74006:10;73989:28;;;;:16;:28;;;;;;73943:23;;;;:89;;;:27;:89;:::i;:::-;73917:115;;73842:202;74079:11;;;;:40;;74095:23;74079:40;:15;:40;:::i;:::-;74054:22;;;:65;74136:11;;;;:38;-1:-1:-1;74132:622:0;;74239:10;74222:28;;;;:16;:28;;;;;;:89;;74273:23;74222:89;:32;:89;:::i;:::-;74208:10;74191:28;;;;:16;:28;;;;;;;;:120;;;;74378:16;:28;;;;74352:22;;;;:54;;74326:141;;;;;-1:-1:-1;;;74326:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;74564:22;;;;74530:10;74513:28;;;;:16;:28;;;;;;:88;;;:32;:88;:::i;:::-;74499:10;74482:28;;;;:16;:28;;;;;:119;74132:622;;;74716:11;;;;74682:10;74665:28;;;;:16;:28;;;;;;:77;;;:32;:77;:::i;:::-;74651:10;74634:28;;;;:16;:28;;;;;:108;74132:622;74803:11;;74832:15;;;;;74803:45;;-1:-1:-1;;;74803:45:0;;74820:10;74803:45;;;;;;;;;;;;;-1:-1:-1;;;;;74803:11:0;;;;:16;;:45;;;;;:11;;:45;;;;;;;;:11;;:45;;;2:2:-1;;;;27:1;24;17:12;2:2;74803:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;74897:11:0;;;;74861:10;;:48;;-1:-1:-1;;;;;;74861:10:0;;74885;;74861:48;:23;:48;:::i;:::-;74956:11;;;;74969:15;;;;;74925:60;;74944:10;74925:60;;;;;;;;;;;;;;;;;;;;;;;72523:2470;;;:::o;59620:115::-;59692:10;;:35;;;-1:-1:-1;;;59692:35:0;;59721:4;59692:35;;;;;;59665:7;;-1:-1:-1;;;;;59692:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;2:2:-1;;;;27:1;24;17:12;75792:812:0;75888:7;75913:20;75936:19;:17;:19::i;:::-;75995:11;;:31;;;-1:-1:-1;;;75995:31:0;;-1:-1:-1;;;;;75995:31:0;;;;;;;;;75913:42;;-1:-1:-1;75966:26:0;;75995:11;;;;;:21;;:31;;;;;;;;;;;;;;:11;:31;;;2:2:-1;;;;27:1;24;17:12;2:2;75995:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;75995:31:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;75995:31:0;-1:-1:-1;;;;;76057:26:0;;76037:17;76057:26;;;:16;75995:31;76057:26;;;;;75995:31;;-1:-1:-1;76100:23:0;76096:89;;-1:-1:-1;;;;;;;;;76147:26:0;;;;;;:16;:26;;;;;;76140:33;;76096:89;76197:19;76227:32;76310:105;76342:29;;;;;;;;76357:12;76342:29;;;76386:18;76310:17;:105::i;:::-;76270:145;;-1:-1:-1;76270:145:0;-1:-1:-1;76428:20:0;76451:39;76270:145;76480:9;76451:39;:28;:39;:::i;:::-;-1:-1:-1;;;;;76539:26:0;;76501:18;76539:26;;;:16;:26;;;;;;76428:62;;-1:-1:-1;76501:18:0;76522:44;;76428:62;;76522:44;:16;:44;:::i;:::-;76501:65;75792:812;-1:-1:-1;;;;;;;;;75792:812:0:o;54208:51::-;;;;;;;;;;;;;:::o;53946:23::-;;;-1:-1:-1;;;;;53946:23:0;;:::o;66995:236::-;67086:12;;67046:7;;-1:-1:-1;;;;;67086:12:0;:26;67131:14;:12;:14::i;:::-;67164:12;;67195:13;;67086:137;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;29680:205:0;29808:68;;;-1:-1:-1;;;;;29808:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;29808:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;29781:96:0;;29801:5;;29781:19;:96::i;:::-;29680:205;;;;:::o;33847:236::-;33903:9;33914:4;33940:1;33935;:6;33931:145;;-1:-1:-1;33966:18:0;;-1:-1:-1;33986:5:0;;;33958:34;;33931:145;-1:-1:-1;34033:27:0;;-1:-1:-1;34062:1:0;33931:145;33847:236;;;;;:::o;34168:258::-;34224:9;;34261:5;;;34283:6;;;34279:140;;34314:18;;-1:-1:-1;34334:1:0;-1:-1:-1;34306:30:0;;34279:140;-1:-1:-1;34377:26:0;;-1:-1:-1;34405:1:0;;-1:-1:-1;34369:38:0;;29495:177;29605:58;;;-1:-1:-1;;;;;29605:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;29605:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;29578:86:0;;29598:5;;29578:19;:86::i;:::-;29495:177;;;:::o;39451:337::-;39539:9;39550:4;39568:13;39583:19;;:::i;:::-;39606:31;39621:6;39629:7;39606:14;:31::i;:::-;39567:70;;-1:-1:-1;39567:70:0;-1:-1:-1;39659:18:0;39652:3;:25;;;;;;;;;39648:73;;-1:-1:-1;39702:3:0;-1:-1:-1;39707:1:0;;-1:-1:-1;39694:15:0;;39648:73;39741:18;39761;39770:8;39761;:18::i;:::-;39733:47;;;;;;39451:337;;;;;:::o;4765:136::-;4823:7;4850:43;4854:1;4857;4850:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4843:50;;4765:136;;;;;:::o;33059:343::-;33115:9;;33147:6;33143:69;;-1:-1:-1;33178:18:0;;-1:-1:-1;33178:18:0;33170:30;;33143:69;33233:5;;;33237:1;33233;:5;:1;33255:5;;;;;:10;33251:144;;-1:-1:-1;33290:26:0;;-1:-1:-1;33318:1:0;;-1:-1:-1;33282:38:0;;33251:144;33361:18;;-1:-1:-1;33381:1:0;-1:-1:-1;33353:30:0;;33497:215;33553:9;;33585:6;33581:77;;-1:-1:-1;33616:26:0;;-1:-1:-1;33644:1:0;33608:38;;33581:77;33678:18;33702:1;33698;:5;;;;;;33670:34;;;;33497:215;;;;;:::o;37403:313::-;37480:9;37491:4;37509:13;37524:18;;:::i;:::-;37546:20;37556:1;37559:6;37546:9;:20::i;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6602:132;6660:7;6687:39;6691:1;6694;6687:39;;;;;;;;;;;;;;;;;:3;:39::i;66729:96::-;66805:12;66729:96;:::o;36937:353::-;37006:9;37017:10;;:::i;:::-;37041:14;37057:19;37080:27;37088:1;:10;;;37100:6;37080:7;:27::i;:::-;37040:67;;-1:-1:-1;37040:67:0;-1:-1:-1;37130:18:0;37122:4;:26;;;;;;;;;37118:92;;-1:-1:-1;37179:18:0;;;;;;;;;-1:-1:-1;37179:18:0;;37173:4;;-1:-1:-1;37179:18:0;-1:-1:-1;37165:33:0;;37118:92;37250:31;;;;;;;;;;;;-1:-1:-1;;37250:31:0;;-1:-1:-1;36937:353:0;-1:-1:-1;;;;36937:353:0:o;37861:328::-;37958:9;37969:4;37987:13;38002:18;;:::i;:::-;38024:20;38034:1;38037:6;38024:9;:20::i;:::-;37986:58;;-1:-1:-1;37986:58:0;-1:-1:-1;38066:18:0;38059:3;:25;;;;;;;;;38055:73;;-1:-1:-1;38109:3:0;-1:-1:-1;38114:1:0;;-1:-1:-1;38101:15:0;;38055:73;38147:34;38155:17;38164:7;38155:8;:17::i;:::-;38174:6;38147:7;:34::i;:::-;38140:41;;;;;;37861:328;;;;;;;:::o;34495:271::-;34566:9;34577:4;34595:14;34611:8;34623:13;34631:1;34634;34623:7;:13::i;:::-;34594:42;;-1:-1:-1;34594:42:0;-1:-1:-1;34661:18:0;34653:4;:26;;;;;;;;;34649:75;;-1:-1:-1;34704:4:0;-1:-1:-1;34710:1:0;;-1:-1:-1;34696:16:0;;34649:75;34743:15;34751:3;34756:1;34743:7;:15::i;35696:515::-;35757:9;35768:10;;:::i;:::-;35792:14;35808:20;35832:22;35840:3;35249:4;35832:7;:22::i;:::-;35791:63;;-1:-1:-1;35791:63:0;-1:-1:-1;35877:18:0;35869:4;:26;;;;;;;;;35865:92;;-1:-1:-1;35926:18:0;;;;;;;;;-1:-1:-1;35926:18:0;;35920:4;;-1:-1:-1;35926:18:0;-1:-1:-1;35912:33:0;;35865:92;35970:14;35986:13;36003:31;36011:15;36028:5;36003:7;:31::i;:::-;35969:65;;-1:-1:-1;35969:65:0;-1:-1:-1;36057:18:0;36049:4;:26;;;;;;;;;36045:92;;36100:4;36106:18;;;;;;;;36121:1;36106:18;;;36092:33;;;;;;;;;;36045:92;36177:25;;;;;;;;;;;;-1:-1:-1;;36177:25:0;;-1:-1:-1;35696:515:0;-1:-1:-1;;;;;;35696:515:0:o;4301:181::-;4359:7;4391:5;;;4415:6;;;;4407:46;;;;;-1:-1:-1;;;4407:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;31800:761;32224:23;32250:69;32278:4;32250:69;;;;;;;;;;;;;;;;;32258:5;-1:-1:-1;;;;;32250:27:0;;;:69;;;;;:::i;:::-;32334:17;;32224:95;;-1:-1:-1;32334:21:0;32330:224;;32476:10;32465:30;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;32465:30:0;32457:85;;;;-1:-1:-1;;;32457:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38720:620;38800:9;38811:10;;:::i;:::-;39118:14;39134;39152:25;35249:4;39170:6;39152:7;:25::i;:::-;39117:60;;-1:-1:-1;39117:60:0;-1:-1:-1;39200:18:0;39192:4;:26;;;;;;;;;39188:92;;-1:-1:-1;39249:18:0;;;;;;;;;-1:-1:-1;39249:18:0;;39243:4;;-1:-1:-1;39249:18:0;-1:-1:-1;39235:33:0;;39188:92;39297:35;39304:9;39315:7;:16;;;39297:6;:35::i;42216:213::-;42398:12;35249:4;42398:23;;;42216:213::o;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;7230:278::-;7316:7;7351:12;7344:5;7336:28;;;;-1:-1:-1;;;7336:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;7336:28:0;;7375:9;7391:1;7387;:5;;;;;;;7230:278;-1:-1:-1;;;;;7230:278:0:o;15407:196::-;15510:12;15542:53;15565:6;15573:4;15579:1;15582:12;15542:22;:53::i;:::-;15535:60;15407:196;-1:-1:-1;;;;15407:196:0:o;16784:979::-;16914:12;16947:18;16958:6;16947:10;:18::i;:::-;16939:60;;;;;-1:-1:-1;;;16939:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17073:12;17087:23;17114:6;-1:-1:-1;;;;;17114:11:0;17134:8;17145:4;17114:36;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;17114:36:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;17072:78:0;;;;17165:7;17161:595;;;17196:10;-1:-1:-1;17189:17:0;;-1:-1:-1;17189:17:0;17161:595;17310:17;;:21;17306:439;;17573:10;17567:17;17634:15;17621:10;17617:2;17613:19;17606:44;17521:148;17709:20;;-1:-1:-1;;;17709:20:0;;;;;;;;;;;;;;;;;17716:12;;17709:20;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;12489:422:0;12856:20;12895:8;;;12489:422::o;53397:29532::-;;;;;;;;;;;-1:-1:-1;53397:29532:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;53397:29532:0;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;53397:29532:0;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;53397:29532:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://0c4ffcd2eb5edcbdb44c352d083f22c8b9a8513e24166fa067dff0082616d133
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.999814 | 14,828.2806 | $14,825.52 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.