Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 34 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 13074578 | 1253 days ago | IN | 0 ETH | 0.00442249 | ||||
Mint | 13074576 | 1253 days ago | IN | 0 ETH | 0.00357603 | ||||
Mint | 13074573 | 1253 days ago | IN | 0 ETH | 0.00377146 | ||||
Mint | 13074571 | 1253 days ago | IN | 0 ETH | 0.00306242 | ||||
Mint | 13074569 | 1253 days ago | IN | 0 ETH | 0.00338971 | ||||
Mint | 13074564 | 1253 days ago | IN | 0 ETH | 0.00387435 | ||||
Mint | 13074557 | 1253 days ago | IN | 0 ETH | 0.00306872 | ||||
Mint | 13074545 | 1253 days ago | IN | 0 ETH | 0.00337258 | ||||
Mint | 13074538 | 1253 days ago | IN | 0 ETH | 0.00314637 | ||||
Mint | 13074530 | 1253 days ago | IN | 0 ETH | 0.00431907 | ||||
Mint | 13074524 | 1253 days ago | IN | 0 ETH | 0.00322708 | ||||
Mint | 13074518 | 1253 days ago | IN | 0 ETH | 0.00381119 | ||||
Mint | 13074500 | 1253 days ago | IN | 0 ETH | 0.0047666 | ||||
Mint | 13074498 | 1253 days ago | IN | 0 ETH | 0.00377544 | ||||
Mint | 13074490 | 1253 days ago | IN | 0 ETH | 0.00434717 | ||||
Mint | 13074482 | 1253 days ago | IN | 0 ETH | 0.00470755 | ||||
Mint | 13074477 | 1253 days ago | IN | 0 ETH | 0.00465632 | ||||
Mint | 13074472 | 1253 days ago | IN | 0 ETH | 0.00417069 | ||||
Mint | 13074464 | 1253 days ago | IN | 0 ETH | 0.00402385 | ||||
Mint | 13074459 | 1253 days ago | IN | 0 ETH | 0.00389511 | ||||
Mint | 13074449 | 1253 days ago | IN | 0 ETH | 0.00459191 | ||||
Mint | 13074446 | 1253 days ago | IN | 0 ETH | 0.00421282 | ||||
Mint | 13074443 | 1253 days ago | IN | 0 ETH | 0.0046216 | ||||
Mint | 13074440 | 1253 days ago | IN | 0 ETH | 0.00411756 | ||||
Mint | 13074434 | 1253 days ago | IN | 0 ETH | 0.00397581 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
SushiGirl
Compiler Version
v0.8.5+commit.a4f2e591
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.5; import "@openzeppelin/contracts/access/Ownable.sol"; import "./libraries/ERC721.sol"; import "./libraries/ERC721Enumerable.sol"; import "./uniswapv2/interfaces/IUniswapV2Pair.sol"; import "./interfaces/IERC1271.sol"; import "./interfaces/ISushiGirl.sol"; import "./libraries/Signature.sol"; import "./interfaces/IMasterChef.sol"; contract SushiGirl is Ownable, ERC721("Sushi Girl", unicode"(◠‿◠🍣)"), ERC721Enumerable, ISushiGirl { struct SushiGirlInfo { uint256 originPower; uint256 supportedLPTokenAmount; uint256 sushiRewardDebt; } bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; // keccak256("Permit(address spender,uint256 tokenId,uint256 nonce,uint256 deadline)"); bytes32 public constant override PERMIT_TYPEHASH = 0x49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad; // keccak256("Permit(address owner,address spender,uint256 nonce,uint256 deadline)"); bytes32 public constant override PERMIT_ALL_TYPEHASH = 0xdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df62; mapping(uint256 => uint256) public override nonces; mapping(address => uint256) public override noncesForAll; IUniswapV2Pair public immutable override lpToken; uint256 public override lpTokenToSushiGirlPower = 1; SushiGirlInfo[] public override sushiGirls; IERC20 public immutable override sushi; IMasterChef public override sushiMasterChef; uint256 public override pid; uint256 public override sushiLastRewardBlock; uint256 public override accSushiPerShare; bool private initialDeposited; constructor(IUniswapV2Pair _lpToken, IERC20 _sushi) { lpToken = _lpToken; sushi = _sushi; _CACHED_CHAIN_ID = block.chainid; _HASHED_NAME = keccak256(bytes("Sushi Girl")); _HASHED_VERSION = keccak256(bytes("1")); _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); _CACHED_DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes("Sushi Girl")), keccak256(bytes("1")), block.chainid, address(this) ) ); } function _baseURI() internal pure override returns (string memory) { return "https://api.maidcoin.org/sushigirl/"; } function DOMAIN_SEPARATOR() public view override returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return keccak256(abi.encode(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION, block.chainid, address(this))); } } function changeLPTokenToSushiGirlPower(uint256 value) external onlyOwner { lpTokenToSushiGirlPower = value; emit ChangeLPTokenToSushiGirlPower(value); } function mint(uint256 power) external onlyOwner returns (uint256 id) { id = sushiGirls.length; sushiGirls.push(SushiGirlInfo({originPower: power, supportedLPTokenAmount: 0, sushiRewardDebt: 0})); _mint(msg.sender, id); } function powerOf(uint256 id) external view override returns (uint256) { SushiGirlInfo storage sushiGirl = sushiGirls[id]; return sushiGirl.originPower + (sushiGirl.supportedLPTokenAmount * lpTokenToSushiGirlPower) / 1e18; } function support(uint256 id, uint256 lpTokenAmount) public override { require(ownerOf(id) == msg.sender, "SushiGirl: Forbidden"); require(lpTokenAmount > 0, "SushiGirl: Invalid lpTokenAmount"); uint256 _supportedLPTokenAmount = sushiGirls[id].supportedLPTokenAmount; sushiGirls[id].supportedLPTokenAmount = _supportedLPTokenAmount + lpTokenAmount; lpToken.transferFrom(msg.sender, address(this), lpTokenAmount); uint256 _pid = pid; if (_pid > 0) { uint256 _totalSupportedLPTokenAmount = sushiMasterChef.userInfo(_pid, address(this)).amount; uint256 _accSushiPerShare = _depositToSushiMasterChef(_pid, lpTokenAmount, _totalSupportedLPTokenAmount); uint256 pending = (_supportedLPTokenAmount * _accSushiPerShare) / 1e18 - sushiGirls[id].sushiRewardDebt; if (pending > 0) safeSushiTransfer(msg.sender, pending); sushiGirls[id].sushiRewardDebt = ((_supportedLPTokenAmount + lpTokenAmount) * _accSushiPerShare) / 1e18; } emit Support(id, lpTokenAmount); } function supportWithPermit( uint256 id, uint256 lpTokenAmount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external override { lpToken.permit(msg.sender, address(this), lpTokenAmount, deadline, v, r, s); support(id, lpTokenAmount); } function desupport(uint256 id, uint256 lpTokenAmount) external override { require(ownerOf(id) == msg.sender, "SushiGirl: Forbidden"); require(lpTokenAmount > 0, "SushiGirl: Invalid lpTokenAmount"); uint256 _supportedLPTokenAmount = sushiGirls[id].supportedLPTokenAmount; sushiGirls[id].supportedLPTokenAmount = _supportedLPTokenAmount - lpTokenAmount; uint256 _pid = pid; if (_pid > 0) { uint256 _totalSupportedLPTokenAmount = sushiMasterChef.userInfo(_pid, address(this)).amount; uint256 _accSushiPerShare = _withdrawFromSushiMasterChef(_pid, lpTokenAmount, _totalSupportedLPTokenAmount); uint256 pending = (_supportedLPTokenAmount * _accSushiPerShare) / 1e18 - sushiGirls[id].sushiRewardDebt; if (pending > 0) safeSushiTransfer(msg.sender, pending); sushiGirls[id].sushiRewardDebt = ((_supportedLPTokenAmount - lpTokenAmount) * _accSushiPerShare) / 1e18; } lpToken.transfer(msg.sender, lpTokenAmount); emit Desupport(id, lpTokenAmount); } function claimSushiReward(uint256 id) public override { require(ownerOf(id) == msg.sender, "SushiGirl: Forbidden"); uint256 _pid = pid; require(_pid > 0, "SushiGirl: Unclaimable"); uint256 _supportedLPTokenAmount = sushiGirls[id].supportedLPTokenAmount; uint256 _totalSupportedLPTokenAmount = sushiMasterChef.userInfo(_pid, address(this)).amount; uint256 _accSushiPerShare = _depositToSushiMasterChef(_pid, 0, _totalSupportedLPTokenAmount); uint256 pending = (_supportedLPTokenAmount * _accSushiPerShare) / 1e18 - sushiGirls[id].sushiRewardDebt; require(pending > 0, "SushiGirl: Nothing can be claimed"); safeSushiTransfer(msg.sender, pending); sushiGirls[id].sushiRewardDebt = (_supportedLPTokenAmount * _accSushiPerShare) / 1e18; } function pendingSushiReward(uint256 id) external view override returns (uint256) { uint256 _pid = pid; if (_pid == 0) return 0; uint256 _supportedLPTokenAmount = sushiGirls[id].supportedLPTokenAmount; uint256 _totalSupportedLPTokenAmount = sushiMasterChef.userInfo(_pid, address(this)).amount; uint256 _accSushiPerShare = accSushiPerShare; if (block.number > sushiLastRewardBlock && _totalSupportedLPTokenAmount != 0) { uint256 reward = sushiMasterChef.pendingSushi(pid, address(this)); _accSushiPerShare += ((reward * 1e18) / _totalSupportedLPTokenAmount); } return (_supportedLPTokenAmount * _accSushiPerShare) / 1e18 - sushiGirls[id].sushiRewardDebt; } function permit( address spender, uint256 id, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external override { require(block.timestamp <= deadline, "SushiGirl: Expired deadline"); bytes32 _DOMAIN_SEPARATOR = DOMAIN_SEPARATOR(); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", _DOMAIN_SEPARATOR, keccak256(abi.encode(PERMIT_TYPEHASH, spender, id, nonces[id], deadline)) ) ); nonces[id] += 1; address owner = ownerOf(id); require(spender != owner, "SushiGirl: Invalid spender"); if (Address.isContract(owner)) { require( IERC1271(owner).isValidSignature(digest, abi.encodePacked(r, s, v)) == 0x1626ba7e, "SushiGirl: Unauthorized" ); } else { address recoveredAddress = Signature.recover(digest, v, r, s); require(recoveredAddress == owner, "SushiGirl: Unauthorized"); } _approve(spender, id); } function permitAll( address owner, address spender, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external override { require(block.timestamp <= deadline, "SushiGirl: Expired deadline"); bytes32 _DOMAIN_SEPARATOR = DOMAIN_SEPARATOR(); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", _DOMAIN_SEPARATOR, keccak256(abi.encode(PERMIT_ALL_TYPEHASH, owner, spender, noncesForAll[owner], deadline)) ) ); noncesForAll[owner] += 1; if (Address.isContract(owner)) { require( IERC1271(owner).isValidSignature(digest, abi.encodePacked(r, s, v)) == 0x1626ba7e, "SushiGirl: Unauthorized" ); } else { address recoveredAddress = Signature.recover(digest, v, r, s); require(recoveredAddress == owner, "SushiGirl: Unauthorized"); } _setApprovalForAll(owner, spender, true); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, IERC165) returns (bool) { return super.supportsInterface(interfaceId); } function setSushiMasterChef(IMasterChef _masterChef, uint256 _pid) external override onlyOwner { require(address(_masterChef.poolInfo(_pid).lpToken) == address(lpToken), "SushiGirl: Invalid pid"); if (!initialDeposited) { initialDeposited = true; lpToken.approve(address(_masterChef), type(uint256).max); sushiMasterChef = _masterChef; pid = _pid; _depositToSushiMasterChef(_pid, lpToken.balanceOf(address(this)), 0); } else { IMasterChef oldChef = sushiMasterChef; uint256 oldpid = pid; _withdrawFromSushiMasterChef(oldpid, oldChef.userInfo(oldpid, address(this)).amount, 0); if (_masterChef != oldChef) { lpToken.approve(address(oldChef), 0); lpToken.approve(address(_masterChef), type(uint256).max); } sushiMasterChef = _masterChef; pid = _pid; _depositToSushiMasterChef(_pid, lpToken.balanceOf(address(this)), 0); } } function _depositToSushiMasterChef( uint256 _pid, uint256 _amount, uint256 _totalSupportedLPTokenAmount ) internal returns (uint256 _accSushiPerShare) { return _toSushiMasterChef(true, _pid, _amount, _totalSupportedLPTokenAmount); } function _withdrawFromSushiMasterChef( uint256 _pid, uint256 _amount, uint256 _totalSupportedLPTokenAmount ) internal returns (uint256 _accSushiPerShare) { return _toSushiMasterChef(false, _pid, _amount, _totalSupportedLPTokenAmount); } function _toSushiMasterChef( bool deposit, uint256 _pid, uint256 _amount, uint256 _totalSupportedLPTokenAmount ) internal returns (uint256) { uint256 reward; if (block.number <= sushiLastRewardBlock) { if (deposit) sushiMasterChef.deposit(_pid, _amount); else sushiMasterChef.withdraw(_pid, _amount); return accSushiPerShare; } else { uint256 balance0 = sushi.balanceOf(address(this)); if (deposit) sushiMasterChef.deposit(_pid, _amount); else sushiMasterChef.withdraw(_pid, _amount); uint256 balance1 = sushi.balanceOf(address(this)); reward = balance1 - balance0; } sushiLastRewardBlock = block.number; if (_totalSupportedLPTokenAmount > 0 && reward > 0) { uint256 _accSushiPerShare = accSushiPerShare + ((reward * 1e18) / _totalSupportedLPTokenAmount); accSushiPerShare = _accSushiPerShare; return _accSushiPerShare; } else { return accSushiPerShare; } } function safeSushiTransfer(address _to, uint256 _amount) internal { uint256 sushiBal = sushi.balanceOf(address(this)); if (_amount > sushiBal) { sushi.transfer(_to, sushiBal); } else { sushi.transfer(_to, _amount); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } function _setApprovalForAll( address owner, address operator, bool approved ) internal { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` 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 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IUniswapV2Pair { 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; }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; /// @title Interface for verifying contract-based account signatures /// @notice Interface that verifies provided signature for the data /// @dev Interface defined by EIP-1271 interface IERC1271 { /// @notice Returns whether the provided signature is valid for the provided data /// @dev MUST return the bytes4 magic value 0x1626ba7e when function passes. /// MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5). /// MUST allow external calls. /// @param hash Hash of the data to be signed /// @param signature Signature byte array associated with _data /// @return magicValue The bytes4 magic value 0x1626ba7e function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue); }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "../uniswapv2/interfaces/IUniswapV2Pair.sol"; import "./IMasterChef.sol"; interface ISushiGirl is IERC721, IERC721Metadata, IERC721Enumerable { event ChangeLPTokenToSushiGirlPower(uint256 value); event Support(uint256 indexed id, uint256 lpTokenAmount); event Desupport(uint256 indexed id, uint256 lpTokenAmount); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external view returns (bytes32); function PERMIT_ALL_TYPEHASH() external view returns (bytes32); function nonces(uint256 id) external view returns (uint256); function noncesForAll(address owner) external view returns (uint256); function lpToken() external view returns (IUniswapV2Pair); function lpTokenToSushiGirlPower() external view returns (uint256); function sushiGirls(uint256 id) external view returns ( uint256 originPower, uint256 supportedLPTokenAmount, uint256 sushiRewardDebt ); function sushi() external view returns (IERC20); function sushiMasterChef() external view returns (IMasterChef); function pid() external view returns (uint256); function sushiLastRewardBlock() external view returns (uint256); function accSushiPerShare() external view returns (uint256); function powerOf(uint256 id) external view returns (uint256); function support(uint256 id, uint256 lpTokenAmount) external; function supportWithPermit( uint256 id, uint256 lpTokenAmount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function desupport(uint256 id, uint256 lpTokenAmount) external; function claimSushiReward(uint256 id) external; function pendingSushiReward(uint256 id) external view returns (uint256); function permit( address spender, uint256 id, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function permitAll( address owner, address spender, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function setSushiMasterChef(IMasterChef _masterChef, uint256 pid) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.5; library Signature { function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IMasterChef { struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. } struct PoolInfo { IERC20 lpToken; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. SUSHI to distribute per block. uint256 lastRewardBlock; // Last block number that SUSHI distribution occurs. uint256 accSushiPerShare; // Accumulated SUSHI per share, times 1e12. See below. } function poolInfo(uint256 pid) external view returns (IMasterChef.PoolInfo memory); function userInfo(uint256 pid, address user) external view returns (IMasterChef.UserInfo memory); function pendingSushi(uint256 _pid, address _user) external view returns (uint256); function deposit(uint256 _pid, uint256 _amount) external; function withdraw(uint256 _pid, uint256 _amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; 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"); (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"); (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"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IUniswapV2Pair","name":"_lpToken","type":"address"},{"internalType":"contract IERC20","name":"_sushi","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ChangeLPTokenToSushiGirlPower","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpTokenAmount","type":"uint256"}],"name":"Desupport","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":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpTokenAmount","type":"uint256"}],"name":"Support","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_ALL_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accSushiPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"changeLPTokenToSushiGirlPower","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"claimSushiReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"lpTokenAmount","type":"uint256"}],"name":"desupport","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpTokenToSushiGirlPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"power","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"noncesForAll","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"pendingSushiReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permitAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"powerOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMasterChef","name":"_masterChef","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"setSushiMasterChef","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"lpTokenAmount","type":"uint256"}],"name":"support","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"lpTokenAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"supportWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushi","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sushiGirls","outputs":[{"internalType":"uint256","name":"originPower","type":"uint256"},{"internalType":"uint256","name":"supportedLPTokenAmount","type":"uint256"},{"internalType":"uint256","name":"sushiRewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiLastRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiMasterChef","outputs":[{"internalType":"contract IMasterChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101606040526001600d553480156200001757600080fd5b50604051620042d4380380620042d48339810160408190526200003a91620002f6565b6040518060400160405280600a81526020016914dd5cda1a4811da5c9b60b21b8152506040518060400160405280600f81526020016e28e297a0e280bfe297a0f09f8da32960881b8152506200009f62000099620001fc60201b60201c565b62000200565b8151620000b490600190602085019062000250565b508051620000ca90600290602084019062000250565b5050506001600160601b0319606092831b81166101205290821b16610140524660a0818152604080518082018252600a8082526914dd5cda1a4811da5c9b60b21b60209283018190527f2b7514b90201014dcc2c0623b583a03dd51d3b3289e28ae5df97bae8c24fb83e60c0818152855180870187526001808252603160f81b9187018290527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660e08190527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6101008190528951808b018b52978852968801959095528751808901895290815286015285518086019490945283860191909152968201526080818101959095523081850152825180820390940184529094019052805192019190912090526200038b565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200025e9062000335565b90600052602060002090601f016020900481019282620002825760008555620002cd565b82601f106200029d57805160ff1916838001178555620002cd565b82800160010185558215620002cd579182015b82811115620002cd578251825591602001919060010190620002b0565b50620002db929150620002df565b5090565b5b80821115620002db5760008155600101620002e0565b600080604083850312156200030a57600080fd5b8251620003178162000372565b60208401519092506200032a8162000372565b809150509250929050565b600181811c908216806200034a57607f821691505b602082108114156200036c57634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b03811681146200038857600080fd5b50565b60805160a05160c05160e051610100516101205160601c6101405160601c613e866200044e6000396000818161033e0152818161285b0152818161290d015281816129b0015281816130b4015261322601526000818161044001528181611179015281816115d601528181611b2801528181611c2701528181611d3401528181611df101528181611f4901528181611fed01526120ab01526000610a3501526000610a8301526000610a5b015260006109e401526000610a0d0152613e866000f3fe608060405234801561001057600080fd5b50600436106102685760003560e01c80636352211e11610151578063a22cb465116100c3578063b88d4fde11610087578063b88d4fde146105a4578063c87b56dd146105b7578063c9bbd04a146105ca578063e985e9c5146105dd578063f106845414610619578063f2fde38b1461062257600080fd5b8063a22cb46514610531578063a234d60814610544578063a39b10fa14610557578063aba078471461056a578063b4e13c8d1461057d57600080fd5b8063884246641161011557806388424664146104c95780638da5cb5b146104d2578063904dfb8e146104e357806395d89b41146105035780639be56c671461050b578063a0712d681461051e57600080fd5b80636352211e1461047557806370a0823114610488578063715018a61461049b5780637492ee28146104a35780637ac2ff7b146104b657600080fd5b80632f745c59116101ea5780634f6ccce7116101ae5780634f6ccce7146103f95780634fd3c34a1461040c57806357339be61461041557806358bb45c9146104285780635fcbd2851461043b5780636232fceb1461046257600080fd5b80632f745c591461039b57806330adf81f146103ae5780633644e515146103d557806338e97f44146103dd57806342842e0e146103e657600080fd5b8063095ea7b311610231578063095ea7b3146103245780630a08790314610339578063141a468c1461036057806318160ddd1461038057806323b872dd1461038857600080fd5b80629159f51461026d57806301ffc9a7146102a057806304eaa113146102c357806306fdde03146102e4578063081812fc146102f9575b600080fd5b61028061027b3660046139db565b610635565b604080519384526020840192909252908201526060015b60405180910390f35b6102b36102ae3660046138e3565b610668565b6040519015158152602001610297565b6102d66102d13660046139db565b610679565b604051908152602001610297565b6102ec6106d7565b6040516102979190613b0d565b61030c6103073660046139db565b610769565b6040516001600160a01b039091168152602001610297565b61033761033236600461385a565b610803565b005b61030c7f000000000000000000000000000000000000000000000000000000000000000081565b6102d661036e3660046139db565b600b6020526000908152604090205481565b6009546102d6565b6103376103963660046136c4565b610919565b6102d66103a936600461385a565b61094a565b6102d67f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b6102d66109e0565b6102d660115481565b6103376103f43660046136c4565b610ad1565b6102d66104073660046139db565b610aec565b6102d660125481565b6103376104233660046139db565b610b7f565b6102d66104363660046139db565b610db8565b61030c7f000000000000000000000000000000000000000000000000000000000000000081565b6103376104703660046139db565b610fa0565b61030c6104833660046139db565b611005565b6102d661049636600461366e565b61107c565b610337611103565b6103376104b1366004613a2f565b611139565b6103376104c4366004613886565b6111ef565b6102d6600d5481565b6000546001600160a01b031661030c565b6102d66104f136600461366e565b600c6020526000908152604090205481565b6102ec6114c9565b610337610519366004613a0d565b6114d8565b6102d661052c3660046139db565b6117ee565b61033761053f36600461382c565b6118ce565b610337610552366004613a0d565b6118dd565b61033761056536600461385a565b611bdf565b6103376105783660046137c9565b6120e3565b6102d67fdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df6281565b6103376105b2366004613705565b612352565b6102ec6105c53660046139db565b61238a565b600f5461030c906001600160a01b031681565b6102b36105eb36600461368b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102d660105481565b61033761063036600461366e565b612464565b600e818154811061064557600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b6000610673826124ff565b92915050565b600080600e838154811061068f5761068f613dc8565b90600052602060002090600302019050670de0b6b3a7640000600d5482600101546106ba9190613cba565b6106c49190613ca6565b81546106d09190613c8e565b9392505050565b6060600180546106e690613d1c565b80601f016020809104026020016040519081016040528092919081815260200182805461071290613d1c565b801561075f5780601f106107345761010080835404028352916020019161075f565b820191906000526020600020905b81548152906001019060200180831161074257829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166107e75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061080e82611005565b9050806001600160a01b0316836001600160a01b0316141561087c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107de565b336001600160a01b0382161480610898575061089881336105eb565b61090a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107de565b6109148383612524565b505050565b6109233382612592565b61093f5760405162461bcd60e51b81526004016107de90613bde565b610914838383612689565b60006109558361107c565b82106109b75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107de565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60007f0000000000000000000000000000000000000000000000000000000000000000461415610a2f57507f000000000000000000000000000000000000000000000000000000000000000090565b604080517f000000000000000000000000000000000000000000000000000000000000000060208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b61091483838360405180602001604052806000815250612352565b6000610af760095490565b8210610b5a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107de565b60098281548110610b6d57610b6d613dc8565b90600052602060002001549050919050565b33610b8982611005565b6001600160a01b031614610baf5760405162461bcd60e51b81526004016107de90613c2f565b60105480610bf85760405162461bcd60e51b815260206004820152601660248201527553757368694769726c3a20556e636c61696d61626c6560501b60448201526064016107de565b6000600e8381548110610c0d57610c0d613dc8565b6000918252602082206003919091020160010154600f546040516393f1a40b60e01b8152600481018690523060248201529193506001600160a01b0316906393f1a40b90604401604080518083038186803b158015610c6b57600080fd5b505afa158015610c7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca3919061398c565b5190506000610cb3848284612834565b90506000600e8681548110610cca57610cca613dc8565b906000526020600020906003020160020154670de0b6b3a76400008386610cf19190613cba565b610cfb9190613ca6565b610d059190613cd9565b905060008111610d615760405162461bcd60e51b815260206004820152602160248201527f53757368694769726c3a204e6f7468696e672063616e20626520636c61696d656044820152601960fa1b60648201526084016107de565b610d6b3382612843565b670de0b6b3a7640000610d7e8386613cba565b610d889190613ca6565b600e8781548110610d9b57610d9b613dc8565b906000526020600020906003020160020181905550505050505050565b60105460009080610dcc5750600092915050565b6000600e8481548110610de157610de1613dc8565b6000918252602082206003919091020160010154600f546040516393f1a40b60e01b8152600481018690523060248201529193506001600160a01b0316906393f1a40b90604401604080518083038186803b158015610e3f57600080fd5b505afa158015610e53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e77919061398c565b516012546011549192509043118015610e8f57508115155b15610f4857600f5460105460405163065509bb60e21b815260048101919091523060248201526000916001600160a01b03169063195426ec9060440160206040518083038186803b158015610ee357600080fd5b505afa158015610ef7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1b91906139f4565b905082610f3082670de0b6b3a7640000613cba565b610f3a9190613ca6565b610f449083613c8e565b9150505b600e8681548110610f5b57610f5b613dc8565b906000526020600020906003020160020154670de0b6b3a76400008285610f829190613cba565b610f8c9190613ca6565b610f969190613cd9565b9695505050505050565b6000546001600160a01b03163314610fca5760405162461bcd60e51b81526004016107de90613b72565b600d8190556040518181527fd1712aea07715b59dbc1e1ebe62d2aa74d20000b40db37b3f2232bf38f5c68ed9060200160405180910390a150565b6000818152600360205260408120546001600160a01b0316806106735760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107de565b60006001600160a01b0382166110e75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107de565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461112d5760405162461bcd60e51b81526004016107de90613b72565b61113760006129df565b565b60405163d505accf60e01b8152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d505accf9060e401600060405180830381600087803b1580156111c557600080fd5b505af11580156111d9573d6000803e3d6000fd5b505050506111e786866114d8565b505050505050565b8342111561123f5760405162461bcd60e51b815260206004820152601b60248201527f53757368694769726c3a204578706972656420646561646c696e65000000000060448201526064016107de565b60006112496109e0565b6000878152600b60208181526040808420805482517f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad818601526001600160a01b038f1681850152606081018e90526080810182905260a08082018e90528451808303909101815260c08201855280519086012061190160f01b60e083015260e2820189905261010280830191909152845180830390910181526101229091019093528251928401929092208c865293909252939450909260019290611310908490613c8e565b909155506000905061132188611005565b9050806001600160a01b0316896001600160a01b031614156113855760405162461bcd60e51b815260206004820152601a60248201527f53757368694769726c3a20496e76616c6964207370656e64657200000000000060448201526064016107de565b803b1561147157604080516020810187905280820186905260f888901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b03831691631626ba7e916113ed918691606501613af4565b60206040518083038186803b15801561140557600080fd5b505afa158015611419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143d9190613900565b6001600160e01b031916631626ba7e60e01b1461146c5760405162461bcd60e51b81526004016107de90613ba7565b6114b4565b600061147f83888888612a2f565b9050816001600160a01b0316816001600160a01b0316146114b25760405162461bcd60e51b81526004016107de90613ba7565b505b6114be8989612524565b505050505050505050565b6060600280546106e690613d1c565b336114e283611005565b6001600160a01b0316146115085760405162461bcd60e51b81526004016107de90613c2f565b600081116115585760405162461bcd60e51b815260206004820181905260248201527f53757368694769726c3a20496e76616c6964206c70546f6b656e416d6f756e7460448201526064016107de565b6000600e838154811061156d5761156d613dc8565b9060005260206000209060030201600101549050818161158d9190613c8e565b600e84815481106115a0576115a0613dc8565b60009182526020909120600390910201600101556040516323b872dd60e01b8152336004820152306024820152604481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561162257600080fd5b505af1158015611636573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165a91906138c6565b5060105480156117ae57600f546040516393f1a40b60e01b8152600481018390523060248201526000916001600160a01b0316906393f1a40b90604401604080518083038186803b1580156116ae57600080fd5b505afa1580156116c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e6919061398c565b51905060006116f6838684612834565b90506000600e878154811061170d5761170d613dc8565b906000526020600020906003020160020154670de0b6b3a764000083876117349190613cba565b61173e9190613ca6565b6117489190613cd9565b9050801561175a5761175a3382612843565b670de0b6b3a76400008261176e8888613c8e565b6117789190613cba565b6117829190613ca6565b600e888154811061179557611795613dc8565b9060005260206000209060030201600201819055505050505b837f9c86c947c690753cc6de6016e1c45414d895662cc13af08319148419baf5df2f846040516117e091815260200190565b60405180910390a250505050565b600080546001600160a01b031633146118195760405162461bcd60e51b81526004016107de90613b72565b50600e80546040805160608101825284815260006020820181815292820181815260018501865594905251600383027fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd81019190915590517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fe82015591517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3ff909201919091556118c93382612bd8565b919050565b6118d9338383612d26565b5050565b336118e783611005565b6001600160a01b03161461190d5760405162461bcd60e51b81526004016107de90613c2f565b6000811161195d5760405162461bcd60e51b815260206004820181905260248201527f53757368694769726c3a20496e76616c6964206c70546f6b656e416d6f756e7460448201526064016107de565b6000600e838154811061197257611972613dc8565b906000526020600020906003020160010154905081816119929190613cd9565b600e84815481106119a5576119a5613dc8565b60009182526020909120600160039092020101556010548015611b0c57600f546040516393f1a40b60e01b8152600481018390523060248201526000916001600160a01b0316906393f1a40b90604401604080518083038186803b158015611a0c57600080fd5b505afa158015611a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a44919061398c565b5190506000611a54838684612df5565b90506000600e8781548110611a6b57611a6b613dc8565b906000526020600020906003020160020154670de0b6b3a76400008387611a929190613cba565b611a9c9190613ca6565b611aa69190613cd9565b90508015611ab857611ab83382612843565b670de0b6b3a764000082611acc8888613cd9565b611ad69190613cba565b611ae09190613ca6565b600e8881548110611af357611af3613dc8565b9060005260206000209060030201600201819055505050505b60405163a9059cbb60e01b8152336004820152602481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb90604401602060405180830381600087803b158015611b7457600080fd5b505af1158015611b88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bac91906138c6565b50837fb08330c00f69f3f2343fd81719784be16358c64832e868cd5ccec5b98ec62897846040516117e091815260200190565b6000546001600160a01b03163314611c095760405162461bcd60e51b81526004016107de90613b72565b604051631526fe2760e01b8152600481018290526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169190841690631526fe279060240160806040518083038186803b158015611c6e57600080fd5b505afa158015611c82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca6919061391d565b516001600160a01b031614611cf65760405162461bcd60e51b815260206004820152601660248201527514dd5cda1a51da5c9b0e88125b9d985b1a59081c1a5960521b60448201526064016107de565b60135460ff16611e75576013805460ff1916600117905560405163095ea7b360e01b81526001600160a01b03838116600483015260001960248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401602060405180830381600087803b158015611d7857600080fd5b505af1158015611d8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db091906138c6565b50600f80546001600160a01b0319166001600160a01b038481169190911790915560108290556040516370a0823160e01b81523060048201526109149183917f0000000000000000000000000000000000000000000000000000000000000000909116906370a08231906024015b60206040518083038186803b158015611e3657600080fd5b505afa158015611e4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6e91906139f4565b6000612834565b600f546010546040516393f1a40b60e01b8152600481018290523060248201526001600160a01b0390921691611f0990829084906393f1a40b90604401604080518083038186803b158015611ec957600080fd5b505afa158015611edd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f01919061398c565b516000612df5565b50816001600160a01b0316846001600160a01b03161461206b5760405163095ea7b360e01b81526001600160a01b038381166004830152600060248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401602060405180830381600087803b158015611f8d57600080fd5b505af1158015611fa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc591906138c6565b5060405163095ea7b360e01b81526001600160a01b03858116600483015260001960248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390604401602060405180830381600087803b15801561203157600080fd5b505af1158015612045573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206991906138c6565b505b600f80546001600160a01b0319166001600160a01b038681169190911790915560108490556040516370a0823160e01b81523060048201526120dc9185917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401611e1e565b5050505050565b834211156121335760405162461bcd60e51b815260206004820152601b60248201527f53757368694769726c3a204578706972656420646561646c696e65000000000060448201526064016107de565b600061213d6109e0565b6001600160a01b038881166000818152600c60208181526040808420805482517fdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df6281860152808401889052978f1660608901526080880181905260a08089018f90528351808a03909101815260c08901845280519085012061190160f01b60e08a015260e289018a9052610102808a01919091528351808a03909101815261012290980190925286519683019690962094845291905293945090926001929190612208908490613c8e565b9091555050873b156122f957604080516020810186905280820185905260f887901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b038a1691631626ba7e91612275918591606501613af4565b60206040518083038186803b15801561228d57600080fd5b505afa1580156122a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c59190613900565b6001600160e01b031916631626ba7e60e01b146122f45760405162461bcd60e51b81526004016107de90613ba7565b61233c565b600061230782878787612a2f565b9050886001600160a01b0316816001600160a01b03161461233a5760405162461bcd60e51b81526004016107de90613ba7565b505b61234888886001612d26565b5050505050505050565b61235c3383612592565b6123785760405162461bcd60e51b81526004016107de90613bde565b61238484848484612e04565b50505050565b6000818152600360205260409020546060906001600160a01b03166124095760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107de565b6000612413612e37565b9050600081511161243357604051806020016040528060008152506106d0565b8061243d84612e57565b60405160200161244e929190613a92565b6040516020818303038152906040529392505050565b6000546001600160a01b0316331461248e5760405162461bcd60e51b81526004016107de90613b72565b6001600160a01b0381166124f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107de565b6124fc816129df565b50565b60006001600160e01b0319821663780e9d6360e01b1480610673575061067382612f55565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061255982611005565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b031661260b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107de565b600061261683611005565b9050806001600160a01b0316846001600160a01b031614806126515750836001600160a01b031661264684610769565b6001600160a01b0316145b8061268157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661269c82611005565b6001600160a01b0316146127045760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107de565b6001600160a01b0382166127665760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107de565b612771838383612fa5565b61277c600082612524565b6001600160a01b03831660009081526004602052604081208054600192906127a5908490613cd9565b90915550506001600160a01b03821660009081526004602052604081208054600192906127d3908490613c8e565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006126816001858585612fb0565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156128a557600080fd5b505afa1580156128b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128dd91906139f4565b90508082111561298a5760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044015b602060405180830381600087803b15801561295257600080fd5b505af1158015612966573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238491906138c6565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401612938565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612aac5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107de565b8360ff16601b1480612ac157508360ff16601c145b612b185760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107de565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612b6c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bcf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107de565b95945050505050565b6001600160a01b038216612c2e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107de565b6000818152600360205260409020546001600160a01b031615612c935760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107de565b612c9f60008383612fa5565b6001600160a01b0382166000908152600460205260408120805460019290612cc8908490613c8e565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03161415612d885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107de565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006126816000858585612fb0565b612e0f848484612689565b612e1b8484848461330b565b6123845760405162461bcd60e51b81526004016107de90613b20565b6060604051806060016040528060238152602001613e2e60239139905090565b606081612e7b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ea55780612e8f81613d57565b9150612e9e9050600a83613ca6565b9150612e7f565b60008167ffffffffffffffff811115612ec057612ec0613dde565b6040519080825280601f01601f191660200182016040528015612eea576020820181803683370190505b5090505b841561268157612eff600183613cd9565b9150612f0c600a86613d72565b612f17906030613c8e565b60f81b818381518110612f2c57612f2c613dc8565b60200101906001600160f81b031916908160001a905350612f4e600a86613ca6565b9450612eee565b60006001600160e01b031982166380ac58cd60e01b1480612f8657506001600160e01b03198216635b5e139f60e01b145b8061067357506301ffc9a760e01b6001600160e01b0319831614610673565b610914838383613415565b600080601154431161309c57851561302c57600f54604051631c57762b60e31b815260048101879052602481018690526001600160a01b039091169063e2bbb15890604401600060405180830381600087803b15801561300f57600080fd5b505af1158015613023573d6000803e3d6000fd5b50505050613092565b600f54604051630441a3e760e41b815260048101879052602481018690526001600160a01b039091169063441a3e7090604401600060405180830381600087803b15801561307957600080fd5b505af115801561308d573d6000803e3d6000fd5b505050505b5050601254612681565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156130fe57600080fd5b505afa158015613112573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061313691906139f4565b905086156131a857600f54604051631c57762b60e31b815260048101889052602481018790526001600160a01b039091169063e2bbb15890604401600060405180830381600087803b15801561318b57600080fd5b505af115801561319f573d6000803e3d6000fd5b5050505061320e565b600f54604051630441a3e760e41b815260048101889052602481018790526001600160a01b039091169063441a3e7090604401600060405180830381600087803b1580156131f557600080fd5b505af1158015613209573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561327057600080fd5b505afa158015613284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132a891906139f4565b90506132b48282613cd9565b925050504360115582158015906132cb5750600081115b15613092576000836132e583670de0b6b3a7640000613cba565b6132ef9190613ca6565b6012546132fc9190613c8e565b60128190559250612681915050565b60006001600160a01b0384163b1561340d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061334f903390899088908890600401613ac1565b602060405180830381600087803b15801561336957600080fd5b505af1925050508015613399575060408051601f3d908101601f1916820190925261339691810190613900565b60015b6133f3573d8080156133c7576040519150601f19603f3d011682016040523d82523d6000602084013e6133cc565b606091505b5080516133eb5760405162461bcd60e51b81526004016107de90613b20565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612681565b506001612681565b6001600160a01b0383166134705761346b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613493565b816001600160a01b0316836001600160a01b0316146134935761349383826134cd565b6001600160a01b0382166134aa576109148161356a565b826001600160a01b0316826001600160a01b031614610914576109148282613619565b600060016134da8461107c565b6134e49190613cd9565b600083815260086020526040902054909150808214613537576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061357c90600190613cd9565b6000838152600a6020526040812054600980549394509092849081106135a4576135a4613dc8565b9060005260206000200154905080600983815481106135c5576135c5613dc8565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806135fd576135fd613db2565b6001900381819060005260206000200160009055905550505050565b60006136248361107c565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b803560ff811681146118c957600080fd5b60006020828403121561368057600080fd5b81356106d081613df4565b6000806040838503121561369e57600080fd5b82356136a981613df4565b915060208301356136b981613df4565b809150509250929050565b6000806000606084860312156136d957600080fd5b83356136e481613df4565b925060208401356136f481613df4565b929592945050506040919091013590565b6000806000806080858703121561371b57600080fd5b843561372681613df4565b935060208581013561373781613df4565b935060408601359250606086013567ffffffffffffffff8082111561375b57600080fd5b818801915088601f83011261376f57600080fd5b81358181111561378157613781613dde565b613793601f8201601f19168501613c5d565b915080825289848285010111156137a957600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060008060008060c087890312156137e257600080fd5b86356137ed81613df4565b955060208701356137fd81613df4565b9450604087013593506138126060880161365d565b92506080870135915060a087013590509295509295509295565b6000806040838503121561383f57600080fd5b823561384a81613df4565b915060208301356136b981613e09565b6000806040838503121561386d57600080fd5b823561387881613df4565b946020939093013593505050565b60008060008060008060c0878903121561389f57600080fd5b86356138aa81613df4565b955060208701359450604087013593506138126060880161365d565b6000602082840312156138d857600080fd5b81516106d081613e09565b6000602082840312156138f557600080fd5b81356106d081613e17565b60006020828403121561391257600080fd5b81516106d081613e17565b60006080828403121561392f57600080fd5b6040516080810181811067ffffffffffffffff8211171561395257613952613dde565b604052825161396081613df4565b808252506020830151602082015260408301516040820152606083015160608201528091505092915050565b60006040828403121561399e57600080fd5b6040516040810181811067ffffffffffffffff821117156139c1576139c1613dde565b604052825181526020928301519281019290925250919050565b6000602082840312156139ed57600080fd5b5035919050565b600060208284031215613a0657600080fd5b5051919050565b60008060408385031215613a2057600080fd5b50508035926020909101359150565b60008060008060008060c08789031215613a4857600080fd5b8635955060208701359450604087013593506138126060880161365d565b60008151808452613a7e816020860160208601613cf0565b601f01601f19169290920160200192915050565b60008351613aa4818460208801613cf0565b835190830190613ab8818360208801613cf0565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090610f9690830184613a66565b8281526040602082015260006126816040830184613a66565b6020815260006106d06020830184613a66565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526017908201527f53757368694769726c3a20556e617574686f72697a6564000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526014908201527329bab9b434a3b4b9361d102337b93134b23232b760611b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613c8657613c86613dde565b604052919050565b60008219821115613ca157613ca1613d86565b500190565b600082613cb557613cb5613d9c565b500490565b6000816000190483118215151615613cd457613cd4613d86565b500290565b600082821015613ceb57613ceb613d86565b500390565b60005b83811015613d0b578181015183820152602001613cf3565b838111156123845750506000910152565b600181811c90821680613d3057607f821691505b60208210811415613d5157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613d6b57613d6b613d86565b5060010190565b600082613d8157613d81613d9c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146124fc57600080fd5b80151581146124fc57600080fd5b6001600160e01b0319811681146124fc57600080fdfe68747470733a2f2f6170692e6d616964636f696e2e6f72672f73757368696769726c2fa2646970667358221220c2ae69a6e57a2ec2ce3b37ea17c2ad9689243736762225084446620acacb163264736f6c63430008050033000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102685760003560e01c80636352211e11610151578063a22cb465116100c3578063b88d4fde11610087578063b88d4fde146105a4578063c87b56dd146105b7578063c9bbd04a146105ca578063e985e9c5146105dd578063f106845414610619578063f2fde38b1461062257600080fd5b8063a22cb46514610531578063a234d60814610544578063a39b10fa14610557578063aba078471461056a578063b4e13c8d1461057d57600080fd5b8063884246641161011557806388424664146104c95780638da5cb5b146104d2578063904dfb8e146104e357806395d89b41146105035780639be56c671461050b578063a0712d681461051e57600080fd5b80636352211e1461047557806370a0823114610488578063715018a61461049b5780637492ee28146104a35780637ac2ff7b146104b657600080fd5b80632f745c59116101ea5780634f6ccce7116101ae5780634f6ccce7146103f95780634fd3c34a1461040c57806357339be61461041557806358bb45c9146104285780635fcbd2851461043b5780636232fceb1461046257600080fd5b80632f745c591461039b57806330adf81f146103ae5780633644e515146103d557806338e97f44146103dd57806342842e0e146103e657600080fd5b8063095ea7b311610231578063095ea7b3146103245780630a08790314610339578063141a468c1461036057806318160ddd1461038057806323b872dd1461038857600080fd5b80629159f51461026d57806301ffc9a7146102a057806304eaa113146102c357806306fdde03146102e4578063081812fc146102f9575b600080fd5b61028061027b3660046139db565b610635565b604080519384526020840192909252908201526060015b60405180910390f35b6102b36102ae3660046138e3565b610668565b6040519015158152602001610297565b6102d66102d13660046139db565b610679565b604051908152602001610297565b6102ec6106d7565b6040516102979190613b0d565b61030c6103073660046139db565b610769565b6040516001600160a01b039091168152602001610297565b61033761033236600461385a565b610803565b005b61030c7f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe281565b6102d661036e3660046139db565b600b6020526000908152604090205481565b6009546102d6565b6103376103963660046136c4565b610919565b6102d66103a936600461385a565b61094a565b6102d67f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b6102d66109e0565b6102d660115481565b6103376103f43660046136c4565b610ad1565b6102d66104073660046139db565b610aec565b6102d660125481565b6103376104233660046139db565b610b7f565b6102d66104363660046139db565b610db8565b61030c7f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f81565b6103376104703660046139db565b610fa0565b61030c6104833660046139db565b611005565b6102d661049636600461366e565b61107c565b610337611103565b6103376104b1366004613a2f565b611139565b6103376104c4366004613886565b6111ef565b6102d6600d5481565b6000546001600160a01b031661030c565b6102d66104f136600461366e565b600c6020526000908152604090205481565b6102ec6114c9565b610337610519366004613a0d565b6114d8565b6102d661052c3660046139db565b6117ee565b61033761053f36600461382c565b6118ce565b610337610552366004613a0d565b6118dd565b61033761056536600461385a565b611bdf565b6103376105783660046137c9565b6120e3565b6102d67fdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df6281565b6103376105b2366004613705565b612352565b6102ec6105c53660046139db565b61238a565b600f5461030c906001600160a01b031681565b6102b36105eb36600461368b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102d660105481565b61033761063036600461366e565b612464565b600e818154811061064557600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b6000610673826124ff565b92915050565b600080600e838154811061068f5761068f613dc8565b90600052602060002090600302019050670de0b6b3a7640000600d5482600101546106ba9190613cba565b6106c49190613ca6565b81546106d09190613c8e565b9392505050565b6060600180546106e690613d1c565b80601f016020809104026020016040519081016040528092919081815260200182805461071290613d1c565b801561075f5780601f106107345761010080835404028352916020019161075f565b820191906000526020600020905b81548152906001019060200180831161074257829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166107e75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061080e82611005565b9050806001600160a01b0316836001600160a01b0316141561087c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107de565b336001600160a01b0382161480610898575061089881336105eb565b61090a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107de565b6109148383612524565b505050565b6109233382612592565b61093f5760405162461bcd60e51b81526004016107de90613bde565b610914838383612689565b60006109558361107c565b82106109b75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107de565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60007f0000000000000000000000000000000000000000000000000000000000000001461415610a2f57507f08c9fab7c9b557de080984652e3b3034490464c17141555c4e2092183b86751790565b604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f2b7514b90201014dcc2c0623b583a03dd51d3b3289e28ae5df97bae8c24fb83e918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b61091483838360405180602001604052806000815250612352565b6000610af760095490565b8210610b5a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107de565b60098281548110610b6d57610b6d613dc8565b90600052602060002001549050919050565b33610b8982611005565b6001600160a01b031614610baf5760405162461bcd60e51b81526004016107de90613c2f565b60105480610bf85760405162461bcd60e51b815260206004820152601660248201527553757368694769726c3a20556e636c61696d61626c6560501b60448201526064016107de565b6000600e8381548110610c0d57610c0d613dc8565b6000918252602082206003919091020160010154600f546040516393f1a40b60e01b8152600481018690523060248201529193506001600160a01b0316906393f1a40b90604401604080518083038186803b158015610c6b57600080fd5b505afa158015610c7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca3919061398c565b5190506000610cb3848284612834565b90506000600e8681548110610cca57610cca613dc8565b906000526020600020906003020160020154670de0b6b3a76400008386610cf19190613cba565b610cfb9190613ca6565b610d059190613cd9565b905060008111610d615760405162461bcd60e51b815260206004820152602160248201527f53757368694769726c3a204e6f7468696e672063616e20626520636c61696d656044820152601960fa1b60648201526084016107de565b610d6b3382612843565b670de0b6b3a7640000610d7e8386613cba565b610d889190613ca6565b600e8781548110610d9b57610d9b613dc8565b906000526020600020906003020160020181905550505050505050565b60105460009080610dcc5750600092915050565b6000600e8481548110610de157610de1613dc8565b6000918252602082206003919091020160010154600f546040516393f1a40b60e01b8152600481018690523060248201529193506001600160a01b0316906393f1a40b90604401604080518083038186803b158015610e3f57600080fd5b505afa158015610e53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e77919061398c565b516012546011549192509043118015610e8f57508115155b15610f4857600f5460105460405163065509bb60e21b815260048101919091523060248201526000916001600160a01b03169063195426ec9060440160206040518083038186803b158015610ee357600080fd5b505afa158015610ef7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1b91906139f4565b905082610f3082670de0b6b3a7640000613cba565b610f3a9190613ca6565b610f449083613c8e565b9150505b600e8681548110610f5b57610f5b613dc8565b906000526020600020906003020160020154670de0b6b3a76400008285610f829190613cba565b610f8c9190613ca6565b610f969190613cd9565b9695505050505050565b6000546001600160a01b03163314610fca5760405162461bcd60e51b81526004016107de90613b72565b600d8190556040518181527fd1712aea07715b59dbc1e1ebe62d2aa74d20000b40db37b3f2232bf38f5c68ed9060200160405180910390a150565b6000818152600360205260408120546001600160a01b0316806106735760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107de565b60006001600160a01b0382166110e75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107de565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461112d5760405162461bcd60e51b81526004016107de90613b72565b61113760006129df565b565b60405163d505accf60e01b8152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f6001600160a01b03169063d505accf9060e401600060405180830381600087803b1580156111c557600080fd5b505af11580156111d9573d6000803e3d6000fd5b505050506111e786866114d8565b505050505050565b8342111561123f5760405162461bcd60e51b815260206004820152601b60248201527f53757368694769726c3a204578706972656420646561646c696e65000000000060448201526064016107de565b60006112496109e0565b6000878152600b60208181526040808420805482517f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad818601526001600160a01b038f1681850152606081018e90526080810182905260a08082018e90528451808303909101815260c08201855280519086012061190160f01b60e083015260e2820189905261010280830191909152845180830390910181526101229091019093528251928401929092208c865293909252939450909260019290611310908490613c8e565b909155506000905061132188611005565b9050806001600160a01b0316896001600160a01b031614156113855760405162461bcd60e51b815260206004820152601a60248201527f53757368694769726c3a20496e76616c6964207370656e64657200000000000060448201526064016107de565b803b1561147157604080516020810187905280820186905260f888901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b03831691631626ba7e916113ed918691606501613af4565b60206040518083038186803b15801561140557600080fd5b505afa158015611419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143d9190613900565b6001600160e01b031916631626ba7e60e01b1461146c5760405162461bcd60e51b81526004016107de90613ba7565b6114b4565b600061147f83888888612a2f565b9050816001600160a01b0316816001600160a01b0316146114b25760405162461bcd60e51b81526004016107de90613ba7565b505b6114be8989612524565b505050505050505050565b6060600280546106e690613d1c565b336114e283611005565b6001600160a01b0316146115085760405162461bcd60e51b81526004016107de90613c2f565b600081116115585760405162461bcd60e51b815260206004820181905260248201527f53757368694769726c3a20496e76616c6964206c70546f6b656e416d6f756e7460448201526064016107de565b6000600e838154811061156d5761156d613dc8565b9060005260206000209060030201600101549050818161158d9190613c8e565b600e84815481106115a0576115a0613dc8565b60009182526020909120600390910201600101556040516323b872dd60e01b8152336004820152306024820152604481018390527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f6001600160a01b0316906323b872dd90606401602060405180830381600087803b15801561162257600080fd5b505af1158015611636573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165a91906138c6565b5060105480156117ae57600f546040516393f1a40b60e01b8152600481018390523060248201526000916001600160a01b0316906393f1a40b90604401604080518083038186803b1580156116ae57600080fd5b505afa1580156116c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e6919061398c565b51905060006116f6838684612834565b90506000600e878154811061170d5761170d613dc8565b906000526020600020906003020160020154670de0b6b3a764000083876117349190613cba565b61173e9190613ca6565b6117489190613cd9565b9050801561175a5761175a3382612843565b670de0b6b3a76400008261176e8888613c8e565b6117789190613cba565b6117829190613ca6565b600e888154811061179557611795613dc8565b9060005260206000209060030201600201819055505050505b837f9c86c947c690753cc6de6016e1c45414d895662cc13af08319148419baf5df2f846040516117e091815260200190565b60405180910390a250505050565b600080546001600160a01b031633146118195760405162461bcd60e51b81526004016107de90613b72565b50600e80546040805160608101825284815260006020820181815292820181815260018501865594905251600383027fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd81019190915590517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fe82015591517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3ff909201919091556118c93382612bd8565b919050565b6118d9338383612d26565b5050565b336118e783611005565b6001600160a01b03161461190d5760405162461bcd60e51b81526004016107de90613c2f565b6000811161195d5760405162461bcd60e51b815260206004820181905260248201527f53757368694769726c3a20496e76616c6964206c70546f6b656e416d6f756e7460448201526064016107de565b6000600e838154811061197257611972613dc8565b906000526020600020906003020160010154905081816119929190613cd9565b600e84815481106119a5576119a5613dc8565b60009182526020909120600160039092020101556010548015611b0c57600f546040516393f1a40b60e01b8152600481018390523060248201526000916001600160a01b0316906393f1a40b90604401604080518083038186803b158015611a0c57600080fd5b505afa158015611a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a44919061398c565b5190506000611a54838684612df5565b90506000600e8781548110611a6b57611a6b613dc8565b906000526020600020906003020160020154670de0b6b3a76400008387611a929190613cba565b611a9c9190613ca6565b611aa69190613cd9565b90508015611ab857611ab83382612843565b670de0b6b3a764000082611acc8888613cd9565b611ad69190613cba565b611ae09190613ca6565b600e8881548110611af357611af3613dc8565b9060005260206000209060030201600201819055505050505b60405163a9059cbb60e01b8152336004820152602481018490527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f6001600160a01b03169063a9059cbb90604401602060405180830381600087803b158015611b7457600080fd5b505af1158015611b88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bac91906138c6565b50837fb08330c00f69f3f2343fd81719784be16358c64832e868cd5ccec5b98ec62897846040516117e091815260200190565b6000546001600160a01b03163314611c095760405162461bcd60e51b81526004016107de90613b72565b604051631526fe2760e01b8152600481018290526001600160a01b037f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f81169190841690631526fe279060240160806040518083038186803b158015611c6e57600080fd5b505afa158015611c82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca6919061391d565b516001600160a01b031614611cf65760405162461bcd60e51b815260206004820152601660248201527514dd5cda1a51da5c9b0e88125b9d985b1a59081c1a5960521b60448201526064016107de565b60135460ff16611e75576013805460ff1916600117905560405163095ea7b360e01b81526001600160a01b03838116600483015260001960248301527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f169063095ea7b390604401602060405180830381600087803b158015611d7857600080fd5b505af1158015611d8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db091906138c6565b50600f80546001600160a01b0319166001600160a01b038481169190911790915560108290556040516370a0823160e01b81523060048201526109149183917f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f909116906370a08231906024015b60206040518083038186803b158015611e3657600080fd5b505afa158015611e4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6e91906139f4565b6000612834565b600f546010546040516393f1a40b60e01b8152600481018290523060248201526001600160a01b0390921691611f0990829084906393f1a40b90604401604080518083038186803b158015611ec957600080fd5b505afa158015611edd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f01919061398c565b516000612df5565b50816001600160a01b0316846001600160a01b03161461206b5760405163095ea7b360e01b81526001600160a01b038381166004830152600060248301527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f169063095ea7b390604401602060405180830381600087803b158015611f8d57600080fd5b505af1158015611fa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc591906138c6565b5060405163095ea7b360e01b81526001600160a01b03858116600483015260001960248301527f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f169063095ea7b390604401602060405180830381600087803b15801561203157600080fd5b505af1158015612045573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206991906138c6565b505b600f80546001600160a01b0319166001600160a01b038681169190911790915560108490556040516370a0823160e01b81523060048201526120dc9185917f000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f909116906370a0823190602401611e1e565b5050505050565b834211156121335760405162461bcd60e51b815260206004820152601b60248201527f53757368694769726c3a204578706972656420646561646c696e65000000000060448201526064016107de565b600061213d6109e0565b6001600160a01b038881166000818152600c60208181526040808420805482517fdaab21af31ece73a508939fedd476a5ee5129a5ed4bb091f3236ffb45394df6281860152808401889052978f1660608901526080880181905260a08089018f90528351808a03909101815260c08901845280519085012061190160f01b60e08a015260e289018a9052610102808a01919091528351808a03909101815261012290980190925286519683019690962094845291905293945090926001929190612208908490613c8e565b9091555050873b156122f957604080516020810186905280820185905260f887901b6001600160f81b0319166060820152815160418183030181526061820192839052630b135d3f60e11b9092526001600160a01b038a1691631626ba7e91612275918591606501613af4565b60206040518083038186803b15801561228d57600080fd5b505afa1580156122a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c59190613900565b6001600160e01b031916631626ba7e60e01b146122f45760405162461bcd60e51b81526004016107de90613ba7565b61233c565b600061230782878787612a2f565b9050886001600160a01b0316816001600160a01b03161461233a5760405162461bcd60e51b81526004016107de90613ba7565b505b61234888886001612d26565b5050505050505050565b61235c3383612592565b6123785760405162461bcd60e51b81526004016107de90613bde565b61238484848484612e04565b50505050565b6000818152600360205260409020546060906001600160a01b03166124095760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107de565b6000612413612e37565b9050600081511161243357604051806020016040528060008152506106d0565b8061243d84612e57565b60405160200161244e929190613a92565b6040516020818303038152906040529392505050565b6000546001600160a01b0316331461248e5760405162461bcd60e51b81526004016107de90613b72565b6001600160a01b0381166124f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107de565b6124fc816129df565b50565b60006001600160e01b0319821663780e9d6360e01b1480610673575061067382612f55565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061255982611005565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b031661260b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107de565b600061261683611005565b9050806001600160a01b0316846001600160a01b031614806126515750836001600160a01b031661264684610769565b6001600160a01b0316145b8061268157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661269c82611005565b6001600160a01b0316146127045760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107de565b6001600160a01b0382166127665760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107de565b612771838383612fa5565b61277c600082612524565b6001600160a01b03831660009081526004602052604081208054600192906127a5908490613cd9565b90915550506001600160a01b03821660009081526004602052604081208054600192906127d3908490613c8e565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006126816001858585612fb0565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe26001600160a01b0316906370a082319060240160206040518083038186803b1580156128a557600080fd5b505afa1580156128b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128dd91906139f4565b90508082111561298a5760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2169063a9059cbb906044015b602060405180830381600087803b15801561295257600080fd5b505af1158015612966573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238491906138c6565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2169063a9059cbb90604401612938565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612aac5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107de565b8360ff16601b1480612ac157508360ff16601c145b612b185760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107de565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612b6c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bcf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107de565b95945050505050565b6001600160a01b038216612c2e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107de565b6000818152600360205260409020546001600160a01b031615612c935760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107de565b612c9f60008383612fa5565b6001600160a01b0382166000908152600460205260408120805460019290612cc8908490613c8e565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03161415612d885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107de565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006126816000858585612fb0565b612e0f848484612689565b612e1b8484848461330b565b6123845760405162461bcd60e51b81526004016107de90613b20565b6060604051806060016040528060238152602001613e2e60239139905090565b606081612e7b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ea55780612e8f81613d57565b9150612e9e9050600a83613ca6565b9150612e7f565b60008167ffffffffffffffff811115612ec057612ec0613dde565b6040519080825280601f01601f191660200182016040528015612eea576020820181803683370190505b5090505b841561268157612eff600183613cd9565b9150612f0c600a86613d72565b612f17906030613c8e565b60f81b818381518110612f2c57612f2c613dc8565b60200101906001600160f81b031916908160001a905350612f4e600a86613ca6565b9450612eee565b60006001600160e01b031982166380ac58cd60e01b1480612f8657506001600160e01b03198216635b5e139f60e01b145b8061067357506301ffc9a760e01b6001600160e01b0319831614610673565b610914838383613415565b600080601154431161309c57851561302c57600f54604051631c57762b60e31b815260048101879052602481018690526001600160a01b039091169063e2bbb15890604401600060405180830381600087803b15801561300f57600080fd5b505af1158015613023573d6000803e3d6000fd5b50505050613092565b600f54604051630441a3e760e41b815260048101879052602481018690526001600160a01b039091169063441a3e7090604401600060405180830381600087803b15801561307957600080fd5b505af115801561308d573d6000803e3d6000fd5b505050505b5050601254612681565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe26001600160a01b0316906370a082319060240160206040518083038186803b1580156130fe57600080fd5b505afa158015613112573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061313691906139f4565b905086156131a857600f54604051631c57762b60e31b815260048101889052602481018790526001600160a01b039091169063e2bbb15890604401600060405180830381600087803b15801561318b57600080fd5b505af115801561319f573d6000803e3d6000fd5b5050505061320e565b600f54604051630441a3e760e41b815260048101889052602481018790526001600160a01b039091169063441a3e7090604401600060405180830381600087803b1580156131f557600080fd5b505af1158015613209573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526000907f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe26001600160a01b0316906370a082319060240160206040518083038186803b15801561327057600080fd5b505afa158015613284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132a891906139f4565b90506132b48282613cd9565b925050504360115582158015906132cb5750600081115b15613092576000836132e583670de0b6b3a7640000613cba565b6132ef9190613ca6565b6012546132fc9190613c8e565b60128190559250612681915050565b60006001600160a01b0384163b1561340d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061334f903390899088908890600401613ac1565b602060405180830381600087803b15801561336957600080fd5b505af1925050508015613399575060408051601f3d908101601f1916820190925261339691810190613900565b60015b6133f3573d8080156133c7576040519150601f19603f3d011682016040523d82523d6000602084013e6133cc565b606091505b5080516133eb5760405162461bcd60e51b81526004016107de90613b20565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612681565b506001612681565b6001600160a01b0383166134705761346b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613493565b816001600160a01b0316836001600160a01b0316146134935761349383826134cd565b6001600160a01b0382166134aa576109148161356a565b826001600160a01b0316826001600160a01b031614610914576109148282613619565b600060016134da8461107c565b6134e49190613cd9565b600083815260086020526040902054909150808214613537576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061357c90600190613cd9565b6000838152600a6020526040812054600980549394509092849081106135a4576135a4613dc8565b9060005260206000200154905080600983815481106135c5576135c5613dc8565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806135fd576135fd613db2565b6001900381819060005260206000200160009055905550505050565b60006136248361107c565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b803560ff811681146118c957600080fd5b60006020828403121561368057600080fd5b81356106d081613df4565b6000806040838503121561369e57600080fd5b82356136a981613df4565b915060208301356136b981613df4565b809150509250929050565b6000806000606084860312156136d957600080fd5b83356136e481613df4565b925060208401356136f481613df4565b929592945050506040919091013590565b6000806000806080858703121561371b57600080fd5b843561372681613df4565b935060208581013561373781613df4565b935060408601359250606086013567ffffffffffffffff8082111561375b57600080fd5b818801915088601f83011261376f57600080fd5b81358181111561378157613781613dde565b613793601f8201601f19168501613c5d565b915080825289848285010111156137a957600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060008060008060c087890312156137e257600080fd5b86356137ed81613df4565b955060208701356137fd81613df4565b9450604087013593506138126060880161365d565b92506080870135915060a087013590509295509295509295565b6000806040838503121561383f57600080fd5b823561384a81613df4565b915060208301356136b981613e09565b6000806040838503121561386d57600080fd5b823561387881613df4565b946020939093013593505050565b60008060008060008060c0878903121561389f57600080fd5b86356138aa81613df4565b955060208701359450604087013593506138126060880161365d565b6000602082840312156138d857600080fd5b81516106d081613e09565b6000602082840312156138f557600080fd5b81356106d081613e17565b60006020828403121561391257600080fd5b81516106d081613e17565b60006080828403121561392f57600080fd5b6040516080810181811067ffffffffffffffff8211171561395257613952613dde565b604052825161396081613df4565b808252506020830151602082015260408301516040820152606083015160608201528091505092915050565b60006040828403121561399e57600080fd5b6040516040810181811067ffffffffffffffff821117156139c1576139c1613dde565b604052825181526020928301519281019290925250919050565b6000602082840312156139ed57600080fd5b5035919050565b600060208284031215613a0657600080fd5b5051919050565b60008060408385031215613a2057600080fd5b50508035926020909101359150565b60008060008060008060c08789031215613a4857600080fd5b8635955060208701359450604087013593506138126060880161365d565b60008151808452613a7e816020860160208601613cf0565b601f01601f19169290920160200192915050565b60008351613aa4818460208801613cf0565b835190830190613ab8818360208801613cf0565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090610f9690830184613a66565b8281526040602082015260006126816040830184613a66565b6020815260006106d06020830184613a66565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526017908201527f53757368694769726c3a20556e617574686f72697a6564000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526014908201527329bab9b434a3b4b9361d102337b93134b23232b760611b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613c8657613c86613dde565b604052919050565b60008219821115613ca157613ca1613d86565b500190565b600082613cb557613cb5613d9c565b500490565b6000816000190483118215151615613cd457613cd4613d86565b500290565b600082821015613ceb57613ceb613d86565b500390565b60005b83811015613d0b578181015183820152602001613cf3565b838111156123845750506000910152565b600181811c90821680613d3057607f821691505b60208210811415613d5157634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613d6b57613d6b613d86565b5060010190565b600082613d8157613d81613d9c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146124fc57600080fd5b80151581146124fc57600080fd5b6001600160e01b0319811681146124fc57600080fdfe68747470733a2f2f6170692e6d616964636f696e2e6f72672f73757368696769726c2fa2646970667358221220c2ae69a6e57a2ec2ce3b37ea17c2ad9689243736762225084446620acacb163264736f6c63430008050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2
-----Decoded View---------------
Arg [0] : _lpToken (address): 0xc7175038323562cB68E4BbdD379E9fE65134937f
Arg [1] : _sushi (address): 0x6B3595068778DD592e39A122f4f5a5cF09C90fE2
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c7175038323562cb68e4bbdd379e9fe65134937f
Arg [1] : 0000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.