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 4,434 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 18128513 | 317 days ago | IN | 0 ETH | 0.00247421 | ||||
Retrieve | 17004749 | 475 days ago | IN | 0 ETH | 0.00228107 | ||||
Retrieve | 16882319 | 493 days ago | IN | 0 ETH | 0.00142387 | ||||
Withdraw | 16488779 | 548 days ago | IN | 0 ETH | 0.00277441 | ||||
Retrieve | 15968891 | 620 days ago | IN | 0 ETH | 0.00269345 | ||||
Withdraw | 15968890 | 620 days ago | IN | 0 ETH | 0.00337118 | ||||
Retrieve | 15857998 | 636 days ago | IN | 0 ETH | 0.00074077 | ||||
Retrieve | 15838925 | 639 days ago | IN | 0 ETH | 0.00142026 | ||||
Retrieve | 15671616 | 662 days ago | IN | 0 ETH | 0.0012285 | ||||
Withdraw | 15629502 | 668 days ago | IN | 0 ETH | 0.00154617 | ||||
Withdraw | 15428830 | 698 days ago | IN | 0 ETH | 0.00268166 | ||||
Retrieve | 15399364 | 703 days ago | IN | 0 ETH | 0.0010832 | ||||
Withdraw | 15399309 | 703 days ago | IN | 0 ETH | 0.00142576 | ||||
Deposit | 15291918 | 720 days ago | IN | 0 ETH | 0.00034061 | ||||
Retrieve | 15201173 | 734 days ago | IN | 0 ETH | 0.00216407 | ||||
Withdraw | 15201150 | 734 days ago | IN | 0 ETH | 0.00304418 | ||||
Withdraw | 15092851 | 751 days ago | IN | 0 ETH | 0.00312719 | ||||
Retrieve | 14984586 | 770 days ago | IN | 0 ETH | 0.00256336 | ||||
Withdraw | 14973025 | 771 days ago | IN | 0 ETH | 0.00314202 | ||||
Withdraw | 14953569 | 775 days ago | IN | 0 ETH | 0.01594082 | ||||
Withdraw | 14847793 | 792 days ago | IN | 0 ETH | 0.0054602 | ||||
Withdraw | 14816805 | 798 days ago | IN | 0 ETH | 0.00148032 | ||||
Retrieve | 14782371 | 803 days ago | IN | 0 ETH | 0.00191827 | ||||
Retrieve | 14776362 | 804 days ago | IN | 0 ETH | 0.00303832 | ||||
Withdraw | 14776345 | 804 days ago | IN | 0 ETH | 0.00335871 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AlpacaFarm
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-08 */ // Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * // importANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // Dependency file: @openzeppelin/contracts/introspection/IERC165.sol // pragma solidity ^0.6.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // Dependency file: @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol // pragma solidity ^0.6.0; // import "@openzeppelin/contracts/introspection/IERC165.sol"; /** * _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns(bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns(bytes4); } // Dependency file: @openzeppelin/contracts/introspection/ERC165.sol // pragma solidity ^0.6.0; // import "@openzeppelin/contracts/introspection/IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } // Dependency file: @openzeppelin/contracts/token/ERC1155/ERC1155Receiver.sol // pragma solidity ^0.6.0; // import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; // import "@openzeppelin/contracts/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { constructor() public { _registerInterface( ERC1155Receiver(0).onERC1155Received.selector ^ ERC1155Receiver(0).onERC1155BatchReceived.selector ); } } // Dependency file: @openzeppelin/contracts/math/SafeMath.sol // 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; } } // Dependency file: @openzeppelin/contracts/utils/Address.sol // 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); } } } } // Dependency file: @openzeppelin/contracts/token/ERC20/SafeERC20.sol // pragma solidity ^0.6.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: @openzeppelin/contracts/utils/EnumerableMap.sol // pragma solidity ^0.6.0; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct MapEntry { bytes32 _key; bytes32 _value; } struct Map { // Storage of map keys and values MapEntry[] _entries; // Position of the entry defined by a key in the `entries` array, plus 1 // because index 0 means a key is not in the map. mapping (bytes32 => uint256) _indexes; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) { // Equivalent to !contains(map, key) map._entries.push(MapEntry({ _key: key, _value: value })); // The entry is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value map._indexes[key] = map._entries.length; return true; } else { map._entries[keyIndex - 1]._value = value; return false; } } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex != 0) { // Equivalent to contains(map, key) // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one // in the array, and then remove the last entry (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = keyIndex - 1; uint256 lastIndex = map._entries.length - 1; // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. MapEntry storage lastEntry = map._entries[lastIndex]; // Move the last entry to the index where the entry to delete is map._entries[toDeleteIndex] = lastEntry; // Update the index for the moved entry map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved entry was stored map._entries.pop(); // Delete the index for the deleted slot delete map._indexes[key]; return true; } else { return false; } } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._indexes[key] != 0; } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._entries.length; } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { require(map._entries.length > index, "EnumerableMap: index out of bounds"); MapEntry storage entry = map._entries[index]; return (entry._key, entry._value); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { return _get(map, key, "EnumerableMap: nonexistent key"); } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint256(value))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint256(_get(map._inner, bytes32(key)))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint256(_get(map._inner, bytes32(key), errorMessage))); } } // Dependency file: @openzeppelin/contracts/utils/ReentrancyGuard.sol // pragma solidity ^0.6.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // Dependency file: @openzeppelin/contracts/math/Math.sol // pragma solidity ^0.6.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } // Dependency file: @openzeppelin/contracts/GSN/Context.sol // 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; } } // Dependency file: @openzeppelin/contracts/access/Ownable.sol // pragma solidity ^0.6.0; // import "@openzeppelin/contracts/GSN/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. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // Dependency file: contracts/interfaces/IAlpaToken.sol // pragma solidity 0.6.12; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; interface IAlpaToken is IERC20 { function mint(address _to, uint256 _amount) external; } // Dependency file: contracts/interfaces/IAlpaSupplier.sol // pragma solidity 0.6.12; interface IAlpaSupplier { /** * @dev mint and distribute ALPA to caller * NOTE: caller must be approved consumer */ function distribute(uint256 _since) external returns (uint256); /** * @dev returns number of ALPA _consumer is expected to recieved at current block */ function preview(address _consumer, uint256 _since) external view returns (uint256); } // Dependency file: @openzeppelin/contracts/token/ERC1155/IERC1155.sol // pragma solidity ^0.6.2; // import "@openzeppelin/contracts/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external; } // Dependency file: contracts/interfaces/ICryptoAlpaca.sol // pragma solidity =0.6.12; // import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; interface ICryptoAlpaca is IERC1155 { function getAlpaca(uint256 _id) external view returns ( uint256 id, bool isReady, uint256 cooldownEndBlock, uint256 birthTime, uint256 matronId, uint256 sireId, uint256 hatchingCost, uint256 hatchingCostMultiplier, uint256 hatchCostMultiplierEndBlock, uint256 generation, uint256 gene, uint256 energy, uint256 state ); function hasPermissionToBreedAsSire(address _addr, uint256 _id) external view returns (bool); function grandPermissionToBreed(address _addr, uint256 _sireId) external; function clearPermissionToBreed(uint256 _alpacaId) external; function hatch(uint256 _matronId, uint256 _sireId) external payable returns (uint256); function crack(uint256 _id) external; } // Dependency file: contracts/interfaces/ICryptoAlpacaEnergyListener.sol // pragma solidity 0.6.12; // import "@openzeppelin/contracts/introspection/IERC165.sol"; interface ICryptoAlpacaEnergyListener is IERC165 { /** @dev Handles the Alpaca energy change callback. @param id The id of the Alpaca which the energy changed @param oldEnergy The ID of the token being transferred @param newEnergy The amount of tokens being transferred */ function onCryptoAlpacaEnergyChanged( uint256 id, uint256 oldEnergy, uint256 newEnergy ) external; } // Dependency file: contracts/interfaces/CryptoAlpacaEnergyListener.sol // pragma solidity 0.6.12; // import "@openzeppelin/contracts/introspection/ERC165.sol"; // import "contracts/interfaces/ICryptoAlpacaEnergyListener.sol"; abstract contract CryptoAlpacaEnergyListener is ERC165, ICryptoAlpacaEnergyListener { constructor() public { _registerInterface( CryptoAlpacaEnergyListener(0).onCryptoAlpacaEnergyChanged.selector ); } } // Root file: contracts/AlpacaFarm/AlpacaFarm.sol pragma solidity 0.6.12; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/token/ERC1155/ERC1155Receiver.sol"; // import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; // import "@openzeppelin/contracts/utils/EnumerableMap.sol"; // import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; // import "@openzeppelin/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts/math/Math.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; // import "contracts/interfaces/IAlpaToken.sol"; // import "contracts/interfaces/IAlpaSupplier.sol"; // import "contracts/interfaces/ICryptoAlpaca.sol"; // import "contracts/interfaces/CryptoAlpacaEnergyListener.sol"; // Alpaca Farm manages your LP and takes good care of you alpaca! contract AlpacaFarm is Ownable, ReentrancyGuard, ERC1155Receiver, CryptoAlpacaEnergyListener { using SafeMath for uint256; using Math for uint256; using SafeERC20 for IERC20; using EnumerableMap for EnumerableMap.UintToAddressMap; /* ========== EVENTS ========== */ event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); /* ========== STRUCT ========== */ // Info of each user. struct UserInfo { // How many LP tokens the user has provided. uint256 amount; // Reward debt. What has been paid so far uint256 rewardDebt; // alpaca user transfered to AlpacaFarm to manage the LP assets uint256 alpacaID; // alpaca's energy uint256 alpacaEnergy; } // Info of each pool. struct PoolInfo { // Address of LP token contract. IERC20 lpToken; // Last block number that ALPAs distribution occurs. uint256 lastRewardBlock; // Accumulated ALPAs per share. Share is determined by LP deposit and total alpaca's energy uint256 accAlpaPerShare; // Accumulated Share uint256 accShare; } /* ========== STATES ========== */ // The ALPA ERC20 token IAlpaToken public alpa; // Crypto alpaca contract ICryptoAlpaca public cryptoAlpaca; // Alpa Supplier IAlpaSupplier public supplier; // Energy if user does not have any alpaca transfered to AlpacaFarm to manage the LP assets uint256 public constant EMPTY_ALPACA_ENERGY = 1; // farm pool info PoolInfo public poolInfo; // Info of each user that stakes LP tokens. mapping(address => UserInfo) public userInfo; // map that keep tracks of the alpaca's original owner so contract knows where to send back when // users swapped or retrieved their alpacas EnumerableMap.UintToAddressMap private alpacaOriginalOwner; uint256 public constant SAFE_MULTIPLIER = 1e16; /* ========== CONSTRUCTOR ========== */ constructor( IAlpaToken _alpa, ICryptoAlpaca _cryptoAlpaca, IAlpaSupplier _supplier, IERC20 lpToken, uint256 _startBlock ) public { alpa = _alpa; cryptoAlpaca = _cryptoAlpaca; supplier = _supplier; poolInfo = PoolInfo({ lpToken: lpToken, lastRewardBlock: block.number.max(_startBlock), accAlpaPerShare: 0, accShare: 0 }); } /* ========== PUBLIC ========== */ /** * @dev View `_user` pending ALPAs */ function pendingAlpa(address _user) external view returns (uint256) { UserInfo storage user = userInfo[_user]; uint256 accAlpaPerShare = poolInfo.accAlpaPerShare; uint256 lpSupply = poolInfo.lpToken.balanceOf(address(this)); if (block.number > poolInfo.lastRewardBlock && lpSupply != 0) { uint256 total = supplier.preview( address(this), poolInfo.lastRewardBlock ); accAlpaPerShare = accAlpaPerShare.add( total.mul(SAFE_MULTIPLIER).div(poolInfo.accShare) ); } return user .amount .mul(_safeUserAlpacaEnergy(user)) .mul(accAlpaPerShare) .div(SAFE_MULTIPLIER) .sub(user.rewardDebt); } /** * @dev Update reward variables of the given pool to be up-to-date. */ function updatePool() public { if (block.number <= poolInfo.lastRewardBlock) { return; } uint256 lpSupply = poolInfo.lpToken.balanceOf(address(this)); if (lpSupply == 0) { poolInfo.lastRewardBlock = block.number; return; } uint256 reward = supplier.distribute(poolInfo.lastRewardBlock); poolInfo.accAlpaPerShare = poolInfo.accAlpaPerShare.add( reward.mul(SAFE_MULTIPLIER).div(poolInfo.accShare) ); poolInfo.lastRewardBlock = block.number; } /** * @dev Retrieve caller's Alpaca. */ function retrieve() public nonReentrant { address sender = _msgSender(); UserInfo storage user = userInfo[sender]; require(user.alpacaID != 0, "AlpacaFarm: you do not have any alpaca"); if (user.amount > 0) { updatePool(); uint256 pending = user .amount .mul(user.alpacaEnergy) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER) .sub(user.rewardDebt); if (pending > 0) { _safeAlpaTransfer(msg.sender, pending); } user.rewardDebt = user .amount .mul(EMPTY_ALPACA_ENERGY) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER); poolInfo.accShare = poolInfo.accShare.sub( (user.alpacaEnergy.sub(1)).mul(user.amount) ); } uint256 prevAlpacaID = user.alpacaID; user.alpacaID = 0; user.alpacaEnergy = 0; // Remove alpaca id to original user mapping alpacaOriginalOwner.remove(prevAlpacaID); cryptoAlpaca.safeTransferFrom( address(this), msg.sender, prevAlpacaID, 1, "" ); } /** * @dev Deposit LP tokens to AlpacaFarm for ALPA allocation. */ function deposit(uint256 _amount) public nonReentrant { updatePool(); UserInfo storage user = userInfo[msg.sender]; if (user.amount > 0) { uint256 pending = user .amount .mul(_safeUserAlpacaEnergy(user)) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER) .sub(user.rewardDebt); if (pending > 0) { _safeAlpaTransfer(msg.sender, pending); } } if (_amount > 0) { poolInfo.lpToken.safeTransferFrom( address(msg.sender), address(this), _amount ); user.amount = user.amount.add(_amount); poolInfo.accShare = poolInfo.accShare.add( _safeUserAlpacaEnergy(user).mul(_amount) ); } user.rewardDebt = user .amount .mul(_safeUserAlpacaEnergy(user)) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER); emit Deposit(msg.sender, _amount); } /** * @dev Withdraw LP tokens from AlpacaFarm. */ function withdraw(uint256 _amount) public nonReentrant { UserInfo storage user = userInfo[msg.sender]; require(user.amount >= _amount, "AlpacaFarm: invalid amount"); updatePool(); uint256 pending = user .amount .mul(_safeUserAlpacaEnergy(user)) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER) .sub(user.rewardDebt); if (pending > 0) { _safeAlpaTransfer(msg.sender, pending); } if (_amount > 0) { user.amount = user.amount.sub(_amount); poolInfo.lpToken.safeTransfer(address(msg.sender), _amount); poolInfo.accShare = poolInfo.accShare.sub( _safeUserAlpacaEnergy(user).mul(_amount) ); } user.rewardDebt = user .amount .mul(_safeUserAlpacaEnergy(user)) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER); emit Withdraw(msg.sender, _amount); } // Withdraw without caring about rewards. // EMERGENCY ONLY. function emergencyWithdraw() public { UserInfo storage user = userInfo[msg.sender]; require(user.amount > 0, "AlpacaFarm: insufficient balance"); uint256 amount = user.amount; user.amount = 0; user.rewardDebt = 0; poolInfo.lpToken.safeTransfer(address(msg.sender), amount); emit EmergencyWithdraw(msg.sender, amount); } /* ========== PRIVATE ========== */ function _safeUserAlpacaEnergy(UserInfo storage info) private view returns (uint256) { if (info.alpacaEnergy == 0) { return EMPTY_ALPACA_ENERGY; } return info.alpacaEnergy; } // Safe alpa transfer function, just in case if rounding error causes pool to not have enough ALPAs. function _safeAlpaTransfer(address _to, uint256 _amount) private { uint256 alpaBal = alpa.balanceOf(address(this)); if (_amount > alpaBal) { alpa.transfer(_to, alpaBal); } else { alpa.transfer(_to, _amount); } } /* ========== ERC1155Receiver ========== */ /** * @dev onERC1155Received implementation per IERC1155Receiver spec */ function onERC1155Received( address, address _from, uint256 _id, uint256, bytes calldata ) external override nonReentrant returns (bytes4) { require( msg.sender == address(cryptoAlpaca), "AlpacaFarm: received alpaca from unauthenticated contract" ); require(_id != 0, "AlpacaFarm: invalid alpaca"); UserInfo storage user = userInfo[_from]; // Fetch alpaca energy (, , , , , , , , , , , uint256 energy, ) = cryptoAlpaca.getAlpaca(_id); require(energy > 0, "AlpacaFarm: invalid alpaca energy"); if (user.amount > 0) { updatePool(); uint256 pending = user .amount .mul(_safeUserAlpacaEnergy(user)) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER) .sub(user.rewardDebt); if (pending > 0) { _safeAlpaTransfer(_from, pending); } // Update user reward debt with new energy user.rewardDebt = user .amount .mul(energy) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER); poolInfo.accShare = poolInfo .accShare .add(energy.mul(user.amount)) .sub(_safeUserAlpacaEnergy(user).mul(user.amount)); } // update user global uint256 prevAlpacaID = user.alpacaID; user.alpacaID = _id; user.alpacaEnergy = energy; // keep track of alpaca owner alpacaOriginalOwner.set(_id, _from); // Give original owner the right to breed cryptoAlpaca.grandPermissionToBreed(_from, _id); if (prevAlpacaID != 0) { // Transfer alpaca back to owner cryptoAlpaca.safeTransferFrom( address(this), _from, prevAlpacaID, 1, "" ); } return bytes4( keccak256( "onERC1155Received(address,address,uint256,uint256,bytes)" ) ); } /** * @dev onERC1155BatchReceived implementation per IERC1155Receiver spec * User should not send using batch. */ function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) external override returns (bytes4) { require( false, "AlpacaFarm: only supports transfer single alpaca at a time (e.g safeTransferFrom)" ); } /* ========== ICryptoAlpacaEnergyListener ========== */ /** @dev Handles the Alpaca energy change callback. @param _id The id of the Alpaca which the energy changed @param _newEnergy The new alpaca energy it changed to */ function onCryptoAlpacaEnergyChanged( uint256 _id, uint256, uint256 _newEnergy ) external override { require( msg.sender == address(cryptoAlpaca), "AlpacaFarm: received alpaca from unauthenticated contract" ); require( alpacaOriginalOwner.contains(_id), "AlpacaFarm: original owner not found" ); address originalOwner = alpacaOriginalOwner.get(_id); UserInfo storage user = userInfo[originalOwner]; if (user.amount > 0) { updatePool(); uint256 pending = user .amount .mul(_safeUserAlpacaEnergy(user)) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER) .sub(user.rewardDebt); if (pending > 0) { _safeAlpaTransfer(originalOwner, pending); } // Update user reward debt with new energy user.rewardDebt = user .amount .mul(_newEnergy) .mul(poolInfo.accAlpaPerShare) .div(SAFE_MULTIPLIER); poolInfo.accShare = poolInfo .accShare .add(_newEnergy.mul(user.amount)) .sub(_safeUserAlpacaEnergy(user).mul(user.amount)); } // update alpaca energy user.alpacaEnergy = _newEnergy; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IAlpaToken","name":"_alpa","type":"address"},{"internalType":"contract ICryptoAlpaca","name":"_cryptoAlpaca","type":"address"},{"internalType":"contract IAlpaSupplier","name":"_supplier","type":"address"},{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[],"name":"EMPTY_ALPACA_ENERGY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SAFE_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"alpa","outputs":[{"internalType":"contract IAlpaToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cryptoAlpaca","outputs":[{"internalType":"contract ICryptoAlpaca","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_newEnergy","type":"uint256"}],"name":"onCryptoAlpacaEnergyChanged","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingAlpa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accAlpaPerShare","type":"uint256"},{"internalType":"uint256","name":"accShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retrieve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplier","outputs":[{"internalType":"contract IAlpaSupplier","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","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"},{"internalType":"uint256","name":"alpacaID","type":"uint256"},{"internalType":"uint256","name":"alpacaEnergy","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200238638038062002386833981810160405260a08110156200003757600080fd5b50805160208201516040830151606084015160809094015192939192909190600062000062620001a4565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055620000c26301ffc9a760e01b620001a8565b620000d4630271189760e51b620001a8565b620000e66316a1938760e21b620001a8565b600380546001600160a01b038088166001600160a01b03199283161790925560048054878416908316179055600580548684169216919091179055604080516080810190915290831681526020808201906200014f9043908590620015e36200022d821b17901c565b8152600060208083018290526040928301919091528251600680546001600160a01b0319166001600160a01b039092169190911790558201516007558101516008556060015160095550620002489350505050565b3390565b6001600160e01b0319808216141562000208576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600260205260409020805460ff19166001179055565b6000818310156200023f578162000241565b825b9392505050565b61212e80620002586000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063715018a6116100ad578063db2e21bc11610071578063db2e21bc146104bf578063dc7e0ce8146104c7578063e3161ddd146104cf578063f23a6e61146104d7578063f2fde38b1461056a5761012c565b8063715018a61461028e5780638da5cb5b14610296578063b6b55f251461029e578063bc197c81146102bb578063c4b0e31e146104995761012c565b80632e64cec1116100f45780632e64cec11461021557806336da44681461021d57806359d6dd9d146102255780635a2f3d091461022d5780635a864e1c146102655761012c565b806301ffc9a71461013157806317f414181461016c5780631959a0021461018657806320689541146101d25780632e1a7d4d146101f6575b600080fd5b6101586004803603602081101561014757600080fd5b50356001600160e01b031916610590565b604080519115158252519081900360200190f35b6101746105b3565b60408051918252519081900360200190f35b6101ac6004803603602081101561019c57600080fd5b50356001600160a01b03166105b8565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6101da6105df565b604080516001600160a01b039092168252519081900360200190f35b6102136004803603602081101561020c57600080fd5b50356105ee565b005b6102136107b0565b6101da6109b3565b6101da6109c2565b6102356109d1565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6102136004803603606081101561027b57600080fd5b50803590602081013590604001356109ec565b610213610b53565b6101da610c07565b610213600480360360208110156102b457600080fd5b5035610c16565b61047c600480360360a08110156102d157600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561030457600080fd5b82018360208201111561031657600080fd5b803590602001918460208302840111600160201b8311171561033757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561038657600080fd5b82018360208201111561039857600080fd5b803590602001918460208302840111600160201b831117156103b957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561040857600080fd5b82018360208201111561041a57600080fd5b803590602001918460018302840111600160201b8311171561043b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d68945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610174600480360360208110156104af57600080fd5b50356001600160a01b0316610da1565b610213610f27565b610174610fe6565b610213610ff1565b61047c600480360360a08110156104ed57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561052c57600080fd5b82018360208201111561053e57600080fd5b803590602001918460018302840111600160201b8311171561055f57600080fd5b509092509050611137565b6102136004803603602081101561058057600080fd5b50356001600160a01b03166114d9565b6001600160e01b0319811660009081526002602052604090205460ff165b919050565b600181565b600a6020526000908152604090208054600182015460028301546003909301549192909184565b6004546001600160a01b031681565b60026001541415610634576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f73833981519152604482015290519081900360640190fd5b6002600155336000908152600a60205260409020805482111561069e576040805162461bcd60e51b815260206004820152601a60248201527f416c706163614661726d3a20696e76616c696420616d6f756e74000000000000604482015290519081900360640190fd5b6106a6610ff1565b60006106ea82600101546106e4662386f26fc100006106de6006600201546106d86106d0896115fe565b89549061161d565b9061161d565b90611676565b906116b8565b905080156106fc576106fc33826116fa565b821561074457815461070e90846116b8565b8255600654610727906001600160a01b0316338561188b565b610740610737846106d8856115fe565b600954906116b8565b6009555b61076c662386f26fc100006106de6006600201546106d8610764876115fe565b87549061161d565b600183015560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506001805550565b600260015414156107f6576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f73833981519152604482015290519081900360640190fd5b600260015560006108056118dd565b6001600160a01b0381166000908152600a602052604090206002810154919250906108615760405162461bcd60e51b8152600401808060200182810382526026815260200180611fb96026913960400191505060405180910390fd5b80541561090457610870610ff1565b60006108a982600101546106e4662386f26fc100006106de6006600201546106d88860030154896000015461161d90919063ffffffff16565b905080156108bb576108bb33826116fa565b60085482546108dd91662386f26fc10000916106de91906106d890600161161d565b600180840191909155825460038401546108ff9261073792916106d8916116b8565b600955505b6002810180546000918290556003830191909155610923600b826118e1565b506004805460408051637921219560e11b81523093810193909352336024840152604483018490526001606484015260a06084840152600060a4840181905290516001600160a01b039092169263f242432a9260e4808301939282900301818387803b15801561099257600080fd5b505af11580156109a6573d6000803e3d6000fd5b5050600180555050505050565b6005546001600160a01b031681565b6003546001600160a01b031681565b6006546007546008546009546001600160a01b039093169284565b6004546001600160a01b03163314610a355760405162461bcd60e51b815260040180806020018281038252603981526020018061206f6039913960400191505060405180910390fd5b610a40600b846118ed565b610a7b5760405162461bcd60e51b8152600401808060200182810382526024815260200180611fdf6024913960400191505060405180910390fd5b6000610a88600b856118f9565b6001600160a01b0381166000908152600a6020526040902080549192509015610b4757610ab3610ff1565b6000610add82600101546106e4662386f26fc100006106de6006600201546106d86106d0896115fe565b90508015610aef57610aef83826116fa565b6008548254610b1091662386f26fc10000916106de91906106d8908961161d565b60018301558154610b4290610b28906106d8856115fe565b83546106e490610b3990889061161d565b60095490611905565b600955505b60030191909155505050565b610b5b6118dd565b6000546001600160a01b03908116911614610bbd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60026001541415610c5c576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f73833981519152604482015290519081900360640190fd5b6002600155610c69610ff1565b336000908152600a60205260409020805415610cbd576000610ca982600101546106e4662386f26fc100006106de6006600201546106d86106d0896115fe565b90508015610cbb57610cbb33826116fa565b505b8115610cfd57600654610cdb906001600160a01b031633308561195f565b8054610ce79083611905565b8155610cf9610b39836106d8846115fe565b6009555b610d25662386f26fc100006106de6006600201546106d8610d1d866115fe565b86549061161d565b600182015560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505060018055565b600060405162461bcd60e51b81526004018080602001828103825260518152602001806120a86051913960600191505060405180910390fd5b6001600160a01b038082166000908152600a6020908152604080832060085460065483516370a0823160e01b81523060048201529351959692959194879491909316926370a0823192602480840193829003018186803b158015610e0457600080fd5b505afa158015610e18573d6000803e3d6000fd5b505050506040513d6020811015610e2e57600080fd5b505160075490915043118015610e4357508015155b15610ef357600554600754604080516313ce19e360e01b81523060048201526024810192909252516000926001600160a01b0316916313ce19e3916044808301926020929190829003018186803b158015610e9d57600080fd5b505afa158015610eb1573d6000803e3d6000fd5b505050506040513d6020811015610ec757600080fd5b5051600954909150610eef90610ee8906106de84662386f26fc1000061161d565b8490611905565b9250505b610f1e83600101546106e4662386f26fc100006106de866106d8610f168a6115fe565b8a549061161d565b95945050505050565b336000908152600a602052604090208054610f89576040805162461bcd60e51b815260206004820181905260248201527f416c706163614661726d3a20696e73756666696369656e742062616c616e6365604482015290519081900360640190fd5b805460008083556001830155600654610fac906001600160a01b0316338361188b565b60408051828152905133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a25050565b662386f26fc1000081565b6007544311610fff57611135565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561104a57600080fd5b505afa15801561105e573d6000803e3d6000fd5b505050506040513d602081101561107457600080fd5b5051905080611087575043600755611135565b600554600754604080516391c05b0b60e01b81526004810192909252516000926001600160a01b0316916391c05b0b91602480830192602092919082900301818787803b1580156110d757600080fd5b505af11580156110eb573d6000803e3d6000fd5b505050506040513d602081101561110157600080fd5b505160095490915061112b90611122906106de84662386f26fc1000061161d565b60085490611905565b6008555050436007555b565b60006002600154141561117f576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f73833981519152604482015290519081900360640190fd5b60026001556004546001600160a01b031633146111cd5760405162461bcd60e51b815260040180806020018281038252603981526020018061206f6039913960400191505060405180910390fd5b8461121f576040805162461bcd60e51b815260206004820152601a60248201527f416c706163614661726d3a20696e76616c696420616c70616361000000000000604482015290519081900360640190fd5b6001600160a01b038087166000908152600a6020526040808220600480548351633719f98b60e11b81529182018b9052925191949290921691636e33f316916024808301926101a0929190829003018186803b15801561127e57600080fd5b505afa158015611292573d6000803e3d6000fd5b505050506040513d6101a08110156112a957600080fd5b5061016001519050806112ed5760405162461bcd60e51b81526004018080602001828103825260218152602001806120036021913960400191505060405180910390fd5b815415611387576112fc610ff1565b600061132683600101546106e4662386f26fc100006106de6006600201546106d8610f168a6115fe565b905080156113385761133889826116fa565b600854835461135991662386f26fc10000916106de91906106d8908761161d565b6001840155825461138290611371906106d8866115fe565b84546106e490610b3990869061161d565b600955505b60028201805490889055600383018290556113a4600b898b6119bf565b5060048054604080516334e7ff4b60e11b81526001600160a01b038d811694820194909452602481018c9052905192909116916369cffe969160448082019260009290919082900301818387803b1580156113fe57600080fd5b505af1158015611412573d6000803e3d6000fd5b50505050806000146114a6576004805460408051637921219560e11b815230938101939093526001600160a01b038c81166024850152604484018590526001606485015260a06084850152600060a48501819052915192169263f242432a9260e4808301939282900301818387803b15801561148d57600080fd5b505af11580156114a1573d6000803e3d6000fd5b505050505b505060018055507ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf97979650505050505050565b6114e16118dd565b6000546001600160a01b03908116911614611543576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166115885760405162461bcd60e51b8152600401808060200182810382526026815260200180611f936026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000818310156115f357816115f5565b825b90505b92915050565b6000816003015460001415611615575060016105ae565b506003015490565b60008261162c575060006115f8565b8282028284828161163957fe5b04146115f55760405162461bcd60e51b81526004018080602001828103825260218152602001806120246021913960400191505060405180910390fd5b60006115f583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506119df565b60006115f583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a81565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561174557600080fd5b505afa158015611759573d6000803e3d6000fd5b505050506040513d602081101561176f57600080fd5b5051905080821115611803576003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156117d157600080fd5b505af11580156117e5573d6000803e3d6000fd5b505050506040513d60208110156117fb57600080fd5b506118869050565b6003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561185957600080fd5b505af115801561186d573d6000803e3d6000fd5b505050506040513d602081101561188357600080fd5b50505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611886908490611adb565b3390565b60006115f58383611b8c565b60006115f58383611c6a565b60006115f58383611c82565b6000828201838110156115f5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526119b9908590611adb565b50505050565b60006119d584846001600160a01b038516611cc4565b90505b9392505050565b60008183611a6b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a30578181015183820152602001611a18565b50505050905090810190601f168015611a5d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611a7757fe5b0495945050505050565b60008184841115611ad35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611a30578181015183820152602001611a18565b505050900390565b6060611b30826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d5b9092919063ffffffff16565b80519091501561188657808060200190516020811015611b4f57600080fd5b50516118865760405162461bcd60e51b815260040180806020018281038252602a815260200180612045602a913960400191505060405180910390fd5b60008181526001830160205260408120548015611c605783546000198083019190810190600090879083908110611bbf57fe5b9060005260206000209060020201905080876000018481548110611bdf57fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611c1e57fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506115f89350505050565b60009150506115f8565b60009081526001919091016020526040902054151590565b60006115f583836040518060400160405280601e81526020017f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000815250611d6a565b600082815260018401602052604081205480611d295750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556119d8565b82856000016001830381548110611d3c57fe5b90600052602060002090600202016001018190555060009150506119d8565b60606119d58484600085611df7565b60008281526001840160205260408120548281611dc85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611a30578181015183820152602001611a18565b50846000016001820381548110611ddb57fe5b9060005260206000209060020201600101549150509392505050565b6060611e0285611f6c565b611e53576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611e925780518252601f199092019160209182019101611e73565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611ef4576040519150601f19603f3d011682016040523d82523d6000602084013e611ef9565b606091505b50915091508115611f0d579150611f649050565b805115611f1d5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611a30578181015183820152602001611a18565b949350505050565b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416c706163614661726d3a20796f7520646f206e6f74206861766520616e7920616c70616361416c706163614661726d3a206f726967696e616c206f776e6572206e6f7420666f756e64416c706163614661726d3a20696e76616c696420616c7061636120656e65726779536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564416c706163614661726d3a20726563656976656420616c706163612066726f6d20756e61757468656e7469636174656420636f6e7472616374416c706163614661726d3a206f6e6c7920737570706f727473207472616e736665722073696e676c6520616c7061636120617420612074696d652028652e6720736166655472616e7366657246726f6d29a264697066735822122003be7096e9b54ae044d1e8e002eec77deba4797351ba17e05a2a81e5699d0b8264736f6c634300060c00330000000000000000000000007ca4408137eb639570f8e647d9bd7b7e8717514a000000000000000000000000c7e5e9434f4a71e6db978bd65b4d61d3593e5f2700000000000000000000000014285e0c66379c0af1b1e8e9092f67a66ccf5cd7000000000000000000000000441f9e2c89a343cefb390a8954b3b562f8f91eca0000000000000000000000000000000000000000000000000000000000ab1efc
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063715018a6116100ad578063db2e21bc11610071578063db2e21bc146104bf578063dc7e0ce8146104c7578063e3161ddd146104cf578063f23a6e61146104d7578063f2fde38b1461056a5761012c565b8063715018a61461028e5780638da5cb5b14610296578063b6b55f251461029e578063bc197c81146102bb578063c4b0e31e146104995761012c565b80632e64cec1116100f45780632e64cec11461021557806336da44681461021d57806359d6dd9d146102255780635a2f3d091461022d5780635a864e1c146102655761012c565b806301ffc9a71461013157806317f414181461016c5780631959a0021461018657806320689541146101d25780632e1a7d4d146101f6575b600080fd5b6101586004803603602081101561014757600080fd5b50356001600160e01b031916610590565b604080519115158252519081900360200190f35b6101746105b3565b60408051918252519081900360200190f35b6101ac6004803603602081101561019c57600080fd5b50356001600160a01b03166105b8565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6101da6105df565b604080516001600160a01b039092168252519081900360200190f35b6102136004803603602081101561020c57600080fd5b50356105ee565b005b6102136107b0565b6101da6109b3565b6101da6109c2565b6102356109d1565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6102136004803603606081101561027b57600080fd5b50803590602081013590604001356109ec565b610213610b53565b6101da610c07565b610213600480360360208110156102b457600080fd5b5035610c16565b61047c600480360360a08110156102d157600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561030457600080fd5b82018360208201111561031657600080fd5b803590602001918460208302840111600160201b8311171561033757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561038657600080fd5b82018360208201111561039857600080fd5b803590602001918460208302840111600160201b831117156103b957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561040857600080fd5b82018360208201111561041a57600080fd5b803590602001918460018302840111600160201b8311171561043b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d68945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610174600480360360208110156104af57600080fd5b50356001600160a01b0316610da1565b610213610f27565b610174610fe6565b610213610ff1565b61047c600480360360a08110156104ed57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561052c57600080fd5b82018360208201111561053e57600080fd5b803590602001918460018302840111600160201b8311171561055f57600080fd5b509092509050611137565b6102136004803603602081101561058057600080fd5b50356001600160a01b03166114d9565b6001600160e01b0319811660009081526002602052604090205460ff165b919050565b600181565b600a6020526000908152604090208054600182015460028301546003909301549192909184565b6004546001600160a01b031681565b60026001541415610634576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f73833981519152604482015290519081900360640190fd5b6002600155336000908152600a60205260409020805482111561069e576040805162461bcd60e51b815260206004820152601a60248201527f416c706163614661726d3a20696e76616c696420616d6f756e74000000000000604482015290519081900360640190fd5b6106a6610ff1565b60006106ea82600101546106e4662386f26fc100006106de6006600201546106d86106d0896115fe565b89549061161d565b9061161d565b90611676565b906116b8565b905080156106fc576106fc33826116fa565b821561074457815461070e90846116b8565b8255600654610727906001600160a01b0316338561188b565b610740610737846106d8856115fe565b600954906116b8565b6009555b61076c662386f26fc100006106de6006600201546106d8610764876115fe565b87549061161d565b600183015560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506001805550565b600260015414156107f6576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f73833981519152604482015290519081900360640190fd5b600260015560006108056118dd565b6001600160a01b0381166000908152600a602052604090206002810154919250906108615760405162461bcd60e51b8152600401808060200182810382526026815260200180611fb96026913960400191505060405180910390fd5b80541561090457610870610ff1565b60006108a982600101546106e4662386f26fc100006106de6006600201546106d88860030154896000015461161d90919063ffffffff16565b905080156108bb576108bb33826116fa565b60085482546108dd91662386f26fc10000916106de91906106d890600161161d565b600180840191909155825460038401546108ff9261073792916106d8916116b8565b600955505b6002810180546000918290556003830191909155610923600b826118e1565b506004805460408051637921219560e11b81523093810193909352336024840152604483018490526001606484015260a06084840152600060a4840181905290516001600160a01b039092169263f242432a9260e4808301939282900301818387803b15801561099257600080fd5b505af11580156109a6573d6000803e3d6000fd5b5050600180555050505050565b6005546001600160a01b031681565b6003546001600160a01b031681565b6006546007546008546009546001600160a01b039093169284565b6004546001600160a01b03163314610a355760405162461bcd60e51b815260040180806020018281038252603981526020018061206f6039913960400191505060405180910390fd5b610a40600b846118ed565b610a7b5760405162461bcd60e51b8152600401808060200182810382526024815260200180611fdf6024913960400191505060405180910390fd5b6000610a88600b856118f9565b6001600160a01b0381166000908152600a6020526040902080549192509015610b4757610ab3610ff1565b6000610add82600101546106e4662386f26fc100006106de6006600201546106d86106d0896115fe565b90508015610aef57610aef83826116fa565b6008548254610b1091662386f26fc10000916106de91906106d8908961161d565b60018301558154610b4290610b28906106d8856115fe565b83546106e490610b3990889061161d565b60095490611905565b600955505b60030191909155505050565b610b5b6118dd565b6000546001600160a01b03908116911614610bbd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60026001541415610c5c576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f73833981519152604482015290519081900360640190fd5b6002600155610c69610ff1565b336000908152600a60205260409020805415610cbd576000610ca982600101546106e4662386f26fc100006106de6006600201546106d86106d0896115fe565b90508015610cbb57610cbb33826116fa565b505b8115610cfd57600654610cdb906001600160a01b031633308561195f565b8054610ce79083611905565b8155610cf9610b39836106d8846115fe565b6009555b610d25662386f26fc100006106de6006600201546106d8610d1d866115fe565b86549061161d565b600182015560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505060018055565b600060405162461bcd60e51b81526004018080602001828103825260518152602001806120a86051913960600191505060405180910390fd5b6001600160a01b038082166000908152600a6020908152604080832060085460065483516370a0823160e01b81523060048201529351959692959194879491909316926370a0823192602480840193829003018186803b158015610e0457600080fd5b505afa158015610e18573d6000803e3d6000fd5b505050506040513d6020811015610e2e57600080fd5b505160075490915043118015610e4357508015155b15610ef357600554600754604080516313ce19e360e01b81523060048201526024810192909252516000926001600160a01b0316916313ce19e3916044808301926020929190829003018186803b158015610e9d57600080fd5b505afa158015610eb1573d6000803e3d6000fd5b505050506040513d6020811015610ec757600080fd5b5051600954909150610eef90610ee8906106de84662386f26fc1000061161d565b8490611905565b9250505b610f1e83600101546106e4662386f26fc100006106de866106d8610f168a6115fe565b8a549061161d565b95945050505050565b336000908152600a602052604090208054610f89576040805162461bcd60e51b815260206004820181905260248201527f416c706163614661726d3a20696e73756666696369656e742062616c616e6365604482015290519081900360640190fd5b805460008083556001830155600654610fac906001600160a01b0316338361188b565b60408051828152905133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a25050565b662386f26fc1000081565b6007544311610fff57611135565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561104a57600080fd5b505afa15801561105e573d6000803e3d6000fd5b505050506040513d602081101561107457600080fd5b5051905080611087575043600755611135565b600554600754604080516391c05b0b60e01b81526004810192909252516000926001600160a01b0316916391c05b0b91602480830192602092919082900301818787803b1580156110d757600080fd5b505af11580156110eb573d6000803e3d6000fd5b505050506040513d602081101561110157600080fd5b505160095490915061112b90611122906106de84662386f26fc1000061161d565b60085490611905565b6008555050436007555b565b60006002600154141561117f576040805162461bcd60e51b815260206004820152601f6024820152600080516020611f73833981519152604482015290519081900360640190fd5b60026001556004546001600160a01b031633146111cd5760405162461bcd60e51b815260040180806020018281038252603981526020018061206f6039913960400191505060405180910390fd5b8461121f576040805162461bcd60e51b815260206004820152601a60248201527f416c706163614661726d3a20696e76616c696420616c70616361000000000000604482015290519081900360640190fd5b6001600160a01b038087166000908152600a6020526040808220600480548351633719f98b60e11b81529182018b9052925191949290921691636e33f316916024808301926101a0929190829003018186803b15801561127e57600080fd5b505afa158015611292573d6000803e3d6000fd5b505050506040513d6101a08110156112a957600080fd5b5061016001519050806112ed5760405162461bcd60e51b81526004018080602001828103825260218152602001806120036021913960400191505060405180910390fd5b815415611387576112fc610ff1565b600061132683600101546106e4662386f26fc100006106de6006600201546106d8610f168a6115fe565b905080156113385761133889826116fa565b600854835461135991662386f26fc10000916106de91906106d8908761161d565b6001840155825461138290611371906106d8866115fe565b84546106e490610b3990869061161d565b600955505b60028201805490889055600383018290556113a4600b898b6119bf565b5060048054604080516334e7ff4b60e11b81526001600160a01b038d811694820194909452602481018c9052905192909116916369cffe969160448082019260009290919082900301818387803b1580156113fe57600080fd5b505af1158015611412573d6000803e3d6000fd5b50505050806000146114a6576004805460408051637921219560e11b815230938101939093526001600160a01b038c81166024850152604484018590526001606485015260a06084850152600060a48501819052915192169263f242432a9260e4808301939282900301818387803b15801561148d57600080fd5b505af11580156114a1573d6000803e3d6000fd5b505050505b505060018055507ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf97979650505050505050565b6114e16118dd565b6000546001600160a01b03908116911614611543576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166115885760405162461bcd60e51b8152600401808060200182810382526026815260200180611f936026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000818310156115f357816115f5565b825b90505b92915050565b6000816003015460001415611615575060016105ae565b506003015490565b60008261162c575060006115f8565b8282028284828161163957fe5b04146115f55760405162461bcd60e51b81526004018080602001828103825260218152602001806120246021913960400191505060405180910390fd5b60006115f583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506119df565b60006115f583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a81565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561174557600080fd5b505afa158015611759573d6000803e3d6000fd5b505050506040513d602081101561176f57600080fd5b5051905080821115611803576003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156117d157600080fd5b505af11580156117e5573d6000803e3d6000fd5b505050506040513d60208110156117fb57600080fd5b506118869050565b6003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561185957600080fd5b505af115801561186d573d6000803e3d6000fd5b505050506040513d602081101561188357600080fd5b50505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611886908490611adb565b3390565b60006115f58383611b8c565b60006115f58383611c6a565b60006115f58383611c82565b6000828201838110156115f5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526119b9908590611adb565b50505050565b60006119d584846001600160a01b038516611cc4565b90505b9392505050565b60008183611a6b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a30578181015183820152602001611a18565b50505050905090810190601f168015611a5d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611a7757fe5b0495945050505050565b60008184841115611ad35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611a30578181015183820152602001611a18565b505050900390565b6060611b30826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d5b9092919063ffffffff16565b80519091501561188657808060200190516020811015611b4f57600080fd5b50516118865760405162461bcd60e51b815260040180806020018281038252602a815260200180612045602a913960400191505060405180910390fd5b60008181526001830160205260408120548015611c605783546000198083019190810190600090879083908110611bbf57fe5b9060005260206000209060020201905080876000018481548110611bdf57fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611c1e57fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506115f89350505050565b60009150506115f8565b60009081526001919091016020526040902054151590565b60006115f583836040518060400160405280601e81526020017f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000815250611d6a565b600082815260018401602052604081205480611d295750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556119d8565b82856000016001830381548110611d3c57fe5b90600052602060002090600202016001018190555060009150506119d8565b60606119d58484600085611df7565b60008281526001840160205260408120548281611dc85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611a30578181015183820152602001611a18565b50846000016001820381548110611ddb57fe5b9060005260206000209060020201600101549150509392505050565b6060611e0285611f6c565b611e53576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611e925780518252601f199092019160209182019101611e73565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611ef4576040519150601f19603f3d011682016040523d82523d6000602084013e611ef9565b606091505b50915091508115611f0d579150611f649050565b805115611f1d5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611a30578181015183820152602001611a18565b949350505050565b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416c706163614661726d3a20796f7520646f206e6f74206861766520616e7920616c70616361416c706163614661726d3a206f726967696e616c206f776e6572206e6f7420666f756e64416c706163614661726d3a20696e76616c696420616c7061636120656e65726779536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564416c706163614661726d3a20726563656976656420616c706163612066726f6d20756e61757468656e7469636174656420636f6e7472616374416c706163614661726d3a206f6e6c7920737570706f727473207472616e736665722073696e676c6520616c7061636120617420612074696d652028652e6720736166655472616e7366657246726f6d29a264697066735822122003be7096e9b54ae044d1e8e002eec77deba4797351ba17e05a2a81e5699d0b8264736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007ca4408137eb639570f8e647d9bd7b7e8717514a000000000000000000000000c7e5e9434f4a71e6db978bd65b4d61d3593e5f2700000000000000000000000014285e0c66379c0af1b1e8e9092f67a66ccf5cd7000000000000000000000000441f9e2c89a343cefb390a8954b3b562f8f91eca0000000000000000000000000000000000000000000000000000000000ab1efc
-----Decoded View---------------
Arg [0] : _alpa (address): 0x7cA4408137eb639570F8E647d9bD7B7E8717514A
Arg [1] : _cryptoAlpaca (address): 0xC7e5e9434f4a71e6dB978bD65B4D61D3593e5f27
Arg [2] : _supplier (address): 0x14285E0C66379c0AF1B1e8E9092F67a66cCF5cD7
Arg [3] : lpToken (address): 0x441F9E2C89A343cefb390a8954b3b562F8F91eca
Arg [4] : _startBlock (uint256): 11214588
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000007ca4408137eb639570f8e647d9bd7b7e8717514a
Arg [1] : 000000000000000000000000c7e5e9434f4a71e6db978bd65b4d61d3593e5f27
Arg [2] : 00000000000000000000000014285e0c66379c0af1b1e8e9092f67a66ccf5cd7
Arg [3] : 000000000000000000000000441f9e2c89a343cefb390a8954b3b562f8f91eca
Arg [4] : 0000000000000000000000000000000000000000000000000000000000ab1efc
Deployed Bytecode Sourcemap
47577:13915:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7317:142;;;;;;;;;;;;;;;;-1:-1:-1;7317:142:0;-1:-1:-1;;;;;;7317:142:0;;:::i;:::-;;;;;;;;;;;;;;;;;;49254:47;;;:::i;:::-;;;;;;;;;;;;;;;;49415:44;;;;;;;;;;;;;;;;-1:-1:-1;49415:44:0;-1:-1:-1;;;;;49415:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49055:33;;;:::i;:::-;;;;-1:-1:-1;;;;;49055:33:0;;;;;;;;;;;;;;54608:1047;;;;;;;;;;;;;;;;-1:-1:-1;54608:1047:0;;:::i;:::-;;51967:1337;;;:::i;49119:29::-;;;:::i;48993:22::-;;;:::i;49333:24::-;;;:::i;:::-;;;;-1:-1:-1;;;;;49333:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60012:1477;;;;;;;;;;;;;;;;-1:-1:-1;60012:1477:0;;;;;;;;;;;;:::i;38992:148::-;;;:::i;38350:79::-;;;:::i;53396:1137::-;;;;;;;;;;;;;;;;-1:-1:-1;53396:1137:0;;:::i;59396:342::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;59396:342:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59396:342:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59396:342:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59396:342:0;;;;;;;;-1:-1:-1;59396:342:0;;-1:-1:-1;;;;;59396:342:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59396:342:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59396:342:0;;;;;;;;-1:-1:-1;59396:342:0;;-1:-1:-1;;;;;59396:342:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;59396:342:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59396:342:0;;-1:-1:-1;59396:342:0;;-1:-1:-1;;;;;59396:342:0:i;:::-;;;;-1:-1:-1;;;;;;59396:342:0;;;;;;;;;;;;;;50371:848;;;;;;;;;;;;;;;;-1:-1:-1;50371:848:0;-1:-1:-1;;;;;50371:848:0;;:::i;55734:389::-;;;:::i;49686:46::-;;;:::i;51318:584::-;;;:::i;56966:2285::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;56966:2285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;56966:2285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;56966:2285:0;;;;;;;;;;-1:-1:-1;56966:2285:0;;-1:-1:-1;56966:2285:0;-1:-1:-1;56966:2285:0;:::i;39295:244::-;;;;;;;;;;;;;;;;-1:-1:-1;39295:244:0;-1:-1:-1;;;;;39295:244:0;;:::i;7317:142::-;-1:-1:-1;;;;;;7418:33:0;;7394:4;7418:33;;;:20;:33;;;;;;;;7317:142;;;;:::o;49254:47::-;49300:1;49254:47;:::o;49415:44::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;49055:33::-;;;-1:-1:-1;;;;;49055:33:0;;:::o;54608:1047::-;34372:1;34978:7;;:19;;34970:63;;;;;-1:-1:-1;;;34970:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;34970:63:0;;;;;;;;;;;;;;;34372:1;35111:7;:18;54707:10:::1;54674:21;54698:20:::0;;;:8:::1;:20;::::0;;;;54737:11;;:22;-1:-1:-1;54737:22:0::1;54729:61;;;::::0;;-1:-1:-1;;;54729:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;54803:12;:10;:12::i;:::-;54826:15;54844:186;55014:4;:15;;;54844:151;49728:4;54844:116;54935:8;:24;;;54844:72;54888:27;54910:4;54888:21;:27::i;:::-;54844:25:::0;;;:43:::1;:72::i;:::-;:90:::0;::::1;:116::i;:::-;:134:::0;::::1;:151::i;:::-;:169:::0;::::1;:186::i;:::-;54826:204:::0;-1:-1:-1;55047:11:0;;55043:82:::1;;55075:38;55093:10;55105:7;55075:17;:38::i;:::-;55139:11:::0;;55135:286:::1;;55181:11:::0;;:24:::1;::::0;55197:7;55181:15:::1;:24::i;:::-;55167:38:::0;;55220:8:::1;:16:::0;:59:::1;::::0;-1:-1:-1;;;;;55220:16:0::1;55258:10;55271:7:::0;55220:29:::1;:59::i;:::-;55314:95;55354:40;55386:7;55354:27;55376:4;55354:21;:27::i;:40::-;55314:17:::0;;;:21:::1;:95::i;:::-;55294:17:::0;:115;55135:286:::1;55451:151;49728:4;55451:116;55542:8;:24;;;55451:72;55495:27;55517:4;55495:21;:27::i;:::-;55451:25:::0;;;:43:::1;:72::i;:151::-;55433:15;::::0;::::1;:169:::0;55618:29:::1;::::0;;;;;;;55627:10:::1;::::0;55618:29:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;34328:1:0;35290:22;;-1:-1:-1;54608:1047:0:o;51967:1337::-;34372:1;34978:7;;:19;;34970:63;;;;;-1:-1:-1;;;34970:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;34970:63:0;;;;;;;;;;;;;;;34372:1;35111:7;:18;52018:14:::1;52035:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;52084:16:0;::::1;52060:21;52084:16:::0;;;:8:::1;:16;::::0;;;;52119:13:::1;::::0;::::1;::::0;52018:29;;-1:-1:-1;52084:16:0;52111:69:::1;;;;-1:-1:-1::0;;;52111:69:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52197:11:::0;;:15;52193:722:::1;;52229:12;:10;:12::i;:::-;52256:15;52274:196;52454:4;:15;;;52274:157;49728:4;52274:118;52367:8;:24;;;52274:70;52326:4;:17;;;52274:4;:29;;;:51;;:70;;;;:::i;:196::-;52256:214:::0;-1:-1:-1;52489:11:0;;52485:90:::1;;52521:38;52539:10;52551:7;52521:17;:38::i;:::-;52704:24:::0;;52609:29;;:159:::1;::::0;49728:4:::1;::::0;52609:120:::1;::::0;52704:24;52609:72:::1;::::0;49300:1:::1;52609:51;:72::i;:159::-;52591:15;::::0;;::::1;:177:::0;;;;52876:11;;52846:17:::1;::::0;::::1;::::0;52805:98:::1;::::0;52845:43:::1;::::0;52876:11;52846:24:::1;::::0;:21:::1;:24::i;52805:98::-;52785:17:::0;:118;-1:-1:-1;52193:722:0::1;52950:13;::::0;::::1;::::0;;52927:20:::1;52974:17:::0;;;;53002::::1;::::0;::::1;:21:::0;;;;53090:40:::1;:19;52950:13:::0;53090:26:::1;:40::i;:::-;-1:-1:-1::0;53143:12:0::1;::::0;;:153:::1;::::0;;-1:-1:-1;;;53143:153:0;;53195:4:::1;53143:153:::0;;::::1;::::0;;;;53215:10:::1;53143:153:::0;;;;;;;;;;:12;:153;;;;;;;;;:12:::1;:153:::0;;;;;;;;-1:-1:-1;;;;;53143:12:0;;::::1;::::0;:29:::1;::::0;:153;;;;;:12;:153;;;;;:12;;:153;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;34328:1:0;35290:22;;-1:-1:-1;;;;;51967:1337:0:o;49119:29::-;;;-1:-1:-1;;;;;49119:29:0;;:::o;48993:22::-;;;-1:-1:-1;;;;;48993:22:0;;:::o;49333:24::-;;;;;;;;;-1:-1:-1;;;;;49333:24:0;;;;;:::o;60012:1477::-;60198:12;;-1:-1:-1;;;;;60198:12:0;60176:10;:35;60154:142;;;;-1:-1:-1;;;60154:142:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60331:33;:19;60360:3;60331:28;:33::i;:::-;60309:119;;;;-1:-1:-1;;;60309:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60441:21;60465:28;:19;60489:3;60465:23;:28::i;:::-;-1:-1:-1;;;;;60528:23:0;;60504:21;60528:23;;;:8;:23;;;;;60568:11;;60441:52;;-1:-1:-1;60528:23:0;60568:15;60564:842;;60600:12;:10;:12::i;:::-;60629:15;60647:206;60837:4;:15;;;60647:167;49728:4;60647:128;60750:8;:24;;;60647:80;60699:27;60721:4;60699:21;:27::i;60647:206::-;60629:224;-1:-1:-1;60874:11:0;;60870:93;;60906:41;60924:13;60939:7;60906:17;:41::i;:::-;61139:24;;61053:29;;:150;;49728:4;;61053:111;;61139:24;61053:63;;61105:10;61053:51;:63::i;:150::-;61035:15;;;:168;61381:11;;61240:154;;61349:44;;:27;61035:4;61349:21;:27::i;:44::-;61313:11;;61240:86;;61298:27;;:10;;:14;:27::i;:::-;61240:35;;;:57;:86::i;:154::-;61220:17;:174;-1:-1:-1;60564:842:0;61451:17;;:30;;;;-1:-1:-1;;;60012:1477:0:o;38992:148::-;38572:12;:10;:12::i;:::-;38562:6;;-1:-1:-1;;;;;38562:6:0;;;:22;;;38554:67;;;;;-1:-1:-1;;;38554:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39099:1:::1;39083:6:::0;;39062:40:::1;::::0;-1:-1:-1;;;;;39083:6:0;;::::1;::::0;39062:40:::1;::::0;39099:1;;39062:40:::1;39130:1;39113:19:::0;;-1:-1:-1;;;;;;39113:19:0::1;::::0;;38992:148::o;38350:79::-;38388:7;38415:6;-1:-1:-1;;;;;38415:6:0;38350:79;:::o;53396:1137::-;34372:1;34978:7;;:19;;34970:63;;;;;-1:-1:-1;;;34970:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;34970:63:0;;;;;;;;;;;;;;;34372:1;35111:7;:18;53461:12:::1;:10;:12::i;:::-;53519:10;53486:21;53510:20:::0;;;:8:::1;:20;::::0;;;;53545:11;;:15;53541:376:::1;;53577:15;53595:206;53785:4;:15;;;53595:167;49728:4;53595:128;53698:8;:24;;;53595:80;53647:27;53669:4;53647:21;:27::i;53595:206::-;53577:224:::0;-1:-1:-1;53820:11:0;;53816:90:::1;;53852:38;53870:10;53882:7;53852:17;:38::i;:::-;53541:376;;53933:11:::0;;53929:371:::1;;53961:8;:16:::0;:144:::1;::::0;-1:-1:-1;;;;;53961:16:0::1;54021:10;54059:4;54083:7:::0;53961:33:::1;:144::i;:::-;54134:11:::0;;:24:::1;::::0;54150:7;54134:15:::1;:24::i;:::-;54120:38:::0;;54193:95:::1;54233:40;54265:7:::0;54233:27:::1;54120:4:::0;54233:21:::1;:27::i;54193:95::-;54173:17:::0;:115;53929:371:::1;54330:151;49728:4;54330:116;54421:8;:24;;;54330:72;54374:27;54396:4;54374:21;:27::i;:::-;54330:25:::0;;;:43:::1;:72::i;:151::-;54312:15;::::0;::::1;:169:::0;54497:28:::1;::::0;;;;;;;54505:10:::1;::::0;54497:28:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;34328:1:0;35290:22;;53396:1137::o;59396:342::-;59575:6;59594:136;;-1:-1:-1;;;59594:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50371:848;-1:-1:-1;;;;;50474:15:0;;;50430:7;50474:15;;;:8;:15;;;;;;;;50528:24;;:8;50582:16;:41;;-1:-1:-1;;;50582:41:0;;50617:4;50582:41;;;;;;50430:7;;50474:15;;50528:24;;50430:7;;50582:16;;;;;:26;;:41;;;;;;;;;;:16;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50582:41:0;50655:24;;50582:41;;-1:-1:-1;50640:12:0;:39;:56;;;;-1:-1:-1;50683:13:0;;;50640:56;50636:348;;;50729:8;;50796:24;;50729:106;;;-1:-1:-1;;;50729:106:0;;50772:4;50729:106;;;;;;;;;;;;50713:13;;-1:-1:-1;;;;;50729:8:0;;:16;;:106;;;;;;;;;;;;;;:8;:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50729:106:0;50939:17;;50729:106;;-1:-1:-1;50870:102:0;;50908:49;;:26;50729:106;49728:4;50908:9;:26::i;:49::-;50870:15;;:19;:102::i;:::-;50852:120;;50636:348;;51014:197;51195:4;:15;;;51014:158;49728:4;51014:119;51117:15;51014:80;51066:27;51088:4;51066:21;:27::i;:::-;51014:29;;;:51;:80::i;:197::-;50994:217;50371:848;-1:-1:-1;;;;;50371:848:0:o;55734:389::-;55814:10;55781:21;55805:20;;;:8;:20;;;;;55844:11;;55836:60;;;;;-1:-1:-1;;;55836:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55926:11;;55909:14;55948:15;;;-1:-1:-1;55974:15:0;;:19;56004:8;:16;:58;;-1:-1:-1;;;;;56004:16:0;56042:10;55926:11;56004:29;:58::i;:::-;56078:37;;;;;;;;56096:10;;56078:37;;;;;;;;;;55734:389;;:::o;49686:46::-;49728:4;49686:46;:::o;51318:584::-;51378:24;;51362:12;:40;51358:79;;51419:7;;51358:79;51468:8;:16;:41;;;-1:-1:-1;;;51468:41:0;;51503:4;51468:41;;;;;;51449:16;;-1:-1:-1;;;;;51468:16:0;;:26;;:41;;;;;;;;;;;;;;:16;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51468:41:0;;-1:-1:-1;51524:13:0;51520:106;;-1:-1:-1;51581:12:0;51554:24;:39;51608:7;;51520:106;51655:8;;51675:24;;51655:45;;;-1:-1:-1;;;51655:45:0;;;;;;;;;;51638:14;;-1:-1:-1;;;;;51655:8:0;;:19;;:45;;;;;;;;;;;;;;51638:14;51655:8;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51655:45:0;51813:17;;51655:45;;-1:-1:-1;51738:104:0;;51781:50;;:27;51655:45;49728:4;51781:10;:27::i;:50::-;51738:24;;;:28;:104::i;:::-;51711:24;:131;-1:-1:-1;;51882:12:0;51855:24;:39;51318:584;:::o;56966:2285::-;57147:6;34372:1;34978:7;;:19;;34970:63;;;;;-1:-1:-1;;;34970:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;34970:63:0;;;;;;;;;;;;;;;34372:1;35111:7;:18;57210:12:::1;::::0;-1:-1:-1;;;;;57210:12:0::1;57188:10;:35;57166:142;;;;-1:-1:-1::0;;;57166:142:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57329:8:::0;57321:47:::1;;;::::0;;-1:-1:-1;;;57321:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;57405:15:0;;::::1;57381:21;57405:15:::0;;;:8:::1;:15;::::0;;;;;57508:12:::1;::::0;;:27;;-1:-1:-1;;;57508:27:0;;;;::::1;::::0;;;;;57405:15;;57508:12;;;::::1;::::0;:22:::1;::::0;:27;;;;;::::1;::::0;;;;;;;;:12;:27;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;57508:27:0;;;;-1:-1:-1;57554:10:0;57546:56:::1;;;;-1:-1:-1::0;;;57546:56:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57619:11:::0;;:15;57615:822:::1;;57651:12;:10;:12::i;:::-;57680:15;57698:206;57888:4;:15;;;57698:167;49728:4;57698:128;57801:8;:24;;;57698:80;57750:27;57772:4;57750:21;:27::i;57698:206::-;57680:224:::0;-1:-1:-1;57923:11:0;;57919:85:::1;;57955:33;57973:5;57980:7;57955:17;:33::i;:::-;58174:24:::0;;58092:29;;:146:::1;::::0;49728:4:::1;::::0;58092:107:::1;::::0;58174:24;58092:59:::1;::::0;58144:6;58092:51:::1;:59::i;:146::-;58074:15;::::0;::::1;:164:::0;58412:11;;58275:150:::1;::::0;58380:44:::1;::::0;:27:::1;58074:4:::0;58380:21:::1;:27::i;:44::-;58344:11:::0;;58275:82:::1;::::0;58333:23:::1;::::0;:6;;:10:::1;:23::i;58275:150::-;58255:17:::0;:170;-1:-1:-1;57615:822:0::1;58503:13;::::0;::::1;::::0;;58527:19;;;;58557:17:::1;::::0;::::1;:26:::0;;;58635:35:::1;:19;58543:3:::0;58664:5;58635:23:::1;:35::i;:::-;-1:-1:-1::0;58734:12:0::1;::::0;;:47:::1;::::0;;-1:-1:-1;;;58734:47:0;;-1:-1:-1;;;;;58734:47:0;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;:12;;;::::1;::::0;:35:::1;::::0;:47;;;;;:12:::1;::::0;:47;;;;;;;;:12;;:47;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;58798:12;58814:1;58798:17;58794:268;;58878:12;::::0;;:172:::1;::::0;;-1:-1:-1;;;58878:172:0;;58934:4:::1;58878:172:::0;;::::1;::::0;;;;-1:-1:-1;;;;;58878:172:0;;::::1;::::0;;;;;;;;;;:12;:172;;;;;;;;;:12:::1;:172:::0;;;;;;;;:12;::::1;::::0;:29:::1;::::0;:172;;;;;:12;:172;;;;;:12;;:172;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;58794:268;-1:-1:-1::0;;34328:1:0;35290:22;;-1:-1:-1;59119:109:0::1;::::0;56966:2285;-1:-1:-1;;;;;;;56966:2285:0:o;39295:244::-;38572:12;:10;:12::i;:::-;38562:6;;-1:-1:-1;;;;;38562:6:0;;;:22;;;38554:67;;;;;-1:-1:-1;;;38554:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39384:22:0;::::1;39376:73;;;;-1:-1:-1::0;;;39376:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39486:6;::::0;;39465:38:::1;::::0;-1:-1:-1;;;;;39465:38:0;;::::1;::::0;39486:6;::::1;::::0;39465:38:::1;::::0;::::1;39514:6;:17:::0;;-1:-1:-1;;;;;;39514:17:0::1;-1:-1:-1::0;;;;;39514:17:0;;;::::1;::::0;;;::::1;::::0;;39295:244::o;35586:107::-;35644:7;35676:1;35671;:6;;:14;;35684:1;35671:14;;;35680:1;35671:14;35664:21;;35586:107;;;;;:::o;56174:251::-;56277:7;56306:4;:17;;;56327:1;56306:22;56302:81;;;-1:-1:-1;49300:1:0;56345:26;;56302:81;-1:-1:-1;56400:17:0;;;;56174:251::o;10934:471::-;10992:7;11237:6;11233:47;;-1:-1:-1;11267:1:0;11260:8;;11233:47;11304:5;;;11308:1;11304;:5;:1;11328:5;;;;;:10;11320:56;;;;-1:-1:-1;;;11320:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11881:132;11939:7;11966:39;11970:1;11973;11966:39;;;;;;;;;;;;;;;;;:3;:39::i;10044:136::-;10102:7;10129:43;10133:1;10136;10129:43;;;;;;;;;;;;;;;;;:3;:43::i;56539:278::-;56633:4;;:29;;;-1:-1:-1;;;56633:29:0;;56656:4;56633:29;;;;;;56615:15;;-1:-1:-1;;;;;56633:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56633:29:0;;-1:-1:-1;56677:17:0;;;56673:137;;;56711:4;;:27;;;-1:-1:-1;;;56711:27:0;;-1:-1:-1;;;;;56711:27:0;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56673:137:0;;-1:-1:-1;56673:137:0;;56771:4;;:27;;;-1:-1:-1;;;56771:27:0;;-1:-1:-1;;;;;56771:27:0;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;56673:137:0;56539:278;;;:::o;20948:177::-;21058:58;;;-1:-1:-1;;;;;21058:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21058:58:0;-1:-1:-1;;;21058:58:0;;;21031:86;;21051:5;;21031:19;:86::i;36834:106::-;36922:10;36834:106;:::o;30823:142::-;30900:4;30924:33;30932:3;30952;30924:7;:33::i;31049:151::-;31133:4;31157:35;31167:3;31187;31157:9;:35::i;32138:162::-;32217:7;32260:30;32265:3;32285;32260:4;:30::i;9580:181::-;9638:7;9670:5;;;9694:6;;;;9686:46;;;;;-1:-1:-1;;;9686:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;21133:205;21261:68;;;-1:-1:-1;;;;;21261:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21261:68:0;-1:-1:-1;;;21261:68:0;;;21234:96;;21254:5;;21234:19;:96::i;:::-;21133:205;;;;:::o;30481:176::-;30570:4;30594:55;30599:3;30619;-1:-1:-1;;;;;30633:14:0;;30594:4;:55::i;:::-;30587:62;;30481:176;;;;;;:::o;12509:278::-;12595:7;12630:12;12623:5;12615:28;;;;-1:-1:-1;;;12615:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12654:9;12670:1;12666;:5;;;;;;;12509:278;-1:-1:-1;;;;;12509:278:0:o;10483:192::-;10569:7;10605:12;10597:6;;;;10589:29;;;;-1:-1:-1;;;10589:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10641:5:0;;;10483:192::o;23253:761::-;23677:23;23703:69;23731:4;23703:69;;;;;;;;;;;;;;;;;23711:5;-1:-1:-1;;;;;23703:27:0;;;:69;;;;;:::i;:::-;23787:17;;23677:95;;-1:-1:-1;23787:21:0;23783:224;;23929:10;23918:30;;;;;;;;;;;;;;;-1:-1:-1;23918:30:0;23910:85;;;;-1:-1:-1;;;23910:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26818:1549;26882:4;27017:17;;;:12;;;:17;;;;;;27051:13;;27047:1313;;27483:19;;-1:-1:-1;;27436:12:0;;;;27483:23;;;;27412:21;;27483:3;;:23;;27780;;;;;;;;;;;;;;;;27751:52;;27928:9;27898:3;:12;;27911:13;27898:27;;;;;;;;;;;;;;;;:39;;:27;;;;;:39;;;;;;;;;;;;;;;28018:14;;28005:28;;:12;;;:28;;;;;28036:17;;;28005:48;;28162:18;;28005:3;;28162:18;;;;;;;;;;;;;;-1:-1:-1;;28162:18:0;;;;;;;;;;;;;;;;;;;;;28258:17;;;:12;;;:17;;;;;;28251:24;;;;28162:18;-1:-1:-1;28292:11:0;;-1:-1:-1;;;;28292:11:0;27047:1313;28343:5;28336:12;;;;;28451:125;28522:4;28546:17;;;:12;;;;;:17;;;;;;:22;;;28451:125::o;29576:149::-;29642:7;29669:48;29674:3;29679;29669:48;;;;;;;;;;;;;;;;;:4;:48::i;25951:692::-;26027:4;26162:17;;;:12;;;:17;;;;;;26196:13;26192:444;;-1:-1:-1;;26281:38:0;;;;;;;;;;;;;;;;;;26263:57;;;;;;;;:12;:57;;;;;;;;;;;;;;;;;;;;;;;;26478:19;;26458:17;;;:12;;;:17;;;;;;;:39;26512:11;;26192:444;26592:5;26556:3;:12;;26580:1;26569:8;:12;26556:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;26619:5;26612:12;;;;;17744:196;17847:12;17879:53;17902:6;17910:4;17916:1;17919:12;17879:22;:53::i;29838:319::-;29932:7;29971:17;;;:12;;;:17;;;;;;30022:12;30007:13;29999:36;;;;-1:-1:-1;;;29999:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30089:3;:12;;30113:1;30102:8;:12;30089:26;;;;;;;;;;;;;;;;;;:33;;;30082:40;;;29838:319;;;;;:::o;19121:979::-;19251:12;19284:18;19295:6;19284:10;:18::i;:::-;19276:60;;;;;-1:-1:-1;;;19276:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19410:12;19424:23;19451:6;-1:-1:-1;;;;;19451:11:0;19471:8;19482:4;19451:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;19451:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19409:78;;;;19502:7;19498:595;;;19533:10;-1:-1:-1;19526:17:0;;-1:-1:-1;19526:17:0;19498:595;19647:17;;:21;19643:439;;19910:10;19904:17;19971:15;19958:10;19954:2;19950:19;19943:44;19858:148;20046:20;;-1:-1:-1;;;20046:20:0;;;;;;;;;;;;;;;;;20053:12;;20046:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19121:979;;;;;;;:::o;14823:422::-;15190:20;15229:8;;;14823:422::o
Swarm Source
ipfs://03be7096e9b54ae044d1e8e002eec77deba4797351ba17e05a2a81e5699d0b82
Loading...
Loading
Loading...
Loading
OVERVIEW
The contract is for users to stake in Uniswap ALPA-ETH LP and earn ALPA token as farming rewards.Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.007938 | 274,090.0362 | $2,175.73 |
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.