Polygon Sponsored slots available. Book your slot here!
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 24,555 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Remove Liquidy I... | 65164391 | 21 mins ago | IN | 0 POL | 0.00291661 | ||||
Remove Gas In Bo... | 65164362 | 22 mins ago | IN | 0 POL | 0.0017823 | ||||
Change Paused | 65164253 | 26 mins ago | IN | 0 POL | 0.00160684 | ||||
Change Paused | 65163020 | 1 hr ago | IN | 0 POL | 0.00160188 | ||||
Remove Gas In Bo... | 65162709 | 1 hr ago | IN | 0 POL | 0.00192912 | ||||
Remove Liquidy I... | 65162436 | 1 hr ago | IN | 0 POL | 0.00312782 | ||||
Change Paused | 65162387 | 1 hr ago | IN | 0 POL | 0.00173245 | ||||
Remove Gas In Bo... | 65161634 | 2 hrs ago | IN | 0 POL | 0.00185489 | ||||
Remove Liquidy I... | 65161503 | 2 hrs ago | IN | 0 POL | 0.00256674 | ||||
Change Paused | 65161439 | 2 hrs ago | IN | 0 POL | 0.00196641 | ||||
Remove Gas In Bo... | 65158610 | 3 hrs ago | IN | 0 POL | 0.00419961 | ||||
Change Paused | 65157883 | 4 hrs ago | IN | 0 POL | 0.00389409 | ||||
Change Paused | 65157807 | 4 hrs ago | IN | 0 POL | 0.00473774 | ||||
Remove Liquidy I... | 65157285 | 4 hrs ago | IN | 0 POL | 0.00869207 | ||||
Change Paused | 65157199 | 4 hrs ago | IN | 0 POL | 0.00500206 | ||||
Change Paused | 65153916 | 6 hrs ago | IN | 0 POL | 0.00152219 | ||||
Remove Liquidy I... | 65153888 | 6 hrs ago | IN | 0 POL | 0.00224882 | ||||
Change Paused | 65153848 | 6 hrs ago | IN | 0 POL | 0.00152142 | ||||
Add Gas In Bot | 65153129 | 7 hrs ago | IN | 0.3 POL | 0.00148247 | ||||
Add Gas In Bot | 65150897 | 8 hrs ago | IN | 0.3 POL | 0.00151734 | ||||
Remove Liquidy I... | 65145123 | 11 hrs ago | IN | 0 POL | 0.00259513 | ||||
Change Paused | 65144717 | 12 hrs ago | IN | 0 POL | 0.00166016 | ||||
Remove Gas In Bo... | 65138145 | 16 hrs ago | IN | 0 POL | 0.00179026 | ||||
Remove Gas In Bo... | 65138129 | 16 hrs ago | IN | 0 POL | 0.0017986 | ||||
Remove Gas In Bo... | 65138083 | 16 hrs ago | IN | 0 POL | 0.00179535 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
65164749 | 8 mins ago | 0.00809734 POL | ||||
65164745 | 8 mins ago | 0.00808705 POL | ||||
65164737 | 9 mins ago | 0.00787939 POL | ||||
65164724 | 9 mins ago | 0.0078577 POL | ||||
65164459 | 19 mins ago | 0.00757232 POL | ||||
65164449 | 19 mins ago | 0.00753342 POL | ||||
65164442 | 19 mins ago | 0.00810178 POL | ||||
65164436 | 19 mins ago | 0.00749355 POL | ||||
65164362 | 22 mins ago | 2.7356 POL | ||||
65164257 | 26 mins ago | 0.00762258 POL | ||||
65164254 | 26 mins ago | 0.00785419 POL | ||||
65164248 | 27 mins ago | 0.00775167 POL | ||||
65164241 | 27 mins ago | 0.00823249 POL | ||||
65164237 | 27 mins ago | 0.0078594 POL | ||||
65164114 | 31 mins ago | 0.00803788 POL | ||||
65164108 | 31 mins ago | 0.00800017 POL | ||||
65164099 | 32 mins ago | 0.00809411 POL | ||||
65164092 | 32 mins ago | 0.0081294 POL | ||||
65164086 | 32 mins ago | 0.00818554 POL | ||||
65164079 | 33 mins ago | 0.0080278 POL | ||||
65164073 | 33 mins ago | 0.00849238 POL | ||||
65164059 | 33 mins ago | 0.00825198 POL | ||||
65164053 | 33 mins ago | 0.00873232 POL | ||||
65164043 | 34 mins ago | 0.00849725 POL | ||||
65164033 | 34 mins ago | 0.00812535 POL |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x6D5701Ea...561BbD33e The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
WEbdEXStrategiesV3
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "@openzeppelin/contracts/access/Ownable.sol"; import "../utils/NFT.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "../utils/LPToken.sol"; interface IWEbdEXManagerV3 { struct Bot { string name; address token; address wallet; address seller; } struct Display { address wallet; address manager; bool status; bool passExpired; bool haveFreeTrial; uint256 expirationTime; } function getUserInfoByWallet( address to ) external view returns (Display memory); function getBot() external view returns (Bot memory); function owner() external view returns (address); } contract WEbdEXStrategiesV3 is Ownable { Strategy[] internal strategies; IWEbdEXManagerV3 public webDexManagerV3; address public webDexPaymentsV3; address public webDexNetworkPoolV3; address public webDexPass; mapping(address => bool) internal strategyExistsByToken; mapping(string => bool) internal strategyExistsByName; mapping(address => User) internal users; mapping(address => Coin) internal listCoins; struct User { mapping(address => StrategyBalance) strategies; address[] coins; uint256 gasBalance; } struct StrategyBalance { mapping(address => BalanceStrategy) balance; } struct BalanceStrategy { uint256 amount; address token; uint256 decimals; string ico; string name; bool status; bool paused; } struct Display { address wallet; uint256 gasBalance; UserDisplay[] strategies; } struct UserDisplay { BalanceStrategy[] balance; string strategy; address strategyToken; } struct Coin { bool status; LPToken lp; } struct Strategy { string name; address token; } event ExtractLogs( address indexed from, string method, uint256 timeStamp, address to, uint256 value ); constructor( IWEbdEXManagerV3 webDexManagerV3_, address webDexPaymentsV3_, address webDexNetworkPoolV3_, address webDexPass_ ) { webDexManagerV3 = webDexManagerV3_; webDexPaymentsV3 = webDexPaymentsV3_; webDexNetworkPoolV3 = webDexNetworkPoolV3_; webDexPass = webDexPass_; } modifier onlyWebDexPayments() { require(msg.sender == webDexPaymentsV3, "You must the WebDexPayments"); _; } modifier onlyWebDexPaymentsOrWebDexPass() { require( msg.sender == webDexPaymentsV3 || msg.sender == webDexPass, "You must the WebDexPayments or the webDexPass" ); _; } modifier onlyWebDexNetworkPoolOrWebDexPayments() { require( msg.sender == webDexNetworkPoolV3 || msg.sender == webDexPaymentsV3, "You must the WebDexNetworkPool or the WebDexPayments" ); _; } modifier onlyBotWalletOrOwner() { IWEbdEXManagerV3.Bot memory bot = webDexManagerV3.getBot(); require( msg.sender == bot.wallet || msg.sender == owner(), "You must own the contract or the bot" ); _; } function changeWEbdEXPaymentsV3( address newWebDexPaymentsV3 ) public onlyOwner { webDexPaymentsV3 = newWebDexPaymentsV3; } function addStrategy( string memory name, string memory symbol ) public onlyBotWalletOrOwner { require( !_strategyExistsByName(name), "Name already in use in another strategy" ); NFT newNFT = new NFT(name, symbol); address tokenAddress = address(newNFT); Strategy memory newStrategy = Strategy(name, tokenAddress); strategies.push(newStrategy); strategyExistsByToken[tokenAddress] = true; strategyExistsByName[name] = true; } function addGasInBot() public payable { IWEbdEXManagerV3.Display memory user = webDexManagerV3 .getUserInfoByWallet(msg.sender); require(user.status, "Unregistered user"); require(msg.value >= 0, "Insufficient value"); users[msg.sender].gasBalance += msg.value; emit ExtractLogs( msg.sender, "Add Gas In Bot", block.timestamp, address(0), msg.value ); } function removeGasInBot(uint256 amount) public payable { IWEbdEXManagerV3.Display memory user = webDexManagerV3 .getUserInfoByWallet(msg.sender); require(user.status, "Unregistered user"); require(msg.value >= 0, "Insufficient value"); require( users[msg.sender].gasBalance >= amount, "Insufficient gas balance" ); users[msg.sender].gasBalance -= amount; payable(msg.sender).transfer(amount); emit ExtractLogs( msg.sender, "Remove Gas In Bot", block.timestamp, address(0), msg.value ); } function addLiquidyInStrategy( address strategyToken, uint256 amount, address coin ) public { IWEbdEXManagerV3.Display memory user = webDexManagerV3 .getUserInfoByWallet(msg.sender); require(user.status, "Unregistered user"); require(_strategyExistsByToken(strategyToken), "Strategy not found"); require(coin != address(0), "Invalid contract address"); ERC20 erc20 = ERC20(coin); if (!listCoins[coin].status) { listCoins[coin] = Coin( true, new LPToken( erc20.name(), erc20.symbol(), erc20.decimals(), coin ) ); } erc20.transferFrom(msg.sender, address(this), amount); _lpMint(msg.sender, coin, amount); if (!users[msg.sender].strategies[strategyToken].balance[coin].status) { users[msg.sender].strategies[strategyToken].balance[ coin ] = BalanceStrategy( 0, coin, erc20.decimals(), erc20.symbol(), erc20.name(), true, false ); users[msg.sender].coins.push(coin); } users[msg.sender] .strategies[strategyToken] .balance[coin] .amount += amount; emit ExtractLogs( msg.sender, "Add Liquidy In Strategy", block.timestamp, coin, amount ); } function removeLiquidyInStrategy( address strategyToken, uint256 amount, address coin ) public { require( users[msg.sender].strategies[strategyToken].balance[coin].paused, "You need to pause to remove liquidity" ); require(_strategyExistsByToken(strategyToken), "Strategy not found"); require(listCoins[coin].status, "Invalid contract address"); require( users[msg.sender].strategies[strategyToken].balance[coin].amount >= amount, "Insufficient funds" ); listCoins[coin].lp.burnFrom(msg.sender, amount); users[msg.sender] .strategies[strategyToken] .balance[coin] .amount -= amount; _erc20Transf(coin, msg.sender, amount); emit ExtractLogs( msg.sender, "Remove Liquidy In Strategy", block.timestamp, coin, amount ); } function changePaused( address strategyToken, address coin, bool paused ) public { IWEbdEXManagerV3.Display memory user = webDexManagerV3 .getUserInfoByWallet(msg.sender); require(user.status, "Unregistered user"); require(_strategyExistsByToken(strategyToken), "Strategy not found"); require(coin != address(0), "Invalid contract address"); require( paused != users[msg.sender] .strategies[strategyToken] .balance[coin] .paused, "The paused must be different" ); users[msg.sender] .strategies[strategyToken] .balance[coin] .paused = paused; } function getUserInfo() public view returns (Display memory) { return _getUser(msg.sender); } function getUserInfoByWallet( address to ) public view onlyOwner returns (Display memory) { return _getUser(to); } function getStrategies() public view returns (Strategy[] memory) { return strategies; } function getLpByCoin(address coin) public view returns (address) { return address(listCoins[coin].lp); } function updateCoinBalanceAndGasBalance( address to, address strategyToken, address coin, int256 amount, int256 gas ) external onlyWebDexPayments { users[to].strategies[strategyToken].balance[coin].amount = uint256( int256(users[to].strategies[strategyToken].balance[coin].amount) + amount ); users[to].gasBalance -= uint256(gas); address owner = webDexManagerV3.owner(); payable(owner).transfer(uint256(gas)); emit ExtractLogs( to, "Discount gas operation", block.timestamp, address(0), uint256(gas) ); } function lpMint( address to, address coin, uint256 amount ) external onlyWebDexPaymentsOrWebDexPass returns (address) { return _lpMint(to, coin, amount); } function lpBurnFrom( address to, address coin, uint256 amount ) external onlyWebDexNetworkPoolOrWebDexPayments { listCoins[coin].lp.burnFrom(to, amount); } function erc20Transf( address coin, address to, uint256 amount ) external onlyWebDexPayments returns (bool) { return _erc20Transf(coin, to, amount); } function _strategyExistsByName( string memory name ) internal view returns (bool) { return strategyExistsByName[name]; } function _strategyExistsByToken( address token ) internal view returns (bool) { return strategyExistsByToken[token]; } function _lpMint( address to, address coin, uint256 amount ) internal returns (address) { listCoins[coin].lp.mint(to, amount); return address(listCoins[coin].lp); } function _erc20Transf( address coin, address to, uint256 amount ) internal returns (bool) { if (coin == address(0) || to == address(0) || amount == 0) { return false; } return ERC20(coin).transfer(to, amount); } function _getUser(address to) internal view returns (Display memory) { uint256 numCoins = users[to].coins.length; UserDisplay[] memory strategy = new UserDisplay[](strategies.length); for (uint256 i = 0; i < strategies.length; i++) { address currentStrategyToken = strategies[i].token; BalanceStrategy[] memory balances = new BalanceStrategy[](numCoins); for (uint256 c = 0; c < numCoins; c++) { address currentCoin = users[to].coins[c]; balances[c] = users[to] .strategies[currentStrategyToken] .balance[currentCoin]; } strategy[i] = UserDisplay( balances, strategies[i].name, currentStrategyToken ); } return Display(to, users[to].gasBalance, strategy); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../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: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); 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 overridden 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 token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @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 from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) 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 // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) 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`. * * 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; /** * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) 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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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 // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract LPToken is ERC20, Ownable { uint8 internal _decimals; struct Origin { string name; string symbol; uint8 decimals; address token; } Origin public coin; constructor( string memory name_, string memory symbol_, uint8 decimals_, address contract_ ) ERC20( string(abi.encodePacked("LP ", name_)), string(abi.encodePacked("LP", symbol_)) ) { _decimals = decimals_; coin = Origin(name_, symbol_, decimals_, contract_); } function decimals() public view virtual override returns (uint8) { return _decimals; } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } function burnFrom(address account, uint256 amount) public onlyOwner { _burn(account, amount); } function getContractOrigin() public view returns (Origin memory) { return coin; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract NFT is ERC721, Ownable { using Counters for Counters.Counter; Counters.Counter internal _tokenIdCounter; constructor( string memory name_, string memory symbol_ ) ERC721(name_, symbol_) {} function totalSupply() public view returns (uint256) { return _tokenIdCounter.current(); } function safeMint(address to) public onlyOwner { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); } }
{ "optimizer": { "enabled": true, "runs": 1 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IWEbdEXManagerV3","name":"webDexManagerV3_","type":"address"},{"internalType":"address","name":"webDexPaymentsV3_","type":"address"},{"internalType":"address","name":"webDexNetworkPoolV3_","type":"address"},{"internalType":"address","name":"webDexPass_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"string","name":"method","type":"string"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ExtractLogs","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"},{"inputs":[],"name":"addGasInBot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"strategyToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"coin","type":"address"}],"name":"addLiquidyInStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"addStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"strategyToken","type":"address"},{"internalType":"address","name":"coin","type":"address"},{"internalType":"bool","name":"paused","type":"bool"}],"name":"changePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWebDexPaymentsV3","type":"address"}],"name":"changeWEbdEXPaymentsV3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"coin","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"erc20Transf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"coin","type":"address"}],"name":"getLpByCoin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStrategies","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"token","type":"address"}],"internalType":"struct WEbdEXStrategiesV3.Strategy[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUserInfo","outputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"gasBalance","type":"uint256"},{"components":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"decimals","type":"uint256"},{"internalType":"string","name":"ico","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"bool","name":"status","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"}],"internalType":"struct WEbdEXStrategiesV3.BalanceStrategy[]","name":"balance","type":"tuple[]"},{"internalType":"string","name":"strategy","type":"string"},{"internalType":"address","name":"strategyToken","type":"address"}],"internalType":"struct WEbdEXStrategiesV3.UserDisplay[]","name":"strategies","type":"tuple[]"}],"internalType":"struct WEbdEXStrategiesV3.Display","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getUserInfoByWallet","outputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"gasBalance","type":"uint256"},{"components":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"decimals","type":"uint256"},{"internalType":"string","name":"ico","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"bool","name":"status","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"}],"internalType":"struct WEbdEXStrategiesV3.BalanceStrategy[]","name":"balance","type":"tuple[]"},{"internalType":"string","name":"strategy","type":"string"},{"internalType":"address","name":"strategyToken","type":"address"}],"internalType":"struct WEbdEXStrategiesV3.UserDisplay[]","name":"strategies","type":"tuple[]"}],"internalType":"struct WEbdEXStrategiesV3.Display","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"coin","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"lpBurnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"coin","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"lpMint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"removeGasInBot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"strategyToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"coin","type":"address"}],"name":"removeLiquidyInStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"strategyToken","type":"address"},{"internalType":"address","name":"coin","type":"address"},{"internalType":"int256","name":"amount","type":"int256"},{"internalType":"int256","name":"gas","type":"int256"}],"name":"updateCoinBalanceAndGasBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"webDexManagerV3","outputs":[{"internalType":"contract IWEbdEXManagerV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"webDexNetworkPoolV3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"webDexPass","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"webDexPaymentsV3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x6080604052600436106200011c5760003560e01c8063011c9b9e14620001215780630a47d69e146200017b57806317926cf4146200019d5780631ced981e14620001a957806340f299ca14620001cb57806346f05ac514620001f05780634de33cd314620002265780634fb81f8c146200024b5780635c0c45ef14620002705780635d8d15851462000295578063715018a614620002bc5780637683f6e214620002d45780638da5cb5b14620002f6578063af0e05fd146200030e578063b49a60bb1462000333578063b8104c0d146200035a578063ca2bd6a7146200037c578063caaa57971462000393578063dcad5caf14620003b8578063ed20ada514620003dd578063f2fde38b1462000402578063faf99c811462000427575b600080fd5b3480156200012e57600080fd5b50620001636200014036600462002294565b6001600160a01b0390811660009081526009602052604090205461010090041690565b604051620001729190620022b4565b60405180910390f35b3480156200018857600080fd5b5060035462000163906001600160a01b031681565b620001a76200044c565b005b348015620001b657600080fd5b5060025462000163906001600160a01b031681565b348015620001d857600080fd5b50620001a7620001ea366004620022c8565b62000574565b348015620001fd57600080fd5b50620002156200020f3660046200230f565b62000c4a565b604051901515815260200162000172565b3480156200023357600080fd5b50620001a76200024536600462002355565b62000c91565b3480156200025857600080fd5b50620001a76200026a366004620022c8565b62000e6b565b3480156200027d57600080fd5b50620001a76200028f366004620023c6565b62001121565b348015620002a257600080fd5b50620002ad620012ec565b60405162000172919062002461565b348015620002c957600080fd5b50620001a762001306565b348015620002e157600080fd5b5060045462000163906001600160a01b031681565b3480156200030357600080fd5b50620001636200131e565b3480156200031b57600080fd5b50620001a76200032d366004620026a4565b6200132d565b3480156200034057600080fd5b506200034b620015c7565b6040516200017291906200270e565b3480156200036757600080fd5b5060055462000163906001600160a01b031681565b620001a76200038d36600462002791565b620016d5565b348015620003a057600080fd5b50620001a7620003b23660046200230f565b62001886565b348015620003c557600080fd5b5062000163620003d73660046200230f565b62001998565b348015620003ea57600080fd5b50620002ad620003fc36600462002294565b62001a30565b3480156200040f57600080fd5b50620001a76200042136600462002294565b62001a55565b3480156200043457600080fd5b50620001a76200044636600462002294565b62001ad4565b60025460405163ed20ada560e01b81526000916001600160a01b03169063ed20ada5906200047f903390600401620022b4565b60c060405180830381865afa1580156200049d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004c39190620027ab565b90508060400151620004f25760405162461bcd60e51b8152600401620004e9906200285c565b60405180910390fd5b3360009081526008602052604081206002018054349290620005169084906200289d565b9091555050604080516080808252600e908201526d1059190811d85cc8125b88109bdd60921b60a08201524260208201526000818301523460608201529051339160008051602062005a13833981519152919081900360c00190a250565b60025460405163ed20ada560e01b81526000916001600160a01b03169063ed20ada590620005a7903390600401620022b4565b60c060405180830381865afa158015620005c5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005eb9190620027ab565b90508060400151620006115760405162461bcd60e51b8152600401620004e9906200285c565b6200061c8462001b00565b6200063b5760405162461bcd60e51b8152600401620004e990620028b3565b6001600160a01b038216620006645760405162461bcd60e51b8152600401620004e990620028df565b6001600160a01b038216600090815260096020526040902054829060ff1662000866576040518060400160405280600115158152602001826001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015620006da573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000704919081019062002965565b836001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000743573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200076d919081019062002965565b846001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015620007ac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007d291906200299d565b87604051620007e19062002238565b620007f09493929190620029c2565b604051809103906000f0801580156200080d573d6000803e3d6000fd5b506001600160a01b0390811690915284811660009081526009602090815260409091208351815494909201516001600160a81b0319909416911515610100600160a81b0319169190911761010093909216929092021790555b6040516323b872dd60e01b8152336004820152306024820152604481018590526001600160a01b038216906323b872dd906064016020604051808303816000875af1158015620008ba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008e0919062002a10565b50620008ee33848662001b1e565b503360009081526008602090815260408083206001600160a01b038981168552908352818420908716845290915290206005015460ff1662000b95576040518060e0016040528060008152602001846001600160a01b03168152602001826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200098a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009b091906200299d565b60ff168152602001826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620009f7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000a21919081019062002965565b8152602001826001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000a65573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000a8f919081019062002965565b81526001602080830182905260006040938401819052338152600882528381206001600160a01b038b811683529083528482208982168352835290849020855181559185015192820180546001600160a01b03191693909116929092179091559082015160028201556060820151600382019062000b0e908262002abf565b506080820151600482019062000b25908262002abf565b5060a08201516005909101805460c09093015115156101000261ff00199215159290921661ffff19909316929092171790553360009081526008602090815260408220600190810180549182018155835291200180546001600160a01b0385166001600160a01b03199091161790555b3360009081526008602090815260408083206001600160a01b03898116855290835281842090871684529091528120805486929062000bd69084906200289d565b909155505060408051608080825260179082015276416464204c69717569647920496e20537472617465677960481b60a08201524260208201526001600160a01b03851681830152606081018690529051339160008051602062005a13833981519152919081900360c00190a25050505050565b6003546000906001600160a01b0316331462000c7a5760405162461bcd60e51b8152600401620004e99062002b8b565b62000c8784848462001bc4565b90505b9392505050565b6003546001600160a01b0316331462000cbe5760405162461bcd60e51b8152600401620004e99062002b8b565b6001600160a01b038086166000908152600860209081526040808320888516845282528083209387168352929052205462000cfb90839062002bc0565b6001600160a01b0380871660008181526008602081815260408084208b87168552808352818520968b1685529582528320959095559181529252600201805483929062000d4a90849062002beb565b909155505060025460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa15801562000d9a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000dc0919062002c01565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f1935050505015801562000dfa573d6000803e3d6000fd5b50604080516080808252601690820152752234b9b1b7bab73a1033b0b99037b832b930ba34b7b760511b60a08201524260208201526000818301526060810184905290516001600160a01b0388169160008051602062005a13833981519152919081900360c00190a2505050505050565b3360009081526008602090815260408083206001600160a01b0387811685529083528184209085168452909152902060050154610100900460ff1662000f025760405162461bcd60e51b815260206004820152602560248201527f596f75206e65656420746f20706175736520746f2072656d6f7665206c697175604482015264696469747960d81b6064820152608401620004e9565b62000f0d8362001b00565b62000f2c5760405162461bcd60e51b8152600401620004e990620028b3565b6001600160a01b03811660009081526009602052604090205460ff1662000f675760405162461bcd60e51b8152600401620004e990620028df565b3360009081526008602090815260408083206001600160a01b038781168552908352818420908516845290915290205482111562000fdd5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401620004e9565b6001600160a01b038082166000908152600960205260409081902054905163079cc67960e41b8152610100909104909116906379cc67909062001027903390869060040162002c21565b600060405180830381600087803b1580156200104257600080fd5b505af115801562001057573d6000803e3d6000fd5b50503360009081526008602090815260408083206001600160a01b0389811685529083528184209087168452909152812080548694509092506200109d90849062002beb565b90915550620010b0905081338462001bc4565b50604080516080808252601a908201527952656d6f7665204c69717569647920496e20537472617465677960301b60a08201524260208201526001600160a01b03831681830152606081018490529051339160008051602062005a13833981519152919081900360c00190a2505050565b60025460405163ed20ada560e01b81526000916001600160a01b03169063ed20ada59062001154903390600401620022b4565b60c060405180830381865afa15801562001172573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620011989190620027ab565b90508060400151620011be5760405162461bcd60e51b8152600401620004e9906200285c565b620011c98462001b00565b620011e85760405162461bcd60e51b8152600401620004e990620028b3565b6001600160a01b038316620012115760405162461bcd60e51b8152600401620004e990620028df565b3360009081526008602090815260408083206001600160a01b0388811685529083528184209087168452909152902060050154610100900460ff161515821515036200129f5760405162461bcd60e51b815260206004820152601c60248201527b151a19481c185d5cd959081b5d5cdd08189948191a5999995c995b9d60221b6044820152606401620004e9565b503360009081526008602090815260408083206001600160a01b03968716845282528083209490951682529290925291902060050180549115156101000261ff0019909216919091179055565b620012f662002246565b620013013362001c73565b905090565b6200131062002158565b6200131c6000620021bb565b565b6000546001600160a01b031690565b6002546040805163e422ebe960e01b815290516000926001600160a01b03169163e422ebe991600480830192869291908290030181865afa15801562001377573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620013a1919081019062002c3a565b905080604001516001600160a01b0316336001600160a01b03161480620013e25750620013cd6200131e565b6001600160a01b0316336001600160a01b0316145b6200143c5760405162461bcd60e51b8152602060048201526024808201527f596f75206d757374206f776e2074686520636f6e7472616374206f722074686560448201526308189bdd60e21b6064820152608401620004e9565b62001447836200220b565b15620014a65760405162461bcd60e51b815260206004820152602760248201527f4e616d6520616c726561647920696e2075736520696e20616e6f7468657220736044820152667472617465677960c81b6064820152608401620004e9565b60008383604051620014b89062002270565b620014c592919062002d0e565b604051809103906000f080158015620014e2573d6000803e3d6000fd5b50604080518082019091528581526001600160a01b03821660208201526001805480820182556000919091528151929350839282916002027fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6019081906200154b908262002abf565b50602091820151600191820180546001600160a01b0319166001600160a01b03928316179055841660009081526006909252604091829020805460ff19168217905590516007906200159f90899062002d40565b908152604051908190036020019020805491151560ff19909216919091179055505050505050565b60606001805480602002602001604051908101604052809291908181526020016000905b82821015620016cc5783829060005260206000209060020201604051806040016040529081600082018054620016219062002a30565b80601f01602080910402602001604051908101604052809291908181526020018280546200164f9062002a30565b8015620016a05780601f106200167457610100808354040283529160200191620016a0565b820191906000526020600020905b8154815290600101906020018083116200168257829003601f168201915b50505091835250506001918201546001600160a01b0316602091820152918352929092019101620015eb565b50505050905090565b60025460405163ed20ada560e01b81526000916001600160a01b03169063ed20ada59062001708903390600401620022b4565b60c060405180830381865afa15801562001726573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200174c9190620027ab565b90508060400151620017725760405162461bcd60e51b8152600401620004e9906200285c565b33600090815260086020526040902060020154821115620017d15760405162461bcd60e51b8152602060048201526018602482015277496e73756666696369656e74206761732062616c616e636560401b6044820152606401620004e9565b3360009081526008602052604081206002018054849290620017f590849062002beb565b9091555050604051339083156108fc029084906000818181858888f1935050505015801562001828573d6000803e3d6000fd5b506040805160808082526011908201527014995b5bdd994811d85cc8125b88109bdd607a1b60a08201524260208201526000818301523460608201529051339160008051602062005a13833981519152919081900360c00190a25050565b6004546001600160a01b0316331480620018aa57506003546001600160a01b031633145b620019155760405162461bcd60e51b815260206004820152603460248201527f596f75206d75737420746865205765624465784e6574776f726b506f6f6c206f6044820152737220746865205765624465785061796d656e747360601b6064820152608401620004e9565b6001600160a01b038083166000908152600960205260409081902054905163079cc67960e41b8152610100909104909116906379cc6790906200195f908690859060040162002c21565b600060405180830381600087803b1580156200197a57600080fd5b505af11580156200198f573d6000803e3d6000fd5b50505050505050565b6003546000906001600160a01b0316331480620019bf57506005546001600160a01b031633145b62001a235760405162461bcd60e51b815260206004820152602d60248201527f596f75206d75737420746865205765624465785061796d656e7473206f72207460448201526c6865207765624465785061737360981b6064820152608401620004e9565b62000c8784848462001b1e565b62001a3a62002246565b62001a4462002158565b62001a4f8262001c73565b92915050565b62001a5f62002158565b6001600160a01b03811662001ac65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620004e9565b62001ad181620021bb565b50565b62001ade62002158565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526006602052604090205460ff1690565b6001600160a01b038083166000908152600960205260408082205490516340c10f1960e01b8152919261010090910416906340c10f199062001b67908790869060040162002c21565b600060405180830381600087803b15801562001b8257600080fd5b505af115801562001b97573d6000803e3d6000fd5b5050506001600160a01b038085166000908152600960205260409020546101009004169150509392505050565b60006001600160a01b038416158062001be457506001600160a01b038316155b8062001bee575081155b1562001bfd5750600062000c8a565b60405163a9059cbb60e01b81526001600160a01b0385169063a9059cbb9062001c2d908690869060040162002c21565b6020604051808303816000875af115801562001c4d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000c87919062002a10565b62001c7d62002246565b6001600160a01b038216600090815260086020526040812060019081015490549091906001600160401b0381111562001cba5762001cba620025d5565b60405190808252806020026020018201604052801562001d0957816020015b6040805160608082018352808252602082015260009181019190915281526020019060019003908162001cd95790505b50905060005b6001548110156200211d5760006001828154811062001d325762001d3262002d5e565b600091825260208220600160029092020101546001600160a01b03169150846001600160401b0381111562001d6b5762001d6b620025d5565b60405190808252806020026020018201604052801562001dd357816020015b6040805160e081018252600080825260208083018290529282018190526060808301819052608083015260a0820181905260c0820152825260001990920191018162001d8a5790505b50905060005b8581101562002009576001600160a01b038816600090815260086020526040812060010180548390811062001e125762001e1262002d5e565b60009182526020808320909101546001600160a01b038c811684526008835260408085208983168652845280852092821680865292845293849020845160e08101865281548152600182015490921693820193909352600283015493810193909352600382018054919450606084019162001e8d9062002a30565b80601f016020809104026020016040519081016040528092919081815260200182805462001ebb9062002a30565b801562001f0c5780601f1062001ee05761010080835404028352916020019162001f0c565b820191906000526020600020905b81548152906001019060200180831162001eee57829003601f168201915b5050505050815260200160048201805462001f279062002a30565b80601f016020809104026020016040519081016040528092919081815260200182805462001f559062002a30565b801562001fa65780601f1062001f7a5761010080835404028352916020019162001fa6565b820191906000526020600020905b81548152906001019060200180831162001f8857829003601f168201915b50505091835250506005919091015460ff80821615156020840152610100909104161515604090910152835184908490811062001fe75762001fe762002d5e565b6020026020010181905250508080620020009062002d74565b91505062001dd9565b5060405180606001604052808281526020016001858154811062002031576200203162002d5e565b906000526020600020906002020160000180546200204f9062002a30565b80601f01602080910402602001604051908101604052809291908181526020018280546200207d9062002a30565b8015620020ce5780601f10620020a257610100808354040283529160200191620020ce565b820191906000526020600020905b815481529060010190602001808311620020b057829003601f168201915b50505050508152602001836001600160a01b0316815250848481518110620020fa57620020fa62002d5e565b602002602001018190525050508080620021149062002d74565b91505062001d0f565b50604080516060810182526001600160a01b039095168086526000908152600860209081529082902060020154908601528401525090919050565b33620021636200131e565b6001600160a01b0316146200131c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620004e9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006007826040516200221f919062002d40565b9081526040519081900360200190205460ff1692915050565b6114de8062002d9183390190565b604051806060016040528060006001600160a01b0316815260200160008152602001606081525090565b6117a4806200426f83390190565b6001600160a01b038116811462001ad157600080fd5b600060208284031215620022a757600080fd5b813562000c8a816200227e565b6001600160a01b0391909116815260200190565b600080600060608486031215620022de57600080fd5b8335620022eb816200227e565b925060208401359150604084013562002304816200227e565b809150509250925092565b6000806000606084860312156200232557600080fd5b833562002332816200227e565b9250602084013562002344816200227e565b929592945050506040919091013590565b600080600080600060a086880312156200236e57600080fd5b85356200237b816200227e565b945060208601356200238d816200227e565b935060408601356200239f816200227e565b94979396509394606081013594506080013592915050565b801515811462001ad157600080fd5b600080600060608486031215620023dc57600080fd5b8335620023e9816200227e565b92506020840135620023fb816200227e565b915060408401356200230481620023b7565b60005b838110156200242a57818101518382015260200162002410565b50506000910152565b600081518084526200244d8160208601602086016200240d565b601f01601f19169290920160200192915050565b600060208083526080830160018060a01b038086511683860152828601518060408701525060408601516060808188015283825180865260a08901915060a08160051b8a01019550868401935060005b81811015620025c657609f198a8803018352845180518589528051868a018190526080600582901b8b018101928c0191908b019060005b818110156200257757607f198d86030183528351805186528c8f820151168f870152604081015160408701528a81015160e08c8801526200252d60e088018262002433565b90506080820151878203608089015262002548828262002433565b60a0848101511515908a015260c093840151151593909801929092525050928d0192918d0191600101620024e8565b50505050898201518982038b8b015262002592828262002433565b91505060408201519150620025b260408a01836001600160a01b03169052565b9750509387019391870191600101620024b1565b50949998505050505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620026165762002616620025d5565b604052919050565b60006001600160401b038211156200263a576200263a620025d5565b50601f01601f191660200190565b600082601f8301126200265a57600080fd5b8135620026716200266b826200261e565b620025eb565b8181528460208386010111156200268757600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215620026b857600080fd5b82356001600160401b0380821115620026d057600080fd5b620026de8683870162002648565b93506020850135915080821115620026f557600080fd5b50620027048582860162002648565b9150509250929050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156200278357888303603f19018552815180518785526200275c8886018262002433565b918901516001600160a01b0316948901949094529487019492509086019060010162002735565b509098975050505050505050565b600060208284031215620027a457600080fd5b5035919050565b600060c08284031215620027be57600080fd5b60405160c081016001600160401b0381118282101715620027e357620027e3620025d5565b6040528251620027f3816200227e565b8152602083015162002805816200227e565b602082015260408301516200281a81620023b7565b604082015260608301516200282f81620023b7565b606082015260808301516200284481620023b7565b608082015260a0928301519281019290925250919050565b6020808252601190820152702ab73932b3b4b9ba32b932b2103ab9b2b960791b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111562001a4f5762001a4f62002887565b60208082526012908201527114dd1c985d1959de481b9bdd08199bdd5b9960721b604082015260600190565b602080825260189082015277496e76616c696420636f6e7472616374206164647265737360401b604082015260600190565b600082601f8301126200292357600080fd5b8151620029346200266b826200261e565b8181528460208386010111156200294a57600080fd5b6200295d8260208301602087016200240d565b949350505050565b6000602082840312156200297857600080fd5b81516001600160401b038111156200298f57600080fd5b6200295d8482850162002911565b600060208284031215620029b057600080fd5b815160ff8116811462000c8a57600080fd5b608081526000620029d7608083018762002433565b8281036020840152620029eb818762002433565b60ff95909516604084015250506001600160a01b039190911660609091015292915050565b60006020828403121562002a2357600080fd5b815162000c8a81620023b7565b600181811c9082168062002a4557607f821691505b60208210810362002a6657634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562002aba57600081815260208120601f850160051c8101602086101562002a955750805b601f850160051c820191505b8181101562002ab65782815560010162002aa1565b5050505b505050565b81516001600160401b0381111562002adb5762002adb620025d5565b62002af38162002aec845462002a30565b8462002a6c565b602080601f83116001811462002b2b576000841562002b125750858301515b600019600386901b1c1916600185901b17855562002ab6565b600085815260208120601f198616915b8281101562002b5c5788860151825594840194600190910190840162002b3b565b508582101562002b7b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252601b908201527a596f75206d75737420746865205765624465785061796d656e747360281b604082015260600190565b808201828112600083128015821682158216171562002be35762002be362002887565b505092915050565b8181038181111562001a4f5762001a4f62002887565b60006020828403121562002c1457600080fd5b815162000c8a816200227e565b6001600160a01b03929092168252602082015260400190565b60006020828403121562002c4d57600080fd5b81516001600160401b038082111562002c6557600080fd5b908301906080828603121562002c7a57600080fd5b60405160808101818110838211171562002c985762002c98620025d5565b60405282518281111562002cab57600080fd5b62002cb98782860162002911565b8252506020830151915062002cce826200227e565b8160208201526040830151915062002ce6826200227e565b8160408201526060830151925062002cfe836200227e565b6060810192909252509392505050565b60408152600062002d23604083018562002433565b828103602084015262002d37818562002433565b95945050505050565b6000825162002d548184602087016200240d565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b60006001820162002d895762002d8962002887565b506001019056fe60806040523480156200001157600080fd5b50604051620014de380380620014de83398101604081905262000034916200028a565b836040516020016200004791906200032e565b604051602081830303815290604052836040516020016200006991906200035b565b60408051601f19818403018152919052600362000087838262000416565b50600462000096828262000416565b505050620000b3620000ad6200016760201b60201c565b6200016b565b6005805460ff60a01b1916600160a01b60ff8516908102919091179091556040805160808101825286815260208101869052908101919091526001600160a01b03821660608201526006806200010a878262000416565b506020820151600182019062000121908262000416565b506040820151600290910180546060909301516001600160a01b0316610100026001600160a81b031990931660ff9092169190911791909117905550620004e292505050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620001f0578181015183820152602001620001d6565b50506000910152565b600082601f8301126200020b57600080fd5b81516001600160401b0380821115620002285762000228620001bd565b604051601f8301601f19908116603f01168101908282118183101715620002535762000253620001bd565b816040528381528660208588010111156200026d57600080fd5b62000280846020830160208901620001d3565b9695505050505050565b60008060008060808587031215620002a157600080fd5b84516001600160401b0380821115620002b957600080fd5b620002c788838901620001f9565b95506020870151915080821115620002de57600080fd5b50620002ed87828801620001f9565b935050604085015160ff811681146200030557600080fd5b60608601519092506001600160a01b03811681146200032357600080fd5b939692955090935050565b6202628160ed1b8152600082516200034e816003850160208701620001d3565b9190910160030192915050565b6104c560f41b8152600082516200037a816002850160208701620001d3565b9190910160020192915050565b600181811c908216806200039c57607f821691505b602082108103620003bd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200041157600081815260208120601f850160051c81016020861015620003ec5750805b601f850160051c820191505b818110156200040d57828155600101620003f8565b5050505b505050565b81516001600160401b03811115620004325762000432620001bd565b6200044a8162000443845462000387565b84620003c3565b602080601f831160018114620004825760008415620004695750858301515b600019600386901b1c1916600185901b1785556200040d565b600085815260208120601f198616915b82811015620004b35788860151825594840194600190910190840162000492565b5085821015620004d25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610fec80620004f26000396000f3fe608060405234801561001057600080fd5b50600436106100e65760003560e01c806306fdde03146100eb578063095ea7b31461010957806311df99951461012c57806318160ddd1461014457806323b872dd14610156578063313ce56714610169578063395093511461018857806340c10f191461019b57806370a08231146101b0578063715018a6146101d957806379cc6790146101e15780638da5cb5b146101f457806395d89b4114610214578063a457c2d71461021c578063a9059cbb1461022f578063dd62ed3e14610242578063f2fde38b14610255578063fd5d3e0114610268575b600080fd5b6100f361027d565b6040516101009190610d9f565b60405180910390f35b61011c610117366004610dd5565b61030f565b6040519015158152602001610100565b610134610329565b6040516101009493929190610dff565b6002545b604051908152602001610100565b61011c610164366004610e49565b610463565b600554600160a01b900460ff1660405160ff9091168152602001610100565b61011c610196366004610dd5565b610487565b6101ae6101a9366004610dd5565b6104a9565b005b6101486101be366004610e85565b6001600160a01b031660009081526020819052604090205490565b6101ae6104bf565b6101ae6101ef366004610dd5565b6104d3565b6101fc6104e5565b6040516001600160a01b039091168152602001610100565b6100f36104f4565b61011c61022a366004610dd5565b610503565b61011c61023d366004610dd5565b610583565b610148610250366004610ea0565b610591565b6101ae610263366004610e85565b6105bc565b610270610635565b6040516101009190610ed3565b60606003805461028c90610f3b565b80601f01602080910402602001604051908101604052809291908181526020018280546102b890610f3b565b80156103055780601f106102da57610100808354040283529160200191610305565b820191906000526020600020905b8154815290600101906020018083116102e857829003601f168201915b5050505050905090565b60003361031d8185856107b2565b60019150505b92915050565b60068054819061033890610f3b565b80601f016020809104026020016040519081016040528092919081815260200182805461036490610f3b565b80156103b15780601f10610386576101008083540402835291602001916103b1565b820191906000526020600020905b81548152906001019060200180831161039457829003601f168201915b5050505050908060010180546103c690610f3b565b80601f01602080910402602001604051908101604052809291908181526020018280546103f290610f3b565b801561043f5780601f106104145761010080835404028352916020019161043f565b820191906000526020600020905b81548152906001019060200180831161042257829003601f168201915b5050506002909301549192505060ff8116906001600160a01b036101009091041684565b6000336104718582856108d7565b61047c858585610951565b506001949350505050565b60003361031d81858561049a8383610591565b6104a49190610f75565b6107b2565b6104b1610ae3565b6104bb8282610b42565b5050565b6104c7610ae3565b6104d16000610bef565b565b6104db610ae3565b6104bb8282610c41565b6005546001600160a01b031690565b60606004805461028c90610f3b565b600033816105118286610591565b9050838110156105765760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b61047c82868684036107b2565b60003361031d818585610951565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6105c4610ae3565b6001600160a01b0381166106295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161056d565b61063281610bef565b50565b604080516080810182526060808252602082018190526000928201839052810191909152600660405180608001604052908160008201805461067690610f3b565b80601f01602080910402602001604051908101604052809291908181526020018280546106a290610f3b565b80156106ef5780601f106106c4576101008083540402835291602001916106ef565b820191906000526020600020905b8154815290600101906020018083116106d257829003601f168201915b5050505050815260200160018201805461070890610f3b565b80601f016020809104026020016040519081016040528092919081815260200182805461073490610f3b565b80156107815780601f1061075657610100808354040283529160200191610781565b820191906000526020600020905b81548152906001019060200180831161076457829003601f168201915b50505091835250506002919091015460ff8116602083015261010090046001600160a01b0316604090910152919050565b6001600160a01b0383166108145760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161056d565b6001600160a01b0382166108755760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161056d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006108e38484610591565b9050600019811461094b578181101561093e5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161056d565b61094b84848484036107b2565b50505050565b6001600160a01b0383166109b55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161056d565b6001600160a01b038216610a175760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161056d565b6001600160a01b03831660009081526020819052604090205481811015610a8f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161056d565b6001600160a01b0384811660008181526020818152604080832087870390559387168083529184902080548701905592518581529092600080516020610f97833981519152910160405180910390a361094b565b33610aec6104e5565b6001600160a01b0316146104d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161056d565b6001600160a01b038216610b985760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161056d565b8060026000828254610baa9190610f75565b90915550506001600160a01b03821660008181526020818152604080832080548601905551848152600080516020610f97833981519152910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216610ca15760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161056d565b6001600160a01b03821660009081526020819052604090205481811015610d155760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161056d565b6001600160a01b038316600081815260208181526040808320868603905560028054879003905551858152919291600080516020610f9783398151915291016108ca565b6000815180845260005b81811015610d7f57602081850181015186830182015201610d63565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610db26020830184610d59565b9392505050565b80356001600160a01b0381168114610dd057600080fd5b919050565b60008060408385031215610de857600080fd5b610df183610db9565b946020939093013593505050565b608081526000610e126080830187610d59565b8281036020840152610e248187610d59565b60ff95909516604084015250506001600160a01b039190911660609091015292915050565b600080600060608486031215610e5e57600080fd5b610e6784610db9565b9250610e7560208501610db9565b9150604084013590509250925092565b600060208284031215610e9757600080fd5b610db282610db9565b60008060408385031215610eb357600080fd5b610ebc83610db9565b9150610eca60208401610db9565b90509250929050565b602081526000825160806020840152610eef60a0840182610d59565b90506020840151601f19848303016040850152610f0c8282610d59565b604086015160ff16606086810191909152909501516001600160a01b0316608090940193909352509192915050565b600181811c90821680610f4f57607f821691505b602082108103610f6f57634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561032357634e487b7160e01b600052601160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220087c43cd49ba25be4828c95ac3a2c1fb9099e74a2faf964a0c17c38c6f9291d464736f6c6343000812003360806040523480156200001157600080fd5b50604051620017a4380380620017a4833981016040819052620000349162000193565b818160006200004483826200028c565b5060016200005382826200028c565b505050620000706200006a6200007860201b60201c565b6200007c565b505062000358565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000f657600080fd5b81516001600160401b0380821115620001135762000113620000ce565b604051601f8301601f19908116603f011681019082821181831017156200013e576200013e620000ce565b816040528381526020925086838588010111156200015b57600080fd5b600091505b838210156200017f578582018301518183018401529082019062000160565b600093810190920192909252949350505050565b60008060408385031215620001a757600080fd5b82516001600160401b0380821115620001bf57600080fd5b620001cd86838701620000e4565b93506020850151915080821115620001e457600080fd5b50620001f385828601620000e4565b9150509250929050565b600181811c908216806200021257607f821691505b6020821081036200023357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028757600081815260208120601f850160051c81016020861015620002625750805b601f850160051c820191505b8181101562000283578281556001016200026e565b5050505b505050565b81516001600160401b03811115620002a857620002a8620000ce565b620002c081620002b98454620001fd565b8462000239565b602080601f831160018114620002f85760008415620002df5750858301515b600019600386901b1c1916600185901b17855562000283565b600085815260208120601f198616915b82811015620003295788860151825594840194600190910190840162000308565b5085821015620003485787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61143c80620003686000396000f3fe608060405234801561001057600080fd5b50600436106100e65760003560e01c806301ffc9a7146100eb57806306fdde0314610113578063081812fc14610128578063095ea7b31461015357806318160ddd1461016857806323b872dd1461017e57806340d097c31461019157806342842e0e146101a45780636352211e146101b757806370a08231146101ca578063715018a6146101dd5780638da5cb5b146101e557806395d89b41146101ed578063a22cb465146101f5578063b88d4fde14610208578063c87b56dd1461021b578063e985e9c51461022e578063f2fde38b14610241575b600080fd5b6100fe6100f9366004610f41565b610254565b60405190151581526020015b60405180910390f35b61011b6102a6565b60405161010a9190610fae565b61013b610136366004610fc1565b610338565b6040516001600160a01b03909116815260200161010a565b610166610161366004610ff6565b61035f565b005b610170610479565b60405190815260200161010a565b61016661018c366004611020565b610489565b61016661019f36600461105c565b6104ba565b6101666101b2366004611020565b6104eb565b61013b6101c5366004610fc1565b610506565b6101706101d836600461105c565b61053a565b6101666105c0565b61013b6105d4565b61011b6105e3565b610166610203366004611077565b6105f2565b6101666102163660046110c9565b6105fd565b61011b610229366004610fc1565b610635565b6100fe61023c3660046111a4565b6106a9565b61016661024f36600461105c565b6106d7565b60006001600160e01b031982166380ac58cd60e01b148061028557506001600160e01b03198216635b5e139f60e01b145b806102a057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102b5906111d7565b80601f01602080910402602001604051908101604052809291908181526020018280546102e1906111d7565b801561032e5780601f106103035761010080835404028352916020019161032e565b820191906000526020600020905b81548152906001019060200180831161031157829003601f168201915b5050505050905090565b600061034382610750565b506000908152600460205260409020546001600160a01b031690565b600061036a82610506565b9050806001600160a01b0316836001600160a01b0316036103dc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806103f857506103f881336106a9565b61046a5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016103d3565b6104748383610775565b505050565b600061048460075490565b905090565b61049333826107e3565b6104af5760405162461bcd60e51b81526004016103d390611211565b610474838383610842565b6104c2610994565b60006104cd60075490565b90506104dd600780546001019055565b6104e782826109f3565b5050565b610474838383604051806020016040528060008152506105fd565b60008061051283610a0d565b90506001600160a01b0381166102a05760405162461bcd60e51b81526004016103d39061125e565b60006001600160a01b0382166105a45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016103d3565b506001600160a01b031660009081526003602052604090205490565b6105c8610994565b6105d26000610a28565b565b6006546001600160a01b031690565b6060600180546102b5906111d7565b6104e7338383610a7a565b61060733836107e3565b6106235760405162461bcd60e51b81526004016103d390611211565b61062f84848484610b44565b50505050565b606061064082610750565b600061065760408051602081019091526000815290565b9050600081511161067757604051806020016040528060008152506106a2565b8061068184610b77565b604051602001610692929190611290565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6106df610994565b6001600160a01b0381166107445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103d3565b61074d81610a28565b50565b61075981610c09565b61074d5760405162461bcd60e51b81526004016103d39061125e565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906107aa82610506565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806107ef83610506565b9050806001600160a01b0316846001600160a01b03161480610816575061081681856106a9565b8061083a5750836001600160a01b031661082f84610338565b6001600160a01b0316145b949350505050565b826001600160a01b031661085582610506565b6001600160a01b03161461087b5760405162461bcd60e51b81526004016103d3906112bf565b6001600160a01b0382166108dd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103d3565b826001600160a01b03166108f082610506565b6001600160a01b0316146109165760405162461bcd60e51b81526004016103d3906112bf565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184936000805160206113e783398151915291a4505050565b3361099d6105d4565b6001600160a01b0316146105d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103d3565b6104e7828260405180602001604052806000815250610c26565b6000908152600260205260409020546001600160a01b031690565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610ad75760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016103d3565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610b4f848484610842565b610b5b84848484610c59565b61062f5760405162461bcd60e51b81526004016103d390611304565b60606000610b8483610d5a565b60010190506000816001600160401b03811115610ba357610ba36110b3565b6040519080825280601f01601f191660200182016040528015610bcd576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610bd757509392505050565b600080610c1583610a0d565b6001600160a01b0316141592915050565b610c308383610e30565b610c3d6000848484610c59565b6104745760405162461bcd60e51b81526004016103d390611304565b60006001600160a01b0384163b15610d4f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610c9d903390899088908890600401611356565b6020604051808303816000875af1925050508015610cd8575060408051601f3d908101601f19168201909252610cd591810190611393565b60015b610d35573d808015610d06576040519150601f19603f3d011682016040523d82523d6000602084013e610d0b565b606091505b508051600003610d2d5760405162461bcd60e51b81526004016103d390611304565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061083a565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610d995772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b8310610dc3576904ee2d6d415b85acef8160201b830492506020015b662386f26fc100008310610de157662386f26fc10000830492506010015b6305f5e1008310610df9576305f5e100830492506008015b6127108310610e0d57612710830492506004015b60648310610e1f576064830492506002015b600a83106102a05760010192915050565b6001600160a01b038216610e865760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016103d3565b610e8f81610c09565b15610eac5760405162461bcd60e51b81526004016103d3906113b0565b610eb581610c09565b15610ed25760405162461bcd60e51b81526004016103d3906113b0565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291906000805160206113e7833981519152908290a45050565b6001600160e01b03198116811461074d57600080fd5b600060208284031215610f5357600080fd5b81356106a281610f2b565b60005b83811015610f79578181015183820152602001610f61565b50506000910152565b60008151808452610f9a816020860160208601610f5e565b601f01601f19169290920160200192915050565b6020815260006106a26020830184610f82565b600060208284031215610fd357600080fd5b5035919050565b80356001600160a01b0381168114610ff157600080fd5b919050565b6000806040838503121561100957600080fd5b61101283610fda565b946020939093013593505050565b60008060006060848603121561103557600080fd5b61103e84610fda565b925061104c60208501610fda565b9150604084013590509250925092565b60006020828403121561106e57600080fd5b6106a282610fda565b6000806040838503121561108a57600080fd5b61109383610fda565b9150602083013580151581146110a857600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156110df57600080fd5b6110e885610fda565b93506110f660208601610fda565b92506040850135915060608501356001600160401b038082111561111957600080fd5b818701915087601f83011261112d57600080fd5b81358181111561113f5761113f6110b3565b604051601f8201601f19908116603f01168101908382118183101715611167576111676110b3565b816040528281528a602084870101111561118057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156111b757600080fd5b6111c083610fda565b91506111ce60208401610fda565b90509250929050565b600181811c908216806111eb57607f821691505b60208210810361120b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b600083516112a2818460208801610f5e565b8351908301906112b6818360208801610f5e565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061138990830184610f82565b9695505050505050565b6000602082840312156113a557600080fd5b81516106a281610f2b565b6020808252601c908201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60408201526060019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220eca49963ced65463c16fc0e22f7422691b00a802f3debefad4bb81238075203464736f6c6343000812003387a8289e50228b1d80b8ec2b4b674b5304695f549cacefb3fbf4fd923a51a46da2646970667358221220326a09f240ff2e92b9a99fc294f4ca9562bd042ceecb179cbe537b044e7c1b4e64736f6c63430008120033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.