More Info
Private Name Tags
ContractCreator
Latest 5 from a total of 5 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 1818306 | 1141 days ago | IN | 16.96697 CRO | 0.105 | ||||
Transfer | 258917 | 1245 days ago | IN | 25 CRO | 0.105 | ||||
Transfer | 258895 | 1245 days ago | IN | 4 CRO | 0.105 | ||||
Transfer | 103575 | 1255 days ago | IN | 1,499.8936 CRO | 0.105 | ||||
Transfer | 71150 | 1257 days ago | IN | 5.8 CRO | 0.147315 |
Loading...
Loading
Contract Name:
CronaVault
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at cronoscan.com on 2022-01-08 */ // Dependency file: @openzeppelin/contracts/math/SafeMath.sol // SPDX-License-Identifier: MIT // pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // Dependency file: @openzeppelin/contracts/utils/Context.sol // pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // Dependency file: @openzeppelin/contracts/access/Ownable.sol // pragma solidity >=0.6.0 <0.8.0; // import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // Dependency file: @openzeppelin/contracts/utils/Pausable.sol // pragma solidity >=0.6.0 <0.8.0; // import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol // pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // Dependency file: @openzeppelin/contracts/utils/Address.sol // pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Dependency file: @openzeppelin/contracts/token/ERC20/SafeERC20.sol // pragma solidity >=0.6.0 <0.8.0; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts/utils/Address.sol"; /** * @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"); } } } // Dependency file: contracts/interfaces/IMasterChef.sol // pragma solidity 0.6.12; interface IMasterChef { function deposit(uint256 _pid, uint256 _amount) external; function withdraw(uint256 _pid, uint256 _amount) external; function enterStaking(uint256 _amount) external; function leaveStaking(uint256 _amount) external; function pendingCrona(uint256 _pid, address _user) external view returns (uint256); function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256); function emergencyWithdraw(uint256 _pid) external; } // Root file: contracts/staking/CronaVault.sol pragma solidity 0.6.12; // import "@openzeppelin/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; // import "@openzeppelin/contracts/utils/Pausable.sol"; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; // import "contracts/interfaces/IMasterChef.sol"; contract CronaVault is Ownable, Pausable { using SafeERC20 for IERC20; using SafeMath for uint256; struct UserInfo { uint256 shares; // number of shares for a user uint256 lastDepositedTime; // keeps track of deposited time for potential penalty uint256 cronaAtLastUserAction; // keeps track of crona deposited at the last user action uint256 lastUserActionTime; // keeps track of the last user action time } IERC20 public immutable token; // Crona token IMasterChef public immutable masterchef; mapping(address => UserInfo) public userInfo; uint256 public totalShares; uint256 public lastHarvestedTime; address public admin; address public treasury; uint256 public constant MAX_PERFORMANCE_FEE = 500; // 5% uint256 public constant MAX_CALL_FEE = 100; // 1% uint256 public constant MAX_WITHDRAW_FEE = 100; // 1% uint256 public constant MAX_WITHDRAW_FEE_PERIOD = 72 hours; // 3 days uint256 public performanceFee = 299; // 2.99% uint256 public callFee = 25; // 0.25% uint256 public withdrawFee = 10; // 0.1% uint256 public withdrawFeePeriod = 72 hours; // 3 days event Deposit(address indexed sender, uint256 amount, uint256 shares, uint256 lastDepositedTime); event Withdraw(address indexed sender, uint256 amount, uint256 shares); event Harvest(address indexed sender, uint256 performanceFee, uint256 callFee); event Pause(); event Unpause(); /** * @notice Constructor * @param _token: Crona token contract * @param _masterchef: MasterChef contract * @param _admin: address of the admin * @param _treasury: address of the treasury (collects fees) */ constructor( IERC20 _token, IMasterChef _masterchef, address _admin, address _treasury ) public { token = _token; masterchef = _masterchef; admin = _admin; treasury = _treasury; // Infinite approve IERC20(_token).safeApprove(address(_masterchef), uint256(-1)); } /** * @notice Checks if the msg.sender is the admin address */ modifier onlyAdmin() { require(msg.sender == admin, "admin: wut?"); _; } /** * @notice Checks if the msg.sender is a contract or a proxy */ modifier notContract() { require(!_isContract(msg.sender), "contract not allowed"); require(msg.sender == tx.origin, "proxy contract not allowed"); _; } /** * @notice Deposits funds into the Crona Vault * @dev Only possible when contract not paused. * @param _amount: number of tokens to deposit (in CRONA) */ function deposit(uint256 _amount) external whenNotPaused notContract { require(_amount > 0, "Nothing to deposit"); uint256 pool = balanceOf(); token.safeTransferFrom(msg.sender, address(this), _amount); uint256 currentShares = 0; if (totalShares != 0) { currentShares = (_amount.mul(totalShares)).div(pool); } else { currentShares = _amount; } UserInfo storage user = userInfo[msg.sender]; user.shares = user.shares.add(currentShares); user.lastDepositedTime = block.timestamp; totalShares = totalShares.add(currentShares); user.cronaAtLastUserAction = user.shares.mul(balanceOf()).div(totalShares); user.lastUserActionTime = block.timestamp; _earn(); emit Deposit(msg.sender, _amount, currentShares, block.timestamp); } /** * @notice Withdraws all funds for a user */ function withdrawAll() external notContract { withdraw(userInfo[msg.sender].shares); } /** * @notice Reinvests CRONA tokens into MasterChef * @dev Only possible when contract not paused. */ function harvest() external notContract whenNotPaused { IMasterChef(masterchef).leaveStaking(0); uint256 bal = available(); uint256 currentPerformanceFee = bal.mul(performanceFee).div(10000); token.safeTransfer(treasury, currentPerformanceFee); uint256 currentCallFee = bal.mul(callFee).div(10000); token.safeTransfer(msg.sender, currentCallFee); _earn(); lastHarvestedTime = block.timestamp; emit Harvest(msg.sender, currentPerformanceFee, currentCallFee); } /** * @notice Sets admin address * @dev Only callable by the contract owner. */ function setAdmin(address _admin) external onlyOwner { require(_admin != address(0), "Cannot be zero address"); admin = _admin; } /** * @notice Sets treasury address * @dev Only callable by the contract owner. */ function setTreasury(address _treasury) external onlyOwner { require(_treasury != address(0), "Cannot be zero address"); treasury = _treasury; } /** * @notice Sets performance fee * @dev Only callable by the contract admin. */ function setPerformanceFee(uint256 _performanceFee) external onlyAdmin { require(_performanceFee <= MAX_PERFORMANCE_FEE, "performanceFee cannot be more than MAX_PERFORMANCE_FEE"); performanceFee = _performanceFee; } /** * @notice Sets call fee * @dev Only callable by the contract admin. */ function setCallFee(uint256 _callFee) external onlyAdmin { require(_callFee <= MAX_CALL_FEE, "callFee cannot be more than MAX_CALL_FEE"); callFee = _callFee; } /** * @notice Sets withdraw fee * @dev Only callable by the contract admin. */ function setWithdrawFee(uint256 _withdrawFee) external onlyAdmin { require(_withdrawFee <= MAX_WITHDRAW_FEE, "withdrawFee cannot be more than MAX_WITHDRAW_FEE"); withdrawFee = _withdrawFee; } /** * @notice Sets withdraw fee period * @dev Only callable by the contract admin. */ function setWithdrawFeePeriod(uint256 _withdrawFeePeriod) external onlyAdmin { require( _withdrawFeePeriod <= MAX_WITHDRAW_FEE_PERIOD, "withdrawFeePeriod cannot be more than MAX_WITHDRAW_FEE_PERIOD" ); withdrawFeePeriod = _withdrawFeePeriod; } /** * @notice Withdraws from MasterChef to Vault without caring about rewards. * @dev EMERGENCY ONLY. Only callable by the contract admin. */ function emergencyWithdraw() external onlyAdmin { IMasterChef(masterchef).emergencyWithdraw(0); } /** * @notice Withdraw unexpected tokens sent to the Crona Vault */ function inCaseTokensGetStuck(address _token) external onlyAdmin { require(_token != address(token), "Token cannot be same as deposit token"); uint256 amount = IERC20(_token).balanceOf(address(this)); IERC20(_token).safeTransfer(msg.sender, amount); } /** * @notice Triggers stopped state * @dev Only possible when contract not paused. */ function pause() external onlyAdmin whenNotPaused { _pause(); emit Pause(); } /** * @notice Returns to normal state * @dev Only possible when contract is paused. */ function unpause() external onlyAdmin whenPaused { _unpause(); emit Unpause(); } /** * @notice Calculates the expected harvest reward from third party * @return Expected reward to collect in CRONA */ function calculateHarvestCronaRewards() external view returns (uint256) { uint256 amount = IMasterChef(masterchef).pendingCrona(0, address(this)); amount = amount.add(available()); uint256 currentCallFee = amount.mul(callFee).div(10000); return currentCallFee; } /** * @notice Calculates the total pending rewards that can be restaked * @return Returns total pending crona rewards */ function calculateTotalPendingCronaRewards() external view returns (uint256) { uint256 amount = IMasterChef(masterchef).pendingCrona(0, address(this)); amount = amount.add(available()); return amount; } /** * @notice Calculates the price per share */ function getPricePerFullShare() external view returns (uint256) { return totalShares == 0 ? 1e18 : balanceOf().mul(1e18).div(totalShares); } /** * @notice Withdraws from funds from the Crona Vault * @param _shares: Number of shares to withdraw */ function withdraw(uint256 _shares) public notContract { UserInfo storage user = userInfo[msg.sender]; require(_shares > 0, "Nothing to withdraw"); require(_shares <= user.shares, "Withdraw amount exceeds balance"); uint256 currentAmount = (balanceOf().mul(_shares)).div(totalShares); user.shares = user.shares.sub(_shares); totalShares = totalShares.sub(_shares); uint256 bal = available(); if (bal < currentAmount) { uint256 balWithdraw = currentAmount.sub(bal); IMasterChef(masterchef).leaveStaking(balWithdraw); uint256 balAfter = available(); uint256 diff = balAfter.sub(bal); if (diff < balWithdraw) { currentAmount = bal.add(diff); } } if (block.timestamp < user.lastDepositedTime.add(withdrawFeePeriod)) { uint256 currentWithdrawFee = currentAmount.mul(withdrawFee).div(10000); token.safeTransfer(treasury, currentWithdrawFee); currentAmount = currentAmount.sub(currentWithdrawFee); } if (user.shares > 0) { user.cronaAtLastUserAction = user.shares.mul(balanceOf()).div(totalShares); } else { user.cronaAtLastUserAction = 0; } user.lastUserActionTime = block.timestamp; token.safeTransfer(msg.sender, currentAmount); emit Withdraw(msg.sender, currentAmount, _shares); } /** * @notice Custom logic for how much the vault allows to be borrowed * @dev The contract puts 100% of the tokens to work. */ function available() public view returns (uint256) { return token.balanceOf(address(this)); } /** * @notice Calculates the total underlying tokens * @dev It includes tokens held by the contract and held in MasterChef */ function balanceOf() public view returns (uint256) { (uint256 amount, ) = IMasterChef(masterchef).userInfo(0, address(this)); return token.balanceOf(address(this)).add(amount); } /** * @notice Deposits tokens into MasterChef to earn staking rewards */ function _earn() internal { uint256 bal = available(); if (bal > 0) { IMasterChef(masterchef).enterStaking(bal); } } /** * @notice Checks if address is a contract * @dev It prevents contract from being targetted */ function _isContract(address addr) internal view returns (bool) { uint256 size; assembly { size := extcodesize(addr) } return size > 0; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"contract IMasterChef","name":"_masterchef","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastDepositedTime","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"performanceFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"callFee","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX_CALL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PERFORMANCE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAW_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAW_FEE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateHarvestCronaRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateTotalPendingCronaRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastHarvestedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterchef","outputs":[{"internalType":"contract IMasterChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_callFee","type":"uint256"}],"name":"setCallFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceFee","type":"uint256"}],"name":"setPerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawFee","type":"uint256"}],"name":"setWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawFeePeriod","type":"uint256"}],"name":"setWithdrawFeePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"lastDepositedTime","type":"uint256"},{"internalType":"uint256","name":"cronaAtLastUserAction","type":"uint256"},{"internalType":"uint256","name":"lastUserActionTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFeePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405261012b6006556019600755600a6008556203f4806009553480156200002857600080fd5b5060405162002c2338038062002c23833981810160405260808110156200004e57600080fd5b50805160208201516040830151606090930151919290916000620000716200013a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b191690556001600160601b0319606085811b821660805284901b1660a052600480546001600160a01b038481166001600160a01b031992831617909255600580548484169216919091179055620001309085168460001962001bf06200013e602090811b91909117901c565b5050505062000551565b3390565b801580620001c8575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156200019857600080fd5b505afa158015620001ad573d6000803e3d6000fd5b505050506040513d6020811015620001c457600080fd5b5051155b620002055760405162461bcd60e51b815260040180806020018281038252603681526020018062002bed6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200025d9185916200026216565b505050565b6060620002be826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200031e60201b62001d08179092919060201c565b8051909150156200025d57808060200190516020811015620002df57600080fd5b50516200025d5760405162461bcd60e51b815260040180806020018281038252602a81526020018062002bc3602a913960400191505060405180910390fd5b60606200032f848460008562000339565b90505b9392505050565b6060824710156200037c5760405162461bcd60e51b815260040180806020018281038252602681526020018062002b9d6026913960400191505060405180910390fd5b6200038785620004a1565b620003d9576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106200041a5780518252601f199092019160209182019101620003f9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146200047e576040519150601f19603f3d011682016040523d82523d6000602084013e62000483565b606091505b50909250905062000496828286620004a7565b979650505050505050565b3b151590565b60608315620004b857508162000332565b825115620004c95782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000515578181015183820152602001620004fb565b50505050905090810190601f168015620005435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60805160601c60a05160601c6125d7620005c6600039806107ec52806109cc5280610c4e5280610e84528061118252806117e15280611baa5280611fb05250806108e452806109605280610d085280610d5d5280610dd3528061124a528061168e52806118af5280611bce52506125d76000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80638456cb5911610130578063d4b0de2f116100b8578063f0f442601161007c578063f0f4426014610479578063f2fde38b1461049f578063f851a440146104c5578063fb1db278146104cd578063fc0c546a146104d557610232565b8063d4b0de2f146102bf578063db2e21bc1461043b578063def68a9c14610443578063df10b4e614610469578063e941fa781461047157610232565b806390321e1a116100ff57806390321e1a146103e9578063b60f0531146103f1578063b6ac642a146103f9578063b6b55f2514610416578063bdca91651461043357610232565b80638456cb59146103c9578063853828b6146103d157806387788782146103d95780638da5cb5b146103e157610232565b80634641257d116101be578063704b6c0211610182578063704b6c021461036e57806370897b2314610394578063715018a6146103b1578063722713f7146103b957806377c7b8fc146103c157610232565b80634641257d1461031657806348a0d7541461031e5780635c975abb146103265780635dde09ea1461034257806361d027b31461034a57610232565b80632cfc5f01116102055780632cfc5f01146102d95780632e1a7d4d146102e157806338f4290f146102fe5780633a98ef39146103065780633f4ba83a1461030e57610232565b80631959a002146102375780631efac1b81461028357806326465826146102a25780632ad5a53f146102bf575b600080fd5b61025d6004803603602081101561024d57600080fd5b50356001600160a01b03166104dd565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6102a06004803603602081101561029957600080fd5b5035610505565b005b6102a0600480360360208110156102b857600080fd5b5035610599565b6102c761062b565b60408051918252519081900360200190f35b6102c7610630565b6102a0600480360360208110156102f757600080fd5b5035610637565b6102c76109c7565b6102c7610a86565b6102a0610a8c565b6102a0610b5c565b6102c7610dcf565b61032e610e6f565b604080519115158252519081900360200190f35b6102c7610e7f565b610352610f57565b604080516001600160a01b039092168252519081900360200190f35b6102a06004803603602081101561038457600080fd5b50356001600160a01b0316610f66565b6102a0600480360360208110156103aa57600080fd5b503561103e565b6102a06110d1565b6102c761117d565b6102c76112c3565b6102a06112fd565b6102a06113ca565b6102c7611488565b61035261148e565b6102c761149d565b6102c76114a3565b6102a06004803603602081101561040f57600080fd5b50356114a9565b6102a06004803603602081101561042c57600080fd5b503561153b565b6102c761178c565b6102a0611792565b6102a06004803603602081101561045957600080fd5b50356001600160a01b0316611860565b6102c76119b3565b6102c76119b9565b6102a06004803603602081101561048f57600080fd5b50356001600160a01b03166119bf565b6102a0600480360360208110156104b557600080fd5b50356001600160a01b0316611a97565b610352611b99565b610352611ba8565b610352611bcc565b6001602081905260009182526040909120805491810154600282015460039092015490919084565b6004546001600160a01b03163314610552576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6203f4808111156105945760405162461bcd60e51b815260040180806020018281038252603d8152602001806124d5603d913960400191505060405180910390fd5b600955565b6004546001600160a01b031633146105e6576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b60648111156106265760405162461bcd60e51b81526004018080602001828103825260288152602001806124366028913960400191505060405180910390fd5b600755565b606481565b6203f48081565b61064033611d21565b15610689576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b3332146106da576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b33600090815260016020526040902081610731576040805162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b604482015290519081900360640190fd5b8054821115610787576040805162461bcd60e51b815260206004820152601f60248201527f576974686472617720616d6f756e7420657863656564732062616c616e636500604482015290519081900360640190fd5b60006107a76002546107a18561079b61117d565b90611d27565b90611d89565b82549091506107b69084611df0565b82556002546107c59084611df0565b60025560006107d2610dcf565b90508181101561089b5760006107e88383611df0565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631058d281826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561085057600080fd5b505af1158015610864573d6000803e3d6000fd5b505050506000610872610dcf565b905060006108808285611df0565b905082811015610897576108948482611e4d565b94505b5050505b60095460018401546108ac91611e4d565b42101561091b5760006108d06127106107a160085486611d2790919063ffffffff16565b60055490915061090d906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683611ea7565b6109178382611df0565b9250505b8254156109455761093b6002546107a161093361117d565b865490611d27565b600284015561094d565b600060028401555b4260038401556109876001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163384611ea7565b6040805183815260208101869052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a250505050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637b270bdd6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b158015610a4057600080fd5b505afa158015610a54573d6000803e3d6000fd5b505050506040513d6020811015610a6a57600080fd5b50519050610a80610a79610dcf565b8290611e4d565b91505090565b60025481565b6004546001600160a01b03163314610ad9576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b610ae1610e6f565b610b29576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b610b31611ef9565b6040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b610b6533611d21565b15610bae576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b333214610bff576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b610c07610e6f565b15610c4c576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631058d28160006040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610cb357600080fd5b505af1158015610cc7573d6000803e3d6000fd5b505050506000610cd5610dcf565b90506000610cf46127106107a160065485611d2790919063ffffffff16565b600554909150610d31906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683611ea7565b6000610d4e6127106107a160075486611d2790919063ffffffff16565b9050610d846001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383611ea7565b610d8c611f9c565b426003556040805183815260208101839052815133927f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954928290030190a2505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610e3e57600080fd5b505afa158015610e52573d6000803e3d6000fd5b505050506040513d6020811015610e6857600080fd5b5051905090565b600054600160a01b900460ff1690565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637b270bdd6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b158015610ef857600080fd5b505afa158015610f0c573d6000803e3d6000fd5b505050506040513d6020811015610f2257600080fd5b50519050610f31610a79610dcf565b90506000610f506127106107a160075485611d2790919063ffffffff16565b9250505090565b6005546001600160a01b031681565b610f6e612030565b6001600160a01b0316610f7f61148e565b6001600160a01b031614610fc8576040805162461bcd60e51b815260206004820181905260248201526000805160206124b5833981519152604482015290519081900360640190fd5b6001600160a01b03811661101c576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b0316331461108b576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6101f48111156110cc5760405162461bcd60e51b815260040180806020018281038252603681526020018061245e6036913960400191505060405180910390fd5b600655565b6110d9612030565b6001600160a01b03166110ea61148e565b6001600160a01b031614611133576040805162461bcd60e51b815260206004820181905260248201526000805160206124b5833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393f1a40b6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050604080518083038186803b1580156111f557600080fd5b505afa158015611209573d6000803e3d6000fd5b505050506040513d604081101561121f57600080fd5b5051604080516370a0823160e01b81523060048201529051919250610a809183916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561129157600080fd5b505afa1580156112a5573d6000803e3d6000fd5b505050506040513d60208110156112bb57600080fd5b505190611e4d565b60006002546000146112ee576112e96002546107a1670de0b6b3a764000061079b61117d565b6112f8565b670de0b6b3a76400005b905090565b6004546001600160a01b0316331461134a576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b611352610e6f565b15611397576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b61139f612034565b6040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b6113d333611d21565b1561141c576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b33321461146d576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b3360009081526001602052604090205461148690610637565b565b60065481565b6000546001600160a01b031690565b60075481565b60035481565b6004546001600160a01b031633146114f6576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b60648111156115365760405162461bcd60e51b815260040180806020018281038252603081526020018061253c6030913960400191505060405180910390fd5b600855565b611543610e6f565b15611588576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b61159133611d21565b156115da576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b33321461162b576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b60008111611675576040805162461bcd60e51b8152602060048201526012602482015271139bdd1a1a5b99c81d1bc819195c1bdcda5d60721b604482015290519081900360640190fd5b600061167f61117d565b90506116b66001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330856120bd565b60006002546000146116e2576116db826107a160025486611d2790919063ffffffff16565b90506116e5565b50815b33600090815260016020526040902080546117009083611e4d565b81554260018201556002546117159083611e4d565b6002819055611731906107a161172961117d565b845490611d27565b6002820155426003820155611744611f9c565b60408051858152602081018490524281830152905133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e919081900360600190a250505050565b6101f481565b6004546001600160a01b031633146117df576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635312ea8e60006040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561184657600080fd5b505af115801561185a573d6000803e3d6000fd5b50505050565b6004546001600160a01b031633146118ad576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316141561191e5760405162461bcd60e51b81526004018080602001828103825260258152602001806123eb6025913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561196d57600080fd5b505afa158015611981573d6000803e3d6000fd5b505050506040513d602081101561199757600080fd5b505190506119af6001600160a01b0383163383611ea7565b5050565b60095481565b60085481565b6119c7612030565b6001600160a01b03166119d861148e565b6001600160a01b031614611a21576040805162461bcd60e51b815260206004820181905260248201526000805160206124b5833981519152604482015290519081900360640190fd5b6001600160a01b038116611a75576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b611a9f612030565b6001600160a01b0316611ab061148e565b6001600160a01b031614611af9576040805162461bcd60e51b815260206004820181905260248201526000805160206124b5833981519152604482015290519081900360640190fd5b6001600160a01b038116611b3e5760405162461bcd60e51b81526004018080602001828103825260268152602001806123c56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b801580611c76575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611c4857600080fd5b505afa158015611c5c573d6000803e3d6000fd5b505050506040513d6020811015611c7257600080fd5b5051155b611cb15760405162461bcd60e51b815260040180806020018281038252603681526020018061256c6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611d03908490612113565b505050565b6060611d1784846000856121c4565b90505b9392505050565b3b151590565b600082611d3657506000611d83565b82820282848281611d4357fe5b0414611d805760405162461bcd60e51b81526004018080602001828103825260218152602001806124946021913960400191505060405180910390fd5b90505b92915050565b6000808211611ddf576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611de857fe5b049392505050565b600082821115611e47576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611d80576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611d03908490612113565b611f01610e6f565b611f49576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611f7f612030565b604080516001600160a01b039092168252519081900360200190a1565b6000611fa6610dcf565b9050801561202d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166341441d3b826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561201457600080fd5b505af1158015612028573d6000803e3d6000fd5b505050505b50565b3390565b61203c610e6f565b15612081576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f7f612030565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261185a9085905b6060612168826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d089092919063ffffffff16565b805190915015611d035780806020019051602081101561218757600080fd5b5051611d035760405162461bcd60e51b815260040180806020018281038252602a815260200180612512602a913960400191505060405180910390fd5b6060824710156122055760405162461bcd60e51b81526004018080602001828103825260268152602001806124106026913960400191505060405180910390fd5b61220e85611d21565b61225f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061229e5780518252601f19909201916020918201910161227f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612300576040519150601f19603f3d011682016040523d82523d6000602084013e612305565b606091505b5091509150612315828286612320565b979650505050505050565b6060831561232f575081611d1a565b82511561233f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612389578181015183820152602001612371565b50505050905090810190601f1680156123b65780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546f6b656e2063616e6e6f742062652073616d65206173206465706f73697420746f6b656e416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c63616c6c4665652063616e6e6f74206265206d6f7265207468616e204d41585f43414c4c5f464545706572666f726d616e63654665652063616e6e6f74206265206d6f7265207468616e204d41585f504552464f524d414e43455f464545536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65727769746864726177466565506572696f642063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455f504552494f445361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656477697468647261774665652063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220cb318be736d1adec85e484722a577413e9e7e2d4a2d34be68e2e9d28451299fd64736f6c634300060c0033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b254000000000000000000000000d758b37aff75f8ee847d606fcefe7bd18c8ed029000000000000000000000000b6e6d031db616cf8ac338293dc2ecfa0f01c55ec
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102325760003560e01c80638456cb5911610130578063d4b0de2f116100b8578063f0f442601161007c578063f0f4426014610479578063f2fde38b1461049f578063f851a440146104c5578063fb1db278146104cd578063fc0c546a146104d557610232565b8063d4b0de2f146102bf578063db2e21bc1461043b578063def68a9c14610443578063df10b4e614610469578063e941fa781461047157610232565b806390321e1a116100ff57806390321e1a146103e9578063b60f0531146103f1578063b6ac642a146103f9578063b6b55f2514610416578063bdca91651461043357610232565b80638456cb59146103c9578063853828b6146103d157806387788782146103d95780638da5cb5b146103e157610232565b80634641257d116101be578063704b6c0211610182578063704b6c021461036e57806370897b2314610394578063715018a6146103b1578063722713f7146103b957806377c7b8fc146103c157610232565b80634641257d1461031657806348a0d7541461031e5780635c975abb146103265780635dde09ea1461034257806361d027b31461034a57610232565b80632cfc5f01116102055780632cfc5f01146102d95780632e1a7d4d146102e157806338f4290f146102fe5780633a98ef39146103065780633f4ba83a1461030e57610232565b80631959a002146102375780631efac1b81461028357806326465826146102a25780632ad5a53f146102bf575b600080fd5b61025d6004803603602081101561024d57600080fd5b50356001600160a01b03166104dd565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6102a06004803603602081101561029957600080fd5b5035610505565b005b6102a0600480360360208110156102b857600080fd5b5035610599565b6102c761062b565b60408051918252519081900360200190f35b6102c7610630565b6102a0600480360360208110156102f757600080fd5b5035610637565b6102c76109c7565b6102c7610a86565b6102a0610a8c565b6102a0610b5c565b6102c7610dcf565b61032e610e6f565b604080519115158252519081900360200190f35b6102c7610e7f565b610352610f57565b604080516001600160a01b039092168252519081900360200190f35b6102a06004803603602081101561038457600080fd5b50356001600160a01b0316610f66565b6102a0600480360360208110156103aa57600080fd5b503561103e565b6102a06110d1565b6102c761117d565b6102c76112c3565b6102a06112fd565b6102a06113ca565b6102c7611488565b61035261148e565b6102c761149d565b6102c76114a3565b6102a06004803603602081101561040f57600080fd5b50356114a9565b6102a06004803603602081101561042c57600080fd5b503561153b565b6102c761178c565b6102a0611792565b6102a06004803603602081101561045957600080fd5b50356001600160a01b0316611860565b6102c76119b3565b6102c76119b9565b6102a06004803603602081101561048f57600080fd5b50356001600160a01b03166119bf565b6102a0600480360360208110156104b557600080fd5b50356001600160a01b0316611a97565b610352611b99565b610352611ba8565b610352611bcc565b6001602081905260009182526040909120805491810154600282015460039092015490919084565b6004546001600160a01b03163314610552576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6203f4808111156105945760405162461bcd60e51b815260040180806020018281038252603d8152602001806124d5603d913960400191505060405180910390fd5b600955565b6004546001600160a01b031633146105e6576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b60648111156106265760405162461bcd60e51b81526004018080602001828103825260288152602001806124366028913960400191505060405180910390fd5b600755565b606481565b6203f48081565b61064033611d21565b15610689576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b3332146106da576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b33600090815260016020526040902081610731576040805162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b604482015290519081900360640190fd5b8054821115610787576040805162461bcd60e51b815260206004820152601f60248201527f576974686472617720616d6f756e7420657863656564732062616c616e636500604482015290519081900360640190fd5b60006107a76002546107a18561079b61117d565b90611d27565b90611d89565b82549091506107b69084611df0565b82556002546107c59084611df0565b60025560006107d2610dcf565b90508181101561089b5760006107e88383611df0565b90507f00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b2546001600160a01b0316631058d281826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561085057600080fd5b505af1158015610864573d6000803e3d6000fd5b505050506000610872610dcf565b905060006108808285611df0565b905082811015610897576108948482611e4d565b94505b5050505b60095460018401546108ac91611e4d565b42101561091b5760006108d06127106107a160085486611d2790919063ffffffff16565b60055490915061090d906001600160a01b037f000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe8116911683611ea7565b6109178382611df0565b9250505b8254156109455761093b6002546107a161093361117d565b865490611d27565b600284015561094d565b600060028401555b4260038401556109876001600160a01b037f000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe163384611ea7565b6040805183815260208101869052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a250505050565b6000807f00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b2546001600160a01b0316637b270bdd6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b158015610a4057600080fd5b505afa158015610a54573d6000803e3d6000fd5b505050506040513d6020811015610a6a57600080fd5b50519050610a80610a79610dcf565b8290611e4d565b91505090565b60025481565b6004546001600160a01b03163314610ad9576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b610ae1610e6f565b610b29576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b610b31611ef9565b6040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b610b6533611d21565b15610bae576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b333214610bff576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b610c07610e6f565b15610c4c576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b7f00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b2546001600160a01b0316631058d28160006040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610cb357600080fd5b505af1158015610cc7573d6000803e3d6000fd5b505050506000610cd5610dcf565b90506000610cf46127106107a160065485611d2790919063ffffffff16565b600554909150610d31906001600160a01b037f000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe8116911683611ea7565b6000610d4e6127106107a160075486611d2790919063ffffffff16565b9050610d846001600160a01b037f000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe163383611ea7565b610d8c611f9c565b426003556040805183815260208101839052815133927f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954928290030190a2505050565b60007f000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610e3e57600080fd5b505afa158015610e52573d6000803e3d6000fd5b505050506040513d6020811015610e6857600080fd5b5051905090565b600054600160a01b900460ff1690565b6000807f00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b2546001600160a01b0316637b270bdd6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b158015610ef857600080fd5b505afa158015610f0c573d6000803e3d6000fd5b505050506040513d6020811015610f2257600080fd5b50519050610f31610a79610dcf565b90506000610f506127106107a160075485611d2790919063ffffffff16565b9250505090565b6005546001600160a01b031681565b610f6e612030565b6001600160a01b0316610f7f61148e565b6001600160a01b031614610fc8576040805162461bcd60e51b815260206004820181905260248201526000805160206124b5833981519152604482015290519081900360640190fd5b6001600160a01b03811661101c576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b0316331461108b576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b6101f48111156110cc5760405162461bcd60e51b815260040180806020018281038252603681526020018061245e6036913960400191505060405180910390fd5b600655565b6110d9612030565b6001600160a01b03166110ea61148e565b6001600160a01b031614611133576040805162461bcd60e51b815260206004820181905260248201526000805160206124b5833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000807f00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b2546001600160a01b03166393f1a40b6000306040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050604080518083038186803b1580156111f557600080fd5b505afa158015611209573d6000803e3d6000fd5b505050506040513d604081101561121f57600080fd5b5051604080516370a0823160e01b81523060048201529051919250610a809183916001600160a01b037f000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe16916370a0823191602480820192602092909190829003018186803b15801561129157600080fd5b505afa1580156112a5573d6000803e3d6000fd5b505050506040513d60208110156112bb57600080fd5b505190611e4d565b60006002546000146112ee576112e96002546107a1670de0b6b3a764000061079b61117d565b6112f8565b670de0b6b3a76400005b905090565b6004546001600160a01b0316331461134a576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b611352610e6f565b15611397576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b61139f612034565b6040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b6113d333611d21565b1561141c576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b33321461146d576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b3360009081526001602052604090205461148690610637565b565b60065481565b6000546001600160a01b031690565b60075481565b60035481565b6004546001600160a01b031633146114f6576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b60648111156115365760405162461bcd60e51b815260040180806020018281038252603081526020018061253c6030913960400191505060405180910390fd5b600855565b611543610e6f565b15611588576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b61159133611d21565b156115da576040805162461bcd60e51b815260206004820152601460248201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b33321461162b576040805162461bcd60e51b815260206004820152601a6024820152791c1c9bde1e4818dbdb9d1c9858dd081b9bdd08185b1b1bddd95960321b604482015290519081900360640190fd5b60008111611675576040805162461bcd60e51b8152602060048201526012602482015271139bdd1a1a5b99c81d1bc819195c1bdcda5d60721b604482015290519081900360640190fd5b600061167f61117d565b90506116b66001600160a01b037f000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe163330856120bd565b60006002546000146116e2576116db826107a160025486611d2790919063ffffffff16565b90506116e5565b50815b33600090815260016020526040902080546117009083611e4d565b81554260018201556002546117159083611e4d565b6002819055611731906107a161172961117d565b845490611d27565b6002820155426003820155611744611f9c565b60408051858152602081018490524281830152905133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e919081900360600190a250505050565b6101f481565b6004546001600160a01b031633146117df576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b2546001600160a01b0316635312ea8e60006040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561184657600080fd5b505af115801561185a573d6000803e3d6000fd5b50505050565b6004546001600160a01b031633146118ad576040805162461bcd60e51b815260206004820152600b60248201526a61646d696e3a207775743f60a81b604482015290519081900360640190fd5b7f000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe6001600160a01b0316816001600160a01b0316141561191e5760405162461bcd60e51b81526004018080602001828103825260258152602001806123eb6025913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561196d57600080fd5b505afa158015611981573d6000803e3d6000fd5b505050506040513d602081101561199757600080fd5b505190506119af6001600160a01b0383163383611ea7565b5050565b60095481565b60085481565b6119c7612030565b6001600160a01b03166119d861148e565b6001600160a01b031614611a21576040805162461bcd60e51b815260206004820181905260248201526000805160206124b5833981519152604482015290519081900360640190fd5b6001600160a01b038116611a75576040805162461bcd60e51b815260206004820152601660248201527543616e6e6f74206265207a65726f206164647265737360501b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b611a9f612030565b6001600160a01b0316611ab061148e565b6001600160a01b031614611af9576040805162461bcd60e51b815260206004820181905260248201526000805160206124b5833981519152604482015290519081900360640190fd5b6001600160a01b038116611b3e5760405162461bcd60e51b81526004018080602001828103825260268152602001806123c56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b7f00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b25481565b7f000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe81565b801580611c76575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611c4857600080fd5b505afa158015611c5c573d6000803e3d6000fd5b505050506040513d6020811015611c7257600080fd5b5051155b611cb15760405162461bcd60e51b815260040180806020018281038252603681526020018061256c6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611d03908490612113565b505050565b6060611d1784846000856121c4565b90505b9392505050565b3b151590565b600082611d3657506000611d83565b82820282848281611d4357fe5b0414611d805760405162461bcd60e51b81526004018080602001828103825260218152602001806124946021913960400191505060405180910390fd5b90505b92915050565b6000808211611ddf576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611de857fe5b049392505050565b600082821115611e47576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611d80576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611d03908490612113565b611f01610e6f565b611f49576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611f7f612030565b604080516001600160a01b039092168252519081900360200190a1565b6000611fa6610dcf565b9050801561202d577f00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b2546001600160a01b03166341441d3b826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561201457600080fd5b505af1158015612028573d6000803e3d6000fd5b505050505b50565b3390565b61203c610e6f565b15612081576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f7f612030565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261185a9085905b6060612168826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d089092919063ffffffff16565b805190915015611d035780806020019051602081101561218757600080fd5b5051611d035760405162461bcd60e51b815260040180806020018281038252602a815260200180612512602a913960400191505060405180910390fd5b6060824710156122055760405162461bcd60e51b81526004018080602001828103825260268152602001806124106026913960400191505060405180910390fd5b61220e85611d21565b61225f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061229e5780518252601f19909201916020918201910161227f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612300576040519150601f19603f3d011682016040523d82523d6000602084013e612305565b606091505b5091509150612315828286612320565b979650505050505050565b6060831561232f575081611d1a565b82511561233f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612389578181015183820152602001612371565b50505050905090810190601f1680156123b65780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546f6b656e2063616e6e6f742062652073616d65206173206465706f73697420746f6b656e416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c63616c6c4665652063616e6e6f74206265206d6f7265207468616e204d41585f43414c4c5f464545706572666f726d616e63654665652063616e6e6f74206265206d6f7265207468616e204d41585f504552464f524d414e43455f464545536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65727769746864726177466565506572696f642063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455f504552494f445361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656477697468647261774665652063616e6e6f74206265206d6f7265207468616e204d41585f57495448445241575f4645455361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220cb318be736d1adec85e484722a577413e9e7e2d4a2d34be68e2e9d28451299fd64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b254000000000000000000000000d758b37aff75f8ee847d606fcefe7bd18c8ed029000000000000000000000000b6e6d031db616cf8ac338293dc2ecfa0f01c55ec
-----Decoded View---------------
Arg [0] : _token (address): 0xadbd1231fb360047525BEdF962581F3eee7b49fe
Arg [1] : _masterchef (address): 0x77ea4a4cF9F77A034E4291E8f457Af7772c2B254
Arg [2] : _admin (address): 0xd758B37Aff75F8Ee847D606fcEfE7BD18C8ed029
Arg [3] : _treasury (address): 0xB6E6d031db616cF8aC338293dC2ecFa0F01C55EC
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe
Arg [1] : 00000000000000000000000077ea4a4cf9f77a034e4291e8f457af7772c2b254
Arg [2] : 000000000000000000000000d758b37aff75f8ee847d606fcefe7bd18c8ed029
Arg [3] : 000000000000000000000000b6e6d031db616cf8ac338293dc2ecfa0f01c55ec
Deployed Bytecode Sourcemap
29071:11495:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29646:44;;;;;;;;;;;;;;;;-1:-1:-1;29646:44:0;-1:-1:-1;;;;;29646:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35243:301;;;;;;;;;;;;;;;;-1:-1:-1;35243:301:0;;:::i;:::-;;34620:182;;;;;;;;;;;;;;;;-1:-1:-1;34620:182:0;;:::i;29892:42::-;;;:::i;:::-;;;;;;;;;;;;;;;;30006:58;;;:::i;37852:1508::-;;;;;;;;;;;;;;;;-1:-1:-1;37852:1508:0;;:::i;37252:236::-;;;:::i;29699:26::-;;;:::i;36542:103::-;;;:::i;33064:555::-;;;:::i;39519:107::-;;;:::i;12058:86::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;36795:305;;;:::i;29798:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;29798:23:0;;;;;;;;;;;;;;33730:152;;;;;;;;;;;;;;;;-1:-1:-1;33730:152:0;-1:-1:-1;;;;;33730:152:0;;:::i;34276:238::-;;;;;;;;;;;;;;;;-1:-1:-1;34276:238:0;;:::i;10345:148::-;;;:::i;39783:201::-;;;:::i;37561:154::-;;;:::i;36324:100::-;;;:::i;32830:::-;;;:::i;30083:35::-;;;:::i;9694:87::-;;;:::i;30134:27::-;;;:::i;29732:32::-;;;:::i;34912:214::-;;;;;;;;;;;;;;;;-1:-1:-1;34912:214:0;;:::i;31859:898::-;;;;;;;;;;;;;;;;-1:-1:-1;31859:898:0;;:::i;29830:49::-;;;:::i;35717:111::-;;;:::i;35921:285::-;;;;;;;;;;;;;;;;-1:-1:-1;35921:285:0;-1:-1:-1;;;;;35921:285:0;;:::i;30223:43::-;;;:::i;30177:31::-;;;:::i;33996:167::-;;;;;;;;;;;;;;;;-1:-1:-1;33996:167:0;-1:-1:-1;;;;;33996:167:0;;:::i;10648:244::-;;;;;;;;;;;;;;;;-1:-1:-1;10648:244:0;-1:-1:-1;;;;;10648:244:0;;:::i;29771:20::-;;;:::i;29598:39::-;;;:::i;29545:29::-;;;:::i;29646:44::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;35243:301::-;31348:5;;-1:-1:-1;;;;;31348:5:0;31334:10;:19;31326:43;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;;;;30056:8:::1;35353:18;:45;;35331:156;;;;-1:-1:-1::0;;;35331:156:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35498:17;:38:::0;35243:301::o;34620:182::-;31348:5;;-1:-1:-1;;;;;31348:5:0;31334:10;:19;31326:43;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;;;;29931:3:::1;34696:8;:24;;34688:77;;;;-1:-1:-1::0;;;34688:77:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34776:7;:18:::0;34620:182::o;29892:42::-;29931:3;29892:42;:::o;30006:58::-;30056:8;30006:58;:::o;37852:1508::-;31524:23;31536:10;31524:11;:23::i;:::-;31523:24;31515:57;;;;;-1:-1:-1;;;31515:57:0;;;;;;;;;;;;-1:-1:-1;;;31515:57:0;;;;;;;;;;;;;;;31591:10;31605:9;31591:23;31583:62;;;;;-1:-1:-1;;;31583:62:0;;;;;;;;;;;;-1:-1:-1;;;31583:62:0;;;;;;;;;;;;;;;37950:10:::1;37917:21;37941:20:::0;;;:8:::1;:20;::::0;;;;37980:11;37972:43:::1;;;::::0;;-1:-1:-1;;;37972:43:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37972:43:0;;;;;;;;;;;;;::::1;;38045:11:::0;;38034:22;::::1;;38026:66;;;::::0;;-1:-1:-1;;;38026:66:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;38105:21;38129:43;38160:11;;38130:24;38146:7;38130:11;:9;:11::i;:::-;:15:::0;::::1;:24::i;:::-;38129:30:::0;::::1;:43::i;:::-;38197:11:::0;;38105:67;;-1:-1:-1;38197:24:0::1;::::0;38213:7;38197:15:::1;:24::i;:::-;38183:38:::0;;38246:11:::1;::::0;:24:::1;::::0;38262:7;38246:15:::1;:24::i;:::-;38232:11;:38:::0;38283:11:::1;38297;:9;:11::i;:::-;38283:25;;38329:13;38323:3;:19;38319:354;;;38359:19;38381:22;:13:::0;38399:3;38381:17:::1;:22::i;:::-;38359:44;;38430:10;-1:-1:-1::0;;;;;38418:36:0::1;;38455:11;38418:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;38482:16;38501:11;:9;:11::i;:::-;38482:30:::0;-1:-1:-1;38527:12:0::1;38542:17;38482:30:::0;38555:3;38542:12:::1;:17::i;:::-;38527:32;;38585:11;38578:4;:18;38574:88;;;38633:13;:3:::0;38641:4;38633:7:::1;:13::i;:::-;38617:29;;38574:88;38319:354;;;;38734:17;::::0;38707:22:::1;::::0;::::1;::::0;:45:::1;::::0;:26:::1;:45::i;:::-;38689:15;:63;38685:297;;;38769:26;38798:41;38833:5;38798:30;38816:11;;38798:13;:17;;:30;;;;:::i;:41::-;38873:8;::::0;38769:70;;-1:-1:-1;38854:48:0::1;::::0;-1:-1:-1;;;;;38854:5:0::1;:18:::0;::::1;::::0;38873:8:::1;38769:70:::0;38854:18:::1;:48::i;:::-;38933:37;:13:::0;38951:18;38933:17:::1;:37::i;:::-;38917:53;;38685:297;;38998:11:::0;;:15;38994:185:::1;;39059:45;39092:11;;39059:28;39075:11;:9;:11::i;:::-;39059::::0;;;:15:::1;:28::i;:45::-;39030:26;::::0;::::1;:74:::0;38994:185:::1;;;39166:1;39137:26;::::0;::::1;:30:::0;38994:185:::1;39217:15;39191:23;::::0;::::1;:41:::0;39245:45:::1;-1:-1:-1::0;;;;;39245:5:0::1;:18;39264:10;39276:13:::0;39245:18:::1;:45::i;:::-;39308:44;::::0;;;;;::::1;::::0;::::1;::::0;;;;;39317:10:::1;::::0;39308:44:::1;::::0;;;;;;::::1;31656:1;;;37852:1508:::0;:::o;37252:236::-;37320:7;37340:14;37369:10;-1:-1:-1;;;;;37357:36:0;;37394:1;37405:4;37357:54;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37357:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37357:54:0;;-1:-1:-1;37431:23:0;37442:11;:9;:11::i;:::-;37431:6;;:10;:23::i;:::-;37422:32;-1:-1:-1;;37252:236:0;:::o;29699:26::-;;;;:::o;36542:103::-;31348:5;;-1:-1:-1;;;;;31348:5:0;31334:10;:19;31326:43;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;;;;12661:8:::1;:6;:8::i;:::-;12653:41;;;::::0;;-1:-1:-1;;;12653:41:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;12653:41:0;;;;;;;;;;;;;::::1;;36602:10:::2;:8;:10::i;:::-;36628:9;::::0;::::2;::::0;;;::::2;36542:103::o:0;33064:555::-;31524:23;31536:10;31524:11;:23::i;:::-;31523:24;31515:57;;;;;-1:-1:-1;;;31515:57:0;;;;;;;;;;;;-1:-1:-1;;;31515:57:0;;;;;;;;;;;;;;;31591:10;31605:9;31591:23;31583:62;;;;;-1:-1:-1;;;31583:62:0;;;;;;;;;;;;-1:-1:-1;;;31583:62:0;;;;;;;;;;;;;;;12384:8:::1;:6;:8::i;:::-;12383:9;12375:38;;;::::0;;-1:-1:-1;;;12375:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;12375:38:0;;;;;;;;;;;;;::::1;;33141:10:::2;-1:-1:-1::0;;;;;33129:36:0::2;;33166:1;33129:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;33181:11;33195;:9;:11::i;:::-;33181:25;;33217:29;33249:34;33277:5;33249:23;33257:14;;33249:3;:7;;:23;;;;:::i;:34::-;33313:8;::::0;33217:66;;-1:-1:-1;33294:51:0::2;::::0;-1:-1:-1;;;;;33294:5:0::2;:18:::0;::::2;::::0;33313:8:::2;33217:66:::0;33294:18:::2;:51::i;:::-;33358:22;33383:27;33404:5;33383:16;33391:7;;33383:3;:7;;:16;;;;:::i;:27::-;33358:52:::0;-1:-1:-1;33421:46:0::2;-1:-1:-1::0;;;;;33421:5:0::2;:18;33440:10;33358:52:::0;33421:18:::2;:46::i;:::-;33480:7;:5;:7::i;:::-;33520:15;33500:17;:35:::0;33553:58:::2;::::0;;;;;::::2;::::0;::::2;::::0;;;;;33561:10:::2;::::0;33553:58:::2;::::0;;;;;;::::2;12424:1;;;33064:555::o:0;39519:107::-;39561:7;39588:5;-1:-1:-1;;;;;39588:15:0;;39612:4;39588:30;;;;;;;;;;;;;-1:-1:-1;;;;;39588:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39588:30:0;;-1:-1:-1;39519:107:0;:::o;12058:86::-;12105:4;12129:7;-1:-1:-1;;;12129:7:0;;;;;12058:86::o;36795:305::-;36858:7;36878:14;36907:10;-1:-1:-1;;;;;36895:36:0;;36932:1;36943:4;36895:54;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36895:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36895:54:0;;-1:-1:-1;36969:23:0;36980:11;:9;:11::i;36969:23::-;36960:32;;37003:22;37028:30;37052:5;37028:19;37039:7;;37028:6;:10;;:19;;;;:::i;:30::-;37003:55;-1:-1:-1;;;36795:305:0;:::o;29798:23::-;;;-1:-1:-1;;;;;29798:23:0;;:::o;33730:152::-;9925:12;:10;:12::i;:::-;-1:-1:-1;;;;;9914:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;9914:23:0;;9906:68;;;;;-1:-1:-1;;;9906:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9906:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;33802:20:0;::::1;33794:55;;;::::0;;-1:-1:-1;;;33794:55:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33794:55:0;;;;;;;;;;;;;::::1;;33860:5;:14:::0;;-1:-1:-1;;;;;;33860:14:0::1;-1:-1:-1::0;;;;;33860:14:0;;;::::1;::::0;;;::::1;::::0;;33730:152::o;34276:238::-;31348:5;;-1:-1:-1;;;;;31348:5:0;31334:10;:19;31326:43;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;;;;29876:3:::1;34366:15;:38;;34358:105;;;;-1:-1:-1::0;;;34358:105:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34474:14;:32:::0;34276:238::o;10345:148::-;9925:12;:10;:12::i;:::-;-1:-1:-1;;;;;9914:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;9914:23:0;;9906:68;;;;;-1:-1:-1;;;9906:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9906:68:0;;;;;;;;;;;;;;;10452:1:::1;10436:6:::0;;10415:40:::1;::::0;-1:-1:-1;;;;;10436:6:0;;::::1;::::0;10415:40:::1;::::0;10452:1;;10415:40:::1;10483:1;10466:19:::0;;-1:-1:-1;;;;;;10466:19:0::1;::::0;;10345:148::o;39783:201::-;39825:7;39846:14;39878:10;-1:-1:-1;;;;;39866:32:0;;39899:1;39910:4;39866:50;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39866:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39866:50:0;;39934:30;;-1:-1:-1;;;39934:30:0;;39958:4;39934:30;;;;;;39866:50;;-1:-1:-1;39934:42:0;;39866:50;;-1:-1:-1;;;;;39934:5:0;:15;;;;:30;;;;;39866:50;;39934:30;;;;;;;;:15;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39934:30:0;;:34;:42::i;37561:154::-;37616:7;37643:11;;37658:1;37643:16;:64;;37669:38;37695:11;;37669:21;37685:4;37669:11;:9;:11::i;:38::-;37643:64;;;37662:4;37643:64;37636:71;;37561:154;:::o;36324:100::-;31348:5;;-1:-1:-1;;;;;31348:5:0;31334:10;:19;31326:43;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;;;;12384:8:::1;:6;:8::i;:::-;12383:9;12375:38;;;::::0;;-1:-1:-1;;;12375:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;12375:38:0;;;;;;;;;;;;;::::1;;36385:8:::2;:6;:8::i;:::-;36409:7;::::0;::::2;::::0;;;::::2;36324:100::o:0;32830:::-;31524:23;31536:10;31524:11;:23::i;:::-;31523:24;31515:57;;;;;-1:-1:-1;;;31515:57:0;;;;;;;;;;;;-1:-1:-1;;;31515:57:0;;;;;;;;;;;;;;;31591:10;31605:9;31591:23;31583:62;;;;;-1:-1:-1;;;31583:62:0;;;;;;;;;;;;-1:-1:-1;;;31583:62:0;;;;;;;;;;;;;;;32903:10:::1;32894:20;::::0;;;:8:::1;:20;::::0;;;;:27;32885:37:::1;::::0;:8:::1;:37::i;:::-;32830:100::o:0;30083:35::-;;;;:::o;9694:87::-;9740:7;9767:6;-1:-1:-1;;;;;9767:6:0;9694:87;:::o;30134:27::-;;;;:::o;29732:32::-;;;;:::o;34912:214::-;31348:5;;-1:-1:-1;;;;;31348:5:0;31334:10;:19;31326:43;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;;;;29990:3:::1;34996:12;:32;;34988:93;;;;-1:-1:-1::0;;;34988:93:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35092:11;:26:::0;34912:214::o;31859:898::-;12384:8;:6;:8::i;:::-;12383:9;12375:38;;;;;-1:-1:-1;;;12375:38:0;;;;;;;;;;;;-1:-1:-1;;;12375:38:0;;;;;;;;;;;;;;;31524:23:::1;31536:10;31524:11;:23::i;:::-;31523:24;31515:57;;;::::0;;-1:-1:-1;;;31515:57:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31515:57:0;;;;;;;;;;;;;::::1;;31591:10;31605:9;31591:23;31583:62;;;::::0;;-1:-1:-1;;;31583:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31583:62:0;;;;;;;;;;;;;::::1;;31957:1:::2;31947:7;:11;31939:42;;;::::0;;-1:-1:-1;;;31939:42:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;31939:42:0;;;;;;;;;;;;;::::2;;31994:12;32009:11;:9;:11::i;:::-;31994:26:::0;-1:-1:-1;32031:58:0::2;-1:-1:-1::0;;;;;32031:5:0::2;:22;32054:10;32074:4;32081:7:::0;32031:22:::2;:58::i;:::-;32100:21;32140:11;;32155:1;32140:16;32136:157;;32189:36;32220:4;32190:24;32202:11;;32190:7;:11;;:24;;;;:::i;32189:36::-;32173:52;;32136:157;;;-1:-1:-1::0;32274:7:0;32136:157:::2;32336:10;32303:21;32327:20:::0;;;:8:::2;:20;::::0;;;;32374:11;;:30:::2;::::0;32390:13;32374:15:::2;:30::i;:::-;32360:44:::0;;32440:15:::2;32415:22;::::0;::::2;:40:::0;32482:11:::2;::::0;:30:::2;::::0;32498:13;32482:15:::2;:30::i;:::-;32468:11;:44:::0;;;32554:45:::2;::::0;:28:::2;32570:11;:9;:11::i;:::-;32554::::0;;;:15:::2;:28::i;:45::-;32525:26;::::0;::::2;:74:::0;32636:15:::2;32610:23;::::0;::::2;:41:::0;32664:7:::2;:5;:7::i;:::-;32689:60;::::0;;;;;::::2;::::0;::::2;::::0;;;32733:15:::2;32689:60:::0;;;;;;32697:10:::2;::::0;32689:60:::2;::::0;;;;;;;;::::2;31656:1;;;31859:898:::0;:::o;29830:49::-;29876:3;29830:49;:::o;35717:111::-;31348:5;;-1:-1:-1;;;;;31348:5:0;31334:10;:19;31326:43;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;;;;35788:10:::1;-1:-1:-1::0;;;;;35776:41:0::1;;35818:1;35776:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;35717:111::o:0;35921:285::-;31348:5;;-1:-1:-1;;;;;31348:5:0;31334:10;:19;31326:43;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;-1:-1:-1;;;31326:43:0;;;;;;;;;;;;;;;36023:5:::1;-1:-1:-1::0;;;;;36005:24:0::1;:6;-1:-1:-1::0;;;;;36005:24:0::1;;;35997:74;;;;-1:-1:-1::0;;;35997:74:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36084:14;36108:6;-1:-1:-1::0;;;;;36101:24:0::1;;36134:4;36101:39;;;;;;;;;;;;;-1:-1:-1::0;;;;;36101:39:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;36101:39:0;;-1:-1:-1;36151:47:0::1;-1:-1:-1::0;;;;;36151:27:0;::::1;36179:10;36101:39:::0;36151:27:::1;:47::i;:::-;31380:1;35921:285:::0;:::o;30223:43::-;;;;:::o;30177:31::-;;;;:::o;33996:167::-;9925:12;:10;:12::i;:::-;-1:-1:-1;;;;;9914:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;9914:23:0;;9906:68;;;;;-1:-1:-1;;;9906:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9906:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;34074:23:0;::::1;34066:58;;;::::0;;-1:-1:-1;;;34066:58:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;34066:58:0;;;;;;;;;;;;;::::1;;34135:8;:20:::0;;-1:-1:-1;;;;;;34135:20:0::1;-1:-1:-1::0;;;;;34135:20:0;;;::::1;::::0;;;::::1;::::0;;33996:167::o;10648:244::-;9925:12;:10;:12::i;:::-;-1:-1:-1;;;;;9914:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;9914:23:0;;9906:68;;;;;-1:-1:-1;;;9906:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9906:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;10737:22:0;::::1;10729:73;;;;-1:-1:-1::0;;;10729:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10839:6;::::0;;10818:38:::1;::::0;-1:-1:-1;;;;;10818:38:0;;::::1;::::0;10839:6;::::1;::::0;10818:38:::1;::::0;::::1;10867:6;:17:::0;;-1:-1:-1;;;;;;10867:17:0::1;-1:-1:-1::0;;;;;10867:17:0;;;::::1;::::0;;;::::1;::::0;;10648:244::o;29771:20::-;;;-1:-1:-1;;;;;29771:20:0;;:::o;29598:39::-;;;:::o;29545:29::-;;;:::o;25624:622::-;25994:10;;;25993:62;;-1:-1:-1;26010:39:0;;;-1:-1:-1;;;26010:39:0;;26034:4;26010:39;;;;-1:-1:-1;;;;;26010:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26010:39:0;:44;25993:62;25985:152;;;;-1:-1:-1;;;25985:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26175:62;;;-1:-1:-1;;;;;26175:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26175:62:0;-1:-1:-1;;;26175:62:0;;;26148:90;;26168:5;;26148:19;:90::i;:::-;25624:622;;;:::o;19775:195::-;19878:12;19910:52;19932:6;19940:4;19946:1;19949:12;19910:21;:52::i;:::-;19903:59;;19775:195;;;;;;:::o;40372:191::-;40502:17;40547:8;;;40372:191::o;3721:220::-;3779:7;3803:6;3799:20;;-1:-1:-1;3818:1:0;3811:8;;3799:20;3842:5;;;3846:1;3842;:5;:1;3866:5;;;;;:10;3858:56;;;;-1:-1:-1;;;3858:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3932:1;-1:-1:-1;3721:220:0;;;;;:::o;4419:153::-;4477:7;4509:1;4505;:5;4497:44;;;;;-1:-1:-1;;;4497:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4563:1;4559;:5;;;;;;;4419:153;-1:-1:-1;;;4419:153:0:o;3304:158::-;3362:7;3395:1;3390;:6;;3382:49;;;;;-1:-1:-1;;;3382:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3449:5:0;;;3304:158::o;2842:179::-;2900:7;2932:5;;;2956:6;;;;2948:46;;;;;-1:-1:-1;;;2948:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;24965:177;25075:58;;;-1:-1:-1;;;;;25075:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25075:58:0;-1:-1:-1;;;25075:58:0;;;25048:86;;25068:5;;25048:19;:86::i;13117:120::-;12661:8;:6;:8::i;:::-;12653:41;;;;;-1:-1:-1;;;12653:41:0;;;;;;;;;;;;-1:-1:-1;;;12653:41:0;;;;;;;;;;;;;;;13186:5:::1;13176:15:::0;;-1:-1:-1;;;;13176:15:0::1;::::0;;13207:22:::1;13216:12;:10;:12::i;:::-;13207:22;::::0;;-1:-1:-1;;;;;13207:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;13117:120::o:0;40082:161::-;40119:11;40133;:9;:11::i;:::-;40119:25;-1:-1:-1;40159:7:0;;40155:81;;40195:10;-1:-1:-1;;;;;40183:36:0;;40220:3;40183:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40155:81;40082:161;:::o;8159:106::-;8247:10;8159:106;:::o;12858:118::-;12384:8;:6;:8::i;:::-;12383:9;12375:38;;;;;-1:-1:-1;;;12375:38:0;;;;;;;;;;;;-1:-1:-1;;;12375:38:0;;;;;;;;;;;;;;;12918:7:::1;:14:::0;;-1:-1:-1;;;;12918:14:0::1;-1:-1:-1::0;;;12918:14:0::1;::::0;;12948:20:::1;12955:12;:10;:12::i;25150:205::-:0;25278:68;;;-1:-1:-1;;;;;25278:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25278:68:0;-1:-1:-1;;;25278:68:0;;;25251:96;;25271:5;;27270:761;27694:23;27720:69;27748:4;27720:69;;;;;;;;;;;;;;;;;27728:5;-1:-1:-1;;;;;27720:27:0;;;:69;;;;;:::i;:::-;27804:17;;27694:95;;-1:-1:-1;27804:21:0;27800:224;;27946:10;27935:30;;;;;;;;;;;;;;;-1:-1:-1;27935:30:0;27927:85;;;;-1:-1:-1;;;27927:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20827:530;20954:12;21012:5;20987:21;:30;;20979:81;;;;-1:-1:-1;;;20979:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21079:18;21090:6;21079:10;:18::i;:::-;21071:60;;;;;-1:-1:-1;;;21071:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21205:12;21219:23;21246:6;-1:-1:-1;;;;;21246:11:0;21266:5;21274:4;21246:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;21246:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21204:75;;;;21297:52;21315:7;21324:10;21336:12;21297:17;:52::i;:::-;21290:59;20827:530;-1:-1:-1;;;;;;;20827:530:0:o;23367:742::-;23482:12;23511:7;23507:595;;;-1:-1:-1;23542:10:0;23535:17;;23507:595;23656:17;;:21;23652:439;;23919:10;23913:17;23980:15;23967:10;23963:2;23959:19;23952:44;23867:148;24062:12;24055:20;;-1:-1:-1;;;24055:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://cb318be736d1adec85e484722a577413e9e7e2d4a2d34be68e2e9d28451299fd
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.