Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
MasterChef
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2025-01-03 */ /** *Submitted for verification at basescan.org on 2023-10-25 */ // SPDX-License-Identifier: MIT // File: contracts/libs/ReentrancyGuard.sol pragma solidity >=0.6.0 <0.8.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]. */ abstract 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; } } // File: contracts/libs/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts/libs/IBEP20.sol pragma solidity >=0.4.0; interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address _owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/libs/SafeMath.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File: contracts/libs/SafeBEP20.sol pragma solidity ^0.6.0; /** * @title SafeBEP20 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeBEP20 { using SafeMath for uint256; using Address for address; function safeTransfer( IBEP20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IBEP20 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 * {IBEP20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IBEP20 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), "SafeBEP20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IBEP20 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( IBEP20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub( value, "SafeBEP20: 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(IBEP20 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, "SafeBEP20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed"); } } } // File: contracts/libs/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: contracts/libs/Ownable.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/libs/BEP20.sol pragma solidity >=0.4.0; /** * @dev Implementation of the {IBEP20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {BEP20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of BEP20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IBEP20-approve}. */ contract BEP20 is Context, IBEP20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor(string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the bep token owner. */ function getOwner() external override view returns (address) { return owner(); } /** * @dev Returns the token name. */ function name() public override view returns (string memory) { return _name; } /** * @dev Returns the token decimals. */ function decimals() public override view returns (uint8) { return _decimals; } /** * @dev Returns the token symbol. */ function symbol() public override view returns (string memory) { return _symbol; } /** * @dev See {BEP20-totalSupply}. */ function totalSupply() public override view returns (uint256) { return _totalSupply; } /** * @dev See {BEP20-balanceOf}. */ function balanceOf(address account) public override view returns (uint256) { return _balances[account]; } /** * @dev See {BEP20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {BEP20-allowance}. */ function allowance(address owner, address spender) public override view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {BEP20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {BEP20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {BEP20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "BEP20: transfer amount exceeds allowance") ); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {BEP20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {BEP20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero") ); return true; } /** * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing * the total supply. * * Requirements * * - `msg.sender` must be the token owner */ function mint(uint256 amount) public onlyOwner returns (bool) { _mint(_msgSender(), amount); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "BEP20: transfer from the zero address"); require(recipient != address(0), "BEP20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "BEP20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal { require(account != address(0), "BEP20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal { require(account != address(0), "BEP20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "BEP20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal { require(owner != address(0), "BEP20: approve from the zero address"); require(spender != address(0), "BEP20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve( account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "BEP20: burn amount exceeds allowance") ); } } // File: contracts/CrownToken.sol pragma solidity 0.6.12; // Crown Token with Governance. contract CrownToken is BEP20('Crown Finance', 'CROWN') { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); } } // File: contracts/MasterChef.sol pragma solidity 0.6.12; // MasterChef is the master of Crown. He can make CROWN and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once Crown is sufficiently // distributed and the community can show to govern itself. // // Have fun reading it. Hopefully it's bug-free. God bless. contract MasterChef is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeBEP20 for IBEP20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We do some fancy math here. Basically, any point in time, the amount of CROWN // entitled to a user but is pending to be distributed is: // // pending reward = (user.amount * pool.accCrownPerShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accCrownPerShare` (and `lastRewardTime`) gets updated. // 2. User receives the pending reward sent to his/her address. // 3. User's `amount` gets updated. // 4. User's `rewardDebt` gets updated. } // Info of each pool. struct PoolInfo { IBEP20 lpToken; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. CROWN to distribute per second. uint256 lastRewardTime; // Last time stamp that Crown distribution occurs. uint256 accCrownPerShare; // Accumulated CROWN per share, times 1e18. See below. uint16 depositFeeBP; // Deposit fee in basis points uint256 lpSupply; // Total Deposits in each pool } // The CROWN TOKEN! CrownToken public immutable crownToken; address public devaddress; address public feeAddress; // CROWN tokens created per second. uint256 public crownPerSecond = 0.01 ether; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The time when CROWN mining starts. uint256 public startTime; uint256 constant MAX_CROWN_SUPPLY = 864000 ether; // Maximum Emission Rate uint256 public constant MAX_EMISSION_RATE = 100 ether; event addPool(uint256 indexed pid, address lpToken, uint256 allocPoint, uint256 depositFeeBP); event setPool(uint256 indexed pid, address lpToken, uint256 allocPoint, uint256 depositFeeBP); event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); event SetFeeAddress(address indexed user, address indexed newAddress); event SetDevAddress(address indexed user, address indexed newAddress); event UpdateEmissionRate(address indexed user, uint256 crownPerSecond); event UpdateStartTime(uint256 startTimestamp); constructor( CrownToken _crownToken, address _devaddress, uint256 _startTime ) public { crownToken = _crownToken; startTime = _startTime; devaddress = _devaddress; feeAddress = msg.sender; } function poolLength() external view returns (uint256) { return poolInfo.length; } mapping(IBEP20 => bool) public poolExistence; modifier nonDuplicated(IBEP20 _lpToken) { require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated"); _; } // Add a new lp to the pool. Can only be called by the owner. function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner nonDuplicated(_lpToken) { require(_depositFeeBP <= 500, "add: invalid deposit fee basis points"); if (_withUpdate) { massUpdatePools(); } _lpToken.balanceOf(address(this)); uint256 lastRewardTime = block.timestamp > startTime ? block.timestamp : startTime; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolExistence[_lpToken] = true; poolInfo.push( PoolInfo({ lpToken: _lpToken, allocPoint: _allocPoint, lastRewardTime: lastRewardTime, accCrownPerShare: 0, depositFeeBP: _depositFeeBP, lpSupply: 0 }) ); emit addPool(poolInfo.length - 1, address(_lpToken), _allocPoint, _depositFeeBP); } // Update the given pool's CROWN allocation point and deposit fee. Can only be called by the owner. function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner { require(_depositFeeBP <= 500, "set: invalid deposit fee basis points"); if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint); poolInfo[_pid].allocPoint = _allocPoint; poolInfo[_pid].depositFeeBP = _depositFeeBP; emit setPool(_pid, address(poolInfo[_pid].lpToken), _allocPoint, _depositFeeBP); } // Return reward multiplier over the given _from to _to time. function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) { return _to.sub(_from); } // View function to see pending Crown on frontend. function pendingCrown(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accCrownPerShare = pool.accCrownPerShare; if (block.timestamp > pool.lastRewardTime && pool.lpSupply != 0 && totalAllocPoint > 0) { uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 crownReward = multiplier.mul(crownPerSecond).mul(pool.allocPoint).div(totalAllocPoint); uint256 devReward = crownReward.div(10); uint256 totalRewards = crownToken.totalSupply().add(devReward).add(crownReward); if (totalRewards > MAX_CROWN_SUPPLY) { crownReward = MAX_CROWN_SUPPLY.sub(crownToken.totalSupply()); } accCrownPerShare = accCrownPerShare.add(crownReward.mul(1e18).div(pool.lpSupply)); } return user.amount.mul(accCrownPerShare).div(1e18).sub(user.rewardDebt); } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.timestamp <= pool.lastRewardTime) { return; } if (pool.lpSupply == 0 || pool.allocPoint == 0) { pool.lastRewardTime = block.timestamp; return; } uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 crownReward = multiplier.mul(crownPerSecond).mul(pool.allocPoint).div(totalAllocPoint); uint256 devReward = crownReward.div(10); uint256 totalRewards = crownToken.totalSupply().add(devReward).add(crownReward); // Accounts for Total Supply together with rewards if (totalRewards <= MAX_CROWN_SUPPLY) { // mint as normal as not at maxSupply crownToken.mint(devaddress, crownReward.div(10)); crownToken.mint(address(this), crownReward); } else { // mint the difference only to MC, update crownReward crownReward = MAX_CROWN_SUPPLY.sub(crownToken.totalSupply()); crownToken.mint(address(this), crownReward); } if (crownReward != 0) { // only calculate and update if crownReward is non 0 pool.accCrownPerShare = pool.accCrownPerShare.add( crownReward.mul(1e18).div(pool.lpSupply) ); } pool.lastRewardTime = block.timestamp; } // Deposit LP tokens to MasterChef for CROWN allocation. function deposit(uint256 _pid, uint256 _amount) external nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user .amount .mul(pool.accCrownPerShare) .div(1e18) .sub(user.rewardDebt); if (pending > 0) { safeCrownTransfer(msg.sender, pending); } } if (_amount > 0) { uint256 balanceBefore = pool.lpToken.balanceOf(address(this)); pool.lpToken.transferFrom(msg.sender, address(this), _amount); _amount = pool.lpToken.balanceOf(address(this)).sub(balanceBefore); if (pool.depositFeeBP > 0) { uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000); pool.lpToken.safeTransfer(feeAddress, depositFee); user.amount = user.amount.add(_amount).sub(depositFee); pool.lpSupply = pool.lpSupply.add(_amount).sub(depositFee); } else { pool.lpSupply = pool.lpSupply.add(_amount); user.amount = user.amount.add(_amount); } } user.rewardDebt = user.amount.mul(pool.accCrownPerShare).div(1e18); emit Deposit(msg.sender, _pid, _amount); } // Withdraw LP tokens from MasterChef. function withdraw(uint256 _pid, uint256 _amount) external nonReentrant { _withdraw(_pid, msg.sender, _amount); } function _withdraw(uint256 _pid, address _user, uint256 _amount) internal { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accCrownPerShare).div(1e18).sub(user.rewardDebt); if (pending > 0) { safeCrownTransfer(_user, pending); } if (_amount > 0) { user.amount = user.amount.sub(_amount); pool.lpToken.safeTransfer(address(_user), _amount); pool.lpSupply = pool.lpSupply.sub(_amount); } user.rewardDebt = user.amount.mul(pool.accCrownPerShare).div(1e18); emit Withdraw(_user, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint256 amount = user.amount; user.amount = 0; user.rewardDebt = 0; pool.lpToken.safeTransfer(address(msg.sender), amount); if (pool.lpSupply >= amount) { pool.lpSupply = pool.lpSupply.sub(amount); } else { pool.lpSupply = 0; } emit EmergencyWithdraw(msg.sender, _pid, amount); } // Safe crownToken transfer function, just in case if rounding error causes pool to not have enough CROWN. function safeCrownTransfer(address _to, uint256 _amount) internal { uint256 crownBal = crownToken.balanceOf(address(this)); bool transferSuccess = false; if (_amount > crownBal) { transferSuccess = crownToken.transfer(_to, crownBal); } else { transferSuccess = crownToken.transfer(_to, _amount); } require(transferSuccess, "safeCrownTransfer: Transfer failed"); } // Update dev address by the previous dev. function setDevAddress(address _devaddress) external onlyOwner { require(_devaddress != address(0), "!nonzero"); devaddress = _devaddress; emit SetDevAddress(msg.sender, _devaddress); } function setFeeAddress(address _feeAddress) external onlyOwner { require(_feeAddress != address(0), "!nonzero"); feeAddress = _feeAddress; emit SetFeeAddress(msg.sender, _feeAddress); } function updateEmissionRate(uint256 _crownTokenPerSecond) external onlyOwner { require(_crownTokenPerSecond <= MAX_EMISSION_RATE,"Too high"); massUpdatePools(); crownPerSecond = _crownTokenPerSecond; emit UpdateEmissionRate(msg.sender, _crownTokenPerSecond); } // Only update before start of farm function updateStartTime(uint256 _startTimestamp) external onlyOwner { require(startTime > block.timestamp, "Farm already started"); require( block.timestamp < _startTimestamp, "cannot set start time in the past" ); for(uint256 i = 0; i < poolInfo.length; i++) { poolInfo[i].lastRewardTime = _startTimestamp; } startTime = _startTimestamp; emit UpdateStartTime(startTime); } // Switches active pool function switchActivePool( uint16[] calldata _activePids, uint16[] calldata _newPids, uint256[] calldata _newAllocPoints ) external onlyOwner { for (uint256 i = 0; i < _activePids.length; i++) { updatePool(_activePids[i]); PoolInfo storage activePool = poolInfo[_activePids[i]]; activePool.allocPoint = 0; } for (uint256 i = 0; i < _newPids.length; i++) { PoolInfo storage newPool = poolInfo[_newPids[i]]; newPool.allocPoint = _newAllocPoints[i]; } } // Forces user to withdraw when allocpoint is set to 0 function forceWithdraw(uint16 _pid, address[] memory _userAddresses) external onlyOwner { require(poolInfo[_pid].allocPoint == 0, "Alloc point is not 0"); for (uint256 i = 0; i < _userAddresses.length; i++) { _withdraw( _pid, _userAddresses[i], userInfo[_pid][_userAddresses[i]].amount ); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract CrownToken","name":"_crownToken","type":"address"},{"internalType":"address","name":"_devaddress","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"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":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetDevAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"crownPerSecond","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startTimestamp","type":"uint256"}],"name":"UpdateStartTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"}],"name":"addPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFeeBP","type":"uint256"}],"name":"setPool","type":"event"},{"inputs":[],"name":"MAX_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"crownPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crownToken","outputs":[{"internalType":"contract CrownToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_pid","type":"uint16"},{"internalType":"address[]","name":"_userAddresses","type":"address[]"}],"name":"forceWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingCrown","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accCrownPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"lpSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddress","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_activePids","type":"uint16[]"},{"internalType":"uint16[]","name":"_newPids","type":"uint16[]"},{"internalType":"uint256[]","name":"_newAllocPoints","type":"uint256[]"}],"name":"switchActivePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_crownTokenPerSecond","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTimestamp","type":"uint256"}],"name":"updateStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052662386f26fc10000600455600060075534801561002057600080fd5b5060405162002bd038038062002bd08339818101604052606081101561004557600080fd5b508051602082015160409092015190919060006100606100f9565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160601b031960609390931b92909216608052600891909155600280546001600160a01b03929092166001600160a01b031992831617905560038054909116331790556100fd565b3390565b60805160601c612a836200014d60003980610ad25280610b815280610c385280610ca35280610d3b528061180252806118725280611936528061240452806124a952806125535250612a836000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80637492a94b11610104578063a9a905b4116100a2578063d963842211610071578063d96384221461065b578063e2bbb15814610690578063f2fde38b146106b3578063f882ddae146106d9576101cf565b8063a9a905b4146105c7578063c8d43509146105f3578063cbd258b5146105fb578063d0d41fe114610635576101cf565b80638705fcd4116100de5780638705fcd4146105315780638da5cb5b146105575780638dbb1e3a1461055f57806393f1a40b14610582576101cf565b80637492a94b1461043f57806378e97925146104eb57806384e82a33146104f3576101cf565b8063441a3e7011610171578063544f617d1161014b578063544f617d146103195780635bbdf38e14610321578063630b5ba11461042f578063715018a614610437576101cf565b8063441a3e70146102bc57806351eb05a6146102df5780635312ea8e146102fc576101cf565b80631526fe27116101ad5780631526fe271461022a57806317caf6f1146102885780634127535814610290578063436cc3d6146102b4576101cf565b806306bcf02f146101d4578063081e3eda146101f35780630ba84cd21461020d575b600080fd5b6101f1600480360360208110156101ea57600080fd5b50356106e1565b005b6101fb610841565b60408051918252519081900360200190f35b6101f16004803603602081101561022357600080fd5b5035610847565b6102476004803603602081101561024057600080fd5b5035610938565b604080516001600160a01b039097168752602087019590955285850193909352606085019190915261ffff16608084015260a0830152519081900360c00190f35b6101fb61098c565b610298610992565b604080516001600160a01b039092168252519081900360200190f35b6101fb6109a1565b6101f1600480360360408110156102d257600080fd5b50803590602001356109ae565b6101f1600480360360208110156102f557600080fd5b5035610a1e565b6101f16004803603602081101561031257600080fd5b5035610e11565b6101fb610f3a565b6101f16004803603606081101561033757600080fd5b810190602081018135600160201b81111561035157600080fd5b82018360208201111561036357600080fd5b803590602001918460208302840111600160201b8311171561038457600080fd5b919390929091602081019035600160201b8111156103a157600080fd5b8201836020820111156103b357600080fd5b803590602001918460208302840111600160201b831117156103d457600080fd5b919390929091602081019035600160201b8111156103f157600080fd5b82018360208201111561040357600080fd5b803590602001918460208302840111600160201b8311171561042457600080fd5b509092509050610f40565b6101f161108a565b6101f16110ad565b6101f16004803603604081101561045557600080fd5b61ffff8235169190810190604081016020820135600160201b81111561047a57600080fd5b82018360208201111561048c57600080fd5b803590602001918460208302840111600160201b831117156104ad57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611159945050505050565b6101fb6112b4565b6101f16004803603608081101561050957600080fd5b508035906001600160a01b036020820135169061ffff604082013516906060013515156112ba565b6101f16004803603602081101561054757600080fd5b50356001600160a01b0316611601565b6102986116f5565b6101fb6004803603604081101561057557600080fd5b5080359060200135611704565b6105ae6004803603604081101561059857600080fd5b50803590602001356001600160a01b0316611719565b6040805192835260208301919091528051918290030190f35b6101fb600480360360408110156105dd57600080fd5b50803590602001356001600160a01b031661173d565b610298611934565b6106216004803603602081101561061157600080fd5b50356001600160a01b0316611958565b604080519115158252519081900360200190f35b6101f16004803603602081101561064b57600080fd5b50356001600160a01b031661196d565b6101f16004803603608081101561067157600080fd5b5080359060208101359061ffff60408201351690606001351515611a61565b6101f1600480360360408110156106a657600080fd5b5080359060200135611c21565b6101f1600480360360208110156106c957600080fd5b50356001600160a01b0316611f9f565b6102986120a1565b6106e96120b0565b6001600160a01b03166106fa6116f5565b6001600160a01b031614610743576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b4260085411610790576040805162461bcd60e51b815260206004820152601460248201527311985c9b48185b1c9958591e481cdd185c9d195960621b604482015290519081900360640190fd5b8042106107ce5760405162461bcd60e51b81526004018080602001828103825260218152602001806129a56021913960400191505060405180910390fd5b60005b6005548110156108055781600582815481106107e957fe5b60009182526020909120600260069092020101556001016107d1565b5060088190556040805182815290517fa09018266c541576eb124551c9c57c82a8129add3ba6777a5974b1d0e6252e999181900360200190a150565b60055490565b61084f6120b0565b6001600160a01b03166108606116f5565b6001600160a01b0316146108a9576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b68056bc75e2d631000008111156108f2576040805162461bcd60e51b81526020600482015260086024820152670a8dede40d0d2ced60c31b604482015290519081900360640190fd5b6108fa61108a565b600481905560408051828152905133917fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c4053919081900360200190a250565b6005818154811061094557fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909261ffff9091169086565b60075481565b6003546001600160a01b031681565b68056bc75e2d6310000081565b60026001541415610a06576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155610a168233836120b4565b505060018055565b600060058281548110610a2d57fe5b9060005260206000209060060201905080600201544211610a4e5750610e0e565b60058101541580610a6157506001810154155b15610a725742600290910155610e0e565b6000610a82826002015442611704565b90506000610ab5600754610aaf8560010154610aa96004548761223790919063ffffffff16565b90612237565b90612290565b90506000610ac482600a612290565b90506000610b6183610b5b847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b2957600080fd5b505afa158015610b3d573d6000803e3d6000fd5b505050506040513d6020811015610b5357600080fd5b5051906122f7565b906122f7565b905069b6f588aa7bcf5c0000008111610c9e576002546001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116916340c10f199116610bb586600a612290565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610bfb57600080fd5b505af1158015610c0f573d6000803e3d6000fd5b5050604080516340c10f1960e01b81523060048201526024810187905290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001693506340c10f199250604480830192600092919082900301818387803b158015610c8157600080fd5b505af1158015610c95573d6000803e3d6000fd5b50505050610dc9565b610d377f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cfa57600080fd5b505afa158015610d0e573d6000803e3d6000fd5b505050506040513d6020811015610d2457600080fd5b505169b6f588aa7bcf5c00000090612351565b92507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340c10f1930856040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610db057600080fd5b505af1158015610dc4573d6000803e3d6000fd5b505050505b8215610dff576005850154610df990610dee90610aaf86670de0b6b3a7640000612237565b6003870154906122f7565b60038601555b42856002018190555050505050505b50565b60026001541415610e69576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600181905550600060058281548110610e8057fe5b60009182526020808320858452600680835260408086203380885294528520805486825560018201969096559302018054909450919291610ecd916001600160a01b0390911690836123ae565b80836005015410610ef1576005830154610ee79082612351565b6005840155610ef9565b600060058401555b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a35050600180555050565b60045481565b610f486120b0565b6001600160a01b0316610f596116f5565b6001600160a01b031614610fa2576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b60005b8581101561101b57610fd0878783818110610fbc57fe5b9050602002013561ffff1661ffff16610a1e565b60006005888884818110610fe057fe5b9050602002013561ffff1661ffff1681548110610ff957fe5b6000918252602082206001600690920201810191909155919091019050610fa5565b5060005b83811015611081576000600586868481811061103757fe5b9050602002013561ffff1661ffff168154811061105057fe5b9060005260206000209060060201905083838381811061106c57fe5b6020029190910135600192830155500161101f565b50505050505050565b60055460005b818110156110a9576110a181610a1e565b600101611090565b5050565b6110b56120b0565b6001600160a01b03166110c66116f5565b6001600160a01b03161461110f576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6111616120b0565b6001600160a01b03166111726116f5565b6001600160a01b0316146111bb576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b60058261ffff16815481106111cc57fe5b906000526020600020906006020160010154600014611229576040805162461bcd60e51b81526020600482015260146024820152730416c6c6f6320706f696e74206973206e6f7420360641b604482015290519081900360640190fd5b60005b81518110156112af576112a78361ffff1683838151811061124957fe5b6020026020010151600660008761ffff168152602001908152602001600020600086868151811061127657fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600001546120b4565b60010161122c565b505050565b60085481565b6112c26120b0565b6001600160a01b03166112d36116f5565b6001600160a01b03161461131c576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6001600160a01b038316600090815260096020526040902054839060ff161561138c576040805162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000604482015290519081900360640190fd5b6101f48361ffff1611156113d15760405162461bcd60e51b815260040180806020018281038252602581526020018061290a6025913960400191505060405180910390fd5b81156113df576113df61108a565b604080516370a0823160e01b815230600482015290516001600160a01b038616916370a08231916024808301926020929190829003018186803b15801561142557600080fd5b505afa158015611439573d6000803e3d6000fd5b505050506040513d602081101561144f57600080fd5b5050600854600090421161146557600854611467565b425b60075490915061147790876122f7565b600781905550600160096000876001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555060056040518060c00160405280876001600160a01b03168152602001888152602001838152602001600081526020018661ffff1681526020016000815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555060a0820151816005015550506001600580549050037faa6642278d4bbef86d8990c37355d5d4dfe365c194106bdf7a65162268606f0786888760405180846001600160a01b031681526020018381526020018261ffff168152602001935050505060405180910390a2505050505050565b6116096120b0565b6001600160a01b031661161a6116f5565b6001600160a01b031614611663576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6001600160a01b0381166116a9576040805162461bcd60e51b8152602060048201526008602482015267216e6f6e7a65726f60c01b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03831690811790915560405133907fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f790600090a350565b6000546001600160a01b031690565b60006117108284612351565b90505b92915050565b60066020908152600092835260408084209091529082529020805460019091015482565b6000806005848154811061174d57fe5b60009182526020808320878452600680835260408086206001600160a01b038a16875290935291909320910290910160038101546002820154919350904211801561179b5750600583015415155b80156117a957506000600754115b156118f95760006117be846002015442611704565b905060006117e5600754610aaf8760010154610aa96004548761223790919063ffffffff16565b905060006117f482600a612290565b9050600061185983610b5b847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b2957600080fd5b905069b6f588aa7bcf5c0000008111156118cc576118c97f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cfa57600080fd5b92505b60058701546118f2906118eb90610aaf86670de0b6b3a7640000612237565b86906122f7565b9450505050505b61192a8260010154611924670de0b6b3a7640000610aaf85876000015461223790919063ffffffff16565b90612351565b9695505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60096020526000908152604090205460ff1681565b6119756120b0565b6001600160a01b03166119866116f5565b6001600160a01b0316146119cf576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6001600160a01b038116611a15576040805162461bcd60e51b8152602060048201526008602482015267216e6f6e7a65726f60c01b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e790600090a350565b611a696120b0565b6001600160a01b0316611a7a6116f5565b6001600160a01b031614611ac3576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6101f48261ffff161115611b085760405162461bcd60e51b81526004018080602001828103825260258152602001806129e76025913960400191505060405180910390fd5b8015611b1657611b1661108a565b611b4d83610b5b60058781548110611b2a57fe5b90600052602060002090600602016001015460075461235190919063ffffffff16565b6007819055508260058581548110611b6157fe5b9060005260206000209060060201600101819055508160058581548110611b8457fe5b906000526020600020906006020160040160006101000a81548161ffff021916908361ffff160217905550837f39f0c3d078af018954b4fa56832a05a2b511afaa999b133ea3f1c487c21ed28760058681548110611bde57fe5b600091825260209182902060069091020154604080516001600160a01b03909216825291810187905261ffff86168183015290519081900360600190a250505050565b60026001541415611c79576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600181905550600060058381548110611c9057fe5b60009182526020808320868452600680835260408086203387529093529190932091029091019150611cc184610a1e565b805415611d0d576000611cf98260010154611924670de0b6b3a7640000610aaf8760030154876000015461223790919063ffffffff16565b90508015611d0b57611d0b3382612400565b505b8215611f3b578154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611d5d57600080fd5b505afa158015611d71573d6000803e3d6000fd5b505050506040513d6020811015611d8757600080fd5b50518354604080516323b872dd60e01b81523360048201523060248201526044810188905290519293506001600160a01b03909116916323b872dd916064808201926020929091908290030181600087803b158015611de557600080fd5b505af1158015611df9573d6000803e3d6000fd5b505050506040513d6020811015611e0f57600080fd5b50508254604080516370a0823160e01b81523060048201529051611e939284926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015611e6157600080fd5b505afa158015611e75573d6000803e3d6000fd5b505050506040513d6020811015611e8b57600080fd5b505190612351565b600484015490945061ffff1615611f16576004830154600090611ec39061271090610aaf90889061ffff16612237565b6003548554919250611ee2916001600160a01b039081169116836123ae565b8254611ef490829061192490886122f7565b83556005840154611f0b90829061192490886122f7565b600585015550611f39565b6005830154611f2590856122f7565b60058401558154611f3690856122f7565b82555b505b60038201548154611f5991670de0b6b3a764000091610aaf91612237565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600180555050565b611fa76120b0565b6001600160a01b0316611fb86116f5565b6001600160a01b031614612001576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6001600160a01b0381166120465760405162461bcd60e51b81526004018080602001828103825260268152602001806129596026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b3390565b6000600584815481106120c357fe5b60009182526020808320878452600680835260408086206001600160a01b038a168752909352919093208054929091029092019250831115612141576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61214a85610a1e565b600061217b8260010154611924670de0b6b3a7640000610aaf8760030154876000015461223790919063ffffffff16565b9050801561218d5761218d8582612400565b83156121cc57815461219f9085612351565b825582546121b7906001600160a01b031686866123ae565b60058301546121c69085612351565b60058401555b600383015482546121ea91670de0b6b3a764000091610aaf91612237565b600183015560408051858152905187916001600160a01b038816917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60008261224657506000611713565b8282028284828161225357fe5b04146117105760405162461bcd60e51b81526004018080602001828103825260218152602001806129c66021913960400191505060405180910390fd5b60008082116122e6576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816122ef57fe5b049392505050565b600082820183811015611710576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000828211156123a8576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112af908490612639565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561246f57600080fd5b505afa158015612483573d6000803e3d6000fd5b505050506040513d602081101561249957600080fd5b50519050600081831115612551577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb85846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561251e57600080fd5b505af1158015612532573d6000803e3d6000fd5b505050506040513d602081101561254857600080fd5b505190506125f7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb85856040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156125c857600080fd5b505af11580156125dc573d6000803e3d6000fd5b505050506040513d60208110156125f257600080fd5b505190505b806126335760405162461bcd60e51b8152600401808060200182810382526022815260200180612a2c6022913960400191505060405180910390fd5b50505050565b606061268e826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126ea9092919063ffffffff16565b8051909150156112af578080602001905160208110156126ad57600080fd5b50516112af5760405162461bcd60e51b815260040180806020018281038252602a81526020018061292f602a913960400191505060405180910390fd5b60606126f98484600085612703565b90505b9392505050565b6060824710156127445760405162461bcd60e51b815260040180806020018281038252602681526020018061297f6026913960400191505060405180910390fd5b61274d8561285f565b61279e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106127dd5780518252601f1990920191602091820191016127be565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461283f576040519150601f19603f3d011682016040523d82523d6000602084013e612844565b606091505b5091509150612854828286612865565b979650505050505050565b3b151590565b606083156128745750816126fc565b8251156128845782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128ce5781810151838201526020016128b6565b50505050905090810190601f1680156128fb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c63616e6e6f74207365742073746172742074696d6520696e207468652070617374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65727361666543726f776e5472616e736665723a205472616e73666572206661696c6564a26469706673582212207a0da10af3667d85aa3a5124c244f0fd62035ff8cc40f6cecc47f2e642b521e964736f6c634300060c00330000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b70000000000000000000000002a5144f6aa1d6495011573882a5cdaf6d72b32f50000000000000000000000000000000000000000000000000000000067780513
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80637492a94b11610104578063a9a905b4116100a2578063d963842211610071578063d96384221461065b578063e2bbb15814610690578063f2fde38b146106b3578063f882ddae146106d9576101cf565b8063a9a905b4146105c7578063c8d43509146105f3578063cbd258b5146105fb578063d0d41fe114610635576101cf565b80638705fcd4116100de5780638705fcd4146105315780638da5cb5b146105575780638dbb1e3a1461055f57806393f1a40b14610582576101cf565b80637492a94b1461043f57806378e97925146104eb57806384e82a33146104f3576101cf565b8063441a3e7011610171578063544f617d1161014b578063544f617d146103195780635bbdf38e14610321578063630b5ba11461042f578063715018a614610437576101cf565b8063441a3e70146102bc57806351eb05a6146102df5780635312ea8e146102fc576101cf565b80631526fe27116101ad5780631526fe271461022a57806317caf6f1146102885780634127535814610290578063436cc3d6146102b4576101cf565b806306bcf02f146101d4578063081e3eda146101f35780630ba84cd21461020d575b600080fd5b6101f1600480360360208110156101ea57600080fd5b50356106e1565b005b6101fb610841565b60408051918252519081900360200190f35b6101f16004803603602081101561022357600080fd5b5035610847565b6102476004803603602081101561024057600080fd5b5035610938565b604080516001600160a01b039097168752602087019590955285850193909352606085019190915261ffff16608084015260a0830152519081900360c00190f35b6101fb61098c565b610298610992565b604080516001600160a01b039092168252519081900360200190f35b6101fb6109a1565b6101f1600480360360408110156102d257600080fd5b50803590602001356109ae565b6101f1600480360360208110156102f557600080fd5b5035610a1e565b6101f16004803603602081101561031257600080fd5b5035610e11565b6101fb610f3a565b6101f16004803603606081101561033757600080fd5b810190602081018135600160201b81111561035157600080fd5b82018360208201111561036357600080fd5b803590602001918460208302840111600160201b8311171561038457600080fd5b919390929091602081019035600160201b8111156103a157600080fd5b8201836020820111156103b357600080fd5b803590602001918460208302840111600160201b831117156103d457600080fd5b919390929091602081019035600160201b8111156103f157600080fd5b82018360208201111561040357600080fd5b803590602001918460208302840111600160201b8311171561042457600080fd5b509092509050610f40565b6101f161108a565b6101f16110ad565b6101f16004803603604081101561045557600080fd5b61ffff8235169190810190604081016020820135600160201b81111561047a57600080fd5b82018360208201111561048c57600080fd5b803590602001918460208302840111600160201b831117156104ad57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611159945050505050565b6101fb6112b4565b6101f16004803603608081101561050957600080fd5b508035906001600160a01b036020820135169061ffff604082013516906060013515156112ba565b6101f16004803603602081101561054757600080fd5b50356001600160a01b0316611601565b6102986116f5565b6101fb6004803603604081101561057557600080fd5b5080359060200135611704565b6105ae6004803603604081101561059857600080fd5b50803590602001356001600160a01b0316611719565b6040805192835260208301919091528051918290030190f35b6101fb600480360360408110156105dd57600080fd5b50803590602001356001600160a01b031661173d565b610298611934565b6106216004803603602081101561061157600080fd5b50356001600160a01b0316611958565b604080519115158252519081900360200190f35b6101f16004803603602081101561064b57600080fd5b50356001600160a01b031661196d565b6101f16004803603608081101561067157600080fd5b5080359060208101359061ffff60408201351690606001351515611a61565b6101f1600480360360408110156106a657600080fd5b5080359060200135611c21565b6101f1600480360360208110156106c957600080fd5b50356001600160a01b0316611f9f565b6102986120a1565b6106e96120b0565b6001600160a01b03166106fa6116f5565b6001600160a01b031614610743576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b4260085411610790576040805162461bcd60e51b815260206004820152601460248201527311985c9b48185b1c9958591e481cdd185c9d195960621b604482015290519081900360640190fd5b8042106107ce5760405162461bcd60e51b81526004018080602001828103825260218152602001806129a56021913960400191505060405180910390fd5b60005b6005548110156108055781600582815481106107e957fe5b60009182526020909120600260069092020101556001016107d1565b5060088190556040805182815290517fa09018266c541576eb124551c9c57c82a8129add3ba6777a5974b1d0e6252e999181900360200190a150565b60055490565b61084f6120b0565b6001600160a01b03166108606116f5565b6001600160a01b0316146108a9576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b68056bc75e2d631000008111156108f2576040805162461bcd60e51b81526020600482015260086024820152670a8dede40d0d2ced60c31b604482015290519081900360640190fd5b6108fa61108a565b600481905560408051828152905133917fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c4053919081900360200190a250565b6005818154811061094557fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909261ffff9091169086565b60075481565b6003546001600160a01b031681565b68056bc75e2d6310000081565b60026001541415610a06576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155610a168233836120b4565b505060018055565b600060058281548110610a2d57fe5b9060005260206000209060060201905080600201544211610a4e5750610e0e565b60058101541580610a6157506001810154155b15610a725742600290910155610e0e565b6000610a82826002015442611704565b90506000610ab5600754610aaf8560010154610aa96004548761223790919063ffffffff16565b90612237565b90612290565b90506000610ac482600a612290565b90506000610b6183610b5b847f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b76001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b2957600080fd5b505afa158015610b3d573d6000803e3d6000fd5b505050506040513d6020811015610b5357600080fd5b5051906122f7565b906122f7565b905069b6f588aa7bcf5c0000008111610c9e576002546001600160a01b037f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b78116916340c10f199116610bb586600a612290565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610bfb57600080fd5b505af1158015610c0f573d6000803e3d6000fd5b5050604080516340c10f1960e01b81523060048201526024810187905290516001600160a01b037f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b71693506340c10f199250604480830192600092919082900301818387803b158015610c8157600080fd5b505af1158015610c95573d6000803e3d6000fd5b50505050610dc9565b610d377f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b76001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cfa57600080fd5b505afa158015610d0e573d6000803e3d6000fd5b505050506040513d6020811015610d2457600080fd5b505169b6f588aa7bcf5c00000090612351565b92507f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b76001600160a01b03166340c10f1930856040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610db057600080fd5b505af1158015610dc4573d6000803e3d6000fd5b505050505b8215610dff576005850154610df990610dee90610aaf86670de0b6b3a7640000612237565b6003870154906122f7565b60038601555b42856002018190555050505050505b50565b60026001541415610e69576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600181905550600060058281548110610e8057fe5b60009182526020808320858452600680835260408086203380885294528520805486825560018201969096559302018054909450919291610ecd916001600160a01b0390911690836123ae565b80836005015410610ef1576005830154610ee79082612351565b6005840155610ef9565b600060058401555b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a35050600180555050565b60045481565b610f486120b0565b6001600160a01b0316610f596116f5565b6001600160a01b031614610fa2576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b60005b8581101561101b57610fd0878783818110610fbc57fe5b9050602002013561ffff1661ffff16610a1e565b60006005888884818110610fe057fe5b9050602002013561ffff1661ffff1681548110610ff957fe5b6000918252602082206001600690920201810191909155919091019050610fa5565b5060005b83811015611081576000600586868481811061103757fe5b9050602002013561ffff1661ffff168154811061105057fe5b9060005260206000209060060201905083838381811061106c57fe5b6020029190910135600192830155500161101f565b50505050505050565b60055460005b818110156110a9576110a181610a1e565b600101611090565b5050565b6110b56120b0565b6001600160a01b03166110c66116f5565b6001600160a01b03161461110f576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6111616120b0565b6001600160a01b03166111726116f5565b6001600160a01b0316146111bb576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b60058261ffff16815481106111cc57fe5b906000526020600020906006020160010154600014611229576040805162461bcd60e51b81526020600482015260146024820152730416c6c6f6320706f696e74206973206e6f7420360641b604482015290519081900360640190fd5b60005b81518110156112af576112a78361ffff1683838151811061124957fe5b6020026020010151600660008761ffff168152602001908152602001600020600086868151811061127657fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600001546120b4565b60010161122c565b505050565b60085481565b6112c26120b0565b6001600160a01b03166112d36116f5565b6001600160a01b03161461131c576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6001600160a01b038316600090815260096020526040902054839060ff161561138c576040805162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000604482015290519081900360640190fd5b6101f48361ffff1611156113d15760405162461bcd60e51b815260040180806020018281038252602581526020018061290a6025913960400191505060405180910390fd5b81156113df576113df61108a565b604080516370a0823160e01b815230600482015290516001600160a01b038616916370a08231916024808301926020929190829003018186803b15801561142557600080fd5b505afa158015611439573d6000803e3d6000fd5b505050506040513d602081101561144f57600080fd5b5050600854600090421161146557600854611467565b425b60075490915061147790876122f7565b600781905550600160096000876001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555060056040518060c00160405280876001600160a01b03168152602001888152602001838152602001600081526020018661ffff1681526020016000815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555060a0820151816005015550506001600580549050037faa6642278d4bbef86d8990c37355d5d4dfe365c194106bdf7a65162268606f0786888760405180846001600160a01b031681526020018381526020018261ffff168152602001935050505060405180910390a2505050505050565b6116096120b0565b6001600160a01b031661161a6116f5565b6001600160a01b031614611663576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6001600160a01b0381166116a9576040805162461bcd60e51b8152602060048201526008602482015267216e6f6e7a65726f60c01b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03831690811790915560405133907fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f790600090a350565b6000546001600160a01b031690565b60006117108284612351565b90505b92915050565b60066020908152600092835260408084209091529082529020805460019091015482565b6000806005848154811061174d57fe5b60009182526020808320878452600680835260408086206001600160a01b038a16875290935291909320910290910160038101546002820154919350904211801561179b5750600583015415155b80156117a957506000600754115b156118f95760006117be846002015442611704565b905060006117e5600754610aaf8760010154610aa96004548761223790919063ffffffff16565b905060006117f482600a612290565b9050600061185983610b5b847f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b76001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b2957600080fd5b905069b6f588aa7bcf5c0000008111156118cc576118c97f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b76001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cfa57600080fd5b92505b60058701546118f2906118eb90610aaf86670de0b6b3a7640000612237565b86906122f7565b9450505050505b61192a8260010154611924670de0b6b3a7640000610aaf85876000015461223790919063ffffffff16565b90612351565b9695505050505050565b7f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b781565b60096020526000908152604090205460ff1681565b6119756120b0565b6001600160a01b03166119866116f5565b6001600160a01b0316146119cf576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6001600160a01b038116611a15576040805162461bcd60e51b8152602060048201526008602482015267216e6f6e7a65726f60c01b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e790600090a350565b611a696120b0565b6001600160a01b0316611a7a6116f5565b6001600160a01b031614611ac3576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6101f48261ffff161115611b085760405162461bcd60e51b81526004018080602001828103825260258152602001806129e76025913960400191505060405180910390fd5b8015611b1657611b1661108a565b611b4d83610b5b60058781548110611b2a57fe5b90600052602060002090600602016001015460075461235190919063ffffffff16565b6007819055508260058581548110611b6157fe5b9060005260206000209060060201600101819055508160058581548110611b8457fe5b906000526020600020906006020160040160006101000a81548161ffff021916908361ffff160217905550837f39f0c3d078af018954b4fa56832a05a2b511afaa999b133ea3f1c487c21ed28760058681548110611bde57fe5b600091825260209182902060069091020154604080516001600160a01b03909216825291810187905261ffff86168183015290519081900360600190a250505050565b60026001541415611c79576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600181905550600060058381548110611c9057fe5b60009182526020808320868452600680835260408086203387529093529190932091029091019150611cc184610a1e565b805415611d0d576000611cf98260010154611924670de0b6b3a7640000610aaf8760030154876000015461223790919063ffffffff16565b90508015611d0b57611d0b3382612400565b505b8215611f3b578154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611d5d57600080fd5b505afa158015611d71573d6000803e3d6000fd5b505050506040513d6020811015611d8757600080fd5b50518354604080516323b872dd60e01b81523360048201523060248201526044810188905290519293506001600160a01b03909116916323b872dd916064808201926020929091908290030181600087803b158015611de557600080fd5b505af1158015611df9573d6000803e3d6000fd5b505050506040513d6020811015611e0f57600080fd5b50508254604080516370a0823160e01b81523060048201529051611e939284926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015611e6157600080fd5b505afa158015611e75573d6000803e3d6000fd5b505050506040513d6020811015611e8b57600080fd5b505190612351565b600484015490945061ffff1615611f16576004830154600090611ec39061271090610aaf90889061ffff16612237565b6003548554919250611ee2916001600160a01b039081169116836123ae565b8254611ef490829061192490886122f7565b83556005840154611f0b90829061192490886122f7565b600585015550611f39565b6005830154611f2590856122f7565b60058401558154611f3690856122f7565b82555b505b60038201548154611f5991670de0b6b3a764000091610aaf91612237565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600180555050565b611fa76120b0565b6001600160a01b0316611fb86116f5565b6001600160a01b031614612001576040805162461bcd60e51b81526020600482018190526024820152600080516020612a0c833981519152604482015290519081900360640190fd5b6001600160a01b0381166120465760405162461bcd60e51b81526004018080602001828103825260268152602001806129596026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b3390565b6000600584815481106120c357fe5b60009182526020808320878452600680835260408086206001600160a01b038a168752909352919093208054929091029092019250831115612141576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61214a85610a1e565b600061217b8260010154611924670de0b6b3a7640000610aaf8760030154876000015461223790919063ffffffff16565b9050801561218d5761218d8582612400565b83156121cc57815461219f9085612351565b825582546121b7906001600160a01b031686866123ae565b60058301546121c69085612351565b60058401555b600383015482546121ea91670de0b6b3a764000091610aaf91612237565b600183015560408051858152905187916001600160a01b038816917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60008261224657506000611713565b8282028284828161225357fe5b04146117105760405162461bcd60e51b81526004018080602001828103825260218152602001806129c66021913960400191505060405180910390fd5b60008082116122e6576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816122ef57fe5b049392505050565b600082820183811015611710576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000828211156123a8576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112af908490612639565b60007f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b76001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561246f57600080fd5b505afa158015612483573d6000803e3d6000fd5b505050506040513d602081101561249957600080fd5b50519050600081831115612551577f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b76001600160a01b031663a9059cbb85846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561251e57600080fd5b505af1158015612532573d6000803e3d6000fd5b505050506040513d602081101561254857600080fd5b505190506125f7565b7f0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b76001600160a01b031663a9059cbb85856040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156125c857600080fd5b505af11580156125dc573d6000803e3d6000fd5b505050506040513d60208110156125f257600080fd5b505190505b806126335760405162461bcd60e51b8152600401808060200182810382526022815260200180612a2c6022913960400191505060405180910390fd5b50505050565b606061268e826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126ea9092919063ffffffff16565b8051909150156112af578080602001905160208110156126ad57600080fd5b50516112af5760405162461bcd60e51b815260040180806020018281038252602a81526020018061292f602a913960400191505060405180910390fd5b60606126f98484600085612703565b90505b9392505050565b6060824710156127445760405162461bcd60e51b815260040180806020018281038252602681526020018061297f6026913960400191505060405180910390fd5b61274d8561285f565b61279e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106127dd5780518252601f1990920191602091820191016127be565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461283f576040519150601f19603f3d011682016040523d82523d6000602084013e612844565b606091505b5091509150612854828286612865565b979650505050505050565b3b151590565b606083156128745750816126fc565b8251156128845782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128ce5781810151838201526020016128b6565b50505050905090810190601f1680156128fb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c63616e6e6f74207365742073746172742074696d6520696e207468652070617374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65727361666543726f776e5472616e736665723a205472616e73666572206661696c6564a26469706673582212207a0da10af3667d85aa3a5124c244f0fd62035ff8cc40f6cecc47f2e642b521e964736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b70000000000000000000000002a5144f6aa1d6495011573882a5cdaf6d72b32f50000000000000000000000000000000000000000000000000000000067780513
-----Decoded View---------------
Arg [0] : _crownToken (address): 0x4C3CfdbBFaf7B7454b48f87045D652a920D8a3b7
Arg [1] : _devaddress (address): 0x2A5144f6Aa1D6495011573882a5cDaF6D72b32F5
Arg [2] : _startTime (uint256): 1735918867
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000004c3cfdbbfaf7b7454b48f87045d652a920d8a3b7
Arg [1] : 0000000000000000000000002a5144f6aa1d6495011573882a5cdaf6d72b32f5
Arg [2] : 0000000000000000000000000000000000000000000000000000000067780513
Deployed Bytecode Sourcemap
39711:14504:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52594:497;;;;;;;;;;;;;;;;-1:-1:-1;52594:497:0;;:::i;:::-;;42947:95;;;:::i;:::-;;;;;;;;;;;;;;;;52244:301;;;;;;;;;;;;;;;;-1:-1:-1;52244:301:0;;:::i;41440:26::-;;;;;;;;;;;;;;;;-1:-1:-1;41440:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;41440:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41681:34;;;:::i;41287:25::-;;;:::i;:::-;;;;-1:-1:-1;;;;;41287:25:0;;;;;;;;;;;;;;41883:53;;;:::i;49605:126::-;;;;;;;;;;;;;;;;-1:-1:-1;49605:126:0;;;;;;;:::i;46574:1472::-;;;;;;;;;;;;;;;;-1:-1:-1;46574:1472:0;;:::i;50612:558::-;;;;;;;;;;;;;;;;-1:-1:-1;50612:558:0;;:::i;41362:42::-;;;:::i;53128:590::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53128:590:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53128:590:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53128:590:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53128:590:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53128:590:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53128:590:0;;;;;;;;;;-1:-1:-1;53128:590:0;;-1:-1:-1;53128:590:0;-1:-1:-1;53128:590:0;:::i;46318:180::-;;;:::i;28155:148::-;;;:::i;53786:426::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53786:426:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53786:426:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53786:426:0;;-1:-1:-1;53786:426:0;;-1:-1:-1;;;;;53786:426:0:i;41765:24::-;;;:::i;43317:940::-;;;;;;;;;;;;;;;;-1:-1:-1;43317:940:0;;;-1:-1:-1;;;;;43317:940:0;;;;;;;;;;;;;;;;;;;:::i;52019:217::-;;;;;;;;;;;;;;;;-1:-1:-1;52019:217:0;-1:-1:-1;;;;;52019:217:0;;:::i;27504:87::-;;;:::i;45000:121::-;;;;;;;;;;;;;;;;-1:-1:-1;45000:121:0;;;;;;;:::i;41522:64::-;;;;;;;;;;;;;;;;-1:-1:-1;41522:64:0;;;;;;-1:-1:-1;;;;;41522:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;45188:1047;;;;;;;;;;;;;;;;-1:-1:-1;45188:1047:0;;;;;;-1:-1:-1;;;;;45188:1047:0;;:::i;41210:38::-;;;:::i;43050:44::-;;;;;;;;;;;;;;;;-1:-1:-1;43050:44:0;-1:-1:-1;;;;;43050:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;51794:217;;;;;;;;;;;;;;;;-1:-1:-1;51794:217:0;-1:-1:-1;;;;;51794:217:0;;:::i;44370:555::-;;;;;;;;;;;;;;;;-1:-1:-1;44370:555:0;;;;;;;;;;;;;;;;;;;;;:::i;48116:1437::-;;;;;;;;;;;;;;;;-1:-1:-1;48116:1437:0;;;;;;;:::i;28458:244::-;;;;;;;;;;;;;;;;-1:-1:-1;28458:244:0;-1:-1:-1;;;;;28458:244:0;;:::i;41255:25::-;;;:::i;52594:497::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;52694:15:::1;52682:9;;:27;52674:60;;;::::0;;-1:-1:-1;;;52674:60:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;52674:60:0;;;;;;;;;;;;;::::1;;52787:15;52769;:33;52747:116;;;;-1:-1:-1::0;;;52747:116:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52880:9;52876:116;52899:8;:15:::0;52895:19;::::1;52876:116;;;52965:15;52936:8;52945:1;52936:11;;;;;;;;;::::0;;;::::1;::::0;;;:26:::1;:11;::::0;;::::1;;:26;:44:::0;52916:3:::1;;52876:116;;;-1:-1:-1::0;53012:9:0::1;:27:::0;;;53057:26:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;52594:497:::0;:::o;42947:95::-;43019:8;:15;42947:95;:::o;52244:301::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;41927:9:::1;52340:20;:41;;52332:61;;;::::0;;-1:-1:-1;;;52332:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;52332:61:0;;;;;;;;;;;;;::::1;;52404:17;:15;:17::i;:::-;52432:14;:37:::0;;;52485:52:::1;::::0;;;;;;;52504:10:::1;::::0;52485:52:::1;::::0;;;;;::::1;::::0;;::::1;52244:301:::0;:::o;41440:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41440:26:0;;;;-1:-1:-1;41440:26:0;;;;;;;;;;:::o;41681:34::-;;;;:::o;41287:25::-;;;-1:-1:-1;;;;;41287:25:0;;:::o;41883:53::-;41927:9;41883:53;:::o;49605:126::-;1839:1;2445:7;;:19;;2437:63;;;;;-1:-1:-1;;;2437:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1839:1;2578:7;:18;49687:36:::1;49697:4:::0;49703:10:::1;49715:7:::0;49687:9:::1;:36::i;:::-;-1:-1:-1::0;;1795:1:0;2757:22;;49605:126::o;46574:1472::-;46626:21;46650:8;46659:4;46650:14;;;;;;;;;;;;;;;;;;46626:38;;46698:4;:19;;;46679:15;:38;46675:77;;46734:7;;;46675:77;46768:13;;;;:18;;:42;;-1:-1:-1;46790:15:0;;;;:20;46768:42;46764:133;;;46849:15;46827:19;;;;:37;46879:7;;46764:133;46909:18;46930:51;46944:4;:19;;;46965:15;46930:13;:51::i;:::-;46909:72;;46992:19;47014:72;47070:15;;47014:51;47049:4;:15;;;47014:30;47029:14;;47014:10;:14;;:30;;;;:::i;:::-;:34;;:51::i;:::-;:55;;:72::i;:::-;46992:94;-1:-1:-1;47097:17:0;47117:19;46992:94;47133:2;47117:15;:19::i;:::-;47097:39;;47147:20;47170:56;47214:11;47170:39;47199:9;47170:10;-1:-1:-1;;;;;47170:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47170:24:0;;:28;:39::i;:::-;:43;;:56::i;:::-;47147:79;;41834:12;47303;:32;47299:440;;47419:10;;-1:-1:-1;;;;;47403:10:0;:15;;;;;47419:10;47431:19;:11;47447:2;47431:15;:19::i;:::-;47403:48;;;;;;;;;;;;;-1:-1:-1;;;;;47403:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;47466:43:0;;;-1:-1:-1;;;47466:43:0;;47490:4;47466:43;;;;;;;;;;;;-1:-1:-1;;;;;47466:10:0;:15;;-1:-1:-1;47466:15:0;;-1:-1:-1;47466:43:0;;;;;-1:-1:-1;;47466:43:0;;;;;;;-1:-1:-1;47466:15:0;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47299:440;;;47623:46;47644:10;-1:-1:-1;;;;;47644:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47644:24:0;41834:12;;47623:20;:46::i;:::-;47609:60;;47684:10;-1:-1:-1;;;;;47684:15:0;;47708:4;47715:11;47684:43;;;;;;;;;;;;;-1:-1:-1;;;;;47684:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47299:440;47755:16;;47751:238;;47948:13;;;;47878:99;;47922:40;;:21;:11;47938:4;47922:15;:21::i;:40::-;47878:21;;;;;:25;:99::i;:::-;47854:21;;;:123;47751:238;48023:15;48001:4;:19;;:37;;;;46574:1472;;;;;;;:::o;50612:558::-;1839:1;2445:7;;:19;;2437:63;;;;;-1:-1:-1;;;2437:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1839:1;2578:7;:18;;;;50684:21:::1;50708:8;50717:4;50708:14;;;;;;;;;::::0;;;::::1;::::0;;;50757;;;50708::::1;50757::::0;;;;;;;50772:10:::1;50757:26:::0;;;;;;;50811:11;;50833:15;;;-1:-1:-1;50859:15:0;::::1;:19:::0;;;;50708:14;::::1;;50889:12:::0;;50708:14;;-1:-1:-1;50757:26:0;;50811:11;50889:54:::1;::::0;-1:-1:-1;;;;;50889:12:0;;::::1;::::0;50811:11;50889:25:::1;:54::i;:::-;50978:6;50960:4;:13;;;:24;50956:148;;51017:13;::::0;::::1;::::0;:25:::1;::::0;51035:6;51017:17:::1;:25::i;:::-;51001:13;::::0;::::1;:41:::0;50956:148:::1;;;51091:1;51075:13;::::0;::::1;:17:::0;50956:148:::1;51119:43;::::0;;;;;;;51149:4;;51137:10:::1;::::0;51119:43:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1795:1:0;2757:22;;-1:-1:-1;;50612:558:0:o;41362:42::-;;;;:::o;53128:590::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;53318:9:::1;53313:211;53333:22:::0;;::::1;53313:211;;;53377:26;53388:11;;53400:1;53388:14;;;;;;;;;;;;;;;53377:26;;:10;:26::i;:::-;53418:27;53448:8;53457:11;;53469:1;53457:14;;;;;;;;;;;;;;;53448:24;;;;;;;;;;;::::0;;;::::1;::::0;;53487:21:::1;53448:24;::::0;;::::1;;53487:21:::0;::::1;:25:::0;;;;53357:3;;;::::1;::::0;-1:-1:-1;53313:211:0::1;;;;53541:9;53536:175;53556:19:::0;;::::1;53536:175;;;53597:24;53624:8;53633;;53642:1;53633:11;;;;;;;;;;;;;;;53624:21;;;;;;;;;;;;;;;;;;;;53597:48;;53681:15;;53697:1;53681:18;;;;;;;;;::::0;;;::::1;;53660;::::0;;::::1;:39:::0;-1:-1:-1;53577:3:0::1;53536:175;;;;53128:590:::0;;;;;;:::o;46318:180::-;46380:8;:15;46363:14;46406:85;46434:6;46428:3;:12;46406:85;;;46464:15;46475:3;46464:10;:15::i;:::-;46442:5;;46406:85;;;;46318:180;:::o;28155:148::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;28262:1:::1;28246:6:::0;;28225:40:::1;::::0;-1:-1:-1;;;;;28246:6:0;;::::1;::::0;28225:40:::1;::::0;28262:1;;28225:40:::1;28293:1;28276:19:::0;;-1:-1:-1;;;;;;28276:19:0::1;::::0;;28155:148::o;53786:426::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;53916:8:::1;53925:4;53916:14;;;;;;;;;;;;;;;;;;;;:25;;;53945:1;53916:30;53908:63;;;::::0;;-1:-1:-1;;;53908:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;53908:63:0;;;;;;;;;;;;;::::1;;53989:9;53984:221;54008:14;:21;54004:1;:25;53984:221;;;54051:142;54079:4;54051:142;;54102:14;54117:1;54102:17;;;;;;;;;;;;;;54138:8;:14;54147:4;54138:14;;;;;;;;;;;;;:33;54153:14;54168:1;54153:17;;;;;;;;;;;;;;-1:-1:-1::0;;;;;54138:33:0::1;-1:-1:-1::0;;;;;54138:33:0::1;;;;;;;;;;;;:40;;;54051:9;:142::i;:::-;54031:3;;53984:221;;;;53786:426:::0;;:::o;41765:24::-;;;;:::o;43317:940::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;43160:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;43441:8;;43160:23:::1;;:32;43152:70;;;::::0;;-1:-1:-1;;;43152:70:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;43487:3:::2;43470:13;:20;;;;43462:70;;;;-1:-1:-1::0;;;43462:70:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43547:11;43543:61;;;43575:17;:15;:17::i;:::-;43614:33;::::0;;-1:-1:-1;;;43614:33:0;;43641:4:::2;43614:33;::::0;::::2;::::0;;;-1:-1:-1;;;;;43614:18:0;::::2;::::0;::::2;::::0;:33;;;;;::::2;::::0;;;;;;;;:18;:33;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;;43701:9:0::2;::::0;43658:22:::2;::::0;43683:15:::2;:27;:57;;43731:9;;43683:57;;;43713:15;43683:57;43769:15;::::0;43658:82;;-1:-1:-1;43769:32:0::2;::::0;43789:11;43769:19:::2;:32::i;:::-;43751:15;:50;;;;43838:4;43812:13;:23;43826:8;-1:-1:-1::0;;;;;43812:23:0::2;-1:-1:-1::0;;;;;43812:23:0::2;;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;43853:8;43881:266;;;;;;;;43918:8;-1:-1:-1::0;;;;;43881:266:0::2;;;;;43957:11;43881:266;;;;44003:14;43881:266;;;;44054:1;43881:266;;;;44088:13;43881:266;;;;;;44130:1;43881:266;;::::0;43853:305:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;43853:305:0::2;;;;;-1:-1:-1::0;;;;;43853:305:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44200:1;44182:8;:15;;;;:19;44174:75;44211:8;44222:11;44235:13;44174:75;;;;-1:-1:-1::0;;;;;44174:75:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43233:1;27795::::1;43317:940:::0;;;;:::o;52019:217::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;52101:25:0;::::1;52093:46;;;::::0;;-1:-1:-1;;;52093:46:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;52093:46:0;;;;;;;;;;;;;::::1;;52150:10;:24:::0;;-1:-1:-1;;;;;;52150:24:0::1;-1:-1:-1::0;;;;;52150:24:0;::::1;::::0;;::::1;::::0;;;52190:38:::1;::::0;52204:10:::1;::::0;52190:38:::1;::::0;-1:-1:-1;;52190:38:0::1;52019:217:::0;:::o;27504:87::-;27550:7;27577:6;-1:-1:-1;;;;;27577:6:0;27504:87;:::o;45000:121::-;45072:7;45099:14;:3;45107:5;45099:7;:14::i;:::-;45092:21;;45000:121;;;;;:::o;41522:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;45188:1047::-;45262:7;45282:21;45306:8;45315:4;45306:14;;;;;;;;;;;;;;;;45355;;;45306;45355;;;;;;;-1:-1:-1;;;;;45355:21:0;;;;;;;;;;;45306:14;;;;;45414:21;;;;45468:19;;;;45306:14;;-1:-1:-1;45414:21:0;45450:15;:37;:59;;;;-1:-1:-1;45491:13:0;;;;:18;;45450:59;:82;;;;;45531:1;45513:15;;:19;45450:82;45446:700;;;45549:18;45570:51;45584:4;:19;;;45605:15;45570:13;:51::i;:::-;45549:72;;45636:19;45658:72;45714:15;;45658:51;45693:4;:15;;;45658:30;45673:14;;45658:10;:14;;:30;;;;:::i;:72::-;45636:94;-1:-1:-1;45745:17:0;45765:19;45636:94;45781:2;45765:15;:19::i;:::-;45745:39;;45813:20;45836:56;45880:11;45836:39;45865:9;45836:10;-1:-1:-1;;;;;45836:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:56;45813:79;;41834:12;45911;:31;45907:132;;;45977:46;45998:10;-1:-1:-1;;;;;45998:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45977:46;45963:60;;45907:132;46119:13;;;;46072:62;;46093:40;;:21;:11;46109:4;46093:15;:21::i;:40::-;46072:16;;:20;:62::i;:::-;46053:81;;45446:700;;;;;46163:64;46211:4;:15;;;46163:43;46201:4;46163:33;46179:16;46163:4;:11;;;:15;;:33;;;;:::i;:43::-;:47;;:64::i;:::-;46156:71;45188:1047;-1:-1:-1;;;;;;45188:1047:0:o;41210:38::-;;;:::o;43050:44::-;;;;;;;;;;;;;;;:::o;51794:217::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;51876:25:0;::::1;51868:46;;;::::0;;-1:-1:-1;;;51868:46:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;51868:46:0;;;;;;;;;;;;;::::1;;51925:10;:24:::0;;-1:-1:-1;;;;;;51925:24:0::1;-1:-1:-1::0;;;;;51925:24:0;::::1;::::0;;::::1;::::0;;;51965:38:::1;::::0;51979:10:::1;::::0;51965:38:::1;::::0;-1:-1:-1;;51965:38:0::1;51794:217:::0;:::o;44370:555::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;44513:3:::1;44496:13;:20;;;;44488:70;;;;-1:-1:-1::0;;;44488:70:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44573:11;44569:61;;;44601:17;:15;:17::i;:::-;44658:63;44709:11;44658:46;44678:8;44687:4;44678:14;;;;;;;;;;;;;;;;;;:25;;;44658:15;;:19;;:46;;;;:::i;:63::-;44640:15;:81;;;;44760:11;44732:8;44741:4;44732:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;44812:13;44782:8;44791:4;44782:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;44851:4;44843:74;44865:8;44874:4;44865:14;;;;;;;;;::::0;;;::::1;::::0;;;;::::1;::::0;;::::1;;:22:::0;44843:74:::1;::::0;;-1:-1:-1;;;;;44865:22:0;;::::1;44843:74:::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;::::1;44370:555:::0;;;;:::o;48116:1437::-;1839:1;2445:7;;:19;;2437:63;;;;;-1:-1:-1;;;2437:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1839:1;2578:7;:18;;;;48197:21:::1;48221:8;48230:4;48221:14;;;;;;;;;::::0;;;::::1;::::0;;;48270;;;48221::::1;48270::::0;;;;;;;48285:10:::1;48270:26:::0;;;;;;;;;48221:14;::::1;::::0;;::::1;::::0;-1:-1:-1;48307:16:0::1;48279:4:::0;48307:10:::1;:16::i;:::-;48340:11:::0;;:15;48336:311:::1;;48372:15;48390:141;48515:4;:15;;;48390:102;48487:4;48390:74;48442:4;:21;;;48390:4;:29;;;:51;;:74;;;;:::i;:141::-;48372:159:::0;-1:-1:-1;48550:11:0;;48546:90:::1;;48582:38;48600:10;48612:7;48582:17;:38::i;:::-;48336:311;;48663:11:::0;;48659:760:::1;;48715:12:::0;;:37:::1;::::0;;-1:-1:-1;;;48715:37:0;;48746:4:::1;48715:37;::::0;::::1;::::0;;;48691:21:::1;::::0;-1:-1:-1;;;;;48715:12:0::1;::::0;:22:::1;::::0;:37;;;;;::::1;::::0;;;;;;;;:12;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;48715:37:0;48767:12;;:61:::1;::::0;;-1:-1:-1;;;48767:61:0;;48793:10:::1;48767:61;::::0;::::1;::::0;48813:4:::1;48767:61:::0;;;;;;;;;;;;48715:37;;-1:-1:-1;;;;;;48767:12:0;;::::1;::::0;:25:::1;::::0;:61;;;;;48715:37:::1;::::0;48767:61;;;;;;;;:12:::1;::::0;:61;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;48853:12:0;;:37:::1;::::0;;-1:-1:-1;;;48853:37:0;;48884:4:::1;48853:37;::::0;::::1;::::0;;;:56:::1;::::0;48895:13;;-1:-1:-1;;;;;48853:12:0;;::::1;::::0;:22:::1;::::0;:37;;;;;48767:61:::1;::::0;48853:37;;;;;;;;:12;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;48853:37:0;;:41:::1;:56::i;:::-;48930:17;::::0;::::1;::::0;48843:66;;-1:-1:-1;48930:17:0::1;;:21:::0;48926:482:::1;;49005:17;::::0;::::1;::::0;48972:18:::1;::::0;48993:41:::1;::::0;49028:5:::1;::::0;48993:30:::1;::::0;:7;;49005:17:::1;;48993:11;:30::i;:41::-;49079:10;::::0;49053:12;;48972:62;;-1:-1:-1;49053:49:0::1;::::0;-1:-1:-1;;;;;49053:12:0;;::::1;::::0;49079:10:::1;48972:62:::0;49053:25:::1;:49::i;:::-;49135:11:::0;;:40:::1;::::0;49164:10;;49135:24:::1;::::0;49151:7;49135:15:::1;:24::i;:40::-;49121:54:::0;;49210:13:::1;::::0;::::1;::::0;:42:::1;::::0;49241:10;;49210:26:::1;::::0;49228:7;49210:17:::1;:26::i;:42::-;49194:13;::::0;::::1;:58:::0;-1:-1:-1;48926:482:0::1;;;49309:13;::::0;::::1;::::0;:26:::1;::::0;49327:7;49309:17:::1;:26::i;:::-;49293:13;::::0;::::1;:42:::0;49368:11;;:24:::1;::::0;49384:7;49368:15:::1;:24::i;:::-;49354:38:::0;;48926:482:::1;48659:760;;49463:21;::::0;::::1;::::0;49447:11;;:48:::1;::::0;49490:4:::1;::::0;49447:38:::1;::::0;:15:::1;:38::i;:48::-;49429:15;::::0;::::1;:66:::0;49511:34:::1;::::0;;;;;;;49531:4;;49519:10:::1;::::0;49511:34:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1795:1:0;2757:22;;-1:-1:-1;;48116:1437:0:o;28458:244::-;27735:12;:10;:12::i;:::-;-1:-1:-1;;;;;27724:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;27724:23:0;;27716:68;;;;;-1:-1:-1;;;27716:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;27716:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28547:22:0;::::1;28539:73;;;;-1:-1:-1::0;;;28539:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28649:6;::::0;;28628:38:::1;::::0;-1:-1:-1;;;;;28628:38:0;;::::1;::::0;28649:6;::::1;::::0;28628:38:::1;::::0;::::1;28677:6;:17:::0;;-1:-1:-1;;;;;;28677:17:0::1;-1:-1:-1::0;;;;;28677:17:0;;;::::1;::::0;;;::::1;::::0;;28458:244::o;41255:25::-;;;-1:-1:-1;;;;;41255:25:0;;:::o;26055:106::-;26143:10;26055:106;:::o;49739:802::-;49824:21;49848:8;49857:4;49848:14;;;;;;;;;;;;;;;;49897;;;49848;49897;;;;;;;-1:-1:-1;;;;;49897:21:0;;;;;;;;;;;49939:11;;49848:14;;;;;;;;-1:-1:-1;;;49939:22:0;49931:53;;;;;-1:-1:-1;;;49931:53:0;;;;;;;;;;;;-1:-1:-1;;;49931:53:0;;;;;;;;;;;;;;;49995:16;50006:4;49995:10;:16::i;:::-;50022:15;50040:69;50093:4;:15;;;50040:48;50083:4;50040:38;50056:4;:21;;;50040:4;:11;;;:15;;:38;;;;:::i;:69::-;50022:87;-1:-1:-1;50124:11:0;;50120:77;;50152:33;50170:5;50177:7;50152:17;:33::i;:::-;50211:11;;50207:204;;50253:11;;:24;;50269:7;50253:15;:24::i;:::-;50239:38;;50292:12;;:50;;-1:-1:-1;;;;;50292:12:0;50326:5;50334:7;50292:25;:50::i;:::-;50373:13;;;;:26;;50391:7;50373:17;:26::i;:::-;50357:13;;;:42;50207:204;50455:21;;;;50439:11;;:48;;50482:4;;50439:38;;:15;:38::i;:48::-;50421:15;;;:66;50503:30;;;;;;;;50519:4;;-1:-1:-1;;;;;50503:30:0;;;;;;;;;;;;49739:802;;;;;;:::o;17693:220::-;17751:7;17775:6;17771:20;;-1:-1:-1;17790:1:0;17783:8;;17771:20;17814:5;;;17818:1;17814;:5;:1;17838:5;;;;;:10;17830:56;;;;-1:-1:-1;;;17830:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18391:153;18449:7;18481:1;18477;:5;18469:44;;;;;-1:-1:-1;;;18469:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18535:1;18531;:5;;;;;;;18391:153;-1:-1:-1;;;18391:153:0:o;16814:179::-;16872:7;16904:5;;;16928:6;;;;16920:46;;;;;-1:-1:-1;;;16920:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;17276:158;17334:7;17367:1;17362;:6;;17354:49;;;;;-1:-1:-1;;;17354:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17421:5:0;;;17276:158::o;22118:211::-;22262:58;;;-1:-1:-1;;;;;22262:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22262:58:0;-1:-1:-1;;;22262:58:0;;;22235:86;;22255:5;;22235:19;:86::i;51290:448::-;51367:16;51386:10;-1:-1:-1;;;;;51386:20:0;;51415:4;51386:35;;;;;;;;;;;;;-1:-1:-1;;;;;51386:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51386:35:0;;-1:-1:-1;51432:20:0;51475:18;;;51471:187;;;51528:10;-1:-1:-1;;;;;51528:19:0;;51548:3;51553:8;51528:34;;;;;;;;;;;;;-1:-1:-1;;;;;51528:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51528:34:0;;-1:-1:-1;51471:187:0;;;51613:10;-1:-1:-1;;;;;51613:19:0;;51633:3;51638:7;51613:33;;;;;;;;;;;;;-1:-1:-1;;;;;51613:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51613:33:0;;-1:-1:-1;51471:187:0;51676:15;51668:62;;;;-1:-1:-1;;;51668:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51290:448;;;;:::o;24653:774::-;25077:23;25103:69;25131:4;25103:69;;;;;;;;;;;;;;;;;25111:5;-1:-1:-1;;;;;25103:27:0;;;:69;;;;;:::i;:::-;25187:17;;25077:95;;-1:-1:-1;25187:21:0;25183:237;;25342:10;25331:30;;;;;;;;;;;;;;;-1:-1:-1;25331:30:0;25323:85;;;;-1:-1:-1;;;25323:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6471:195;6574:12;6606:52;6628:6;6636:4;6642:1;6645:12;6606:21;:52::i;:::-;6599:59;;6471:195;;;;;;:::o;7523:530::-;7650:12;7708:5;7683:21;:30;;7675:81;;;;-1:-1:-1;;;7675:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7775:18;7786:6;7775:10;:18::i;:::-;7767:60;;;;;-1:-1:-1;;;7767:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7901:12;7915:23;7942:6;-1:-1:-1;;;;;7942:11:0;7962:5;7970:4;7942:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7942:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7900:75;;;;7993:52;8011:7;8020:10;8032:12;7993:17;:52::i;:::-;7986:59;7523:530;-1:-1:-1;;;;;;;7523:530:0:o;3553:422::-;3920:20;3959:8;;;3553:422::o;10063:742::-;10178:12;10207:7;10203:595;;;-1:-1:-1;10238:10:0;10231:17;;10203:595;10352:17;;:21;10348:439;;10615:10;10609:17;10676:15;10663:10;10659:2;10655:19;10648:44;10563:148;10758:12;10751:20;;-1:-1:-1;;;10751:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://7a0da10af3667d85aa3a5124c244f0fd62035ff8cc40f6cecc47f2e642b521e9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.