Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 631 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 12688902 | 1292 days ago | IN | 0 ETH | 0.00092665 | ||||
Withdraw | 12523244 | 1318 days ago | IN | 0 ETH | 0.00216949 | ||||
Deposit | 12523238 | 1318 days ago | IN | 0 ETH | 0.00334118 | ||||
Withdraw | 12496003 | 1322 days ago | IN | 0 ETH | 0.00510105 | ||||
Withdraw | 12483722 | 1324 days ago | IN | 0 ETH | 0.00297223 | ||||
Withdraw | 12447532 | 1329 days ago | IN | 0 ETH | 0.00939181 | ||||
Withdraw | 12426383 | 1333 days ago | IN | 0 ETH | 0.0079656 | ||||
Deposit | 12426364 | 1333 days ago | IN | 0 ETH | 0.01041226 | ||||
Withdraw | 12408125 | 1336 days ago | IN | 0 ETH | 0.02676321 | ||||
Withdraw | 12392964 | 1338 days ago | IN | 0 ETH | 0.00466279 | ||||
Withdraw | 12392951 | 1338 days ago | IN | 0 ETH | 0.00518702 | ||||
Withdraw | 12392854 | 1338 days ago | IN | 0 ETH | 0.0097542 | ||||
Withdraw | 12390895 | 1338 days ago | IN | 0 ETH | 0.00131593 | ||||
Withdraw | 12390895 | 1338 days ago | IN | 0 ETH | 0.00324292 | ||||
Withdraw | 12386547 | 1339 days ago | IN | 0 ETH | 0.00377522 | ||||
Withdraw | 12386050 | 1339 days ago | IN | 0 ETH | 0.00385131 | ||||
Withdraw | 12385512 | 1339 days ago | IN | 0 ETH | 0.00247938 | ||||
Withdraw | 12376949 | 1340 days ago | IN | 0 ETH | 0.00591721 | ||||
Withdraw | 12376308 | 1340 days ago | IN | 0 ETH | 0.00432428 | ||||
Withdraw | 12375950 | 1341 days ago | IN | 0 ETH | 0.00515123 | ||||
Withdraw | 12374568 | 1341 days ago | IN | 0 ETH | 0.00404537 | ||||
Deposit | 12374568 | 1341 days ago | IN | 0 ETH | 0.00488711 | ||||
Withdraw | 12371715 | 1341 days ago | IN | 0 ETH | 0.00222951 | ||||
Withdraw | 12370385 | 1341 days ago | IN | 0 ETH | 0.00338098 | ||||
Withdraw | 12368283 | 1342 days ago | IN | 0 ETH | 0.00733496 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
11217288 | 1519 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
Farm01
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.12; import "./SafeMath.sol"; import "./SafeERC20.sol"; import "./TransferHelper.sol"; interface IFarmFactory { function userEnteredFarm (address _user) external; function userLeftFarm (address _user) external; } contract Farm01 { using SafeMath for uint256; using SafeERC20 for IERC20; /// @notice information stuct on each user than stakes LP tokens. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. } /// @notice all the settings for this farm in one struct struct FarmInfo { IERC20 lpToken; IERC20 rewardToken; uint256 startBlock; uint256 blockReward; uint256 bonusEndBlock; uint256 bonus; uint256 endBlock; uint256 lastRewardBlock; // Last block number that reward distribution occurs. uint256 accRewardPerShare; // Accumulated Rewards per share, times 1e12 uint256 farmableSupply; // set in init, total amount of tokens farmable uint256 numFarmers; } /// @notice farm type id. Useful for back-end systems to know how to read the contract (ABI) as we plan to launch multiple farm types uint256 public farmType = 1; IFarmFactory public factory; address public farmGenerator; FarmInfo public farmInfo; /// @notice information on each user than stakes LP tokens mapping (address => UserInfo) public userInfo; event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); constructor(address _factory, address _farmGenerator) public { factory = IFarmFactory(_factory); farmGenerator = _farmGenerator; } /** * @notice initialize the farming contract. This is called only once upon farm creation and the FarmGenerator ensures the farm has the correct paramaters */ function init (IERC20 _rewardToken, uint256 _amount, IERC20 _lpToken, uint256 _blockReward, uint256 _startBlock, uint256 _endBlock, uint256 _bonusEndBlock, uint256 _bonus) public { require(msg.sender == address(farmGenerator), 'FORBIDDEN'); TransferHelper.safeTransferFrom(address(_rewardToken), msg.sender, address(this), _amount); farmInfo.rewardToken = _rewardToken; farmInfo.startBlock = _startBlock; farmInfo.blockReward = _blockReward; farmInfo.bonusEndBlock = _bonusEndBlock; farmInfo.bonus = _bonus; uint256 lastRewardBlock = block.number > _startBlock ? block.number : _startBlock; farmInfo.lpToken = _lpToken; farmInfo.lastRewardBlock = lastRewardBlock; farmInfo.accRewardPerShare = 0; farmInfo.endBlock = _endBlock; farmInfo.farmableSupply = _amount; } /** * @notice Gets the reward multiplier over the given _from_block until _to block * @param _from_block the start of the period to measure rewards for * @param _to the end of the period to measure rewards for * @return The weighted multiplier for the given period */ function getMultiplier(uint256 _from_block, uint256 _to) public view returns (uint256) { uint256 _from = _from_block >= farmInfo.startBlock ? _from_block : farmInfo.startBlock; uint256 to = farmInfo.endBlock > _to ? _to : farmInfo.endBlock; if (to <= farmInfo.bonusEndBlock) { return to.sub(_from).mul(farmInfo.bonus); } else if (_from >= farmInfo.bonusEndBlock) { return to.sub(_from); } else { return farmInfo.bonusEndBlock.sub(_from).mul(farmInfo.bonus).add( to.sub(farmInfo.bonusEndBlock) ); } } /** * @notice function to see accumulated balance of reward token for specified user * @param _user the user for whom unclaimed tokens will be shown * @return total amount of withdrawable reward tokens */ function pendingReward(address _user) external view returns (uint256) { UserInfo storage user = userInfo[_user]; uint256 accRewardPerShare = farmInfo.accRewardPerShare; uint256 lpSupply = farmInfo.lpToken.balanceOf(address(this)); if (block.number > farmInfo.lastRewardBlock && lpSupply != 0) { uint256 multiplier = getMultiplier(farmInfo.lastRewardBlock, block.number); uint256 tokenReward = multiplier.mul(farmInfo.blockReward); accRewardPerShare = accRewardPerShare.add(tokenReward.mul(1e12).div(lpSupply)); } return user.amount.mul(accRewardPerShare).div(1e12).sub(user.rewardDebt); } /** * @notice updates pool information to be up to date to the current block */ function updatePool() public { if (block.number <= farmInfo.lastRewardBlock) { return; } uint256 lpSupply = farmInfo.lpToken.balanceOf(address(this)); if (lpSupply == 0) { farmInfo.lastRewardBlock = block.number < farmInfo.endBlock ? block.number : farmInfo.endBlock; return; } uint256 multiplier = getMultiplier(farmInfo.lastRewardBlock, block.number); uint256 tokenReward = multiplier.mul(farmInfo.blockReward); farmInfo.accRewardPerShare = farmInfo.accRewardPerShare.add(tokenReward.mul(1e12).div(lpSupply)); farmInfo.lastRewardBlock = block.number < farmInfo.endBlock ? block.number : farmInfo.endBlock; } /** * @notice deposit LP token function for msg.sender * @param _amount the total deposit amount */ function deposit(uint256 _amount) public { UserInfo storage user = userInfo[msg.sender]; updatePool(); if (user.amount > 0) { uint256 pending = user.amount.mul(farmInfo.accRewardPerShare).div(1e12).sub(user.rewardDebt); safeRewardTransfer(msg.sender, pending); } if (user.amount == 0 && _amount > 0) { factory.userEnteredFarm(msg.sender); farmInfo.numFarmers++; } farmInfo.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount = user.amount.add(_amount); user.rewardDebt = user.amount.mul(farmInfo.accRewardPerShare).div(1e12); emit Deposit(msg.sender, _amount); } /** * @notice withdraw LP token function for msg.sender * @param _amount the total withdrawable amount */ function withdraw(uint256 _amount) public { UserInfo storage user = userInfo[msg.sender]; require(user.amount >= _amount, "INSUFFICIENT"); updatePool(); if (user.amount == _amount && _amount > 0) { factory.userLeftFarm(msg.sender); farmInfo.numFarmers--; } uint256 pending = user.amount.mul(farmInfo.accRewardPerShare).div(1e12).sub(user.rewardDebt); safeRewardTransfer(msg.sender, pending); user.amount = user.amount.sub(_amount); user.rewardDebt = user.amount.mul(farmInfo.accRewardPerShare).div(1e12); farmInfo.lpToken.safeTransfer(address(msg.sender), _amount); emit Withdraw(msg.sender, _amount); } /** * @notice emergency functoin to withdraw LP tokens and forego harvest rewards. Important to protect users LP tokens */ function emergencyWithdraw() public { UserInfo storage user = userInfo[msg.sender]; farmInfo.lpToken.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, user.amount); if (user.amount > 0) { factory.userLeftFarm(msg.sender); farmInfo.numFarmers--; } user.amount = 0; user.rewardDebt = 0; } /** * @notice Safe reward transfer function, just in case a rounding error causes pool to not have enough reward tokens * @param _to the user address to transfer tokens to * @param _amount the total amount of tokens to transfer */ function safeRewardTransfer(address _to, uint256 _amount) internal { uint256 rewardBal = farmInfo.rewardToken.balanceOf(address(this)); if (_amount > rewardBal) { farmInfo.rewardToken.transfer(_to, rewardBal); } else { farmInfo.rewardToken.transfer(_to, _amount); } } }
// SPDX-License-Identifier: MIT // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol // Subject to the MIT license. pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/GSN/Context.sol // Subject to the MIT license. pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol // Subject to the MIT license. pragma solidity ^0.6.0; import "./Context.sol"; import "./IERC20.sol"; import "./SafeMath.sol"; import "./Address.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol // Subject to the MIT license. pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/SafeERC20.sol // Subject to the MIT license. pragma solidity ^0.6.0; import "./IERC20.sol"; import "./SafeMath.sol"; import "./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"); } } }
// SPDX-License-Identifier: MIT // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol // Subject to the MIT license. pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
pragma solidity 0.6.12; // helper methods for interacting with ERC20 tokens that do not consistently return true/false library TransferHelper { function safeApprove(address token, address to, uint value) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED'); } function safeTransfer(address token, address to, uint value) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED'); } function safeTransferFrom(address token, address from, address to, uint value) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED'); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_farmGenerator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IFarmFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmGenerator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"contract IERC20","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"blockReward","type":"uint256"},{"internalType":"uint256","name":"bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"farmableSupply","type":"uint256"},{"internalType":"uint256","name":"numFarmers","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from_block","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_blockReward","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"_bonus","type":"uint256"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600160005534801561001557600080fd5b506040516120193803806120198339818101604052604081101561003857600080fd5b81019080805190602001909291908051906020019092919050505081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050611f33806100e66000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063b20268c211610071578063b20268c214610274578063b6b55f2514610315578063c45a015514610343578063db2e21bc14610377578063e3161ddd14610381578063f40f0f521461038b576100b4565b80631959a002146100b95780631d49d66c146101185780632dd99996146101a85780632e1a7d4d146101dc5780632ebed9ec1461020a5780638dbb1e3a14610228575b600080fd5b6100fb600480360360208110156100cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103e3565b604051808381526020018281526020019250505060405180910390f35b610120610407565b604051808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018981526020018881526020018781526020018681526020018581526020018481526020018381526020018281526020019b50505050505050505050505060405180910390f35b6101b061048f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610208600480360360208110156101f257600080fd5b81019080803590602001909291905050506104b5565b005b6102126107a0565b6040518082815260200191505060405180910390f35b61025e6004803603604081101561023e57600080fd5b8101908080359060200190929190803590602001909291905050506107a6565b6040518082815260200191505060405180910390f35b610313600480360361010081101561028b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291905050506108ac565b005b6103416004803603602081101561032b57600080fd5b8101908080359060200190929190505050610a71565b005b61034b610cf2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61037f610d18565b005b610389610edf565b005b6103cd600480360360208110156103a157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061108c565b6040518082815260200191505060405180910390f35b600e6020528060005260406000206000915090508060000154908060010154905082565b60038060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600901549080600a015490508b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508181600001541015610572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f494e53554646494349454e54000000000000000000000000000000000000000081525060200191505060405180910390fd5b61057a610edf565b81816000015414801561058d5750600082115b1561064c57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376cb2554336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561061d57600080fd5b505af1158015610631573d6000803e3d6000fd5b505050506003600a0160008154809291906001900391905055505b6000610697826001015461068964e8d4a5100061067b600360080154876000015461127c90919063ffffffff16565b61130290919063ffffffff16565b61134c90919063ffffffff16565b90506106a33382611396565b6106ba83836000015461134c90919063ffffffff16565b82600001819055506106f564e8d4a510006106e7600360080154856000015461127c90919063ffffffff16565b61130290919063ffffffff16565b826001018190555061074d3384600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116189092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364846040518082815260200191505060405180910390a2505050565b60005481565b6000806003600201548410156107c1576003600201546107c3565b835b9050600083600360060154116107de576003600601546107e0565b835b905060036004015481116108215761081860036005015461080a848461134c90919063ffffffff16565b61127c90919063ffffffff16565b925050506108a6565b600360040154821061084957610840828261134c90919063ffffffff16565b925050506108a6565b6108a16108646003600401548361134c90919063ffffffff16565b6108936003600501546108858660036004015461134c90919063ffffffff16565b61127c90919063ffffffff16565b6116ba90919063ffffffff16565b925050505b92915050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461096f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f464f5242494444454e000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b61097b8833308a611742565b87600360010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600360020181905550846003800181905550816003600401819055508060036005018190555060008443116109f557846109f7565b435b905086600360000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060036007018190555060006003600801819055508360036006018190555087600360090181905550505050505050505050565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610abc610edf565b600081600001541115610b22576000610b148260010154610b0664e8d4a51000610af8600360080154876000015461127c90919063ffffffff16565b61130290919063ffffffff16565b61134c90919063ffffffff16565b9050610b203382611396565b505b60008160000154148015610b365750600082115b15610bf457600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cdf99b336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b158015610bc657600080fd5b505af1158015610bda573d6000803e3d6000fd5b505050506003600a01600081548092919060010191905055505b610c46333084600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611927909392919063ffffffff16565b610c5d8282600001546116ba90919063ffffffff16565b8160000181905550610c9864e8d4a51000610c8a600360080154846000015461127c90919063ffffffff16565b61130290919063ffffffff16565b81600101819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c836040518082815260200191505060405180910390a25050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610daf338260000154600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116189092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969582600001546040518082815260200191505060405180910390a2600081600001541115610ec857600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376cb2554336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b158015610e9957600080fd5b505af1158015610ead573d6000803e3d6000fd5b505050506003600a0160008154809291906001900391905055505b600081600001819055506000816001018190555050565b6003600701544311610ef05761108a565b6000600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610f7e57600080fd5b505afa158015610f92573d6000803e3d6000fd5b505050506040513d6020811015610fa857600080fd5b810190808051906020019092919050505090506000811415610fec576003600601544310610fdb57600360060154610fdd565b435b6003600701819055505061108a565b6000610ffd600360070154436107a6565b9050600061101860038001548361127c90919063ffffffff16565b905061105b6110478461103964e8d4a510008561127c90919063ffffffff16565b61130290919063ffffffff16565b6003600801546116ba90919063ffffffff16565b600360080181905550600360060154431061107b5760036006015461107d565b435b6003600701819055505050505b565b600080600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600060036008015490506000600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561116857600080fd5b505afa15801561117c573d6000803e3d6000fd5b505050506040513d602081101561119257600080fd5b81019080805190602001909291905050509050600360070154431180156111ba575060008114155b1561122e5760006111d0600360070154436107a6565b905060006111eb60038001548361127c90919063ffffffff16565b905061122961121a8461120c64e8d4a510008561127c90919063ffffffff16565b61130290919063ffffffff16565b856116ba90919063ffffffff16565b935050505b611272836001015461126464e8d4a5100061125686886000015461127c90919063ffffffff16565b61130290919063ffffffff16565b61134c90919063ffffffff16565b9350505050919050565b60008083141561128f57600090506112fc565b60008284029050828482816112a057fe5b04146112f7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611e8f6021913960400191505060405180910390fd5b809150505b92915050565b600061134483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506119e8565b905092915050565b600061138e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611aae565b905092915050565b6000600360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561142457600080fd5b505afa158015611438573d6000803e3d6000fd5b505050506040513d602081101561144e57600080fd5b810190808051906020019092919050505090508082111561154057600360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156114ff57600080fd5b505af1158015611513573d6000803e3d6000fd5b505050506040513d602081101561152957600080fd5b810190808051906020019092919050505050611613565b600360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156115d657600080fd5b505af11580156115ea573d6000803e3d6000fd5b505050506040513d602081101561160057600080fd5b8101908080519060200190929190505050505b505050565b6116b58363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611b6e565b505050565b600080828401905083811015611738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600060608573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b602083106118235780518252602082019150602081019050602083039250611800565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611885576040519150601f19603f3d011682016040523d82523d6000602084013e61188a565b606091505b50915091508180156118ca57506000815114806118c957508080602001905160208110156118b757600080fd5b81019080805190602001909291905050505b5b61191f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180611eda6024913960400191505060405180910390fd5b505050505050565b6119e2846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611b6e565b50505050565b60008083118290611a94576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a59578082015181840152602081019050611a3e565b50505050905090810190601f168015611a865780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611aa057fe5b049050809150509392505050565b6000838311158290611b5b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b20578082015181840152602081019050611b05565b50505050905090810190601f168015611b4d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6060611bd0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611c5d9092919063ffffffff16565b9050600081511115611c5857808060200190516020811015611bf157600080fd5b8101908080519060200190929190505050611c57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611eb0602a913960400191505060405180910390fd5b5b505050565b6060611c6c8484600085611c75565b90509392505050565b6060611c8085611e7b565b611cf2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611d425780518252602082019150602081019050602083039250611d1f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611da4576040519150601f19603f3d011682016040523d82523d6000602084013e611da9565b606091505b50915091508115611dbe578092505050611e73565b600081511115611dd15780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e38578082015181840152602081019050611e1d565b50505050905090810190601f168015611e655780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b600080823b90506000811191505091905056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544a26469706673582212200f037a3eb55840c7676bbe2f0dd4b836cae7cafe5cf0631adacb8e12adc7cbf564736f6c634300060c0033000000000000000000000000388f7e6d45e058aa703227b44e216e3be3c6a6e7000000000000000000000000197d2286f299c323272c08d768d7fd987e1350f2
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063b20268c211610071578063b20268c214610274578063b6b55f2514610315578063c45a015514610343578063db2e21bc14610377578063e3161ddd14610381578063f40f0f521461038b576100b4565b80631959a002146100b95780631d49d66c146101185780632dd99996146101a85780632e1a7d4d146101dc5780632ebed9ec1461020a5780638dbb1e3a14610228575b600080fd5b6100fb600480360360208110156100cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103e3565b604051808381526020018281526020019250505060405180910390f35b610120610407565b604051808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018981526020018881526020018781526020018681526020018581526020018481526020018381526020018281526020019b50505050505050505050505060405180910390f35b6101b061048f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610208600480360360208110156101f257600080fd5b81019080803590602001909291905050506104b5565b005b6102126107a0565b6040518082815260200191505060405180910390f35b61025e6004803603604081101561023e57600080fd5b8101908080359060200190929190803590602001909291905050506107a6565b6040518082815260200191505060405180910390f35b610313600480360361010081101561028b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291905050506108ac565b005b6103416004803603602081101561032b57600080fd5b8101908080359060200190929190505050610a71565b005b61034b610cf2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61037f610d18565b005b610389610edf565b005b6103cd600480360360208110156103a157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061108c565b6040518082815260200191505060405180910390f35b600e6020528060005260406000206000915090508060000154908060010154905082565b60038060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600901549080600a015490508b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508181600001541015610572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f494e53554646494349454e54000000000000000000000000000000000000000081525060200191505060405180910390fd5b61057a610edf565b81816000015414801561058d5750600082115b1561064c57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376cb2554336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561061d57600080fd5b505af1158015610631573d6000803e3d6000fd5b505050506003600a0160008154809291906001900391905055505b6000610697826001015461068964e8d4a5100061067b600360080154876000015461127c90919063ffffffff16565b61130290919063ffffffff16565b61134c90919063ffffffff16565b90506106a33382611396565b6106ba83836000015461134c90919063ffffffff16565b82600001819055506106f564e8d4a510006106e7600360080154856000015461127c90919063ffffffff16565b61130290919063ffffffff16565b826001018190555061074d3384600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116189092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364846040518082815260200191505060405180910390a2505050565b60005481565b6000806003600201548410156107c1576003600201546107c3565b835b9050600083600360060154116107de576003600601546107e0565b835b905060036004015481116108215761081860036005015461080a848461134c90919063ffffffff16565b61127c90919063ffffffff16565b925050506108a6565b600360040154821061084957610840828261134c90919063ffffffff16565b925050506108a6565b6108a16108646003600401548361134c90919063ffffffff16565b6108936003600501546108858660036004015461134c90919063ffffffff16565b61127c90919063ffffffff16565b6116ba90919063ffffffff16565b925050505b92915050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461096f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f464f5242494444454e000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b61097b8833308a611742565b87600360010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600360020181905550846003800181905550816003600401819055508060036005018190555060008443116109f557846109f7565b435b905086600360000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060036007018190555060006003600801819055508360036006018190555087600360090181905550505050505050505050565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610abc610edf565b600081600001541115610b22576000610b148260010154610b0664e8d4a51000610af8600360080154876000015461127c90919063ffffffff16565b61130290919063ffffffff16565b61134c90919063ffffffff16565b9050610b203382611396565b505b60008160000154148015610b365750600082115b15610bf457600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cdf99b336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b158015610bc657600080fd5b505af1158015610bda573d6000803e3d6000fd5b505050506003600a01600081548092919060010191905055505b610c46333084600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611927909392919063ffffffff16565b610c5d8282600001546116ba90919063ffffffff16565b8160000181905550610c9864e8d4a51000610c8a600360080154846000015461127c90919063ffffffff16565b61130290919063ffffffff16565b81600101819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c836040518082815260200191505060405180910390a25050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610daf338260000154600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116189092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969582600001546040518082815260200191505060405180910390a2600081600001541115610ec857600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376cb2554336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b158015610e9957600080fd5b505af1158015610ead573d6000803e3d6000fd5b505050506003600a0160008154809291906001900391905055505b600081600001819055506000816001018190555050565b6003600701544311610ef05761108a565b6000600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610f7e57600080fd5b505afa158015610f92573d6000803e3d6000fd5b505050506040513d6020811015610fa857600080fd5b810190808051906020019092919050505090506000811415610fec576003600601544310610fdb57600360060154610fdd565b435b6003600701819055505061108a565b6000610ffd600360070154436107a6565b9050600061101860038001548361127c90919063ffffffff16565b905061105b6110478461103964e8d4a510008561127c90919063ffffffff16565b61130290919063ffffffff16565b6003600801546116ba90919063ffffffff16565b600360080181905550600360060154431061107b5760036006015461107d565b435b6003600701819055505050505b565b600080600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600060036008015490506000600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561116857600080fd5b505afa15801561117c573d6000803e3d6000fd5b505050506040513d602081101561119257600080fd5b81019080805190602001909291905050509050600360070154431180156111ba575060008114155b1561122e5760006111d0600360070154436107a6565b905060006111eb60038001548361127c90919063ffffffff16565b905061122961121a8461120c64e8d4a510008561127c90919063ffffffff16565b61130290919063ffffffff16565b856116ba90919063ffffffff16565b935050505b611272836001015461126464e8d4a5100061125686886000015461127c90919063ffffffff16565b61130290919063ffffffff16565b61134c90919063ffffffff16565b9350505050919050565b60008083141561128f57600090506112fc565b60008284029050828482816112a057fe5b04146112f7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611e8f6021913960400191505060405180910390fd5b809150505b92915050565b600061134483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506119e8565b905092915050565b600061138e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611aae565b905092915050565b6000600360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561142457600080fd5b505afa158015611438573d6000803e3d6000fd5b505050506040513d602081101561144e57600080fd5b810190808051906020019092919050505090508082111561154057600360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156114ff57600080fd5b505af1158015611513573d6000803e3d6000fd5b505050506040513d602081101561152957600080fd5b810190808051906020019092919050505050611613565b600360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156115d657600080fd5b505af11580156115ea573d6000803e3d6000fd5b505050506040513d602081101561160057600080fd5b8101908080519060200190929190505050505b505050565b6116b58363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611b6e565b505050565b600080828401905083811015611738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600060608573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b602083106118235780518252602082019150602081019050602083039250611800565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611885576040519150601f19603f3d011682016040523d82523d6000602084013e61188a565b606091505b50915091508180156118ca57506000815114806118c957508080602001905160208110156118b757600080fd5b81019080805190602001909291905050505b5b61191f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180611eda6024913960400191505060405180910390fd5b505050505050565b6119e2846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611b6e565b50505050565b60008083118290611a94576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a59578082015181840152602081019050611a3e565b50505050905090810190601f168015611a865780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611aa057fe5b049050809150509392505050565b6000838311158290611b5b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b20578082015181840152602081019050611b05565b50505050905090810190601f168015611b4d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6060611bd0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611c5d9092919063ffffffff16565b9050600081511115611c5857808060200190516020811015611bf157600080fd5b8101908080519060200190929190505050611c57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611eb0602a913960400191505060405180910390fd5b5b505050565b6060611c6c8484600085611c75565b90509392505050565b6060611c8085611e7b565b611cf2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611d425780518252602082019150602081019050602083039250611d1f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611da4576040519150601f19603f3d011682016040523d82523d6000602084013e611da9565b606091505b50915091508115611dbe578092505050611e73565b600081511115611dd15780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e38578082015181840152602081019050611e1d565b50505050905090810190601f168015611e655780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b600080823b90506000811191505091905056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544a26469706673582212200f037a3eb55840c7676bbe2f0dd4b836cae7cafe5cf0631adacb8e12adc7cbf564736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000388f7e6d45e058aa703227b44e216e3be3c6a6e7000000000000000000000000197d2286f299c323272c08d768d7fd987e1350f2
-----Decoded View---------------
Arg [0] : _factory (address): 0x388f7E6d45e058AA703227B44e216e3bE3C6A6E7
Arg [1] : _farmGenerator (address): 0x197D2286f299C323272C08D768D7fD987e1350F2
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000388f7e6d45e058aa703227b44e216e3be3c6a6e7
Arg [1] : 000000000000000000000000197d2286f299c323272c08d768d7fd987e1350f2
Deployed Bytecode Sourcemap
296:8354:3:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1534:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;1433:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1396:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;6751:733;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1326:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3345:627;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2117:917;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;5874:740;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1362:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;7632:413;;;:::i;:::-;;5005:734;;;:::i;:::-;;4214:686;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1534:45;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1433:24::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1396:28::-;;;;;;;;;;;;;:::o;6751:733::-;6804:21;6828:8;:20;6837:10;6828:20;;;;;;;;;;;;;;;6804:44;;6882:7;6867:4;:11;;;:22;;6859:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6917:12;:10;:12::i;:::-;6959:7;6944:4;:11;;;:22;:37;;;;;6980:1;6970:7;:11;6944:37;6940:138;;;6998:7;;;;;;;;;;;:20;;;7019:10;6998:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7045:8;:19;;;:21;;;;;;;;;;;;;;6940:138;7088:15;7106:74;7164:4;:15;;;7106:53;7154:4;7106:43;7122:8;:26;;;7106:4;:11;;;:15;;:43;;;;:::i;:::-;:47;;:53;;;;:::i;:::-;:57;;:74;;;;:::i;:::-;7088:92;;7191:39;7210:10;7222:7;7191:18;:39::i;:::-;7255:24;7271:7;7255:4;:11;;;:15;;:24;;;;:::i;:::-;7241:4;:11;;:38;;;;7308:53;7356:4;7308:43;7324:8;:26;;;7308:4;:11;;;:15;;:43;;;;:::i;:::-;:47;;:53;;;;:::i;:::-;7290:4;:15;;:71;;;;7372:59;7410:10;7423:7;7372:8;:16;;;;;;;;;;;;:29;;;;:59;;;;;:::i;:::-;7456:10;7447:29;;;7468:7;7447:29;;;;;;;;;;;;;;;;;;6751:733;;;:::o;1326:27::-;;;;:::o;3345:627::-;3423:7;3443:13;3474:8;:19;;;3459:11;:34;;:70;;3510:8;:19;;;3459:70;;;3496:11;3459:70;3443:86;;3540:10;3573:3;3553:8;:17;;;:23;:49;;3585:8;:17;;;3553:49;;;3579:3;3553:49;3540:62;;3623:8;:22;;;3617:2;:28;3613:352;;3669:33;3687:8;:14;;;3669:13;3676:5;3669:2;:6;;:13;;;;:::i;:::-;:17;;:33;;;;:::i;:::-;3662:40;;;;;;3613:352;3733:8;:22;;;3724:5;:31;3720:245;;3779:13;3786:5;3779:2;:6;;:13;;;;:::i;:::-;3772:20;;;;;;3720:245;3832:121;3908:30;3915:8;:22;;;3908:2;:6;;:30;;;;:::i;:::-;3832:53;3870:8;:14;;;3832:33;3859:5;3832:8;:22;;;:26;;:33;;;;:::i;:::-;:37;;:53;;;;:::i;:::-;:57;;:121;;;;:::i;:::-;3825:128;;;;3345:627;;;;;:::o;2117:917::-;2337:13;;;;;;;;;;;2315:36;;:10;:36;;;2307:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2378:90;2418:12;2433:10;2453:4;2460:7;2378:31;:90::i;:::-;2502:12;2479:8;:20;;;:35;;;;;;;;;;;;;;;;;;2557:11;2535:8;:19;;:33;;;;2602:12;2579:8;:20;;:35;;;;2650:14;2625:8;:22;;:39;;;;2692:6;2675:8;:14;;:23;;;;2719;2760:11;2745:12;:26;:55;;2789:11;2745:55;;;2774:12;2745:55;2719:81;;2830:8;2811;:16;;;:27;;;;;;;;;;;;;;;;;;2876:15;2849:8;:24;;:42;;;;2931:1;2902:8;:26;;:30;;;;2973:9;2953:8;:17;;:29;;;;3019:7;2993:8;:23;;:33;;;;2117:917;;;;;;;;;:::o;5874:740::-;5926:21;5950:8;:20;5959:10;5950:20;;;;;;;;;;;;;;;5926:44;;5981:12;:10;:12::i;:::-;6022:1;6008:4;:11;;;:15;6004:194;;;6040:15;6058:74;6116:4;:15;;;6058:53;6106:4;6058:43;6074:8;:26;;;6058:4;:11;;;:15;;:43;;;;:::i;:::-;:47;;:53;;;;:::i;:::-;:57;;:74;;;;:::i;:::-;6040:92;;6147:39;6166:10;6178:7;6147:18;:39::i;:::-;6004:194;;6227:1;6212:4;:11;;;:16;:31;;;;;6242:1;6232:7;:11;6212:31;6208:135;;;6260:7;;;;;;;;;;;:23;;;6284:10;6260:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6310:8;:19;;;:21;;;;;;;;;;;;;6208:135;6353:78;6395:10;6416:4;6423:7;6353:8;:16;;;;;;;;;;;;:33;;;;:78;;;;;;:::i;:::-;6456:24;6472:7;6456:4;:11;;;:15;;:24;;;;:::i;:::-;6442:4;:11;;:38;;;;6509:53;6557:4;6509:43;6525:8;:26;;;6509:4;:11;;;:15;;:43;;;;:::i;:::-;:47;;:53;;;;:::i;:::-;6491:4;:15;;:71;;;;6586:10;6578:28;;;6598:7;6578:28;;;;;;;;;;;;;;;;;;5874:740;;:::o;1362:27::-;;;;;;;;;;;;;:::o;7632:413::-;7679:21;7703:8;:20;7712:10;7703:20;;;;;;;;;;;;;;;7679:44;;7734:63;7772:10;7785:4;:11;;;7734:8;:16;;;;;;;;;;;;:29;;;;:63;;;;;:::i;:::-;7831:10;7813:42;;;7843:4;:11;;;7813:42;;;;;;;;;;;;;;;;;;7884:1;7870:4;:11;;;:15;7866:116;;;7902:7;;;;;;;;;;;:20;;;7923:10;7902:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7949:8;:19;;;:21;;;;;;;;;;;;;;7866:116;8006:1;7992:4;:11;;:15;;;;8036:1;8018:4;:15;;:19;;;;7632:413;:::o;5005:734::-;5065:8;:24;;;5049:12;:40;5045:79;;5106:7;;5045:79;5134:16;5153:8;:16;;;;;;;;;;;;:26;;;5188:4;5153:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5134:60;;5221:1;5209:8;:13;5205:161;;;5281:8;:17;;;5266:12;:32;:67;;5316:8;:17;;;5266:67;;;5301:12;5266:67;5239:8;:24;;:94;;;;5348:7;;;5205:161;5376:18;5397:53;5411:8;:24;;;5437:12;5397:13;:53::i;:::-;5376:74;;5461:19;5483:36;5498:8;:20;;;5483:10;:14;;:36;;;;:::i;:::-;5461:58;;5559:67;5590:35;5616:8;5590:21;5606:4;5590:11;:15;;:21;;;;:::i;:::-;:25;;:35;;;;:::i;:::-;5559:8;:26;;;:30;;:67;;;;:::i;:::-;5530:8;:26;;:96;;;;5679:8;:17;;;5664:12;:32;:67;;5714:8;:17;;;5664:67;;;5699:12;5664:67;5637:8;:24;;:94;;;;5005:734;;;;:::o;4214:686::-;4275:7;4295:21;4319:8;:15;4328:5;4319:15;;;;;;;;;;;;;;;4295:39;;4345:25;4373:8;:26;;;4345:54;;4410:16;4429:8;:16;;;;;;;;;;;;:26;;;4464:4;4429:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4410:60;;4500:8;:24;;;4485:12;:39;:56;;;;;4540:1;4528:8;:13;;4485:56;4481:329;;;4558:18;4579:53;4593:8;:24;;;4619:12;4579:13;:53::i;:::-;4558:74;;4647:19;4669:36;4684:8;:20;;;4669:10;:14;;:36;;;;:::i;:::-;4647:58;;4740;4762:35;4788:8;4762:21;4778:4;4762:11;:15;;:21;;;;:::i;:::-;:25;;:35;;;;:::i;:::-;4740:17;:21;;:58;;;;:::i;:::-;4720:78;;4481:329;;;4827:65;4876:4;:15;;;4827:44;4866:4;4827:34;4843:17;4827:4;:11;;;:15;;:34;;;;:::i;:::-;:38;;:44;;;;:::i;:::-;:48;;:65;;;;:::i;:::-;4820:72;;;;;4214:686;;;:::o;2315:459:6:-;2373:7;2619:1;2614;:6;2610:45;;;2643:1;2636:8;;;;2610:45;2665:9;2681:1;2677;:5;2665:17;;2709:1;2704;2700;:5;;;;;;:10;2692:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2766:1;2759:8;;;2315:459;;;;;:::o;3236:130::-;3294:7;3320:39;3324:1;3327;3320:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3313:46;;3236:130;;;;:::o;1456:134::-;1514:7;1540:43;1544:1;1547;1540:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1533:50;;1456:134;;;;:::o;8313:334:3:-;8391:17;8411:8;:20;;;;;;;;;;;;:30;;;8450:4;8411:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8391:65;;8481:9;8471:7;:19;8467:173;;;8507:8;:20;;;;;;;;;;;;:29;;;8537:3;8542:9;8507:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8467:173;;;8585:8;:20;;;;;;;;;;;;:29;;;8615:3;8620:7;8585:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8467:173;8313:334;;;:::o;820:175:5:-;902:86;922:5;952:23;;;977:2;981:5;929:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;902:19;:86::i;:::-;820:175;;;:::o;1009:176:6:-;1067:7;1086:9;1102:1;1098;:5;1086:17;;1126:1;1121;:6;;1113:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1177:1;1170:8;;;1009:176;;;;:::o;755:323:7:-;855:12;869:17;890:5;:10;;924;936:4;942:2;946:5;901:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;890:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;854:99;;;;972:7;:57;;;;;999:1;984:4;:11;:16;:44;;;;1015:4;1004:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;984:44;972:57;964:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;755:323;;;;;;:::o;1001:203:5:-;1101:96;1121:5;1151:27;;;1180:4;1186:2;1190:5;1128:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1101:19;:96::i;:::-;1001:203;;;;:::o;3848:272:6:-;3934:7;3965:1;3961;:5;3968:12;3953:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3991:9;4007:1;4003;:5;;;;;;3991:17;;4112:1;4105:8;;;3848:272;;;;;:::o;1881:187::-;1967:7;1999:1;1994;:6;;2002:12;1986:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2025:9;2041:1;2037;:5;2025:17;;2060:1;2053:8;;;1881:187;;;;;:::o;3083:751:5:-;3502:23;3528:69;3556:4;3528:69;;;;;;;;;;;;;;;;;3536:5;3528:27;;;;:69;;;;;:::i;:::-;3502:95;;3631:1;3611:10;:17;:21;3607:221;;;3751:10;3740:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3732:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3607:221;3083:751;;;:::o;3708:194:0:-;3811:12;3842:53;3865:6;3873:4;3879:1;3882:12;3842:22;:53::i;:::-;3835:60;;3708:194;;;;;:::o;5055:958::-;5185:12;5217:18;5228:6;5217:10;:18::i;:::-;5209:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5340:12;5354:23;5381:6;:11;;5401:8;5412:4;5381:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5339:78;;;;5431:7;5427:580;;;5461:10;5454:17;;;;;;5427:580;5592:1;5572:10;:17;:21;5568:429;;;5830:10;5824:17;5890:15;5877:10;5873:2;5869:19;5862:44;5779:145;5969:12;5962:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5055:958;;;;;;;:::o;853:413::-;913:4;1116:12;1225:7;1213:20;1205:28;;1258:1;1251:4;:8;1244:15;;;853:413;;;:::o
Swarm Source
ipfs://0f037a3eb55840c7676bbe2f0dd4b836cae7cafe5cf0631adacb8e12adc7cbf5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $332.04 | 3.6165 | $1,200.82 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.