Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Pi
Compiler Version
v0.7.4+commit.3f05b770
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity 0.7.4; pragma experimental ABIEncoderV2; import "./openzeppelinupgradeable/token/ERC20/ERC20Upgradeable.sol"; import "./openzeppelinupgradeable/access/OwnableUpgradeable.sol"; import "./openzeppelinupgradeable/math/SafeMathUpgradeable.sol"; import "./openzeppelinupgradeable/token/ERC20/SafeERC20Upgradeable.sol"; import "./interfaces/IPiTransferGate.sol"; import "./interfaces/IGatedERC20.sol"; import "./interfaces/IEventGate.sol"; contract Pi is Initializable, ERC20Upgradeable, OwnableUpgradeable { using SafeMathUpgradeable for uint256; IPiTransferGate public transferGate; IEventGate public eventGate; address public LPAddress; // axBNB <-> Pi SLP mapping(address=>bool) IGNORED_ADDRESSES; address public piZapper; address public circleNFTZapper; event TransferGateSet(address transferGate); event LPAddressSet(address _LPAddress); event ZapperSet(address piZapper, address circleNFTZapper); function initialize() public initializer { __Ownable_init_unchained(); __ERC20_init("Pi-Protocol","PIP"); _mint(0x416760a2D78D5Bdc6841851A0d48F2787Bc23d61, 600000 ether); } function setIgnoredAddressBulk(address[] memory _ignoredAddressBulk, bool ignore)external onlyOwner{ for(uint i=0;i<_ignoredAddressBulk.length;i++){ address _ignoredAddress = _ignoredAddressBulk[i]; IGNORED_ADDRESSES[_ignoredAddress] = ignore; } } function setIgnoredAddresses(address _ignoredAddress, bool ignore)external onlyOwner{ IGNORED_ADDRESSES[_ignoredAddress]=ignore; } function setTransferGate(IPiTransferGate _transferGate) public onlyOwner() { transferGate = _transferGate; emit TransferGateSet(address(transferGate)); } function setLPAddress(address _LPAddress) public onlyOwner() { require(_LPAddress != address(0), "Pi: _LPAddress cannot be zero address"); LPAddress = _LPAddress; emit LPAddressSet(_LPAddress); } function setZapper(address _piZapper, address _circleNFTZapper) external onlyOwner() { require(_piZapper != address(0), "Pi: _piZapper cannot be zero address"); require(_circleNFTZapper != address(0), "Pi: _circleNFTZapper cannot be zero address"); piZapper = _piZapper; circleNFTZapper = _circleNFTZapper; emit ZapperSet(piZapper, circleNFTZapper); } function _transfer(address sender, address recipient, uint256 amount) internal virtual override { require(sender != address(0), "Pi: transfer from the zero address"); require(recipient != address(0), "Pi: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); IPiTransferGate _transferGate = transferGate; uint256 remaining = amount; _balances[sender] = _balances[sender].sub(amount, "Pi: transfer amount exceeds balance"); if(IGNORED_ADDRESSES[recipient]){ _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } else { if (address(_transferGate) != address(0)) { (uint256 burn, TransferGateTarget[] memory targets) = _transferGate.handleTransfer(msg.sender, sender, recipient, amount); if (burn > 0) { remaining = remaining.sub(burn, "Pi: Burn too much"); _totalSupply = _totalSupply.sub(burn); emit Transfer(sender, address(0), burn); } for (uint256 x = 0; x < targets.length; ++x) { (address dest, uint256 amt) = (targets[x].destination, targets[x].amount); remaining = remaining.sub(amt, "Pi: Transfer too much"); _balances[dest] = _balances[dest].add(amt); emit Transfer(sender, dest, amt); } } _balances[recipient] = _balances[recipient].add(remaining); emit Transfer(sender, recipient, remaining); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/ContextUpgradeable.sol"; import "./IERC20Upgradeable.sol"; import "../../math/SafeMathUpgradeable.sol"; import "../../proxy/Initializable.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable { using SafeMathUpgradeable for uint256; mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 internal _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. */ function __ERC20_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer { _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 { } uint256[44] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT 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 SafeMathUpgradeable { /** * @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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20Upgradeable.sol"; import "../../math/SafeMathUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using SafeMathUpgradeable for uint256; using AddressUpgradeable for address; function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20Upgradeable 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(IERC20Upgradeable 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(IERC20Upgradeable 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(IERC20Upgradeable 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(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity ^0.7.4; pragma experimental ABIEncoderV2; import "./IOwned.sol"; import "./ITokensRecoverable.sol"; import "./IUniswapV2Router02.sol"; import "./IUniswapV2Factory.sol"; enum AddressState { Unknown, NotPool, DisallowedPool, AllowedPool } struct TransferGateTarget { address destination; uint256 amount; } interface IPiTransferGate is IOwned, ITokensRecoverable { function allowedPoolTokensCount() external view returns (uint256); function setUnrestrictedController(address unrestrictedController, bool allow) external; function setFreeParticipant(address participant, bool free) external; function setUnrestricted(bool _unrestricted) external; function setParameters(address _dev, address _stake, uint16 _stakeRate, uint16 _burnRate, uint16 _devRate) external; function allowPool(IUniswapV2Factory _uniswapV2Factory, IERC20 token) external; function safeAddLiquidity(IUniswapV2Router02 _uniswapRouter02, IERC20 token, uint256 tokenAmount, uint256 PiAmount//, uint256 minTokenAmount, uint256 minPiAmount // ,uint256 deadline //stack deep issue coming so had to use fix values ) external returns (uint256 PiUsed, uint256 tokenUsed, uint256 liquidity); function handleTransfer(address msgSender, address from, address to, uint256 amount) external returns (uint256 burn, TransferGateTarget[] memory targets); }
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity ^0.7.4; import "./IERC20.sol"; import "./IPiTransferGate.sol"; interface IGatedERC20 is IERC20 { function transferGate() external view returns (IPiTransferGate); function setTransferGate(IPiTransferGate _transferGate) external; }
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity ^0.7.4; interface IEventGate { function handleZap(address sender, address recipient, uint256 amount) external returns(uint256); function enableGate(bool allow) external; function enabledGate() external view returns(bool); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../proxy/Initializable.sol"; /* * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } 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; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; import "../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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); } 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); } } } }
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity ^0.7.4; interface IOwned { event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); function owner() external view returns (address); function transferOwnership(address newOwner) external; function claimOwnership() external; }
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity ^0.7.4; import "./IERC20.sol"; interface ITokensRecoverable { function recoverTokens(IERC20 token) external; function recoverETH(uint256 amount) external; }
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity ^0.7.4; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity ^0.7.4; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); 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(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity ^0.7.4; interface IERC20 { event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); function totalSupply() external view returns (uint256); function balanceOf(address _account) external view returns (uint256); function transfer(address _recipient, uint256 _amount) external returns (bool); function allowance(address _owner, address _spender) external view returns (uint256); function approve(address _spender, uint256 _amount) external returns (bool); function transferFrom(address _sender, address _recipient, uint256 _amount) external returns (bool); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); }
// SPDX-License-Identifier: J-J-J-JENGA!!! pragma solidity ^0.7.4; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":false,"internalType":"address","name":"_LPAddress","type":"address"}],"name":"LPAddressSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":false,"internalType":"address","name":"transferGate","type":"address"}],"name":"TransferGateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"piZapper","type":"address"},{"indexed":false,"internalType":"address","name":"circleNFTZapper","type":"address"}],"name":"ZapperSet","type":"event"},{"inputs":[],"name":"LPAddress","outputs":[{"internalType":"address","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":"circleNFTZapper","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"eventGate","outputs":[{"internalType":"contract IEventGate","name":"","type":"address"}],"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":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"piZapper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_ignoredAddressBulk","type":"address[]"},{"internalType":"bool","name":"ignore","type":"bool"}],"name":"setIgnoredAddressBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ignoredAddress","type":"address"},{"internalType":"bool","name":"ignore","type":"bool"}],"name":"setIgnoredAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_LPAddress","type":"address"}],"name":"setLPAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IPiTransferGate","name":"_transferGate","type":"address"}],"name":"setTransferGate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_piZapper","type":"address"},{"internalType":"address","name":"_circleNFTZapper","type":"address"}],"name":"setZapper","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":[],"name":"transferGate","outputs":[{"internalType":"contract IPiTransferGate","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611e5e806100206000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80638129fc1c116100de578063a9059cbb11610097578063c94ced9a11610071578063c94ced9a146102da578063d6e76886146102ed578063dd62ed3e146102f5578063f2fde38b1461030857610173565b8063a9059cbb146102ac578063b4975343146102bf578063b703342c146102c757610173565b80638129fc1c146102665780638bc3b4361461026e5780638da5cb5b1461028157806395d89b41146102895780639eabf6f514610291578063a457c2d71461029957610173565b80633950935111610130578063395093511461020857806361d8c8171461021b57806367c1257e1461023057806370a0823114610238578063715018a61461024b5780637a351a1d1461025357610173565b806306fdde0314610178578063095ea7b314610196578063120f2eda146101b657806318160ddd146101cb57806323b872dd146101e0578063313ce567146101f3575b600080fd5b61018061031b565b60405161018d9190611ad2565b60405180910390f35b6101a96101a43660046118b8565b6103b1565b60405161018d9190611ac7565b6101be6103ce565b60405161018d9190611a6f565b6101d36103dd565b60405161018d9190611c70565b6101a96101ee366004611844565b6103e3565b6101fb61046a565b60405161018d9190611c79565b6101a96102163660046118b8565b610473565b61022e6102293660046117f0565b6104c1565b005b6101be61057f565b6101d36102463660046117f0565b61058e565b61022e6105ad565b61022e6102613660046117f0565b610659565b61022e610735565b61022e61027c366004611884565b61084f565b6101be6108dc565b6101806108eb565b6101be61094c565b6101a96102a73660046118b8565b61095b565b6101a96102ba3660046118b8565b6109c3565b6101be6109d7565b61022e6102d536600461180c565b6109e6565b61022e6102e83660046118e3565b610b05565b6101be610bbe565b6101d361030336600461180c565b610bcd565b61022e6103163660046117f0565b610bf8565b60368054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a75780601f1061037c576101008083540402835291602001916103a7565b820191906000526020600020905b81548152906001019060200180831161038a57829003601f168201915b5050505050905090565b60006103c56103be610cfb565b8484610cff565b50600192915050565b6099546001600160a01b031681565b60355490565b60006103f0848484610deb565b610460846103fc610cfb565b61045b85604051806060016040528060288152602001611d78602891396001600160a01b038a1660009081526034602052604081209061043a610cfb565b6001600160a01b0316815260208101919091526040016000205491906111cd565b610cff565b5060019392505050565b60385460ff1690565b60006103c5610480610cfb565b8461045b8560346000610491610cfb565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611264565b6104c9610cfb565b6001600160a01b03166104da6108dc565b6001600160a01b031614610523576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b609780546001600160a01b0319166001600160a01b0383811691909117918290556040517f61986fa10656168c1a72b6d38c854e74f71be7ecdc0fac8eaeb56c95fd93f0d092610574921690611a6f565b60405180910390a150565b609c546001600160a01b031681565b6001600160a01b0381166000908152603360205260409020545b919050565b6105b5610cfb565b6001600160a01b03166105c66108dc565b6001600160a01b03161461060f576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6065546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580546001600160a01b0319169055565b610661610cfb565b6001600160a01b03166106726108dc565b6001600160a01b0316146106bb576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6001600160a01b0381166106ea5760405162461bcd60e51b81526004016106e190611b25565b60405180910390fd5b609980546001600160a01b0319166001600160a01b0383161790556040517f24c5465fbeef5f410255c7d4753425591ed63951850731c05dd4b04bb503f43c90610574908390611a6f565b600054610100900460ff168061074e575061074e6112c5565b8061075c575060005460ff16155b6107975760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff161580156107c2576000805460ff1961ff0019909116610100171660011790555b6107ca6112d6565b6108126040518060400160405280600b81526020016a141a4b541c9bdd1bd8dbdb60aa1b8152506040518060400160405280600381526020016205049560ec1b8152506113cf565b61083a73416760a2d78d5bdc6841851a0d48f2787bc23d61697f0e10af47c1c7000000611484565b801561084c576000805461ff00191690555b50565b610857610cfb565b6001600160a01b03166108686108dc565b6001600160a01b0316146108b1576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152609a60205260409020805460ff1916911515919091179055565b6065546001600160a01b031690565b60378054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a75780601f1061037c576101008083540402835291602001916103a7565b609b546001600160a01b031681565b60006103c5610968610cfb565b8461045b85604051806060016040528060258152602001611e046025913960346000610992610cfb565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906111cd565b60006103c56109d0610cfb565b8484610deb565b6097546001600160a01b031681565b6109ee610cfb565b6001600160a01b03166109ff6108dc565b6001600160a01b031614610a48576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6001600160a01b038216610a6e5760405162461bcd60e51b81526004016106e190611c2c565b6001600160a01b038116610a945760405162461bcd60e51b81526004016106e190611bac565b609b80546001600160a01b038085166001600160a01b03199283161792839055609c8054858316931692909217918290556040517f6aacc272758aeb45a2543d32058f7de5aa00bda1cfa05266b851f3db8c6608d893610af993908316921690611aad565b60405180910390a15050565b610b0d610cfb565b6001600160a01b0316610b1e6108dc565b6001600160a01b031614610b67576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b60005b8251811015610bb9576000838281518110610b8157fe5b6020908102919091018101516001600160a01b03166000908152609a90915260409020805460ff191684151517905550600101610b6a565b505050565b6098546001600160a01b031681565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b610c00610cfb565b6001600160a01b0316610c116108dc565b6001600160a01b031614610c5a576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6001600160a01b038116610c9f5760405162461bcd60e51b8152600401808060200182810382526026815260200180611cdf6026913960400191505060405180910390fd5b6065546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6001600160a01b038316610d445760405162461bcd60e51b8152600401808060200182810382526024815260200180611de06024913960400191505060405180910390fd5b6001600160a01b038216610d895760405162461bcd60e51b8152600401808060200182810382526022815260200180611d056022913960400191505060405180910390fd5b6001600160a01b03808416600081815260346020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610e115760405162461bcd60e51b81526004016106e190611b6a565b6001600160a01b038216610e375760405162461bcd60e51b81526004016106e190611bf7565b610e42838383610bb9565b609754604080516060810190915260238082526001600160a01b03909216918391610e9291839190611d5560208301396001600160a01b03881660009081526033602052604090205491906111cd565b6001600160a01b038087166000908152603360209081526040808320949094559187168152609a909152205460ff1615610f36576001600160a01b038416600090815260336020526040902054610ee99084611264565b6001600160a01b038086166000818152603360205260409081902093909355915190871690600080516020611dc083398151915290610f29908790611c70565b60405180910390a36111c6565b6001600160a01b0382161561115a5760006060836001600160a01b03166395c47d06338989896040518563ffffffff1660e01b8152600401610f7b9493929190611a83565b600060405180830381600087803b158015610f9557600080fd5b505af1158015610fa9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fd19190810190611996565b90925090508115611059576040805180820190915260118152700a0d2744084eae4dc40e8dede40daeac6d607b1b602082015261101190849084906111cd565b6035549093506110219083611564565b6035556040516000906001600160a01b03891690600080516020611dc083398151915290611050908690611c70565b60405180910390a35b60005b81518110156111565760008083838151811061107457fe5b60200260200101516000015184848151811061108c57fe5b602002602001015160200151915091506110de81604051806040016040528060158152602001740a0d27440a8e4c2dce6cccae440e8dede40daeac6d605b1b815250886111cd9092919063ffffffff16565b6001600160a01b0383166000908152603360205260409020549096506111049082611264565b6001600160a01b0380841660008181526033602052604090819020939093559151908c1690600080516020611dc083398151915290611144908590611c70565b60405180910390a3505060010161105c565b5050505b6001600160a01b03841660009081526033602052604090205461117d9082611264565b6001600160a01b038086166000818152603360205260409081902093909355915190871690600080516020611dc0833981519152906111bd908590611c70565b60405180910390a35b5050505050565b6000818484111561125c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611221578181015183820152602001611209565b50505050905090810190601f16801561124e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112be576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60006112d0306115c1565b15905090565b600054610100900460ff16806112ef57506112ef6112c5565b806112fd575060005460ff16155b6113385760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff16158015611363576000805460ff1961ff0019909116610100171660011790555b600061136d610cfb565b606580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350801561084c576000805461ff001916905550565b600054610100900460ff16806113e857506113e86112c5565b806113f6575060005460ff16155b6114315760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff1615801561145c576000805460ff1961ff0019909116610100171660011790555b6114646115c7565b61146e8383611667565b8015610bb9576000805461ff0019169055505050565b6001600160a01b0382166114df576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6114eb60008383610bb9565b6035546114f89082611264565b6035556001600160a01b03821660009081526033602052604090205461151e9082611264565b6001600160a01b0383166000818152603360209081526040808320949094558351858152935192939192600080516020611dc08339815191529281900390910190a35050565b6000828211156115bb576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3b151590565b600054610100900460ff16806115e057506115e06112c5565b806115ee575060005460ff16155b6116295760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff1615801561083a576000805460ff1961ff001990911661010017166001179055801561084c576000805461ff001916905550565b600054610100900460ff168061168057506116806112c5565b8061168e575060005460ff16155b6116c95760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff161580156116f4576000805460ff1961ff0019909116610100171660011790555b825161170790603690602086019061173f565b50815161171b90603790602085019061173f565b506038805460ff191660121790558015610bb9576000805461ff0019169055505050565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261177557600085556117bb565b82601f1061178e57805160ff19168380011785556117bb565b828001600101855582156117bb579182015b828111156117bb5782518255916020019190600101906117a0565b506117c79291506117cb565b5090565b5b808211156117c757600081556001016117cc565b803580151581146105a857600080fd5b600060208284031215611801578081fd5b81356112be81611cc9565b6000806040838503121561181e578081fd5b823561182981611cc9565b9150602083013561183981611cc9565b809150509250929050565b600080600060608486031215611858578081fd5b833561186381611cc9565b9250602084013561187381611cc9565b929592945050506040919091013590565b60008060408385031215611896578182fd5b82356118a181611cc9565b91506118af602084016117e0565b90509250929050565b600080604083850312156118ca578182fd5b82356118d581611cc9565b946020939093013593505050565b600080604083850312156118f5578182fd5b823567ffffffffffffffff81111561190b578283fd5b8301601f8101851361191b578283fd5b803561192e61192982611cab565b611c87565b80828252602080830192508085018982838702880101111561194e578788fd5b8795505b8486101561197957803561196581611cc9565b845260019590950194928101928101611952565b508196506119888189016117e0565b955050505050509250929050565b60008060408084860312156119a9578283fd5b8351925060208085015167ffffffffffffffff808211156119c8578485fd5b818701915087601f8301126119db578485fd5b81516119e961192982611cab565b81815284810190848601878402860187018c1015611a05578889fd5b8895505b83861015611a5d5787818d031215611a1f578889fd5b87518881018181108782111715611a3257fe5b89528151611a3f81611cc9565b81528188015188820152835260019590950194918601918701611a09565b50809750505050505050509250929050565b6001600160a01b0391909116815260200190565b6001600160a01b039485168152928416602084015292166040820152606081019190915260800190565b6001600160a01b0392831681529116602082015260400190565b901515815260200190565b6000602080835283518082850152825b81811015611afe57858101830151858201604001528201611ae2565b81811115611b0f5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526025908201527f50693a205f4c50416464726573732063616e6e6f74206265207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526022908201527f50693a207472616e736665722066726f6d20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252602b908201527f50693a205f636972636c654e46545a61707065722063616e6e6f74206265207a60408201526a65726f206164647265737360a81b606082015260800190565b6020808252818101527f50693a207472616e7366657220746f20746865207a65726f2061646472657373604082015260600190565b60208082526024908201527f50693a205f70695a61707065722063616e6e6f74206265207a65726f206164646040820152637265737360e01b606082015260800190565b90815260200190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715611ca357fe5b604052919050565b600067ffffffffffffffff821115611cbf57fe5b5060209081020190565b6001600160a01b038116811461084c57600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a656450693a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122082ec12dbd27de0a764f25741b976a188aa425ce91cd598496884f9f9ebb88c3f64736f6c63430007040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c80638129fc1c116100de578063a9059cbb11610097578063c94ced9a11610071578063c94ced9a146102da578063d6e76886146102ed578063dd62ed3e146102f5578063f2fde38b1461030857610173565b8063a9059cbb146102ac578063b4975343146102bf578063b703342c146102c757610173565b80638129fc1c146102665780638bc3b4361461026e5780638da5cb5b1461028157806395d89b41146102895780639eabf6f514610291578063a457c2d71461029957610173565b80633950935111610130578063395093511461020857806361d8c8171461021b57806367c1257e1461023057806370a0823114610238578063715018a61461024b5780637a351a1d1461025357610173565b806306fdde0314610178578063095ea7b314610196578063120f2eda146101b657806318160ddd146101cb57806323b872dd146101e0578063313ce567146101f3575b600080fd5b61018061031b565b60405161018d9190611ad2565b60405180910390f35b6101a96101a43660046118b8565b6103b1565b60405161018d9190611ac7565b6101be6103ce565b60405161018d9190611a6f565b6101d36103dd565b60405161018d9190611c70565b6101a96101ee366004611844565b6103e3565b6101fb61046a565b60405161018d9190611c79565b6101a96102163660046118b8565b610473565b61022e6102293660046117f0565b6104c1565b005b6101be61057f565b6101d36102463660046117f0565b61058e565b61022e6105ad565b61022e6102613660046117f0565b610659565b61022e610735565b61022e61027c366004611884565b61084f565b6101be6108dc565b6101806108eb565b6101be61094c565b6101a96102a73660046118b8565b61095b565b6101a96102ba3660046118b8565b6109c3565b6101be6109d7565b61022e6102d536600461180c565b6109e6565b61022e6102e83660046118e3565b610b05565b6101be610bbe565b6101d361030336600461180c565b610bcd565b61022e6103163660046117f0565b610bf8565b60368054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a75780601f1061037c576101008083540402835291602001916103a7565b820191906000526020600020905b81548152906001019060200180831161038a57829003601f168201915b5050505050905090565b60006103c56103be610cfb565b8484610cff565b50600192915050565b6099546001600160a01b031681565b60355490565b60006103f0848484610deb565b610460846103fc610cfb565b61045b85604051806060016040528060288152602001611d78602891396001600160a01b038a1660009081526034602052604081209061043a610cfb565b6001600160a01b0316815260208101919091526040016000205491906111cd565b610cff565b5060019392505050565b60385460ff1690565b60006103c5610480610cfb565b8461045b8560346000610491610cfb565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611264565b6104c9610cfb565b6001600160a01b03166104da6108dc565b6001600160a01b031614610523576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b609780546001600160a01b0319166001600160a01b0383811691909117918290556040517f61986fa10656168c1a72b6d38c854e74f71be7ecdc0fac8eaeb56c95fd93f0d092610574921690611a6f565b60405180910390a150565b609c546001600160a01b031681565b6001600160a01b0381166000908152603360205260409020545b919050565b6105b5610cfb565b6001600160a01b03166105c66108dc565b6001600160a01b03161461060f576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6065546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580546001600160a01b0319169055565b610661610cfb565b6001600160a01b03166106726108dc565b6001600160a01b0316146106bb576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6001600160a01b0381166106ea5760405162461bcd60e51b81526004016106e190611b25565b60405180910390fd5b609980546001600160a01b0319166001600160a01b0383161790556040517f24c5465fbeef5f410255c7d4753425591ed63951850731c05dd4b04bb503f43c90610574908390611a6f565b600054610100900460ff168061074e575061074e6112c5565b8061075c575060005460ff16155b6107975760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff161580156107c2576000805460ff1961ff0019909116610100171660011790555b6107ca6112d6565b6108126040518060400160405280600b81526020016a141a4b541c9bdd1bd8dbdb60aa1b8152506040518060400160405280600381526020016205049560ec1b8152506113cf565b61083a73416760a2d78d5bdc6841851a0d48f2787bc23d61697f0e10af47c1c7000000611484565b801561084c576000805461ff00191690555b50565b610857610cfb565b6001600160a01b03166108686108dc565b6001600160a01b0316146108b1576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152609a60205260409020805460ff1916911515919091179055565b6065546001600160a01b031690565b60378054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a75780601f1061037c576101008083540402835291602001916103a7565b609b546001600160a01b031681565b60006103c5610968610cfb565b8461045b85604051806060016040528060258152602001611e046025913960346000610992610cfb565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906111cd565b60006103c56109d0610cfb565b8484610deb565b6097546001600160a01b031681565b6109ee610cfb565b6001600160a01b03166109ff6108dc565b6001600160a01b031614610a48576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6001600160a01b038216610a6e5760405162461bcd60e51b81526004016106e190611c2c565b6001600160a01b038116610a945760405162461bcd60e51b81526004016106e190611bac565b609b80546001600160a01b038085166001600160a01b03199283161792839055609c8054858316931692909217918290556040517f6aacc272758aeb45a2543d32058f7de5aa00bda1cfa05266b851f3db8c6608d893610af993908316921690611aad565b60405180910390a15050565b610b0d610cfb565b6001600160a01b0316610b1e6108dc565b6001600160a01b031614610b67576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b60005b8251811015610bb9576000838281518110610b8157fe5b6020908102919091018101516001600160a01b03166000908152609a90915260409020805460ff191684151517905550600101610b6a565b505050565b6098546001600160a01b031681565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b610c00610cfb565b6001600160a01b0316610c116108dc565b6001600160a01b031614610c5a576040805162461bcd60e51b81526020600482018190526024820152600080516020611da0833981519152604482015290519081900360640190fd5b6001600160a01b038116610c9f5760405162461bcd60e51b8152600401808060200182810382526026815260200180611cdf6026913960400191505060405180910390fd5b6065546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6001600160a01b038316610d445760405162461bcd60e51b8152600401808060200182810382526024815260200180611de06024913960400191505060405180910390fd5b6001600160a01b038216610d895760405162461bcd60e51b8152600401808060200182810382526022815260200180611d056022913960400191505060405180910390fd5b6001600160a01b03808416600081815260346020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610e115760405162461bcd60e51b81526004016106e190611b6a565b6001600160a01b038216610e375760405162461bcd60e51b81526004016106e190611bf7565b610e42838383610bb9565b609754604080516060810190915260238082526001600160a01b03909216918391610e9291839190611d5560208301396001600160a01b03881660009081526033602052604090205491906111cd565b6001600160a01b038087166000908152603360209081526040808320949094559187168152609a909152205460ff1615610f36576001600160a01b038416600090815260336020526040902054610ee99084611264565b6001600160a01b038086166000818152603360205260409081902093909355915190871690600080516020611dc083398151915290610f29908790611c70565b60405180910390a36111c6565b6001600160a01b0382161561115a5760006060836001600160a01b03166395c47d06338989896040518563ffffffff1660e01b8152600401610f7b9493929190611a83565b600060405180830381600087803b158015610f9557600080fd5b505af1158015610fa9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fd19190810190611996565b90925090508115611059576040805180820190915260118152700a0d2744084eae4dc40e8dede40daeac6d607b1b602082015261101190849084906111cd565b6035549093506110219083611564565b6035556040516000906001600160a01b03891690600080516020611dc083398151915290611050908690611c70565b60405180910390a35b60005b81518110156111565760008083838151811061107457fe5b60200260200101516000015184848151811061108c57fe5b602002602001015160200151915091506110de81604051806040016040528060158152602001740a0d27440a8e4c2dce6cccae440e8dede40daeac6d605b1b815250886111cd9092919063ffffffff16565b6001600160a01b0383166000908152603360205260409020549096506111049082611264565b6001600160a01b0380841660008181526033602052604090819020939093559151908c1690600080516020611dc083398151915290611144908590611c70565b60405180910390a3505060010161105c565b5050505b6001600160a01b03841660009081526033602052604090205461117d9082611264565b6001600160a01b038086166000818152603360205260409081902093909355915190871690600080516020611dc0833981519152906111bd908590611c70565b60405180910390a35b5050505050565b6000818484111561125c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611221578181015183820152602001611209565b50505050905090810190601f16801561124e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112be576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60006112d0306115c1565b15905090565b600054610100900460ff16806112ef57506112ef6112c5565b806112fd575060005460ff16155b6113385760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff16158015611363576000805460ff1961ff0019909116610100171660011790555b600061136d610cfb565b606580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350801561084c576000805461ff001916905550565b600054610100900460ff16806113e857506113e86112c5565b806113f6575060005460ff16155b6114315760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff1615801561145c576000805460ff1961ff0019909116610100171660011790555b6114646115c7565b61146e8383611667565b8015610bb9576000805461ff0019169055505050565b6001600160a01b0382166114df576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6114eb60008383610bb9565b6035546114f89082611264565b6035556001600160a01b03821660009081526033602052604090205461151e9082611264565b6001600160a01b0383166000818152603360209081526040808320949094558351858152935192939192600080516020611dc08339815191529281900390910190a35050565b6000828211156115bb576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3b151590565b600054610100900460ff16806115e057506115e06112c5565b806115ee575060005460ff16155b6116295760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff1615801561083a576000805460ff1961ff001990911661010017166001179055801561084c576000805461ff001916905550565b600054610100900460ff168061168057506116806112c5565b8061168e575060005460ff16155b6116c95760405162461bcd60e51b815260040180806020018281038252602e815260200180611d27602e913960400191505060405180910390fd5b600054610100900460ff161580156116f4576000805460ff1961ff0019909116610100171660011790555b825161170790603690602086019061173f565b50815161171b90603790602085019061173f565b506038805460ff191660121790558015610bb9576000805461ff0019169055505050565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261177557600085556117bb565b82601f1061178e57805160ff19168380011785556117bb565b828001600101855582156117bb579182015b828111156117bb5782518255916020019190600101906117a0565b506117c79291506117cb565b5090565b5b808211156117c757600081556001016117cc565b803580151581146105a857600080fd5b600060208284031215611801578081fd5b81356112be81611cc9565b6000806040838503121561181e578081fd5b823561182981611cc9565b9150602083013561183981611cc9565b809150509250929050565b600080600060608486031215611858578081fd5b833561186381611cc9565b9250602084013561187381611cc9565b929592945050506040919091013590565b60008060408385031215611896578182fd5b82356118a181611cc9565b91506118af602084016117e0565b90509250929050565b600080604083850312156118ca578182fd5b82356118d581611cc9565b946020939093013593505050565b600080604083850312156118f5578182fd5b823567ffffffffffffffff81111561190b578283fd5b8301601f8101851361191b578283fd5b803561192e61192982611cab565b611c87565b80828252602080830192508085018982838702880101111561194e578788fd5b8795505b8486101561197957803561196581611cc9565b845260019590950194928101928101611952565b508196506119888189016117e0565b955050505050509250929050565b60008060408084860312156119a9578283fd5b8351925060208085015167ffffffffffffffff808211156119c8578485fd5b818701915087601f8301126119db578485fd5b81516119e961192982611cab565b81815284810190848601878402860187018c1015611a05578889fd5b8895505b83861015611a5d5787818d031215611a1f578889fd5b87518881018181108782111715611a3257fe5b89528151611a3f81611cc9565b81528188015188820152835260019590950194918601918701611a09565b50809750505050505050509250929050565b6001600160a01b0391909116815260200190565b6001600160a01b039485168152928416602084015292166040820152606081019190915260800190565b6001600160a01b0392831681529116602082015260400190565b901515815260200190565b6000602080835283518082850152825b81811015611afe57858101830151858201604001528201611ae2565b81811115611b0f5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526025908201527f50693a205f4c50416464726573732063616e6e6f74206265207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526022908201527f50693a207472616e736665722066726f6d20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252602b908201527f50693a205f636972636c654e46545a61707065722063616e6e6f74206265207a60408201526a65726f206164647265737360a81b606082015260800190565b6020808252818101527f50693a207472616e7366657220746f20746865207a65726f2061646472657373604082015260600190565b60208082526024908201527f50693a205f70695a61707065722063616e6e6f74206265207a65726f206164646040820152637265737360e01b606082015260800190565b90815260200190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715611ca357fe5b604052919050565b600067ffffffffffffffff821115611cbf57fe5b5060209081020190565b6001600160a01b038116811461084c57600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a656450693a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122082ec12dbd27de0a764f25741b976a188aa425ce91cd598496884f9f9ebb88c3f64736f6c63430007040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.