More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 101 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit | 15949661 | 809 days ago | IN | 0 ETH | 0.0011248 | ||||
Deposit | 15835580 | 825 days ago | IN | 0 ETH | 0.00103224 | ||||
Deposit | 15087163 | 937 days ago | IN | 0 ETH | 0.00136929 | ||||
Deposit | 15038401 | 945 days ago | IN | 0 ETH | 0.00145091 | ||||
Withdraw | 14795917 | 986 days ago | IN | 0 ETH | 0.00105418 | ||||
Withdraw | 14477934 | 1036 days ago | IN | 0 ETH | 0.00357266 | ||||
Approve | 14443299 | 1042 days ago | IN | 0 ETH | 0.00246004 | ||||
Deposit | 14443189 | 1042 days ago | IN | 0 ETH | 0.00336559 | ||||
Withdraw | 14226779 | 1075 days ago | IN | 0 ETH | 0.00383363 | ||||
Withdraw | 14210571 | 1078 days ago | IN | 0 ETH | 0.00329003 | ||||
Withdraw | 14049243 | 1103 days ago | IN | 0 ETH | 0.00793283 | ||||
Approve | 13869135 | 1131 days ago | IN | 0 ETH | 0.00390156 | ||||
Deposit | 13869101 | 1131 days ago | IN | 0 ETH | 0.00586132 | ||||
Withdraw | 13729362 | 1153 days ago | IN | 0 ETH | 0.00464228 | ||||
Approve | 13456504 | 1196 days ago | IN | 0 ETH | 0.00581156 | ||||
Deposit | 13456488 | 1196 days ago | IN | 0 ETH | 0.00915797 | ||||
Withdraw | 13456466 | 1196 days ago | IN | 0 ETH | 0.00548368 | ||||
Deposit | 13456417 | 1196 days ago | IN | 0 ETH | 0.00723472 | ||||
Approve | 13443391 | 1198 days ago | IN | 0 ETH | 0.01026257 | ||||
Deposit | 13441312 | 1198 days ago | IN | 0 ETH | 0.00369075 | ||||
Withdraw | 13437599 | 1199 days ago | IN | 0 ETH | 0.00751916 | ||||
Withdraw | 13404425 | 1204 days ago | IN | 0 ETH | 0.00451978 | ||||
Approve | 13322038 | 1217 days ago | IN | 0 ETH | 0.00416275 | ||||
Deposit | 13322012 | 1217 days ago | IN | 0 ETH | 0.00898732 | ||||
Approve | 13274884 | 1224 days ago | IN | 0 ETH | 0.00164551 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
WheyTokenV2
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-08-20 */ // Sources flattened with hardhat v2.0.11 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/math/[email protected] 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 @openzeppelin/contracts/utils/[email protected] 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 @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File @openzeppelin/contracts/utils/[email protected] 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 @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File @openzeppelin/contracts/access/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } } // File contracts/WheyTokenV2.sol pragma solidity 0.6.12; contract WheyTokenV2 is ERC20("WheyTokenV2", "WHEYV2"), AccessControl { using SafeERC20 for IERC20; bytes32 public constant PREDICATE_ROLE = keccak256("PREDICATE_ROLE"); IERC20 public WHEY; address public constant MintableAssetProxy = 0x9923263fA127b3d1484cFD649df8f1831c2A74e4; bool public withdrawEnabled = true; modifier only(bytes32 role) { require(hasRole(role, _msgSender()), "WheyTokenV2: INSUFFICIENT_PERMISSIONS"); _; } event Deposit(address indexed dst, uint amount); event Withdrawal(address indexed src, uint amount); constructor(IERC20 _WHEY, address _maintainer) public { _setupRole(DEFAULT_ADMIN_ROLE, _maintainer); _setupRole(PREDICATE_ROLE, MintableAssetProxy); WHEY = _WHEY; } /** * @dev See {IMintableERC20-mint}. */ function mint(address user, uint256 amount) external only(PREDICATE_ROLE) { _mint(user, amount); } function deposit(uint256 _amount) external { WHEY.safeTransferFrom(msg.sender, address(this), _amount); _mint(msg.sender, _amount); emit Deposit(msg.sender, _amount); } function withdraw(uint256 _amount) external { require(withdrawEnabled, "WheyTokenV2: WITHDRAW_DISABLED"); require(WHEY.balanceOf(address(this)) >= _amount, "WheyTokenV2: INSUFFICIENT_LIQUIDITY"); _burn(msg.sender, _amount); WHEY.safeTransfer(msg.sender, _amount); emit Withdrawal(msg.sender, _amount); } function setWithdrawEnabled(bool _withdrawEnabled) external only(DEFAULT_ADMIN_ROLE) { withdrawEnabled = _withdrawEnabled; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_WHEY","type":"address"},{"internalType":"address","name":"_maintainer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintableAssetProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PREDICATE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHEY","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_withdrawEnabled","type":"bool"}],"name":"setWithdrawEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526001600760146101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162002f2d38038062002f2d833981810160405260408110156200005257600080fd5b8101908080519060200190929190805190602001909291905050506040518060400160405280600b81526020017f57686579546f6b656e56320000000000000000000000000000000000000000008152506040518060400160405280600681526020017f57484559563200000000000000000000000000000000000000000000000000008152508160039080519060200190620000f192919062000364565b5080600490805190602001906200010a92919062000364565b506012600560006101000a81548160ff021916908360ff16021790555050506200013e6000801b82620001cd60201b60201c565b620001847f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f2739923263fa127b3d1484cfd649df8f1831c2a74e4620001cd60201b60201c565b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200040a565b620001df8282620001e360201b60201c565b5050565b6200021281600660008581526020019081526020016000206000016200028760201b620015541790919060201c565b15620002835762000228620002bf60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620002b7836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620002c760201b60201c565b905092915050565b600033905090565b6000620002db83836200034160201b60201c565b620003365782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200033b565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003a757805160ff1916838001178555620003d8565b82800160010185558215620003d8579182015b82811115620003d7578251825591602001919060010190620003ba565b5b509050620003e79190620003eb565b5090565b5b8082111562000406576000816000905550600101620003ec565b5090565b612b13806200041a6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a9059cbb11610097578063d547741f11610071578063d547741f14610891578063dd62ed3e146108df578063e72db5fd14610957578063ef55e49a14610975576101a9565b8063a9059cbb146107bd578063b6b55f2514610821578063ca15c8731461084f576101a9565b806395d89b41116100d357806395d89b41146106885780639ec004a21461070b578063a217fddf1461073b578063a457c2d714610759576101a9565b806370a082311461056a5780639010d07c146105c257806391d1485414610624576101a9565b80632e1a7d4d1161016657806336568abe1161014057806336568abe14610436578063395093511461048457806340c10f19146104e857806352689eb814610536576101a9565b80632e1a7d4d146103995780632f2ff15d146103c7578063313ce56714610415576101a9565b806306fdde03146101ae578063095ea7b31461023157806318160ddd146102955780632287e96a146102b357806323b872dd146102d3578063248a9ca314610357575b600080fd5b6101b66109a9565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101f65780820151818401526020810190506101db565b50505050905090810190601f1680156102235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61027d6004803603604081101561024757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a4b565b60405180821515815260200191505060405180910390f35b61029d610a69565b6040518082815260200191505060405180910390f35b6102bb610a73565b60405180821515815260200191505060405180910390f35b61033f600480360360608110156102e957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a86565b60405180821515815260200191505060405180910390f35b6103836004803603602081101561036d57600080fd5b8101908080359060200190929190505050610b5f565b6040518082815260200191505060405180910390f35b6103c5600480360360208110156103af57600080fd5b8101908080359060200190929190505050610b7f565b005b610413600480360360408110156103dd57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc5565b005b61041d610e4f565b604051808260ff16815260200191505060405180910390f35b6104826004803603604081101561044c57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e66565b005b6104d06004803603604081101561049a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610eff565b60405180821515815260200191505060405180910390f35b610534600480360360408110156104fe57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610fb2565b005b61053e611048565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105ac6004803603602081101561058057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611060565b6040518082815260200191505060405180910390f35b6105f8600480360360408110156105d857600080fd5b8101908080359060200190929190803590602001909291905050506110a8565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106706004803603604081101561063a57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110da565b60405180821515815260200191505060405180910390f35b61069061110c565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156106d05780820151818401526020810190506106b5565b50505050905090810190601f1680156106fd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6107396004803603602081101561072157600080fd5b810190808035151590602001909291905050506111ae565b005b610743611236565b6040518082815260200191505060405180910390f35b6107a56004803603604081101561076f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061123d565b60405180821515815260200191505060405180910390f35b610809600480360360408110156107d357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061130a565b60405180821515815260200191505060405180910390f35b61084d6004803603602081101561083757600080fd5b8101908080359060200190929190505050611328565b005b61087b6004803603602081101561086557600080fd5b81019080803590602001909291905050506113d2565b6040518082815260200191505060405180910390f35b6108dd600480360360408110156108a757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113f9565b005b610941600480360360408110156108f557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611483565b6040518082815260200191505060405180910390f35b61095f61150a565b6040518082815260200191505060405180910390f35b61097d61152e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b606060038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a415780601f10610a1657610100808354040283529160200191610a41565b820191906000526020600020905b815481529060010190602001808311610a2457829003601f168201915b5050505050905090565b6000610a5f610a58611584565b848461158c565b6001905092915050565b6000600254905090565b600760149054906101000a900460ff1681565b6000610a93848484611783565b610b5484610a9f611584565b610b4f856040518060600160405280602881526020016129a960289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610b05611584565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a449092919063ffffffff16565b61158c565b600190509392505050565b600060066000838152602001908152602001600020600201549050919050565b600760149054906101000a900460ff16610c01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f57686579546f6b656e56323a2057495448445241575f44495341424c4544000081525060200191505060405180910390fd5b80600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610c8b57600080fd5b505afa158015610c9f573d6000803e3d6000fd5b505050506040513d6020811015610cb557600080fd5b81019080805190602001909291905050501015610d1d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806128c66023913960400191505060405180910390fd5b610d273382611afe565b610d743382600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611cc29092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65826040518082815260200191505060405180910390a250565b610dec6006600084815260200190815260200160002060020154610de7611584565b6110da565b610e41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612897602f913960400191505060405180910390fd5b610e4b8282611d64565b5050565b6000600560009054906101000a900460ff16905090565b610e6e611584565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ef1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612aaf602f913960400191505060405180910390fd5b610efb8282611df8565b5050565b6000610fa8610f0c611584565b84610fa38560016000610f1d611584565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e8c90919063ffffffff16565b61158c565b6001905092915050565b7f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f2610fe481610fdf611584565b6110da565b611039576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612a656025913960400191505060405180910390fd5b6110438383611f14565b505050565b739923263fa127b3d1484cfd649df8f1831c2a74e481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006110d282600660008681526020019081526020016000206000016120db90919063ffffffff16565b905092915050565b600061110482600660008681526020019081526020016000206000016120f590919063ffffffff16565b905092915050565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111a45780601f10611179576101008083540402835291602001916111a4565b820191906000526020600020905b81548152906001019060200180831161118757829003601f168201915b5050505050905090565b6000801b6111c3816111be611584565b6110da565b611218576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612a656025913960400191505060405180910390fd5b81600760146101000a81548160ff0219169083151502179055505050565b6000801b81565b600061130061124a611584565b846112fb85604051806060016040528060258152602001612a8a6025913960016000611274611584565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a449092919063ffffffff16565b61158c565b6001905092915050565b600061131e611317611584565b8484611783565b6001905092915050565b611377333083600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612125909392919063ffffffff16565b6113813382611f14565b3373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c826040518082815260200191505060405180910390a250565b60006113f2600660008481526020019081526020016000206000016121e6565b9050919050565b611420600660008481526020019081526020016000206002015461141b611584565b6110da565b611475576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806129796030913960400191505060405180910390fd5b61147f8282611df8565b5050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b7f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f281565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061157c836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6121fb565b905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611612576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612a176024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061290b6022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611809576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806129f26025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561188f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806128746023913960400191505060405180910390fd5b61189a83838361226b565b6119058160405180606001604052806026815260200161292d602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a449092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611998816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e8c90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290611af1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ab6578082015181840152602081019050611a9b565b50505050905090810190601f168015611ae35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b84576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806129d16021913960400191505060405180910390fd5b611b908260008361226b565b611bfb816040518060600160405280602281526020016128e9602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a449092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611c528160025461227090919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b611d5f8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506122f3565b505050565b611d8c816006600085815260200190815260200160002060000161155490919063ffffffff16565b15611df457611d99611584565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611e2081600660008581526020019081526020016000206000016123e290919063ffffffff16565b15611e8857611e2d611584565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080828401905083811015611f0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b611fc36000838361226b565b611fd881600254611e8c90919063ffffffff16565b60028190555061202f816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e8c90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b60006120ea8360000183612412565b60001c905092915050565b600061211d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612495565b905092915050565b6121e0846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506122f3565b50505050565b60006121f4826000016124b8565b9050919050565b60006122078383612495565b612260578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612265565b600090505b92915050565b505050565b6000828211156122e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b6060612355826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124c99092919063ffffffff16565b90506000815111156123dd5780806020019051602081101561237657600080fd5b81019080805190602001909291905050506123dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612a3b602a913960400191505060405180910390fd5b5b505050565b600061240a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6124e1565b905092915050565b600081836000018054905011612473576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806128526022913960400191505060405180910390fd5b82600001828154811061248257fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b60606124d884846000856125c9565b90509392505050565b600080836001016000848152602001908152602001600020549050600081146125bd576000600182039050600060018660000180549050039050600086600001828154811061252c57fe5b906000526020600020015490508087600001848154811061254957fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061258157fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506125c3565b60009150505b92915050565b606082471015612624576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806129536026913960400191505060405180910390fd5b61262d85612772565b61269f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106126ef57805182526020820191506020810190506020830392506126cc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612751576040519150601f19603f3d011682016040523d82523d6000602084013e612756565b606091505b5091509150612766828286612785565b92505050949350505050565b600080823b905060008111915050919050565b606083156127955782905061284a565b6000835111156127a85782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561280f5780820151818401526020810190506127f4565b50505050905090810190601f16801561283c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7457686579546f6b656e56323a20494e53554646494349454e545f4c495155494449545945524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656457686579546f6b656e56323a20494e53554646494349454e545f5045524d495353494f4e5345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122062b9b6e9b6fe91c3e1e433bc54d8f0e508ccc92a1b61b852c2ef6e171d047eff64736f6c634300060c0033000000000000000000000000ca5d29b3e74d59ebcdf09111495d86f319886a400000000000000000000000004e09884e065d9c29d5b1edaa9858e50ae5b0a5ce
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a9059cbb11610097578063d547741f11610071578063d547741f14610891578063dd62ed3e146108df578063e72db5fd14610957578063ef55e49a14610975576101a9565b8063a9059cbb146107bd578063b6b55f2514610821578063ca15c8731461084f576101a9565b806395d89b41116100d357806395d89b41146106885780639ec004a21461070b578063a217fddf1461073b578063a457c2d714610759576101a9565b806370a082311461056a5780639010d07c146105c257806391d1485414610624576101a9565b80632e1a7d4d1161016657806336568abe1161014057806336568abe14610436578063395093511461048457806340c10f19146104e857806352689eb814610536576101a9565b80632e1a7d4d146103995780632f2ff15d146103c7578063313ce56714610415576101a9565b806306fdde03146101ae578063095ea7b31461023157806318160ddd146102955780632287e96a146102b357806323b872dd146102d3578063248a9ca314610357575b600080fd5b6101b66109a9565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101f65780820151818401526020810190506101db565b50505050905090810190601f1680156102235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61027d6004803603604081101561024757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a4b565b60405180821515815260200191505060405180910390f35b61029d610a69565b6040518082815260200191505060405180910390f35b6102bb610a73565b60405180821515815260200191505060405180910390f35b61033f600480360360608110156102e957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a86565b60405180821515815260200191505060405180910390f35b6103836004803603602081101561036d57600080fd5b8101908080359060200190929190505050610b5f565b6040518082815260200191505060405180910390f35b6103c5600480360360208110156103af57600080fd5b8101908080359060200190929190505050610b7f565b005b610413600480360360408110156103dd57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc5565b005b61041d610e4f565b604051808260ff16815260200191505060405180910390f35b6104826004803603604081101561044c57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e66565b005b6104d06004803603604081101561049a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610eff565b60405180821515815260200191505060405180910390f35b610534600480360360408110156104fe57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610fb2565b005b61053e611048565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105ac6004803603602081101561058057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611060565b6040518082815260200191505060405180910390f35b6105f8600480360360408110156105d857600080fd5b8101908080359060200190929190803590602001909291905050506110a8565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106706004803603604081101561063a57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110da565b60405180821515815260200191505060405180910390f35b61069061110c565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156106d05780820151818401526020810190506106b5565b50505050905090810190601f1680156106fd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6107396004803603602081101561072157600080fd5b810190808035151590602001909291905050506111ae565b005b610743611236565b6040518082815260200191505060405180910390f35b6107a56004803603604081101561076f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061123d565b60405180821515815260200191505060405180910390f35b610809600480360360408110156107d357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061130a565b60405180821515815260200191505060405180910390f35b61084d6004803603602081101561083757600080fd5b8101908080359060200190929190505050611328565b005b61087b6004803603602081101561086557600080fd5b81019080803590602001909291905050506113d2565b6040518082815260200191505060405180910390f35b6108dd600480360360408110156108a757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113f9565b005b610941600480360360408110156108f557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611483565b6040518082815260200191505060405180910390f35b61095f61150a565b6040518082815260200191505060405180910390f35b61097d61152e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b606060038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a415780601f10610a1657610100808354040283529160200191610a41565b820191906000526020600020905b815481529060010190602001808311610a2457829003601f168201915b5050505050905090565b6000610a5f610a58611584565b848461158c565b6001905092915050565b6000600254905090565b600760149054906101000a900460ff1681565b6000610a93848484611783565b610b5484610a9f611584565b610b4f856040518060600160405280602881526020016129a960289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610b05611584565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a449092919063ffffffff16565b61158c565b600190509392505050565b600060066000838152602001908152602001600020600201549050919050565b600760149054906101000a900460ff16610c01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f57686579546f6b656e56323a2057495448445241575f44495341424c4544000081525060200191505060405180910390fd5b80600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610c8b57600080fd5b505afa158015610c9f573d6000803e3d6000fd5b505050506040513d6020811015610cb557600080fd5b81019080805190602001909291905050501015610d1d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806128c66023913960400191505060405180910390fd5b610d273382611afe565b610d743382600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611cc29092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65826040518082815260200191505060405180910390a250565b610dec6006600084815260200190815260200160002060020154610de7611584565b6110da565b610e41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612897602f913960400191505060405180910390fd5b610e4b8282611d64565b5050565b6000600560009054906101000a900460ff16905090565b610e6e611584565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ef1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612aaf602f913960400191505060405180910390fd5b610efb8282611df8565b5050565b6000610fa8610f0c611584565b84610fa38560016000610f1d611584565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e8c90919063ffffffff16565b61158c565b6001905092915050565b7f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f2610fe481610fdf611584565b6110da565b611039576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612a656025913960400191505060405180910390fd5b6110438383611f14565b505050565b739923263fa127b3d1484cfd649df8f1831c2a74e481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006110d282600660008681526020019081526020016000206000016120db90919063ffffffff16565b905092915050565b600061110482600660008681526020019081526020016000206000016120f590919063ffffffff16565b905092915050565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111a45780601f10611179576101008083540402835291602001916111a4565b820191906000526020600020905b81548152906001019060200180831161118757829003601f168201915b5050505050905090565b6000801b6111c3816111be611584565b6110da565b611218576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612a656025913960400191505060405180910390fd5b81600760146101000a81548160ff0219169083151502179055505050565b6000801b81565b600061130061124a611584565b846112fb85604051806060016040528060258152602001612a8a6025913960016000611274611584565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a449092919063ffffffff16565b61158c565b6001905092915050565b600061131e611317611584565b8484611783565b6001905092915050565b611377333083600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612125909392919063ffffffff16565b6113813382611f14565b3373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c826040518082815260200191505060405180910390a250565b60006113f2600660008481526020019081526020016000206000016121e6565b9050919050565b611420600660008481526020019081526020016000206002015461141b611584565b6110da565b611475576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806129796030913960400191505060405180910390fd5b61147f8282611df8565b5050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b7f12ff340d0cd9c652c747ca35727e68c547d0f0bfa7758d2e77f75acef481b4f281565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061157c836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6121fb565b905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611612576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612a176024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061290b6022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611809576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806129f26025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561188f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806128746023913960400191505060405180910390fd5b61189a83838361226b565b6119058160405180606001604052806026815260200161292d602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a449092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611998816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e8c90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290611af1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ab6578082015181840152602081019050611a9b565b50505050905090810190601f168015611ae35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b84576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806129d16021913960400191505060405180910390fd5b611b908260008361226b565b611bfb816040518060600160405280602281526020016128e9602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a449092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611c528160025461227090919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b611d5f8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506122f3565b505050565b611d8c816006600085815260200190815260200160002060000161155490919063ffffffff16565b15611df457611d99611584565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611e2081600660008581526020019081526020016000206000016123e290919063ffffffff16565b15611e8857611e2d611584565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600080828401905083811015611f0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b611fc36000838361226b565b611fd881600254611e8c90919063ffffffff16565b60028190555061202f816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e8c90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b60006120ea8360000183612412565b60001c905092915050565b600061211d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612495565b905092915050565b6121e0846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506122f3565b50505050565b60006121f4826000016124b8565b9050919050565b60006122078383612495565b612260578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612265565b600090505b92915050565b505050565b6000828211156122e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b6060612355826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124c99092919063ffffffff16565b90506000815111156123dd5780806020019051602081101561237657600080fd5b81019080805190602001909291905050506123dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612a3b602a913960400191505060405180910390fd5b5b505050565b600061240a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6124e1565b905092915050565b600081836000018054905011612473576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806128526022913960400191505060405180910390fd5b82600001828154811061248257fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b60606124d884846000856125c9565b90509392505050565b600080836001016000848152602001908152602001600020549050600081146125bd576000600182039050600060018660000180549050039050600086600001828154811061252c57fe5b906000526020600020015490508087600001848154811061254957fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061258157fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506125c3565b60009150505b92915050565b606082471015612624576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806129536026913960400191505060405180910390fd5b61262d85612772565b61269f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106126ef57805182526020820191506020810190506020830392506126cc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612751576040519150601f19603f3d011682016040523d82523d6000602084013e612756565b606091505b5091509150612766828286612785565b92505050949350505050565b600080823b905060008111915050919050565b606083156127955782905061284a565b6000835111156127a85782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561280f5780820151818401526020810190506127f4565b50505050905090810190601f16801561283c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7457686579546f6b656e56323a20494e53554646494349454e545f4c495155494449545945524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656457686579546f6b656e56323a20494e53554646494349454e545f5045524d495353494f4e5345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122062b9b6e9b6fe91c3e1e433bc54d8f0e508ccc92a1b61b852c2ef6e171d047eff64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ca5d29b3e74d59ebcdf09111495d86f319886a400000000000000000000000004e09884e065d9c29d5b1edaa9858e50ae5b0a5ce
-----Decoded View---------------
Arg [0] : _WHEY (address): 0xCa5d29B3e74D59EBcDF09111495d86F319886A40
Arg [1] : _maintainer (address): 0x4e09884E065d9C29D5B1EDaa9858e50ae5B0A5CE
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ca5d29b3e74d59ebcdf09111495d86f319886a40
Arg [1] : 0000000000000000000000004e09884e065d9c29d5b1edaa9858e50ae5b0a5ce
Deployed Bytecode Sourcemap
51571:1653:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25343:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27489:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;26442:108;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51868:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;28140:321;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;48280:114;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;52738:340;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;48656:227;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26286:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;49865:209;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;28870:218;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;52417:112;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51775:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;26613:127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;47953:138;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;46914:139;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;25553:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53086:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;45659:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29591:269;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;26953:175;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;52537:193;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47227:127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;49128:230;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;27191:151;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51679:68;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51753:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;25343:91;25388:13;25421:5;25414:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25343:91;:::o;27489:169::-;27572:4;27589:39;27598:12;:10;:12::i;:::-;27612:7;27621:6;27589:8;:39::i;:::-;27646:4;27639:11;;27489:169;;;;:::o;26442:108::-;26503:7;26530:12;;26523:19;;26442:108;:::o;51868:34::-;;;;;;;;;;;;;:::o;28140:321::-;28246:4;28263:36;28273:6;28281:9;28292:6;28263:9;:36::i;:::-;28310:121;28319:6;28327:12;:10;:12::i;:::-;28341:89;28379:6;28341:89;;;;;;;;;;;;;;;;;:11;:19;28353:6;28341:19;;;;;;;;;;;;;;;:33;28361:12;:10;:12::i;:::-;28341:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;28310:8;:121::i;:::-;28449:4;28442:11;;28140:321;;;;;:::o;48280:114::-;48337:7;48364:6;:12;48371:4;48364:12;;;;;;;;;;;:22;;;48357:29;;48280:114;;;:::o;52738:340::-;52798:15;;;;;;;;;;;52790:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52897:7;52864:4;;;;;;;;;;;:14;;;52887:4;52864:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:40;;52856:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52952:26;52958:10;52970:7;52952:5;:26::i;:::-;52986:38;53004:10;53016:7;52986:4;;;;;;;;;;;:17;;;;:38;;;;;:::i;:::-;53050:10;53039:31;;;53062:7;53039:31;;;;;;;;;;;;;;;;;;52738:340;:::o;48656:227::-;48740:45;48748:6;:12;48755:4;48748:12;;;;;;;;;;;:22;;;48772:12;:10;:12::i;:::-;48740:7;:45::i;:::-;48732:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48850:25;48861:4;48867:7;48850:10;:25::i;:::-;48656:227;;:::o;26286:91::-;26335:5;26360:9;;;;;;;;;;;26353:16;;26286:91;:::o;49865:209::-;49963:12;:10;:12::i;:::-;49952:23;;:7;:23;;;49944:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50040:26;50052:4;50058:7;50040:11;:26::i;:::-;49865:209;;:::o;28870:218::-;28958:4;28975:83;28984:12;:10;:12::i;:::-;28998:7;29007:50;29046:10;29007:11;:25;29019:12;:10;:12::i;:::-;29007:25;;;;;;;;;;;;;;;:34;29033:7;29007:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;28975:8;:83::i;:::-;29076:4;29069:11;;28870:218;;;;:::o;52417:112::-;51720:27;51955;51963:4;51969:12;:10;:12::i;:::-;51955:7;:27::i;:::-;51947:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52502:19:::1;52508:4;52514:6;52502:5;:19::i;:::-;52417:112:::0;;;:::o;51775:87::-;51820:42;51775:87;:::o;26613:127::-;26687:7;26714:9;:18;26724:7;26714:18;;;;;;;;;;;;;;;;26707:25;;26613:127;;;:::o;47953:138::-;48026:7;48053:30;48077:5;48053:6;:12;48060:4;48053:12;;;;;;;;;;;:20;;:23;;:30;;;;:::i;:::-;48046:37;;47953:138;;;;:::o;46914:139::-;46983:4;47007:38;47037:7;47007:6;:12;47014:4;47007:12;;;;;;;;;;;:20;;:29;;:38;;;;:::i;:::-;47000:45;;46914:139;;;;:::o;25553:95::-;25600:13;25633:7;25626:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25553:95;:::o;53086:135::-;45704:4;53151:18;;51955:27;51963:4;51969:12;:10;:12::i;:::-;51955:7;:27::i;:::-;51947:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53197:16:::1;53179:15;;:34;;;;;;;;;;;;;;;;;;53086:135:::0;;:::o;45659:49::-;45704:4;45659:49;;;:::o;29591:269::-;29684:4;29701:129;29710:12;:10;:12::i;:::-;29724:7;29733:96;29772:15;29733:96;;;;;;;;;;;;;;;;;:11;:25;29745:12;:10;:12::i;:::-;29733:25;;;;;;;;;;;;;;;:34;29759:7;29733:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;29701:8;:129::i;:::-;29848:4;29841:11;;29591:269;;;;:::o;26953:175::-;27039:4;27056:42;27066:12;:10;:12::i;:::-;27080:9;27091:6;27056:9;:42::i;:::-;27116:4;27109:11;;26953:175;;;;:::o;52537:193::-;52588:57;52610:10;52630:4;52637:7;52588:4;;;;;;;;;;;:21;;;;:57;;;;;;:::i;:::-;52653:26;52659:10;52671:7;52653:5;:26::i;:::-;52702:10;52694:28;;;52714:7;52694:28;;;;;;;;;;;;;;;;;;52537:193;:::o;47227:127::-;47290:7;47317:29;:6;:12;47324:4;47317:12;;;;;;;;;;;:20;;:27;:29::i;:::-;47310:36;;47227:127;;;:::o;49128:230::-;49213:45;49221:6;:12;49228:4;49221:12;;;;;;;;;;;:22;;;49245:12;:10;:12::i;:::-;49213:7;:45::i;:::-;49205:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49324:26;49336:4;49342:7;49324:11;:26::i;:::-;49128:230;;:::o;27191:151::-;27280:7;27307:11;:18;27319:5;27307:18;;;;;;;;;;;;;;;:27;27326:7;27307:27;;;;;;;;;;;;;;;;27300:34;;27191:151;;;;:::o;51679:68::-;51720:27;51679:68;:::o;51753:18::-;;;;;;;;;;;;;:::o;40882:152::-;40952:4;40976:50;40981:3;:10;;41017:5;41001:23;;40993:32;;40976:4;:50::i;:::-;40969:57;;40882:152;;;;:::o;22815:106::-;22868:15;22903:10;22896:17;;22815:106;:::o;32738:346::-;32857:1;32840:19;;:5;:19;;;;32832:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32938:1;32919:21;;:7;:21;;;;32911:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33022:6;32992:11;:18;33004:5;32992:18;;;;;;;;;;;;;;;:27;33011:7;32992:27;;;;;;;;;;;;;;;:36;;;;33060:7;33044:32;;33053:5;33044:32;;;33069:6;33044:32;;;;;;;;;;;;;;;;;;32738:346;;;:::o;30350:539::-;30474:1;30456:20;;:6;:20;;;;30448:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30558:1;30537:23;;:9;:23;;;;30529:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30613:47;30634:6;30642:9;30653:6;30613:20;:47::i;:::-;30693:71;30715:6;30693:71;;;;;;;;;;;;;;;;;:9;:17;30703:6;30693:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;30673:9;:17;30683:6;30673:17;;;;;;;;;;;;;;;:91;;;;30798:32;30823:6;30798:9;:20;30808:9;30798:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;30775:9;:20;30785:9;30775:20;;;;;;;;;;;;;;;:55;;;;30863:9;30846:35;;30855:6;30846:35;;;30874:6;30846:35;;;;;;;;;;;;;;;;;;30350:539;;;:::o;8545:166::-;8631:7;8664:1;8659;:6;;8667:12;8651:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8702:1;8698;:5;8691:12;;8545:166;;;;;:::o;31882:418::-;31985:1;31966:21;;:7;:21;;;;31958:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32038:49;32059:7;32076:1;32080:6;32038:20;:49::i;:::-;32121:68;32144:6;32121:68;;;;;;;;;;;;;;;;;:9;:18;32131:7;32121:18;;;;;;;;;;;;;;;;:22;;:68;;;;;:::i;:::-;32100:9;:18;32110:7;32100:18;;;;;;;;;;;;;;;:89;;;;32215:24;32232:6;32215:12;;:16;;:24;;;;:::i;:::-;32200:12;:39;;;;32281:1;32255:37;;32264:7;32255:37;;;32285:6;32255:37;;;;;;;;;;;;;;;;;;31882:418;;:::o;19098:177::-;19181:86;19201:5;19231:23;;;19256:2;19260:5;19208:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19181:19;:86::i;:::-;19098:177;;;:::o;51108:188::-;51182:33;51207:7;51182:6;:12;51189:4;51182:12;;;;;;;;;;;:20;;:24;;:33;;;;:::i;:::-;51178:111;;;51264:12;:10;:12::i;:::-;51237:40;;51255:7;51237:40;;51249:4;51237:40;;;;;;;;;;51178:111;51108:188;;:::o;51304:192::-;51379:36;51407:7;51379:6;:12;51386:4;51379:12;;;;;;;;;;;:20;;:27;;:36;;;;:::i;:::-;51375:114;;;51464:12;:10;:12::i;:::-;51437:40;;51455:7;51437:40;;51449:4;51437:40;;;;;;;;;;51375:114;51304:192;;:::o;5718:179::-;5776:7;5796:9;5812:1;5808;:5;5796:17;;5837:1;5832;:6;;5824:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5888:1;5881:8;;;5718:179;;;;:::o;31171:378::-;31274:1;31255:21;;:7;:21;;;;31247:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31325:49;31354:1;31358:7;31367:6;31325:20;:49::i;:::-;31402:24;31419:6;31402:12;;:16;;:24;;;;:::i;:::-;31387:12;:39;;;;31458:30;31481:6;31458:9;:18;31468:7;31458:18;;;;;;;;;;;;;;;;:22;;:30;;;;:::i;:::-;31437:9;:18;31447:7;31437:18;;;;;;;;;;;;;;;:51;;;;31525:7;31504:37;;31521:1;31504:37;;;31534:6;31504:37;;;;;;;;;;;;;;;;;;31171:378;;:::o;42168:158::-;42242:7;42293:22;42297:3;:10;;42309:5;42293:3;:22::i;:::-;42285:31;;42262:56;;42168:158;;;;:::o;41454:167::-;41534:4;41558:55;41568:3;:10;;41604:5;41588:23;;41580:32;;41558:9;:55::i;:::-;41551:62;;41454:167;;;;:::o;19283:205::-;19384:96;19404:5;19434:27;;;19463:4;19469:2;19473:5;19411:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19384:19;:96::i;:::-;19283:205;;;;:::o;41707:117::-;41770:7;41797:19;41805:3;:10;;41797:7;:19::i;:::-;41790:26;;41707:117;;;:::o;35946:414::-;36009:4;36031:21;36041:3;36046:5;36031:9;:21::i;:::-;36026:327;;36069:3;:11;;36086:5;36069:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36252:3;:11;;:18;;;;36230:3;:12;;:19;36243:5;36230:19;;;;;;;;;;;:40;;;;36292:4;36285:11;;;;36026:327;36336:5;36329:12;;35946:414;;;;;:::o;34117:92::-;;;;:::o;6180:158::-;6238:7;6271:1;6266;:6;;6258:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6329:1;6325;:5;6318:12;;6180:158;;;;:::o;21403:761::-;21827:23;21853:69;21881:4;21853:69;;;;;;;;;;;;;;;;;21861:5;21853:27;;;;:69;;;;;:::i;:::-;21827:95;;21957:1;21937:10;:17;:21;21933:224;;;22079:10;22068:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22060:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21933:224;21403:761;;;:::o;41210:158::-;41283:4;41307:53;41315:3;:10;;41351:5;41335:23;;41327:32;;41307:7;:53::i;:::-;41300:60;;41210:158;;;;:::o;38834:204::-;38901:7;38950:5;38929:3;:11;;:18;;;;:26;38921:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39012:3;:11;;39024:5;39012:18;;;;;;;;;;;;;;;;39005:25;;38834:204;;;;:::o;38166:129::-;38239:4;38286:1;38263:3;:12;;:19;38276:5;38263:19;;;;;;;;;;;;:24;;38256:31;;38166:129;;;;:::o;38381:109::-;38437:7;38464:3;:11;;:18;;;;38457:25;;38381:109;;;:::o;14085:195::-;14188:12;14220:52;14242:6;14250:4;14256:1;14259:12;14220:21;:52::i;:::-;14213:59;;14085:195;;;;;:::o;36536:1544::-;36602:4;36720:18;36741:3;:12;;:19;36754:5;36741:19;;;;;;;;;;;;36720:40;;36791:1;36777:10;:15;36773:1300;;37139:21;37176:1;37163:10;:14;37139:38;;37192:17;37233:1;37212:3;:11;;:18;;;;:22;37192:42;;37479:17;37499:3;:11;;37511:9;37499:22;;;;;;;;;;;;;;;;37479:42;;37645:9;37616:3;:11;;37628:13;37616:26;;;;;;;;;;;;;;;:38;;;;37764:1;37748:13;:17;37722:3;:12;;:23;37735:9;37722:23;;;;;;;;;;;:43;;;;37874:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;37969:3;:12;;:19;37982:5;37969:19;;;;;;;;;;;37962:26;;;38012:4;38005:11;;;;;;;;36773:1300;38056:5;38049:12;;;36536:1544;;;;;:::o;15137:530::-;15264:12;15322:5;15297:21;:30;;15289:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15389:18;15400:6;15389:10;:18::i;:::-;15381:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15515:12;15529:23;15556:6;:11;;15576:5;15584:4;15556:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15514:75;;;;15607:52;15625:7;15634:10;15646:12;15607:17;:52::i;:::-;15600:59;;;;15137:530;;;;;;:::o;11167:422::-;11227:4;11435:12;11546:7;11534:20;11526:28;;11580:1;11573:4;:8;11566:15;;;11167:422;;;:::o;17677:742::-;17792:12;17821:7;17817:595;;;17852:10;17845:17;;;;17817:595;17986:1;17966:10;:17;:21;17962:439;;;18229:10;18223:17;18290:15;18277:10;18273:2;18269:19;18262:44;18177:148;18372:12;18365:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17677:742;;;;;;:::o
Swarm Source
ipfs://62b9b6e9b6fe91c3e1e433bc54d8f0e508ccc92a1b61b852c2ef6e171d047eff
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.