Contract Overview
Balance:
0 MOVR
MOVR Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x60ff2d8ef61dc8e7d206559c668ad3128c2706a0956f4978cac0707109e8fadb | 0x60a06040 | 1492011 | 582 days 15 hrs ago | 0x7b7b667905d6503cb9b47d1ceb8f71ae3a1db3b9 | IN | Create: ReflectionsTokenDeployer | 0 MOVR | 0.003570576 |
[ Download CSV Export ]
Contract Name:
ReflectionsTokenDeployer
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at moonriver.moonscan.io on 2022-02-16 */ // File: contracts/ReflectionsToken.sol pragma solidity =0.8.4; /** * @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/token/ERC20/extensions/IERC20Metadata.sol /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: The `SafeMath` is no longer necessary, starting with Solidity 0.8. * The compiler now has built-in overflow checking. * * This version of SafeMath should only be used with Solidity 0.8 or later, * because it relies on the compiler's built-in overflow checks. */ 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) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { 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) { unchecked { // 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) { unchecked { 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) { unchecked { 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) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting * with a custom message on division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned * integer modulo), reverting with a 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) { unchecked { require(b > 0, errorMessage); return a % b; } } } /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 // is returned for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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 a ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-} * [`functionCallWithValue`], but with `errorMessage` as a fallback revert reason * when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue( address target, bytes memory data, uint256 weiValue, string memory errorMessage ) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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 meta-transactions, the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return payable (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; } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange, the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } /** * @dev Contract module, which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; address private _previousOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { //modified to use tx.origin because msg.sender will be the tokenDeployer contract and not the user calling the contract address msgSender = payable (tx.origin); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without an owner. It will not be possible to call * `onlyOwner` functions anymore. It can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() external virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) external virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } interface IPadFactory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } interface IPadPair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } // File: contracts\interfaces\IPadRouter01.sol interface IPadRouter01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); } // File: contracts\interfaces\IPadRouter02.sol interface IPadRouter02 is IPadRouter01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } // File: contracts\interfaces\ITokenFactory.sol interface ITokenFactory { event feeReceiverChanged(address indexed previousFeeReceiver, address indexed newFeeReceiver); function feeToken() external view returns (address address_); function creationFee() external view returns (uint256 creationFee_); function feeReceiver() external view returns (address address_); function padSwapRouter() external view returns (address address_); function getTokenCreator(address _token) external view returns (address creator_); function getTokensBy(address _owner, uint256 _index) external view returns (address token_); function tokenModels(address _tokenBuilder) external view returns (bool enabled_); function allTokens(uint256 _index) external view returns (address token_); function getTokensLength(address _owner) external view returns (uint256 length_); function getAllTokensLength() external view returns (uint256 length_); function changeCreationFee(uint256 _value) external; function changeFeeToken(address _address) external; function addTokenModel(address _address) external; function removeTokenModel(address _address) external; function createToken(address _tokenModel, bytes calldata _arguments) external returns (address address_); } interface ILaunchPadDPLP { function donateToPool(uint256 _amount) external; } contract Token is Context, IERC20, IERC20Metadata, Ownable, ReentrancyGuard { using SafeMath for uint256; using Address for address; string private _name; string private _symbol; uint8 private _decimals; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _isExcludedFromFee; mapping(address => bool) private _isExcluded; address[] private _excluded; uint256 private constant MAX = ~uint256(0); uint256 private _tTOTAL; uint256 private _rTotal; uint256 private _tFeeTotal; /** * @dev Percentage of the static reflection fee. */ uint256 public _taxFee; uint256 private _previousTaxFee; /** * @dev Percentage of the liquidity fee. */ uint256 public _liquidityFee; uint256 private _previousLiquidityFee; /** * @dev Percentage of the auto burn fee. */ uint256 public _burnFee; uint256 private _previousBurnFee; address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; /** * @dev Percentage of the marketing, development, and team fee. */ uint256 public _developmentFee; uint256 private _previousDevelopmentFee; address public developmentWallet; IPadRouter02 public padswapV2Router; address public padswapV2Pair; ITokenFactory public tokenFactory; ILaunchPadDPLP public dplpFarm; bool inSwapAndLiquify; bool public swapAndLiquifyEnabled = false; /** * @dev The number of tokens sell, to add to the liquidity. */ uint256 public numTokensSellToAddToLiquidity; event SwapAndLiquifyEnabledUpdated(bool enabled); event LiquidityAdded(uint256 tokenAmount, uint256 ethAmount); event SwapAndLiquifyStatus(string status); event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiquidity ); modifier lockTheSwap { inSwapAndLiquify = true; _; inSwapAndLiquify = false; } constructor( string memory name_, string memory symbol_, uint8 decimals_, uint256 supply_, uint256 taxFee_, uint256 liquidityFee_, uint256 burnFee_, uint256 developmentFee_, address _tokenFactory ) { _name = name_; _symbol = symbol_; _decimals = decimals_; _taxFee = taxFee_; _previousTaxFee = taxFee_; _liquidityFee = liquidityFee_; _previousLiquidityFee = liquidityFee_; _burnFee = burnFee_; _previousBurnFee = burnFee_; _developmentFee = developmentFee_; _previousDevelopmentFee = developmentFee_; developmentWallet = tx.origin; _tTOTAL = supply_ * 10**_decimals; _rTotal = (MAX - (MAX % _tTOTAL)); // 0.01% of total supply numTokensSellToAddToLiquidity = (supply_ * 1 / 10000) * 10**_decimals; tokenFactory = ITokenFactory(_tokenFactory); IPadRouter02 _padswapV2Router = IPadRouter02(tokenFactory.padSwapRouter()); // Create a padswap pair for this new token padswapV2Pair = IPadFactory(_padswapV2Router.factory()).createPair( address(this), _padswapV2Router.WETH() ); // set the rest of the contract variables padswapV2Router = _padswapV2Router; //exclude owner and this contract from fee _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _rOwned[tx.origin] = _rTotal; emit Transfer(address(0), tx.origin, _tTOTAL); } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 override returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _tTOTAL; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { if (_isExcluded[account]) return _tOwned[account]; return tokenFromReflection(_rOwned[account]); } /** * @dev See {IERC20-transfer}. */ function transfer(address recipient, uint256 amount) external override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) external view override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. */ function approve(address spender, uint256 amount) external override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. */ function transferFrom( address sender, address recipient, uint256 amount ) external 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 mitigation for * problems described in {IERC20-approve}. */ function increaseAllowance(address spender, uint256 addedValue) external 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 mitigation for * problems described in {IERC20-approve}. */ function decreaseAllowance(address spender, uint256 subtractedValue) external virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub( subtractedValue, "ERC20: decreased allowance below zero" ) ); return true; } function isExcludedFromReward(address account) external view returns (bool) { return _isExcluded[account]; } function totalFees() external view returns (uint256) { return _tFeeTotal; } function totalBurned() external view returns (uint256) { return balanceOf(BURN_ADDRESS); } function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns(uint256) { require(tAmount <= _tTOTAL, "Amount must be less than supply"); if (!deductTransferFee) { (uint256 rAmount,,,,,) = _getValues(tAmount); return rAmount; } else { (,uint256 rTransferAmount,,,,) = _getValues(tAmount); return rTransferAmount; } } function tokenFromReflection(uint256 rAmount) public view returns (uint256) { require( rAmount <= _rTotal, "Amount must be less than total reflections" ); uint256 currentRate = _getRate(); return rAmount.div(currentRate); } function excludeFromReward(address account) external onlyOwner() { require( account != tokenFactory.padSwapRouter(), 'You can not exclude PadSwap router.' ); require( !_isExcluded[account], "Account is already excluded" ); if(_rOwned[account] > 0) { _tOwned[account] = tokenFromReflection(_rOwned[account]); } _isExcluded[account] = true; _excluded.push(account); } /** * @dev limit excluded addresses list to avoid aborting functions with * "out-of-gas" exception. */ function includeInReward(address account) external onlyOwner() { require(_isExcluded[account], "Account is not excluded"); for (uint256 i = 0; i < _excluded.length; i++) { if (_excluded[i] == account) { _excluded[i] = _excluded[_excluded.length - 1]; _tOwned[account] = 0; _isExcluded[account] = false; _excluded.pop(); break; } } } function _transferBothExcluded( address sender, address recipient, uint256 tAmount ) private { (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity ) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender].sub(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } receive() external payable {} function _reflectFee(uint256 rFee, uint256 tFee) private { _rTotal = _rTotal.sub(rFee); _tFeeTotal = _tFeeTotal.add(tFee); } function _getValues(uint256 tAmount) private view returns ( uint256, uint256, uint256, uint256, uint256, uint256 ) { (uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount); (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, _getRate()); return ( rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity ); } function _getTValues(uint256 tAmount) private view returns ( uint256, uint256, uint256 ) { uint256 tFee = calculateTaxFee(tAmount); uint256 tLiquidity = calculateLiquidityFee(tAmount); uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity); return (tTransferAmount, tFee, tLiquidity); } function _getRValues( uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 currentRate ) private pure returns ( uint256, uint256, uint256 ) { uint256 rAmount = tAmount.mul(currentRate); uint256 rFee = tFee.mul(currentRate); uint256 rLiquidity = tLiquidity.mul(currentRate); uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity); return (rAmount, rTransferAmount, rFee); } function _getRate() private view returns(uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply.div(tSupply); } /** * @dev limit excluded addresses list to avoid aborting functions with * "out-of-gas" exception. */ function _getCurrentSupply() private view returns(uint256, uint256) { uint256 rSupply = _rTotal; uint256 tSupply = _tTOTAL; for (uint256 i = 0; i < _excluded.length; i++) { if ( _rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply ) return (_rTotal, _tTOTAL); rSupply = rSupply.sub(_rOwned[_excluded[i]]); tSupply = tSupply.sub(_tOwned[_excluded[i]]); } if (rSupply < _rTotal.div(_tTOTAL)) return (_rTotal, _tTOTAL); return (rSupply, tSupply); } function _takeLiquidity(uint256 tLiquidity) private { uint256 currentRate = _getRate(); uint256 rLiquidity = tLiquidity.mul(currentRate); _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity); if(_isExcluded[address(this)]) _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity); } function calculateTaxFee(uint256 _amount) private view returns (uint256) { return _amount.mul(_taxFee).div( 10**2 ); } function calculateLiquidityFee(uint256 _amount) private view returns (uint256) { return _amount.mul(_liquidityFee).div( 10**2 ); } function removeAllFees() private { _taxFee = 0; _liquidityFee = 0; _burnFee = 0; _developmentFee = 0; } function restoreAllFees() private { _taxFee = _previousTaxFee; _liquidityFee = _previousLiquidityFee; _burnFee = _previousBurnFee; _developmentFee = _previousDevelopmentFee; } /** * @dev Call this function to disable all Fees. */ function disableAllFees() external onlyOwner() { removeAllFees(); } /** * @dev Call this function to enable Fees */ function enableAllFees() external onlyOwner() { restoreAllFees(); } function isExcludedFromFee(address account) external view returns(bool) { return _isExcludedFromFee[account]; } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve` and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) private { 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 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` / `from` cannot be the zero address. * - `recipient` / `to` cannot be the zero address. * - `sender` / `from` must have a balance of at least `amount`. */ function _transfer( address from, // sender address to, // recipient uint256 amount ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); // is the token balance of this contract address over the min number of // tokens that we need to initiate a swap + liquidity lock? // also, don't get caught in a circular liquidity event. // also, don't swap & liquify if sender is padswap pair. uint256 contractTokenBalance = balanceOf(address(this)); bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity; if ( overMinTokenBalance && !inSwapAndLiquify && from != padswapV2Pair && swapAndLiquifyEnabled ) { contractTokenBalance = numTokensSellToAddToLiquidity; //add liquidity swapAndLiquify(contractTokenBalance); } //transfer amount, it will take tax, burn, liquidity fee _tokenTransfer(from,to,amount); } function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap { // split the contract balance into halves uint256 half = contractTokenBalance.div(2); uint256 otherHalf = contractTokenBalance.sub(half); // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates and does not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForETH(half); // this breaks the ETH // how much ETH did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity to padswap addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } // @dev The swapAndLiquify function uses this for swap to ETH function swapTokensForETH(uint256 tokenAmount) private returns (bool status){ address[] memory path = new address[](2); path[0] = address(this); path[1] = padswapV2Router.WETH(); _approve(address(this), address(padswapV2Router), tokenAmount); try padswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ) { emit SwapAndLiquifyStatus("Success"); return true; } catch { emit SwapAndLiquifyStatus("Failed"); return false; } } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(padswapV2Router), tokenAmount); // add liquidity and get LP tokens to contract itself padswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable address(this), block.timestamp ); emit LiquidityAdded(tokenAmount, ethAmount); } function setDPLPFarm(address _address) external onlyOwner { dplpFarm = ILaunchPadDPLP(_address); } function donateLiquidity() private { address get_pair = IPadFactory(padswapV2Router.factory()).getPair( address(this), padswapV2Router.WETH() ); IERC20 lpTOken = IERC20(get_pair); dplpFarm.donateToPool(lpTOken.balanceOf(address(this))); } //this method is responsible for taking all fee, if takeFee is true function _tokenTransfer(address sender, address recipient, uint256 amount) private { if(_isExcludedFromFee[sender] || _isExcludedFromFee[recipient]){ removeAllFees(); } //Calculate burn amount and development amount uint256 burnAmt = amount.mul(_burnFee).div(100); uint256 developmentAmt = amount.mul(_developmentFee).div(100); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, (amount.sub(burnAmt).sub(developmentAmt))); } else if (!_isExcluded[sender] && _isExcluded[recipient]) { _transferToExcluded(sender, recipient, (amount.sub(burnAmt).sub(developmentAmt))); } else if (_isExcluded[sender] && _isExcluded[recipient]) { _transferBothExcluded(sender, recipient, (amount.sub(burnAmt).sub(developmentAmt))); } else { _transferStandard(sender, recipient, (amount.sub(burnAmt).sub(developmentAmt))); } //Temporarily remove fees to transfer to burn address and development wallet _taxFee = 0; _liquidityFee = 0; //Send transfers to burn address and development wallet _transferStandard(sender, BURN_ADDRESS, burnAmt); _transferStandard(sender, developmentWallet, developmentAmt); //Restore tax and liquidity fees _taxFee = _previousTaxFee; _liquidityFee = _previousLiquidityFee; if(_isExcludedFromFee[sender] || _isExcludedFromFee[recipient]) { restoreAllFees(); } } function _transferStandard( address sender, address recipient, uint256 tAmount ) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferToExcluded(address sender, address recipient, uint256 tAmount) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity ) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private { ( uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity ) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender].sub(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _takeLiquidity(tLiquidity); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } /** * @dev The owner can withdraw ETH collected in the contract from * `swapAndLiquify` or if someone sends ETH directly to the contract. * * The swapAndLiquify function converts half of the contractTokenBalance * tokens to ETH. For every swapAndLiquify function call, a small amount * of ETH remains in the contract. This amount grows over time with the * swapAndLiquify function being called throughout the life of the contract. * */ function migrateLeftoverEth( address payable recipient, uint256 amount ) external onlyOwner nonReentrant{ require(recipient != address(0), "ERC20: recipient cannot be the zero address"); require(amount <= address(this).balance, "ERC20: amount should not exceed the contract balance." ); recipient.transfer(amount); } /** * @dev The owner can exclude specific accounts from Fees. */ function excludeFromFee(address account) external onlyOwner { _isExcludedFromFee[account] = true; } /** * @dev The owner can include specific accounts in Fees. */ function includeInFee(address account) external onlyOwner { _isExcludedFromFee[account] = false; } /** * @dev Call this function to enable Swap and Liquify. */ function setSwapAndLiquifyEnabled(bool _enabled) external onlyOwner { swapAndLiquifyEnabled = _enabled; emit SwapAndLiquifyEnabledUpdated(_enabled); } /** * @dev This function can be used to change burnFee to zero percentage upon a * certain amount of tokens are burned. */ function stopAutoBurn() external onlyOwner() { _burnFee = 0; } /** * @dev Update the amount of "numTokensSellToAddToLiquidity". * * Requirements: * * The new amount must be less than or equal to one million. */ function setNumTokensSellToAddToLiquidity(uint256 newAmount) external onlyOwner() { require(newAmount <= (this.totalSupply()*5/1000) * 10**_decimals, "ERC20: the amount must be lesser than or equal to 0.5 percent." ); numTokensSellToAddToLiquidity = newAmount; } /** * @dev Call this function if required to set a different Development * wallet address. * * Requirements: * * The development wallet cannot be the zero address. */ function setDevelopmentWallet(address newWallet) external onlyOwner() { require(newWallet != address(0), "ERC20: the new wallet cannot be the zero address." ); developmentWallet = newWallet; } /** * @dev Update the Router address if padswap upgrades to a * newer version. */ function updateRouterAddress() external onlyOwner { address newRouter = tokenFactory.padSwapRouter(); IPadRouter02 _newRouter = IPadRouter02(newRouter); address get_pair = IPadFactory(_newRouter.factory()).getPair( address(this), _newRouter.WETH() ); //checks if pair already exists if (get_pair == address(0)) { padswapV2Pair = IPadFactory(_newRouter.factory()).createPair( address(this), _newRouter.WETH() ); } else { padswapV2Pair = get_pair; } padswapV2Router = _newRouter; } } // File: interfaces/ITokenDeployer.sol pragma solidity ^0.8.4; interface ITokenDeployer { event CreateToken(address tokenAddress, string name, string symbol, uint256 supply); function factory() external returns (address); function tokenType() external returns (string memory); function deploy(bytes calldata arguments) external returns (address token); } // File: ReflectionsTokenDeployer.sol pragma solidity ^0.8.4; contract ReflectionsTokenDeployer is ITokenDeployer { address public immutable override factory; string public override tokenType; constructor(address _factory, string memory _tokenType) { factory = _factory; tokenType = _tokenType; } function deploy(bytes calldata arguments) external override returns (address token) { require(msg.sender == factory, "ERROR: Permission denied"); (string memory name, string memory symbol, uint8 decimals, uint256 supply, uint256 taxFee, uint256 liquidityFee, uint256 burnFee, uint256 developmentFee) = abi.decode(arguments, (string, string, uint8, uint256, uint256, uint256, uint256, uint256)); //make sure all the fees combined don't surpass 30 percent uint256 allFees = taxFee + liquidityFee + burnFee + developmentFee; require(allFees > 0 && allFees <= 30, "ERROR: The value of all the fees should not surpass 30 percent"); token = address(new Token(name, symbol, decimals, supply, taxFee, liquidityFee, burnFee, developmentFee, factory)); emit CreateToken(token, name, symbol, supply); return token; } }
[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"string","name":"_tokenType","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"CreateToken","type":"event"},{"inputs":[{"internalType":"bytes","name":"arguments","type":"bytes"}],"name":"deploy","outputs":[{"internalType":"address","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b506040516200417838038062004178833981016040819052610031916100f7565b6001600160601b0319606083901b16608052805161005690600090602084019061005e565b505050610233565b82805461006a906101e2565b90600052602060002090601f01602090048101928261008c57600085556100d2565b82601f106100a557805160ff19168380011785556100d2565b828001600101855582156100d2579182015b828111156100d25782518255916020019190600101906100b7565b506100de9291506100e2565b5090565b5b808211156100de57600081556001016100e3565b60008060408385031215610109578182fd5b82516001600160a01b038116811461011f578283fd5b602084810151919350906001600160401b038082111561013d578384fd5b818601915086601f830112610150578384fd5b8151818111156101625761016261021d565b604051601f8201601f19908116603f0116810190838211818310171561018a5761018a61021d565b8160405282815289868487010111156101a1578687fd5b8693505b828410156101c257848401860151818501870152928501926101a5565b828411156101d257868684830101525b8096505050505050509250929050565b600181811c908216806101f657607f821691505b6020821081141561021757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c613f1a6200025e60003960008181609d0152818160cc01526102220152613f1a6000f3fe60806040523480156200001157600080fd5b5060043610620000455760003560e01c8062774360146200004a57806330fa738c146200007e578063c45a01551462000097575b600080fd5b620000616200005b36600462000404565b620000bf565b6040516001600160a01b0390911681526020015b60405180910390f35b62000088620002d1565b604051620000759190620005be565b620000617f000000000000000000000000000000000000000000000000000000000000000081565b6000336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146200013f5760405162461bcd60e51b815260206004820152601860248201527f4552524f523a205065726d697373696f6e2064656e696564000000000000000060448201526064015b60405180910390fd5b600080808080808080620001568a8c018c62000476565b975097509750975097509750975097506000818385876200017891906200064b565b6200018491906200064b565b6200019091906200064b565b9050600081118015620001a45750601e8111155b620002185760405162461bcd60e51b815260206004820152603e60248201527f4552524f523a205468652076616c7565206f6620616c6c20746865206665657360448201527f2073686f756c64206e6f7420737572706173732033302070657263656e740000606482015260840162000136565b88888888888888887f00000000000000000000000000000000000000000000000000000000000000006040516200024f9062000367565b6200026399989796959493929190620005da565b604051809103906000f08015801562000280573d6000803e3d6000fd5b5099507faa935dad377a4856104bce276a1c3ab96aaaea5da44b184d31068ba47d1237a28a8a8a89604051620002ba949392919062000572565b60405180910390a150505050505050505092915050565b60008054620002e09062000670565b80601f01602080910402602001604051908101604052809291908181526020018280546200030e9062000670565b80156200035f5780601f1062000333576101008083540402835291602001916200035f565b820191906000526020600020905b8154815290600101906020018083116200034157829003601f168201915b505050505081565b61382180620006c483390190565b600082601f83011262000386578081fd5b813567ffffffffffffffff80821115620003a457620003a4620006ad565b604051601f8301601f19908116603f01168101908282118183101715620003cf57620003cf620006ad565b81604052838152866020858801011115620003e8578485fd5b8360208701602083013792830160200193909352509392505050565b6000806020838503121562000417578182fd5b823567ffffffffffffffff808211156200042f578384fd5b818501915085601f83011262000443578384fd5b81358181111562000452578485fd5b86602082850101111562000464578485fd5b60209290920196919550909350505050565b600080600080600080600080610100898b03121562000493578384fd5b883567ffffffffffffffff80821115620004ab578586fd5b620004b98c838d0162000375565b995060208b0135915080821115620004cf578586fd5b50620004de8b828c0162000375565b975050604089013560ff81168114620004f5578485fd5b979a96995096976060810135975060808101359660a0820135965060c0820135955060e0909101359350915050565b60008151808452815b818110156200054b576020818501810151868301820152016200052d565b818111156200055d5782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0385168152608060208201819052600090620005989083018662000524565b8281036040840152620005ac818662000524565b91505082606083015295945050505050565b602081526000620005d3602083018462000524565b9392505050565b6000610120808352620005f08184018d62000524565b9050828103602084015262000606818c62000524565b60ff9a909a16604084015250506060810196909652608086019490945260a085019290925260c084015260e08301526001600160a01b03166101009091015292915050565b600082198211156200066b57634e487b7160e01b81526011600452602481fd5b500190565b600181811c908216806200068557607f821691505b60208210811415620006a757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fdfe6080604052601b805460ff60a81b191690553480156200001e57600080fd5b506040516200382138038062003821833981016040819052620000419162000610565b600080546001600160a01b031916329081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600160025588516200009c9060039060208c019062000476565b508751620000b29060049060208b019062000476565b506005805460ff891660ff199091168117909155600f8690556010869055601185905560128590556013849055601484905560158390556016839055601780546001600160a01b031916321790556200010d90600a62000735565b620001199087620007f6565b600c8190556200012c906000196200086f565b6200013a9060001962000818565b600d55600554620001509060ff16600a62000735565b61271062000160886001620007f6565b6200016c9190620006d5565b620001789190620007f6565b601c55601a80546001600160a01b0319166001600160a01b03831690811790915560408051630ae0bc4f60e01b8152905160009291630ae0bc4f916004808301926020929190829003018186803b158015620001d357600080fd5b505afa158015620001e8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020e9190620005ec565b9050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156200024a57600080fd5b505afa1580156200025f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002859190620005ec565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015620002ce57600080fd5b505afa158015620002e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003099190620005ec565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156200035257600080fd5b505af115801562000367573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200038d9190620005ec565b601980546001600160a01b03199081166001600160a01b039384161790915560188054909116918316919091179055600160096000620003d56000546001600160a01b031690565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff19958616179055308152600983528181208054909416600117909355600d5432808552600690935281842055600c5490519192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef916200045e9190815260200190565b60405180910390a350505050505050505050620008c8565b828054620004849062000832565b90600052602060002090601f016020900481019282620004a85760008555620004f3565b82601f10620004c357805160ff1916838001178555620004f3565b82800160010185558215620004f3579182015b82811115620004f3578251825591602001919060010190620004d6565b506200050192915062000505565b5090565b5b8082111562000501576000815560010162000506565b80516001600160a01b03811681146200053457600080fd5b919050565b600082601f8301126200054a578081fd5b81516001600160401b0380821115620005675762000567620008b2565b604051601f8301601f19908116603f01168101908282118183101715620005925762000592620008b2565b81604052838152602092508683858801011115620005ae578485fd5b8491505b83821015620005d15785820183015181830184015290820190620005b2565b83821115620005e257848385830101525b9695505050505050565b600060208284031215620005fe578081fd5b62000609826200051c565b9392505050565b60008060008060008060008060006101208a8c0312156200062f578485fd5b89516001600160401b038082111562000646578687fd5b620006548d838e0162000539565b9a5060208c01519150808211156200066a578687fd5b50620006798c828d0162000539565b98505060408a015160ff8116811462000690578586fd5b8097505060608a0151955060808a0151945060a08a0151935060c08a0151925060e08a01519150620006c66101008b016200051c565b90509295985092959850929598565b600082620006e757620006e76200089c565b500490565b600181815b808511156200072d57816000190482111562000711576200071162000886565b808516156200071f57918102915b93841c9390800290620006f1565b509250929050565b60006200060960ff8416836000826200075157506001620007f0565b816200076057506000620007f0565b81600181146200077957600281146200078457620007a4565b6001915050620007f0565b60ff84111562000798576200079862000886565b50506001821b620007f0565b5060208310610133831016604e8410600b8410161715620007c9575081810a620007f0565b620007d58383620006ec565b8060001904821115620007ec57620007ec62000886565b0290505b92915050565b600081600019048311821515161562000813576200081362000886565b500290565b6000828210156200082d576200082d62000886565b500390565b600181811c908216806200084757607f821691505b602082108114156200086957634e487b7160e01b600052602260045260246000fd5b50919050565b6000826200088157620008816200089c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b612f4980620008d86000396000f3fe6080604052600436106102765760003560e01c8063741af87f1161014f578063d12a7688116100c1578063e77772fe1161007a578063e77772fe14610770578063ea2f0b3714610790578063f0f165af146107b0578063f2fde38b146107d0578063fccc2813146107f0578063ffc786351461080657600080fd5b8063d12a7688146106b4578063d1475185146106ca578063d89135cd146106e0578063dd62ed3e146106f5578063e05edaca1461073b578063e0bb0aba1461075057600080fd5b8063a51c369511610113578063a51c369514610609578063a81870321461061e578063a9059cbb1461063e578063c04a54141461065e578063c0b0fda21461067e578063c49b9a801461069457600080fd5b8063741af87f1461056857806388f820201461057d5780638da5cb5b146105b657806395d89b41146105d4578063a457c2d7146105e957600080fd5b806339509351116101e857806352390c02116101ac57806352390c02146104a45780635342acb4146104c45780636bc87c3a146104fd57806370a0823114610513578063715018a61461053357806372ac24861461054857600080fd5b8063395093511461040d5780633b124fe71461042d578063437823ec146104435780634549b039146104635780634a74bb021461048357600080fd5b806318160ddd1161023a57806318160ddd1461033e57806323b872dd146103535780632c572d92146103735780632d838119146103ab578063313ce567146103cb5780633685d419146103ed57600080fd5b8063035621911461028257806306fdde03146102a4578063095ea7b3146102cf57806310bd9e8e146102ff57806313114a9d1461031f57600080fd5b3661027d57005b600080fd5b34801561028e57600080fd5b506102a261029d366004612a65565b61081b565b005b3480156102b057600080fd5b506102b9610870565b6040516102c69190612bf4565b60405180910390f35b3480156102db57600080fd5b506102ef6102ea366004612b40565b610902565b60405190151581526020016102c6565b34801561030b57600080fd5b506102a261031a366004612a9d565b610919565b34801561032b57600080fd5b50600e545b6040519081526020016102c6565b34801561034a57600080fd5b50600c54610330565b34801561035f57600080fd5b506102ef61036e366004612b00565b610ab1565b34801561037f57600080fd5b50601b54610393906001600160a01b031681565b6040516001600160a01b0390911681526020016102c6565b3480156103b757600080fd5b506103306103c6366004612b6c565b610b1a565b3480156103d757600080fd5b5060055460405160ff90911681526020016102c6565b3480156103f957600080fd5b506102a2610408366004612a65565b610b9e565b34801561041957600080fd5b506102ef610428366004612b40565b610d8d565b34801561043957600080fd5b50610330600f5481565b34801561044f57600080fd5b506102a261045e366004612a65565b610dc3565b34801561046f57600080fd5b5061033061047e366004612b9c565b610e11565b34801561048f57600080fd5b50601b546102ef90600160a81b900460ff1681565b3480156104b057600080fd5b506102a26104bf366004612a65565b610e9e565b3480156104d057600080fd5b506102ef6104df366004612a65565b6001600160a01b031660009081526009602052604090205460ff1690565b34801561050957600080fd5b5061033060115481565b34801561051f57600080fd5b5061033061052e366004612a65565b6110e4565b34801561053f57600080fd5b506102a2611143565b34801561055457600080fd5b506102a2610563366004612a65565b6111b7565b34801561057457600080fd5b506102a2611273565b34801561058957600080fd5b506102ef610598366004612a65565b6001600160a01b03166000908152600a602052604090205460ff1690565b3480156105c257600080fd5b506000546001600160a01b0316610393565b3480156105e057600080fd5b506102b96112b8565b3480156105f557600080fd5b506102ef610604366004612b40565b6112c7565b34801561061557600080fd5b506102a2611316565b34801561062a57600080fd5b50601854610393906001600160a01b031681565b34801561064a57600080fd5b506102ef610659366004612b40565b611347565b34801561066a57600080fd5b50601754610393906001600160a01b031681565b34801561068a57600080fd5b5061033060135481565b3480156106a057600080fd5b506102a26106af366004612b52565b611354565b3480156106c057600080fd5b50610330601c5481565b3480156106d657600080fd5b5061033060155481565b3480156106ec57600080fd5b506103306113d6565b34801561070157600080fd5b50610330610710366004612ac8565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b34801561074757600080fd5b506102a26113e8565b34801561075c57600080fd5b50601954610393906001600160a01b031681565b34801561077c57600080fd5b50601a54610393906001600160a01b031681565b34801561079c57600080fd5b506102a26107ab366004612a65565b6117ed565b3480156107bc57600080fd5b506102a26107cb366004612b6c565b611838565b3480156107dc57600080fd5b506102a26107eb366004612a65565b611980565b3480156107fc57600080fd5b5061039361dead81565b34801561081257600080fd5b506102a2611a6a565b6000546001600160a01b0316331461084e5760405162461bcd60e51b815260040161084590612c47565b60405180910390fd5b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b60606003805461087f90612e48565b80601f01602080910402602001604051908101604052809291908181526020018280546108ab90612e48565b80156108f85780601f106108cd576101008083540402835291602001916108f8565b820191906000526020600020905b8154815290600101906020018083116108db57829003601f168201915b5050505050905090565b600061090f338484611ab1565b5060015b92915050565b6000546001600160a01b031633146109435760405162461bcd60e51b815260040161084590612c47565b6002805414156109955760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610845565b600280556001600160a01b038216610a035760405162461bcd60e51b815260206004820152602b60248201527f45524332303a20726563697069656e742063616e6e6f7420626520746865207a60448201526a65726f206164647265737360a81b6064820152608401610845565b47811115610a715760405162461bcd60e51b815260206004820152603560248201527f45524332303a20616d6f756e742073686f756c64206e6f7420657863656564206044820152743a34329031b7b73a3930b1ba103130b630b731b29760591b6064820152608401610845565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610aa7573d6000803e3d6000fd5b5050600160025550565b6000610abe848484611bd5565b610b108433610b0b85604051806060016040528060288152602001612ec7602891396001600160a01b038a1660009081526008602090815260408083203384529091529020549190611d7d565b611ab1565b5060019392505050565b6000600d54821115610b815760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610845565b6000610b8b611da9565b9050610b978382611dcc565b9392505050565b6000546001600160a01b03163314610bc85760405162461bcd60e51b815260040161084590612c47565b6001600160a01b0381166000908152600a602052604090205460ff16610c305760405162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f74206578636c756465640000000000000000006044820152606401610845565b60005b600b54811015610d8957816001600160a01b0316600b8281548110610c6857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610d7757600b8054610c9390600190612e31565b81548110610cb157634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600b80546001600160a01b039092169183908110610ceb57634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600782526040808220829055600a90925220805460ff19169055600b805480610d5157634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610d8181612e7d565b915050610c33565b5050565b3360008181526008602090815260408083206001600160a01b0387168452909152812054909161090f918590610b0b9086611dd8565b6000546001600160a01b03163314610ded5760405162461bcd60e51b815260040161084590612c47565b6001600160a01b03166000908152600960205260409020805460ff19166001179055565b6000600c54831115610e655760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610845565b81610e84576000610e7584611de4565b50939550610913945050505050565b6000610e8f84611de4565b50929550610913945050505050565b6000546001600160a01b03163314610ec85760405162461bcd60e51b815260040161084590612c47565b601a60009054906101000a90046001600160a01b03166001600160a01b0316630ae0bc4f6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f1657600080fd5b505afa158015610f2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4e9190612a81565b6001600160a01b0316816001600160a01b03161415610fbb5760405162461bcd60e51b815260206004820152602360248201527f596f752063616e206e6f74206578636c756465205061645377617020726f757460448201526232b91760e91b6064820152608401610845565b6001600160a01b0381166000908152600a602052604090205460ff16156110245760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610845565b6001600160a01b0381166000908152600660205260409020541561107e576001600160a01b03811660009081526006602052604090205461106490610b1a565b6001600160a01b0382166000908152600760205260409020555b6001600160a01b03166000818152600a60205260408120805460ff19166001908117909155600b805491820181559091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b0319169091179055565b6001600160a01b0381166000908152600a602052604081205460ff161561112157506001600160a01b031660009081526007602052604090205490565b6001600160a01b03821660009081526006602052604090205461091390610b1a565b6000546001600160a01b0316331461116d5760405162461bcd60e51b815260040161084590612c47565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146111e15760405162461bcd60e51b815260040161084590612c47565b6001600160a01b0381166112515760405162461bcd60e51b815260206004820152603160248201527f45524332303a20746865206e65772077616c6c65742063616e6e6f74206265206044820152703a3432903d32b9379030b2323932b9b99760791b6064820152608401610845565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461129d5760405162461bcd60e51b815260040161084590612c47565b6112b66000600f81905560118190556013819055601555565b565b60606004805461087f90612e48565b600061090f3384610b0b85604051806060016040528060258152602001612eef602591393360009081526008602090815260408083206001600160a01b038d1684529091529020549190611d7d565b6000546001600160a01b031633146113405760405162461bcd60e51b815260040161084590612c47565b6000601355565b600061090f338484611bd5565b6000546001600160a01b0316331461137e5760405162461bcd60e51b815260040161084590612c47565b601b8054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906113cb90831515815260200190565b60405180910390a150565b60006113e361dead6110e4565b905090565b6000546001600160a01b031633146114125760405162461bcd60e51b815260040161084590612c47565b601a5460408051630ae0bc4f60e01b815290516000926001600160a01b031691630ae0bc4f916004808301926020929190829003018186803b15801561145757600080fd5b505afa15801561146b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148f9190612a81565b905060008190506000816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156114d157600080fd5b505afa1580156114e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115099190612a81565b6001600160a01b031663e6a4390530846001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561155157600080fd5b505afa158015611565573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115899190612a81565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b1580156115cf57600080fd5b505afa1580156115e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116079190612a81565b90506001600160a01b0381166117ad57816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561165057600080fd5b505afa158015611664573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116889190612a81565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156116d057600080fd5b505afa1580156116e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117089190612a81565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b15801561175057600080fd5b505af1158015611764573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117889190612a81565b601980546001600160a01b0319166001600160a01b03929092169190911790556117c9565b601980546001600160a01b0319166001600160a01b0383161790555b50601880546001600160a01b0319166001600160a01b039290921691909117905550565b6000546001600160a01b031633146118175760405162461bcd60e51b815260040161084590612c47565b6001600160a01b03166000908152600960205260409020805460ff19169055565b6000546001600160a01b031633146118625760405162461bcd60e51b815260040161084590612c47565b6005546118739060ff16600a612d67565b6103e8306001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118af57600080fd5b505afa1580156118c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e79190612b84565b6118f2906005612e12565b6118fc9190612d04565b6119069190612e12565b81111561197b5760405162461bcd60e51b815260206004820152603e60248201527f45524332303a2074686520616d6f756e74206d757374206265206c657373657260448201527f207468616e206f7220657175616c20746f20302e352070657263656e742e00006064820152608401610845565b601c55565b6000546001600160a01b031633146119aa5760405162461bcd60e51b815260040161084590612c47565b6001600160a01b038116611a0f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610845565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a945760405162461bcd60e51b815260040161084590612c47565b6112b6601054600f55601254601155601454601355601654601555565b6001600160a01b038316611b135760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610845565b6001600160a01b038216611b745760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610845565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611c395760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610845565b6001600160a01b038216611c9b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610845565b60008111611cfd5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610845565b6000611d08306110e4565b601c5490915081108015908190611d295750601b54600160a01b900460ff16155b8015611d4357506019546001600160a01b03868116911614155b8015611d585750601b54600160a81b900460ff165b15611d6b57601c549150611d6b82611e33565b611d76858585611edb565b5050505050565b60008184841115611da15760405162461bcd60e51b81526004016108459190612bf4565b505050900390565b6000806000611db6612153565b9092509050611dc58282611dcc565b9250505090565b6000610b978284612d04565b6000610b978284612cec565b6000806000806000806000806000611dfb8a61230d565b9250925092506000806000611e198d8686611e14611da9565b612349565b919f909e50909c50959a5093985091965092945050505050565b601b805460ff60a01b1916600160a01b1790556000611e53826002611dcc565b90506000611e618383612399565b905047611e6d836123a5565b506000611e7a4783612399565b9050611e8683826125e0565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050601b805460ff60a01b19169055505050565b6001600160a01b03831660009081526009602052604090205460ff1680611f1a57506001600160a01b03821660009081526009602052604090205460ff165b15611f3857611f386000600f81905560118190556013819055601555565b6000611f5a6064611f54601354856126d990919063ffffffff16565b90611dcc565b90506000611f786064611f54601554866126d990919063ffffffff16565b6001600160a01b0386166000908152600a602052604090205490915060ff168015611fbc57506001600160a01b0384166000908152600a602052604090205460ff16155b15611fe457611fdf8585611fda84611fd48888612399565b90612399565b6126e5565b6120b7565b6001600160a01b0385166000908152600a602052604090205460ff1615801561202557506001600160a01b0384166000908152600a602052604090205460ff165b1561204257611fdf858561203d84611fd48888612399565b61280b565b6001600160a01b0385166000908152600a602052604090205460ff16801561208257506001600160a01b0384166000908152600a602052604090205460ff165b1561209f57611fdf858561209a84611fd48888612399565b6128b4565b6120b785856120b284611fd48888612399565b612927565b6000600f8190556011556120ce8561dead84612927565b6017546120e69086906001600160a01b031683612927565b601054600f556012546011556001600160a01b03851660009081526009602052604090205460ff168061213157506001600160a01b03841660009081526009602052604090205460ff165b15611d7657611d76601054600f55601254601155601454601355601654601555565b600d54600c546000918291825b600b548110156122dd578260066000600b848154811061219057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061220957508160076000600b84815481106121e257634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561221f57600d54600c54945094505050509091565b61227360066000600b848154811061224757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020548490612399565b92506122c960076000600b848154811061229d57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390612399565b9150806122d581612e7d565b915050612160565b50600c54600d546122ed91611dcc565b82101561230457600d54600c549350935050509091565b90939092509050565b60008060008061231c8561296b565b9050600061232986612987565b9050600061233b82611fd48986612399565b979296509094509092505050565b600080808061235888866126d9565b9050600061236688876126d9565b9050600061237488886126d9565b9050600061238682611fd48686612399565b939b939a50919850919650505050505050565b6000610b978284612e31565b6040805160028082526060820183526000928392919060208301908036833701905050905030816000815181106123ec57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152601854604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561244057600080fd5b505afa158015612454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124789190612a81565b8160018151811061249957634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526018546124bf9130911685611ab1565b60185460405163791ac94760e01b81526001600160a01b039091169063791ac947906124f8908690600090869030904290600401612c7c565b600060405180830381600087803b15801561251257600080fd5b505af1925050508015612523575060015b612580577f22b212abbac4f28435a37f1253f735d1d9c9b444577feee64b691ca09113029760405161256f9060208082526006908201526511985a5b195960d21b604082015260600190565b60405180910390a150600092915050565b7f22b212abbac4f28435a37f1253f735d1d9c9b444577feee64b691ca0911302976040516125c9906020808252600790820152665375636365737360c81b604082015260600190565b60405180910390a150600192915050565b50919050565b6018546125f89030906001600160a01b031684611ab1565b60185460405163f305d71960e01b8152306004820181905260248201859052600060448301819052606483015260848201524260a48201526001600160a01b039091169063f305d71990839060c4016060604051808303818588803b15801561266057600080fd5b505af1158015612674573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906126999190612bc7565b505060408051848152602081018490527f38f8a0c92f4c5b0b6877f878cb4c0c8d348a47b76d716c8e78f425043df9515b92500160405180910390a15050565b6000610b978284612e12565b6000806000806000806126f787611de4565b6001600160a01b038f16600090815260076020526040902054959b509399509197509550935091506127299088612399565b6001600160a01b038a166000908152600760209081526040808320939093556006905220546127589087612399565b6001600160a01b03808b1660009081526006602052604080822093909355908a16815220546127879086611dd8565b6001600160a01b0389166000908152600660205260409020556127a9816129a3565b6127b38483612a2c565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516127f891815260200190565b60405180910390a3505050505050505050565b60008060008060008061281d87611de4565b6001600160a01b038f16600090815260066020526040902054959b5093995091975095509350915061284f9087612399565b6001600160a01b03808b16600090815260066020908152604080832094909455918b168152600790915220546128859084611dd8565b6001600160a01b0389166000908152600760209081526040808320939093556006905220546127879086611dd8565b6000806000806000806128c687611de4565b6001600160a01b038f16600090815260076020526040902054959b509399509197509550935091506128f89088612399565b6001600160a01b038a1660009081526007602090815260408083209390935560069052205461284f9087612399565b60008060008060008061293987611de4565b6001600160a01b038f16600090815260066020526040902054959b509399509197509550935091506127589087612399565b60006109136064611f54600f54856126d990919063ffffffff16565b60006109136064611f54601154856126d990919063ffffffff16565b60006129ad611da9565b905060006129bb83836126d9565b306000908152600660205260409020549091506129d89082611dd8565b30600090815260066020908152604080832093909355600a9052205460ff1615612a275730600090815260076020526040902054612a169084611dd8565b306000908152600760205260409020555b505050565b600d54612a399083612399565b600d55600e54612a499082611dd8565b600e555050565b80358015158114612a6057600080fd5b919050565b600060208284031215612a76578081fd5b8135610b9781612eae565b600060208284031215612a92578081fd5b8151610b9781612eae565b60008060408385031215612aaf578081fd5b8235612aba81612eae565b946020939093013593505050565b60008060408385031215612ada578182fd5b8235612ae581612eae565b91506020830135612af581612eae565b809150509250929050565b600080600060608486031215612b14578081fd5b8335612b1f81612eae565b92506020840135612b2f81612eae565b929592945050506040919091013590565b60008060408385031215612aaf578182fd5b600060208284031215612b63578081fd5b610b9782612a50565b600060208284031215612b7d578081fd5b5035919050565b600060208284031215612b95578081fd5b5051919050565b60008060408385031215612bae578182fd5b82359150612bbe60208401612a50565b90509250929050565b600080600060608486031215612bdb578283fd5b8351925060208401519150604084015190509250925092565b6000602080835283518082850152825b81811015612c2057858101830151858201604001528201612c04565b81811115612c315783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015612ccb5784516001600160a01b031683529383019391830191600101612ca6565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612cff57612cff612e98565b500190565b600082612d1f57634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115612d5f578160001904821115612d4557612d45612e98565b80851615612d5257918102915b93841c9390800290612d29565b509250929050565b6000610b9760ff841683600082612d8057506001610913565b81612d8d57506000610913565b8160018114612da35760028114612dad57612dc9565b6001915050610913565b60ff841115612dbe57612dbe612e98565b50506001821b610913565b5060208310610133831016604e8410600b8410161715612dec575081810a610913565b612df68383612d24565b8060001904821115612e0a57612e0a612e98565b029392505050565b6000816000190483118215151615612e2c57612e2c612e98565b500290565b600082821015612e4357612e43612e98565b500390565b600181811c90821680612e5c57607f821691505b602082108114156125da57634e487b7160e01b600052602260045260246000fd5b6000600019821415612e9157612e91612e98565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114612ec357600080fd5b5056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122061f230b322cd6edb715ded21a0a40cbf442c22bc08551696275e5398973974b964736f6c63430008040033a264697066735822122020a8a105b758cca3cce3ec380a01bce109b1b8cbad143c8b72cf9df2e69bc41864736f6c634300080400330000000000000000000000004a891f2cba00cf8442a1d5a9219463453d326ba8000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000115265666c656374696f6e73204552433230000000000000000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004a891f2cba00cf8442a1d5a9219463453d326ba8000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000115265666c656374696f6e73204552433230000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _factory (address): 0x4a891f2cba00cf8442a1d5a9219463453d326ba8
Arg [1] : _tokenType (string): Reflections ERC20
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000004a891f2cba00cf8442a1d5a9219463453d326ba8
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [3] : 5265666c656374696f6e73204552433230000000000000000000000000000000
Deployed ByteCode Sourcemap
61743:1244:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62025:959;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3139:32:1;;;3121:51;;3109:2;3094:18;62025:959:0;;;;;;;;61850:32;;;:::i;:::-;;;;;;;:::i;61802:41::-;;;;;62025:959;62094:13;62128:10;-1:-1:-1;;;;;62142:7:0;62128:21;;62120:58;;;;-1:-1:-1;;;62120:58:0;;5544:2:1;62120:58:0;;;5526:21:1;5583:2;5563:18;;;5556:30;5622:26;5602:18;;;5595:54;5666:18;;62120:58:0;;;;;;;;;62192:18;;;;;;;;62410:91;;;;62421:9;62410:91;:::i;:::-;62191:310;;;;;;;;;;;;;;;;62582:15;62634:14;62624:7;62609:12;62600:6;:21;;;;:::i;:::-;:31;;;;:::i;:::-;:48;;;;:::i;:::-;62582:66;;62677:1;62667:7;:11;:28;;;;;62693:2;62682:7;:13;;62667:28;62659:103;;;;-1:-1:-1;;;62659:103:0;;5113:2:1;62659:103:0;;;5095:21:1;5152:2;5132:18;;;5125:30;5191:34;5171:18;;;5164:62;5262:32;5242:18;;;5235:60;5312:19;;62659:103:0;5085:252:1;62659:103:0;62809:4;62815:6;62823:8;62833:6;62841;62849:12;62863:7;62872:14;62888:7;62799:97;;;;;:::i;:::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;62783:114;;62913:40;62925:5;62932:4;62938:6;62946;62913:40;;;;;;;;;:::i;:::-;;;;;;;;62964:12;;;;;;;;;62025:959;;;;:::o;61850:32::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;-1:-1:-1:-;;;;;;;;:::o;14:739:1:-;57:5;110:3;103:4;95:6;91:17;87:27;77:2;;132:5;125;118:20;77:2;172:6;159:20;198:18;235:2;231;228:10;225:2;;;241:18;;:::i;:::-;316:2;310:9;284:2;370:13;;-1:-1:-1;;366:22:1;;;390:2;362:31;358:40;346:53;;;414:18;;;434:22;;;411:46;408:2;;;460:18;;:::i;:::-;500:10;496:2;489:22;535:2;527:6;520:18;581:3;574:4;569:2;561:6;557:15;553:26;550:35;547:2;;;602:5;595;588:20;547:2;670;663:4;655:6;651:17;644:4;636:6;632:17;619:54;693:15;;;710:4;689:26;682:41;;;;-1:-1:-1;697:6:1;67:686;-1:-1:-1;;;67:686:1:o;758:641::-;828:6;836;889:2;877:9;868:7;864:23;860:32;857:2;;;910:6;902;895:22;857:2;955:9;942:23;984:18;1025:2;1017:6;1014:14;1011:2;;;1046:6;1038;1031:22;1011:2;1089:6;1078:9;1074:22;1064:32;;1134:7;1127:4;1123:2;1119:13;1115:27;1105:2;;1161:6;1153;1146:22;1105:2;1206;1193:16;1232:2;1224:6;1221:14;1218:2;;;1253:6;1245;1238:22;1218:2;1303:7;1298:2;1289:6;1285:2;1281:15;1277:24;1274:37;1271:2;;;1329:6;1321;1314:22;1271:2;1365;1357:11;;;;;1387:6;;-1:-1:-1;847:552:1;;-1:-1:-1;;;;847:552:1:o;1404:1085::-;1544:6;1552;1560;1568;1576;1584;1592;1600;1653:3;1641:9;1632:7;1628:23;1624:33;1621:2;;;1675:6;1667;1660:22;1621:2;1720:9;1707:23;1749:18;1790:2;1782:6;1779:14;1776:2;;;1811:6;1803;1796:22;1776:2;1839:50;1881:7;1872:6;1861:9;1857:22;1839:50;:::i;:::-;1829:60;;1942:2;1931:9;1927:18;1914:32;1898:48;;1971:2;1961:8;1958:16;1955:2;;;1992:6;1984;1977:22;1955:2;;2020:52;2064:7;2053:8;2042:9;2038:24;2020:52;:::i;:::-;2010:62;;;2122:2;2111:9;2107:18;2094:32;2166:4;2159:5;2155:16;2148:5;2145:27;2135:2;;2191:6;2183;2176:22;2135:2;1611:878;;;;-1:-1:-1;2219:5:1;;2271:2;2256:18;;2243:32;;-1:-1:-1;2322:3:1;2307:19;;2294:33;;2374:3;2359:19;;2346:33;;-1:-1:-1;2426:3:1;2411:19;;2398:33;;-1:-1:-1;2478:3:1;2463:19;;;2450:33;;-1:-1:-1;1611:878:1;-1:-1:-1;;1611:878:1:o;2494:476::-;2536:3;2574:5;2568:12;2601:6;2596:3;2589:19;2626:3;2638:162;2652:6;2649:1;2646:13;2638:162;;;2714:4;2770:13;;;2766:22;;2760:29;2742:11;;;2738:20;;2731:59;2667:12;2638:162;;;2818:6;2815:1;2812:13;2809:2;;;2884:3;2877:4;2868:6;2863:3;2859:16;2855:27;2848:40;2809:2;-1:-1:-1;2952:2:1;2931:15;-1:-1:-1;;2927:29:1;2918:39;;;;2959:4;2914:50;;2544:426;-1:-1:-1;;2544:426:1:o;3183:553::-;-1:-1:-1;;;;;3436:32:1;;3418:51;;3505:3;3500:2;3485:18;;3478:31;;;-1:-1:-1;;3532:46:1;;3558:19;;3550:6;3532:46;:::i;:::-;3626:9;3618:6;3614:22;3609:2;3598:9;3594:18;3587:50;3654:33;3680:6;3672;3654:33;:::i;:::-;3646:41;;;3723:6;3718:2;3707:9;3703:18;3696:34;3408:328;;;;;;;:::o;3741:220::-;3890:2;3879:9;3872:21;3853:4;3910:45;3951:2;3940:9;3936:18;3928:6;3910:45;:::i;:::-;3902:53;3862:99;-1:-1:-1;;;3862:99:1:o;3966:940::-;4318:4;4347:3;4377:2;4366:9;4359:21;4403:45;4444:2;4433:9;4429:18;4421:6;4403:45;:::i;:::-;4389:59;;4496:9;4488:6;4484:22;4479:2;4468:9;4464:18;4457:50;4524:33;4550:6;4542;4524:33;:::i;:::-;4605:4;4593:17;;;;4588:2;4573:18;;4566:45;-1:-1:-1;;4642:2:1;4627:18;;4620:34;;;;4685:3;4670:19;;4663:35;;;;4729:3;4714:19;;4707:35;;;;4773:3;4758:19;;4751:35;4817:3;4802:19;;4795:35;-1:-1:-1;;;;;4867:32:1;4861:3;4846:19;;;4839:61;4516:41;4327:579;-1:-1:-1;;4327:579:1:o;5695:229::-;5735:3;5766:1;5762:6;5759:1;5756:13;5753:2;;;-1:-1:-1;;;5792:33:1;;5848:4;5845:1;5838:15;5878:4;5799:3;5866:17;5753:2;-1:-1:-1;5909:9:1;;5743:181::o;5929:380::-;6008:1;6004:12;;;;6051;;;6072:2;;6126:4;6118:6;6114:17;6104:27;;6072:2;6179;6171:6;6168:14;6148:18;6145:38;6142:2;;;6225:10;6220:3;6216:20;6213:1;6206:31;6260:4;6257:1;6250:15;6288:4;6285:1;6278:15;6142:2;;5984:325;;;:::o;6314:127::-;6375:10;6370:3;6366:20;6363:1;6356:31;6406:4;6403:1;6396:15;6430:4;6427:1;6420:15
Swarm Source
ipfs://20a8a105b758cca3cce3ec380a01bce109b1b8cbad143c8b72cf9df2e69bc418
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.