Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
113,842.34448248070101673 BREAD
Holders
407
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
74.527104037218620294 BREADValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Bread
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Holy Bread - $BREAD // // Ancient Recipe, Modern Rebase // // https://holybread.xyz/ // https://twitter.com/HolyBreadCoin // https://t.me/BreadPortal pragma solidity ^0.8.19; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract Bread is IERC20, Ownable { using SafeMath for uint256; /* -------------------------------------------------------------------------- */ /* events */ /* -------------------------------------------------------------------------- */ event RequestRebase(bool increaseSupply, uint256 amount); event Rebase(uint256 indexed time, uint256 totalSupply); event RemovedLimits(); event Log(string message, uint256 value); event ErrorCaught(string reason); /* -------------------------------------------------------------------------- */ /* constants */ /* -------------------------------------------------------------------------- */ address constant DEAD = 0x000000000000000000000000000000000000dEaD; address constant ZERO = 0x0000000000000000000000000000000000000000; uint256 constant NOMINAL_TAX = 3; uint256 constant MINIMAL_TAX = 1; uint256 private constant MAX_SUPPLY = ~uint128(0); uint256 private constant MIN_SUPPLY = 1 ether; uint256 public constant INITIAL_BREADS_SUPPLY = 100_000 ether; uint256 public DELTA_SUPPLY = INITIAL_BREADS_SUPPLY; // TOTAL_CRUMBS is a multiple of INITIAL_BREADS_SUPPLY so that _crumbsPerBread is an integer. // Use the highest value that fits in a uint256 for max granularity. uint256 public constant TOTAL_CRUMBS = type(uint256).max - (type(uint256).max % INITIAL_BREADS_SUPPLY); uint256 constant public zero = uint256(0); /* -------------------------------------------------------------------------- */ /* states */ /* -------------------------------------------------------------------------- */ address public SWAP_ROUTER_ADR = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; IUniswapV2Router02 public SWAP_ROUTER; address public immutable SWAP_PAIR; uint256 public _totalSupply; uint256 public _crumbsPerBread; uint256 private crumbsSwapThreshold = (TOTAL_CRUMBS / 100000 * 25); address private oracleWallet; uint256 public vatBuy; uint256 public vatSell; bool public limitRebase = true; bool public limitRebasePct = true; bool public giveBread = false; bool public swapEnabled = false; bool public enableUpdateTax = true; bool public syncLP = true; bool inSwap; uint256 private lastRebaseTime = 0; uint256 private limitRebaseRate = 10; uint256 private limitDebaseRate = 5; uint256 private limitDayRebase = 100; uint256 private limitDayDebase = 65; uint256 private limitNightRebase = 60; uint256 private limitNightDebase = 65; uint256 private transactionCount = 0; uint256 public txToSwitchTax; uint256 public buyToRebase = 0; uint256 public sellToRebase = 0; string _name = "Holy Bread"; string _symbol = "BREAD"; bool public dayMode = true; mapping(address => uint256) public _crumbBalances; mapping (address => mapping (address => uint256)) public _allowedBreads; mapping (address => bool) public isWhitelisted; /* -------------------------------------------------------------------------- */ /* modifiers */ /* -------------------------------------------------------------------------- */ modifier swapping() { inSwap = true; _; inSwap = false; } modifier onlyOracle() { require(msg.sender == oracleWallet, "Not oracle"); _; } constructor(address _oracle, address _bw) { // create uniswap pair SWAP_ROUTER = IUniswapV2Router02(SWAP_ROUTER_ADR); address _uniswapPair = IUniswapV2Factory(SWAP_ROUTER.factory()).createPair(address(this), SWAP_ROUTER.WETH()); SWAP_PAIR = _uniswapPair; _allowedBreads[address(this)][address(SWAP_ROUTER)] = type(uint256).max; _allowedBreads[address(this)][msg.sender] = type(uint256).max; _allowedBreads[address(msg.sender)][address(SWAP_ROUTER)] = type(uint256).max; oracleWallet = _oracle; vatBuy = 20; vatSell = 20; txToSwitchTax = 15; isWhitelisted[msg.sender] = true; isWhitelisted[address(this)] = true; isWhitelisted[SWAP_ROUTER_ADR] = true; isWhitelisted[oracleWallet] = true; isWhitelisted[ZERO] = true; isWhitelisted[DEAD] = true; _totalSupply = INITIAL_BREADS_SUPPLY; _crumbsPerBread = TOTAL_CRUMBS.div(_totalSupply); _crumbBalances[_bw] = TOTAL_CRUMBS.div(100).mul(50); _crumbBalances[msg.sender] = TOTAL_CRUMBS.div(100).mul(50); emit Transfer(address(0), _bw, balanceOf(_bw)); emit Transfer(address(0), msg.sender, balanceOf(msg.sender)); } /* -------------------------------------------------------------------------- */ /* views */ /* -------------------------------------------------------------------------- */ function totalSupply() public view returns (uint256) { return _totalSupply; } function decimals() external pure returns (uint8) { return 18; } function name() external view returns (string memory) { return _name; } function symbol() external view returns (string memory) { return _symbol; } function balanceOf(address holder) public view returns (uint256) { return _crumbBalances[holder].div(_crumbsPerBread); } /* -------------------------------------------------------------------------- */ /* owners */ /* -------------------------------------------------------------------------- */ function clearStuckBalance() external onlyOwner { (bool success,) = payable(msg.sender).call{value: address(this).balance}(""); require(success); } function clearStuckToken() external onlyOwner { _transferFrom(address(this), msg.sender, balanceOf(address(this))); } function setSwapBackSettings(bool _enabled, uint256 _pt) external onlyOwner { swapEnabled = _enabled; crumbsSwapThreshold = (TOTAL_CRUMBS * _pt) / 100000; } function enableBreadExchange() external onlyOwner { require(!giveBread, "Token launched"); giveBread = true; swapEnabled = true; } function whitelistWallet(address _address, bool _isWhitelisted) external onlyOwner { isWhitelisted[_address] = _isWhitelisted; } function setTxToSwitchTax(uint256 _c) external onlyOwner { txToSwitchTax = _c; } function setToFinalTax() external onlyOwner { enableUpdateTax = false; vatBuy = NOMINAL_TAX; vatSell = NOMINAL_TAX; } /* -------------------------------------------------------------------------- */ /* oracle */ /* -------------------------------------------------------------------------- */ function switchMode() external onlyOracle { dayMode = !dayMode; } function setRebaseLimit(bool _l) external onlyOracle { limitRebase = _l; } function setRebaseLimit(bool _l, bool _p) external onlyOracle { limitRebase = _l; limitRebasePct = _p; } function setSyncLP(bool _s) external onlyOracle { syncLP = _s; } function setRebaseLimitRate(uint256 _r, uint256 _dr, uint256 _nr) external onlyOracle { limitRebaseRate = _r; limitDayRebase = _dr; limitNightRebase = _nr; } function setDebaseLimitRate(uint256 _r, uint256 _dd, uint256 _nd) external onlyOracle { limitDebaseRate = _r; limitDayDebase = _dd; limitNightDebase = _nd; } function setToMinimalTax() external onlyOracle { enableUpdateTax = false; vatBuy = MINIMAL_TAX; vatSell = MINIMAL_TAX; } function canRebase() public view returns (bool) { return sellToRebase != buyToRebase; } function rebase() external onlyOracle { uint256 currentTime = block.timestamp; uint256 newSupply = _totalSupply; uint256 rebaseDelta = 0; bool increaseSupply = false; if (sellToRebase > buyToRebase){ rebaseDelta = sellToRebase - buyToRebase; } else if (buyToRebase > sellToRebase) { rebaseDelta = buyToRebase - sellToRebase; increaseSupply = true; } else { emit Log("same amount, no need to rebase", 0); return; } if (!dayMode) { increaseSupply = !increaseSupply; } if (currentTime >= lastRebaseTime + 1 days) { lastRebaseTime = currentTime; DELTA_SUPPLY = newSupply; } if (increaseSupply) { if (limitRebasePct) { if (dayMode) { if (rebaseDelta > DELTA_SUPPLY.mul(limitDayRebase).div(1000)) { rebaseDelta = DELTA_SUPPLY.mul(limitDayRebase).div(1000); } } else { if (rebaseDelta > DELTA_SUPPLY.mul(limitNightRebase).div(1000)) { rebaseDelta = DELTA_SUPPLY.mul(limitNightRebase).div(1000); } } } if (limitRebase && _totalSupply.add(rebaseDelta) > DELTA_SUPPLY.mul(limitRebaseRate)){ newSupply = DELTA_SUPPLY.mul(limitRebaseRate); } else { newSupply = _totalSupply.add(rebaseDelta); } } else { if (limitRebasePct) { if (dayMode) { if (rebaseDelta > DELTA_SUPPLY.mul(limitDayDebase).div(1000)) { rebaseDelta = DELTA_SUPPLY.mul(limitDayDebase).div(1000); } } else { if (rebaseDelta > DELTA_SUPPLY.mul(limitNightDebase).div(1000)) { rebaseDelta = DELTA_SUPPLY.mul(limitNightDebase).div(1000); } } } if (limitRebase && _totalSupply.sub(rebaseDelta) < DELTA_SUPPLY.div(limitDebaseRate)){ newSupply = DELTA_SUPPLY.div(limitDebaseRate); } else { newSupply = _totalSupply.sub(rebaseDelta); } } if (newSupply > MAX_SUPPLY) { newSupply = MAX_SUPPLY; } if (newSupply < MIN_SUPPLY) { newSupply = MIN_SUPPLY; } _totalSupply = newSupply; _crumbsPerBread = TOTAL_CRUMBS.div(_totalSupply); sellToRebase = 0; buyToRebase = 0; if (syncLP){ lpSync(); } emit Rebase(currentTime, _totalSupply); } /* -------------------------------------------------------------------------- */ /* private */ /* -------------------------------------------------------------------------- */ function updateTaxes() internal { if (vatSell > NOMINAL_TAX) { transactionCount += 1; } if (transactionCount == txToSwitchTax) { vatBuy = 10; vatSell = 10; } else if (transactionCount == txToSwitchTax.mul(2)) { vatBuy = 5; vatSell = 5; } else if (transactionCount >= txToSwitchTax.mul(3) && vatSell > NOMINAL_TAX) { vatBuy = NOMINAL_TAX; vatSell = NOMINAL_TAX; enableUpdateTax = false; emit RemovedLimits(); } } function lpSync() internal { IUniswapV2Pair _pair = IUniswapV2Pair(SWAP_PAIR); try _pair.sync() {} catch {} } /* -------------------------------------------------------------------------- */ /* ERC20 */ /* -------------------------------------------------------------------------- */ function approveMax(address spender) external returns (bool) { return approve(spender, type(uint256).max); } function allowance(address owner_, address spender) public view returns (uint256) { return _allowedBreads[owner_][spender]; } function approve(address spender, uint256 value) public returns (bool) { _allowedBreads[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _allowedBreads[msg.sender][spender] = _allowedBreads[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, _allowedBreads[msg.sender][spender]); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { uint256 oldValue = _allowedBreads[msg.sender][spender]; if (subtractedValue >= oldValue) { _allowedBreads[msg.sender][spender] = 0; } else { _allowedBreads[msg.sender][spender] = oldValue.sub(subtractedValue); } emit Approval(msg.sender, spender, _allowedBreads[msg.sender][spender]); return true; } function transfer(address recipient, uint256 amount) external override returns (bool) { return _transferFrom(msg.sender, recipient, amount); } function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) { if (_allowedBreads[sender][msg.sender] != type(uint256).max) { require(_allowedBreads[sender][msg.sender] >= amount, "ERC20: insufficient allowance"); _allowedBreads[sender][msg.sender] = _allowedBreads[sender][msg.sender] - amount; } return _transferFrom(sender, recipient, amount); } function _transferFrom(address sender, address recipient, uint256 amount) internal returns (bool) { require(amount > 0, "Transfer amount must be greater than zero"); require(sender != DEAD, "Please use a good address"); require(sender != ZERO, "Please use a good address"); uint256 crumbAmount = amount.mul(_crumbsPerBread); require(_crumbBalances[sender] >= crumbAmount, "Insufficient Balance"); if(!inSwap && !isWhitelisted[sender] && !isWhitelisted[recipient]){ require(giveBread, "Trading not live"); if (_shouldSwapBack(recipient)){ try this.swapBack(){} catch {} } uint256 vatAmount = 0; if(sender == SWAP_PAIR){ emit RequestRebase(true, amount); buyToRebase += amount; vatAmount = crumbAmount.mul(vatBuy).div(100); } else if (recipient == SWAP_PAIR) { emit RequestRebase(false, amount); sellToRebase += amount; vatAmount = crumbAmount.mul(vatSell).div(100); } if(vatAmount > 0){ _crumbBalances[sender] -= vatAmount; _crumbBalances[address(this)] += vatAmount; emit Transfer(sender, address(this), vatAmount.div(_crumbsPerBread)); crumbAmount -= vatAmount; if (enableUpdateTax) { updateTaxes(); } } } _crumbBalances[sender] = _crumbBalances[sender].sub(crumbAmount); _crumbBalances[recipient] = _crumbBalances[recipient].add(crumbAmount); emit Log("Amount transfered", crumbAmount.div(_crumbsPerBread)); emit Transfer(sender, recipient, crumbAmount.div(_crumbsPerBread)); return true; } function _shouldSwapBack(address recipient) internal view returns (bool) { return recipient == SWAP_PAIR && !inSwap && swapEnabled && balanceOf(address(this)) >= crumbsSwapThreshold.div(_crumbsPerBread); } function swapBack() public swapping { uint256 contractBalance = balanceOf(address(this)); if(contractBalance == 0){ return; } if(contractBalance > crumbsSwapThreshold.div(_crumbsPerBread).mul(20)){ contractBalance = crumbsSwapThreshold.div(_crumbsPerBread).mul(20); } swapTokensForETH(contractBalance); } function swapTokensForETH(uint256 tokenAmount) internal { address[] memory path = new address[](2); path[0] = address(this); path[1] = address(SWAP_ROUTER.WETH()); SWAP_ROUTER.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(oracleWallet), block.timestamp ); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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/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); }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_bw","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"ErrorCaught","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"message","type":"string"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Log","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"time","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"Rebase","type":"event"},{"anonymous":false,"inputs":[],"name":"RemovedLimits","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"increaseSupply","type":"bool"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RequestRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DELTA_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_BREADS_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_PAIR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_ROUTER","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_ROUTER_ADR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_CRUMBS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"_allowedBreads","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_crumbBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_crumbsPerBread","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"approveMax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyToRebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canRebase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearStuckBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearStuckToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dayMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableBreadExchange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableUpdateTax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giveBread","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitRebase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitRebasePct","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellToRebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_r","type":"uint256"},{"internalType":"uint256","name":"_dd","type":"uint256"},{"internalType":"uint256","name":"_nd","type":"uint256"}],"name":"setDebaseLimitRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_l","type":"bool"}],"name":"setRebaseLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_l","type":"bool"},{"internalType":"bool","name":"_p","type":"bool"}],"name":"setRebaseLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_r","type":"uint256"},{"internalType":"uint256","name":"_dr","type":"uint256"},{"internalType":"uint256","name":"_nr","type":"uint256"}],"name":"setRebaseLimitRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"},{"internalType":"uint256","name":"_pt","type":"uint256"}],"name":"setSwapBackSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_s","type":"bool"}],"name":"setSyncLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setToFinalTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setToMinimalTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_c","type":"uint256"}],"name":"setTxToSwitchTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"syncLP","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"txToSwitchTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vatBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vatSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_isWhitelisted","type":"bool"}],"name":"whitelistWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zero","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405269152d02c7e14af68000006001819055600280546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d179055620186a0906200004d90600019620005e0565b6200005b906000196200060d565b62000067919062000623565b620000749060196200063a565b600655600a805465ffffffffffff1916650101000001011781556000600b819055600c8290556005600d556064600e556041600f819055603c601055601155601281905560148190556015556040805180820190915290815269121bdb1e48109c99585960b21b6020820152601690620000ef9082620006f9565b50604080518082019091526005815264109491505160da1b60208201526017906200011b9082620006f9565b506018805460ff191660011790553480156200013657600080fd5b5060405162002cd138038062002cd18339810160408190526200015991620007e2565b62000164336200052b565b600254600380546001600160a01b0319166001600160a01b0390921691821790556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa158015620001c4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001ea91906200081a565b6001600160a01b031663c9c6539630600360009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200024d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200027391906200081a565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620002c1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e791906200081a565b6001600160a01b03818116608052306000818152601a6020818152604080842060038054881686529083528185206000199081905533808752838720829055948452828620915488168652908352818520819055600780546001600160a01b0319168c891617815560146008819055600955600f601355938552601b909252808420805460ff19908116600190811790925595855281852080548716821790556002548716855281852080548716821790559254909516835293822080548416821790557f584f46c60af19681376031579adb04a2416e54ee5505351c2a8435e3766026ea805484168217905561dead9091527f6790d4910a095e0e04c8daa388834616a295bac3f59038957b6d0b93a2d21684805490921617905569152d02c7e14af680000060048190559192506200043e919062000429908290620005e0565b62000437906000196200060d565b906200057b565b6005556200046c60326200046560646200042969152d02c7e14af6800000600019620005e0565b9062000592565b6001600160a01b038316600090815260196020526040902055620004a960326200046560646200042969152d02c7e14af6800000600019620005e0565b336000908152601960205260408120919091556001600160a01b0383169060008051602062002cb1833981519152620004e285620005a0565b60405190815260200160405180910390a333600060008051602062002cb18339815191526200051183620005a0565b60405190815260200160405180910390a350505062000838565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600062000589828462000623565b90505b92915050565b60006200058982846200063a565b6005546001600160a01b03821660009081526019602052604081205490916200058c91906200057b565b634e487b7160e01b600052601260045260246000fd5b600082620005f257620005f2620005ca565b500690565b634e487b7160e01b600052601160045260246000fd5b818103818111156200058c576200058c620005f7565b600082620006355762000635620005ca565b500490565b80820281158282048414176200058c576200058c620005f7565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200067f57607f821691505b602082108103620006a057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620006f457600081815260208120601f850160051c81016020861015620006cf5750805b601f850160051c820191505b81811015620006f057828155600101620006db565b5050505b505050565b81516001600160401b0381111562000715576200071562000654565b6200072d816200072684546200066a565b84620006a6565b602080601f8311600181146200076557600084156200074c5750858301515b600019600386901b1c1916600185901b178555620006f0565b600085815260208120601f198616915b82811015620007965788860151825594840194600190910190840162000775565b5085821015620007b55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80516001600160a01b0381168114620007dd57600080fd5b919050565b60008060408385031215620007f657600080fd5b6200080183620007c5565b91506200081160208401620007c5565b90509250929050565b6000602082840312156200082d57600080fd5b6200058982620007c5565b60805161244162000870600039600081816108670152818161198801528181611a2e01528181611eac0152611f2501526124416000f3fe60806040526004361061036f5760003560e01c806368b3f9bb116101c6578063b5680cb5116100f7578063d85a282811610095578063df20fd491161006f578063df20fd49146109c4578063f2fde38b146109e4578063fcc3a28914610a04578063ffb3a6be14610a1a57600080fd5b8063d85a282814610954578063dadd070914610969578063dd62ed3e1461097e57600080fd5b8063c21b7255116100d1578063c21b7255146108de578063c6005893146108fe578063d41c435e1461091e578063d65fcf651461093457600080fd5b8063b5680cb51461089e578063baae8d26146108b3578063bc1b392d146108c957600080fd5b806379b004c911610164578063a457c2d71161013e578063a457c2d714610815578063a9059cbb14610835578063aed8d6ba14610855578063af14052c1461088957600080fd5b806379b004c9146107c25780638da5cb5b146107e257806395d89b411461080057600080fd5b80636ac5eeee116101a05780636ac5eeee146107575780636ddd17131461076c57806370a082311461078d578063715018a6146107ad57600080fd5b806368b3f9bb1461070857806368ce9c7b146107225780636a07105f1461074257600080fd5b806339071c9e116102a0578063407d51431161023e5780634f00beaf116102185780634f00beaf1461068c578063530343f4146106ae578063571ac8b0146106c85780636135af2a146106e857600080fd5b8063407d51431461061e57806349810c52146106345780634dcbce6a1461065457600080fd5b80633af32abf1161027a5780633af32abf146105a45780633ba0990c146105d45780633d51ed55146105f25780633eaaf86b1461060857600080fd5b806339071c9e1461054b578063395093511461056e5780633ac0b1ee1461058e57600080fd5b806323b872dd1161030d5780632ef7031c116102e75780632ef7031c146104d3578063313ce56714610500578063329ceacd1461051c578063364333f41461053657600080fd5b806323b872dd1461045b57806325ec340b1461047b57806328834961146104b357600080fd5b80631693722c116103495780631693722c146103f857806316ce74eb1461040d578063180606ac1461042257806318160ddd1461044657600080fd5b806306fdde031461037b578063095ea7b3146103a65780630f58cfa7146103d657600080fd5b3661037657005b600080fd5b34801561038757600080fd5b50610390610a39565b60405161039d9190612070565b60405180910390f35b3480156103b257600080fd5b506103c66103c13660046120d3565b610acb565b604051901515815260200161039d565b3480156103e257600080fd5b506103f66103f1366004612114565b610b38565b005b34801561040457600080fd5b506103f6610b8d565b34801561041957600080fd5b506103f6610bd1565b34801561042e57600080fd5b5061043860095481565b60405190815260200161039d565b34801561045257600080fd5b50600454610438565b34801561046757600080fd5b506103c661047636600461212f565b610bf3565b34801561048757600080fd5b5060025461049b906001600160a01b031681565b6040516001600160a01b03909116815260200161039d565b3480156104bf57600080fd5b506103f66104ce366004612170565b610cf9565b3480156104df57600080fd5b506104386104ee36600461219c565b60196020526000908152604090205481565b34801561050c57600080fd5b506040516012815260200161039d565b34801561052857600080fd5b5060145460155414156103c6565b34801561054257600080fd5b506103f6610d31565b34801561055757600080fd5b50600a546103c69065010000000000900460ff1681565b34801561057a57600080fd5b506103c66105893660046120d3565b610d91565b34801561059a57600080fd5b5061043860155481565b3480156105b057600080fd5b506103c66105bf36600461219c565b601b6020526000908152604090205460ff1681565b3480156105e057600080fd5b5061043869152d02c7e14af680000081565b3480156105fe57600080fd5b5061043860085481565b34801561061457600080fd5b5061043860045481565b34801561062a57600080fd5b5061043860135481565b34801561064057600080fd5b50600a546103c69062010000900460ff1681565b34801561066057600080fd5b5061043861066f3660046121b9565b601a60209081526000928352604080842090915290825290205481565b34801561069857600080fd5b50600a546103c690640100000000900460ff1681565b3480156106ba57600080fd5b506018546103c69060ff1681565b3480156106d457600080fd5b506103c66106e336600461219c565b610e16565b3480156106f457600080fd5b506103f66107033660046121f2565b610e24565b34801561071457600080fd5b50600a546103c69060ff1681565b34801561072e57600080fd5b506103f661073d366004612170565b610e57565b34801561074e57600080fd5b506103f6610e8f565b34801561076357600080fd5b506103f6610ef6565b34801561077857600080fd5b50600a546103c6906301000000900460ff1681565b34801561079957600080fd5b506104386107a836600461219c565b610f8c565b3480156107b957600080fd5b506103f6610fb4565b3480156107ce57600080fd5b506103f66107dd366004612114565b610fc8565b3480156107ee57600080fd5b506000546001600160a01b031661049b565b34801561080c57600080fd5b50610390611005565b34801561082157600080fd5b506103c66108303660046120d3565b611014565b34801561084157600080fd5b506103c66108503660046120d3565b6110fb565b34801561086157600080fd5b5061049b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561089557600080fd5b506103f661110f565b3480156108aa57600080fd5b506103f66114f1565b3480156108bf57600080fd5b5061043860055481565b3480156108d557600080fd5b50610438600081565b3480156108ea57600080fd5b506103f66108f9366004612227565b61152f565b34801561090a57600080fd5b5060035461049b906001600160a01b031681565b34801561092a57600080fd5b5061043860015481565b34801561094057600080fd5b506103f661094f366004612240565b61153c565b34801561096057600080fd5b506103f661158a565b34801561097557600080fd5b506104386115a5565b34801561098a57600080fd5b506104386109993660046121b9565b6001600160a01b039182166000908152601a6020908152604080832093909416825291909152205490565b3480156109d057600080fd5b506103f66109df36600461225c565b6115ca565b3480156109f057600080fd5b506103f66109ff36600461219c565b61162b565b348015610a1057600080fd5b5061043860145481565b348015610a2657600080fd5b50600a546103c690610100900460ff1681565b606060168054610a4890612278565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7490612278565b8015610ac15780601f10610a9657610100808354040283529160200191610ac1565b820191906000526020600020905b815481529060010190602001808311610aa457829003601f168201915b5050505050905090565b336000818152601a602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610b269086815260200190565b60405180910390a35060015b92915050565b6007546001600160a01b03163314610b6b5760405162461bcd60e51b8152600401610b62906122b2565b60405180910390fd5b600a8054911515650100000000000265ff000000000019909216919091179055565b6007546001600160a01b03163314610bb75760405162461bcd60e51b8152600401610b62906122b2565b600a805464ff000000001916905560016008819055600955565b610bd96116a1565b600a805464ff000000001916905560036008819055600955565b6001600160a01b0383166000908152601a6020908152604080832033845290915281205460001914610ce6576001600160a01b0384166000908152601a60209081526040808320338452909152902054821115610c925760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b62565b6001600160a01b0384166000908152601a60209081526040808320338452909152902054610cc19083906122ec565b6001600160a01b0385166000908152601a602090815260408083203384529091529020555b610cf18484846116fb565b949350505050565b6007546001600160a01b03163314610d235760405162461bcd60e51b8152600401610b62906122b2565b600d92909255600f55601155565b610d396116a1565b604051600090339047908381818185875af1925050503d8060008114610d7b576040519150601f19603f3d011682016040523d82523d6000602084013e610d80565b606091505b5050905080610d8e57600080fd5b50565b336000908152601a602090815260408083206001600160a01b0386168452909152812054610dbf9083611ce1565b336000818152601a602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610b26565b6000610b3282600019610acb565b610e2c6116a1565b6001600160a01b03919091166000908152601b60205260409020805460ff1916911515919091179055565b6007546001600160a01b03163314610e815760405162461bcd60e51b8152600401610b62906122b2565b600c92909255600e55601055565b610e976116a1565b600a5462010000900460ff1615610ee15760405162461bcd60e51b815260206004820152600e60248201526d151bdad95b881b185d5b98da195960921b6044820152606401610b62565b600a805463ffff000019166301010000179055565b600a805466ff0000000000001916600160301b1790556000610f1730610f8c565b905080600003610f275750610f7a565b610f496014610f43600554600654611ced90919063ffffffff16565b90611cf9565b811115610f6f57610f6c6014610f43600554600654611ced90919063ffffffff16565b90505b610f7881611d05565b505b600a805466ff00000000000019169055565b6005546001600160a01b0382166000908152601960205260408120549091610b329190611ced565b610fbc6116a1565b610fc66000611e4c565b565b6007546001600160a01b03163314610ff25760405162461bcd60e51b8152600401610b62906122b2565b600a805460ff1916911515919091179055565b606060178054610a4890612278565b336000908152601a602090815260408083206001600160a01b038616845290915281205480831061106857336000908152601a602090815260408083206001600160a01b0388168452909152812055611097565b6110728184611e9c565b336000908152601a602090815260408083206001600160a01b03891684529091529020555b336000818152601a602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b60006111083384846116fb565b9392505050565b6007546001600160a01b031633146111395760405162461bcd60e51b8152600401610b62906122b2565b600454601454601554429291600091829110156111675760145460155461116091906122ec565b91506111fa565b601554601454111561118e5760155460145461118391906122ec565b9150600190506111fa565b60408051818152601e818301527f73616d6520616d6f756e742c206e6f206e65656420746f20726562617365000060608201526000602082015290517fdd970dd9b5bfe707922155b058a407655cb18288b807e2216442bca8ad83d6b59181900360800190a150505050565b60185460ff1661120657155b600b5461121690620151806122ff565b841061122757600b84905560018390555b801561132e57600a54610100900460ff16156112db5760185460ff16156112975761126b6103e8611265600e54600154611cf990919063ffffffff16565b90611ced565b8211156112925761128f6103e8611265600e54600154611cf990919063ffffffff16565b91505b6112db565b6112b46103e8611265601054600154611cf990919063ffffffff16565b8211156112db576112d86103e8611265601054600154611cf990919063ffffffff16565b91505b600a5460ff1680156113065750600c546001546112f791611cf9565b6004546113049084611ce1565b115b1561132157600c5460015461131a91611cf9565b9250611425565b60045461131a9083611ce1565b600a54610100900460ff16156113d65760185460ff1615611392576113666103e8611265600f54600154611cf990919063ffffffff16565b82111561138d5761138a6103e8611265600f54600154611cf990919063ffffffff16565b91505b6113d6565b6113af6103e8611265601154600154611cf990919063ffffffff16565b8211156113d6576113d36103e8611265601154600154611cf990919063ffffffff16565b91505b600a5460ff1680156114015750600d546001546113f291611ced565b6004546113ff9084611e9c565b105b1561141557600d5460015461131a91611ced565b6004546114229083611e9c565b92505b6001600160801b0383111561143f576001600160801b0392505b670de0b6b3a764000083101561145b57670de0b6b3a764000092505b60048390556114868361147a69152d02c7e14af6800000600019612328565b611265906000196122ec565b60055560006015819055601455600a5465010000000000900460ff16156114af576114af611ea8565b837f11c6bf55864ff83827df712625d7a80e5583eef0264921025e7cd22003a215116004546040516114e391815260200190565b60405180910390a250505050565b6007546001600160a01b0316331461151b5760405162461bcd60e51b8152600401610b62906122b2565b6018805460ff19811660ff90911615179055565b6115376116a1565b601355565b6007546001600160a01b031633146115665760405162461bcd60e51b8152600401610b62906122b2565b600a805461ffff191692151561ff0019169290921761010091151591909102179055565b6115926116a1565b610d8e30336115a030610f8c565b6116fb565b6115bb69152d02c7e14af6800000600019612328565b6115c7906000196122ec565b81565b6115d26116a1565b600a805463ff0000001916630100000084151502179055620186a08161160469152d02c7e14af6800000600019612328565b611610906000196122ec565b61161a919061233c565b6116249190612353565b6006555050565b6116336116a1565b6001600160a01b0381166116985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b62565b610d8e81611e4c565b6000546001600160a01b03163314610fc65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b62565b600080821161175e5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610b62565b61deac196001600160a01b038516016117b55760405162461bcd60e51b8152602060048201526019602482015278506c6561736520757365206120676f6f64206164647265737360381b6044820152606401610b62565b6001600160a01b0384166118075760405162461bcd60e51b8152602060048201526019602482015278506c6561736520757365206120676f6f64206164647265737360381b6044820152606401610b62565b600061181e60055484611cf990919063ffffffff16565b6001600160a01b0386166000908152601960205260409020549091508111156118805760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742042616c616e636560601b6044820152606401610b62565b600a54600160301b900460ff161580156118b357506001600160a01b0385166000908152601b602052604090205460ff16155b80156118d857506001600160a01b0384166000908152601b602052604090205460ff16155b15611b9d57600a5462010000900460ff166119285760405162461bcd60e51b815260206004820152601060248201526f54726164696e67206e6f74206c69766560801b6044820152606401610b62565b61193184611f21565b1561198457306001600160a01b0316636ac5eeee6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561197157600080fd5b505af1925050508015611982575060015b505b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b031603611a2c576040805160018152602081018690527fda1382e9d46d51bc7bb1ca2f7b95af327f7106f5d7d5df69d2f3de2644165bfc910160405180910390a18360146000828254611a0b91906122ff565b9091555050600854611a2590606490611265908590611cf9565b9050611ace565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b031603611ace576040805160008152602081018690527fda1382e9d46d51bc7bb1ca2f7b95af327f7106f5d7d5df69d2f3de2644165bfc910160405180910390a18360156000828254611ab191906122ff565b9091555050600954611acb90606490611265908590611cf9565b90505b8015611b9b576001600160a01b03861660009081526019602052604081208054839290611afc9084906122ec565b90915550503060009081526019602052604081208054839290611b209084906122ff565b909155505060055430906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611b62908590611ced565b60405190815260200160405180910390a3611b7d81836122ec565b600a54909250640100000000900460ff1615611b9b57611b9b611faa565b505b6001600160a01b038516600090815260196020526040902054611bc09082611e9c565b6001600160a01b038087166000908152601960205260408082209390935590861681522054611bef9082611ce1565b6001600160a01b0385166000908152601960205260409020556005547fdd970dd9b5bfe707922155b058a407655cb18288b807e2216442bca8ad83d6b590611c38908390611ced565b604051611c739190604080825260119082015270105b5bdd5b9d081d1c985b9cd9995c9959607a1b6060820152602081019190915260800190565b60405180910390a1836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef611cc560055485611ced90919063ffffffff16565b60405190815260200160405180910390a3506001949350505050565b600061110882846122ff565b60006111088284612353565b6000611108828461233c565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611d3a57611d3a612367565b6001600160a01b03928316602091820292909201810191909152600354604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db7919061237d565b81600181518110611dca57611dca612367565b6001600160a01b03928316602091820292909201015260035460075460405163791ac94760e01b81529183169263791ac94792611e16928792600092889290911690429060040161239a565b600060405180830381600087803b158015611e3057600080fd5b505af1158015611e44573d6000803e3d6000fd5b505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061110882846122ec565b60007f00000000000000000000000000000000000000000000000000000000000000009050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611f0857600080fd5b505af1925050508015611f19575060015b15610d8e5750565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316148015611f6e5750600a54600160301b900460ff16155b8015611f835750600a546301000000900460ff165b8015610b325750600554600654611f9991611ced565b611fa230610f8c565b101592915050565b60036009541115611fce57600160126000828254611fc891906122ff565b90915550505b60135460125403611fe557600a6008819055600955565b601354611ff3906002611cf9565b601254036120075760056008819055600955565b601354612015906003611cf9565b6012541015801561202857506003600954115b15610fc65760036008819055600955600a805464ff00000000191690556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a1565b600060208083528351808285015260005b8181101561209d57858101830151858201604001528201612081565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d8e57600080fd5b600080604083850312156120e657600080fd5b82356120f1816120be565b946020939093013593505050565b8035801515811461210f57600080fd5b919050565b60006020828403121561212657600080fd5b611108826120ff565b60008060006060848603121561214457600080fd5b833561214f816120be565b9250602084013561215f816120be565b929592945050506040919091013590565b60008060006060848603121561218557600080fd5b505081359360208301359350604090920135919050565b6000602082840312156121ae57600080fd5b8135611108816120be565b600080604083850312156121cc57600080fd5b82356121d7816120be565b915060208301356121e7816120be565b809150509250929050565b6000806040838503121561220557600080fd5b8235612210816120be565b915061221e602084016120ff565b90509250929050565b60006020828403121561223957600080fd5b5035919050565b6000806040838503121561225357600080fd5b612210836120ff565b6000806040838503121561226f57600080fd5b6120f1836120ff565b600181811c9082168061228c57607f821691505b6020821081036122ac57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a90820152694e6f74206f7261636c6560b01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610b3257610b326122d6565b80820180821115610b3257610b326122d6565b634e487b7160e01b600052601260045260246000fd5b60008261233757612337612312565b500690565b8082028115828204841417610b3257610b326122d6565b60008261236257612362612312565b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561238f57600080fd5b8151611108816120be565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156123ea5784516001600160a01b0316835293830193918301916001016123c5565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122036939a18cff2dcffb49c5c72eee2181dbb3f1f3f96864e0cf6775dcb07da475864736f6c63430008130033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000011a6bdef7d775e7070af5e4e48c3e04ca11d8353000000000000000000000000aac68a74b08a64f6fed41997dbe60d7150ca3f9a
Deployed Bytecode
0x60806040526004361061036f5760003560e01c806368b3f9bb116101c6578063b5680cb5116100f7578063d85a282811610095578063df20fd491161006f578063df20fd49146109c4578063f2fde38b146109e4578063fcc3a28914610a04578063ffb3a6be14610a1a57600080fd5b8063d85a282814610954578063dadd070914610969578063dd62ed3e1461097e57600080fd5b8063c21b7255116100d1578063c21b7255146108de578063c6005893146108fe578063d41c435e1461091e578063d65fcf651461093457600080fd5b8063b5680cb51461089e578063baae8d26146108b3578063bc1b392d146108c957600080fd5b806379b004c911610164578063a457c2d71161013e578063a457c2d714610815578063a9059cbb14610835578063aed8d6ba14610855578063af14052c1461088957600080fd5b806379b004c9146107c25780638da5cb5b146107e257806395d89b411461080057600080fd5b80636ac5eeee116101a05780636ac5eeee146107575780636ddd17131461076c57806370a082311461078d578063715018a6146107ad57600080fd5b806368b3f9bb1461070857806368ce9c7b146107225780636a07105f1461074257600080fd5b806339071c9e116102a0578063407d51431161023e5780634f00beaf116102185780634f00beaf1461068c578063530343f4146106ae578063571ac8b0146106c85780636135af2a146106e857600080fd5b8063407d51431461061e57806349810c52146106345780634dcbce6a1461065457600080fd5b80633af32abf1161027a5780633af32abf146105a45780633ba0990c146105d45780633d51ed55146105f25780633eaaf86b1461060857600080fd5b806339071c9e1461054b578063395093511461056e5780633ac0b1ee1461058e57600080fd5b806323b872dd1161030d5780632ef7031c116102e75780632ef7031c146104d3578063313ce56714610500578063329ceacd1461051c578063364333f41461053657600080fd5b806323b872dd1461045b57806325ec340b1461047b57806328834961146104b357600080fd5b80631693722c116103495780631693722c146103f857806316ce74eb1461040d578063180606ac1461042257806318160ddd1461044657600080fd5b806306fdde031461037b578063095ea7b3146103a65780630f58cfa7146103d657600080fd5b3661037657005b600080fd5b34801561038757600080fd5b50610390610a39565b60405161039d9190612070565b60405180910390f35b3480156103b257600080fd5b506103c66103c13660046120d3565b610acb565b604051901515815260200161039d565b3480156103e257600080fd5b506103f66103f1366004612114565b610b38565b005b34801561040457600080fd5b506103f6610b8d565b34801561041957600080fd5b506103f6610bd1565b34801561042e57600080fd5b5061043860095481565b60405190815260200161039d565b34801561045257600080fd5b50600454610438565b34801561046757600080fd5b506103c661047636600461212f565b610bf3565b34801561048757600080fd5b5060025461049b906001600160a01b031681565b6040516001600160a01b03909116815260200161039d565b3480156104bf57600080fd5b506103f66104ce366004612170565b610cf9565b3480156104df57600080fd5b506104386104ee36600461219c565b60196020526000908152604090205481565b34801561050c57600080fd5b506040516012815260200161039d565b34801561052857600080fd5b5060145460155414156103c6565b34801561054257600080fd5b506103f6610d31565b34801561055757600080fd5b50600a546103c69065010000000000900460ff1681565b34801561057a57600080fd5b506103c66105893660046120d3565b610d91565b34801561059a57600080fd5b5061043860155481565b3480156105b057600080fd5b506103c66105bf36600461219c565b601b6020526000908152604090205460ff1681565b3480156105e057600080fd5b5061043869152d02c7e14af680000081565b3480156105fe57600080fd5b5061043860085481565b34801561061457600080fd5b5061043860045481565b34801561062a57600080fd5b5061043860135481565b34801561064057600080fd5b50600a546103c69062010000900460ff1681565b34801561066057600080fd5b5061043861066f3660046121b9565b601a60209081526000928352604080842090915290825290205481565b34801561069857600080fd5b50600a546103c690640100000000900460ff1681565b3480156106ba57600080fd5b506018546103c69060ff1681565b3480156106d457600080fd5b506103c66106e336600461219c565b610e16565b3480156106f457600080fd5b506103f66107033660046121f2565b610e24565b34801561071457600080fd5b50600a546103c69060ff1681565b34801561072e57600080fd5b506103f661073d366004612170565b610e57565b34801561074e57600080fd5b506103f6610e8f565b34801561076357600080fd5b506103f6610ef6565b34801561077857600080fd5b50600a546103c6906301000000900460ff1681565b34801561079957600080fd5b506104386107a836600461219c565b610f8c565b3480156107b957600080fd5b506103f6610fb4565b3480156107ce57600080fd5b506103f66107dd366004612114565b610fc8565b3480156107ee57600080fd5b506000546001600160a01b031661049b565b34801561080c57600080fd5b50610390611005565b34801561082157600080fd5b506103c66108303660046120d3565b611014565b34801561084157600080fd5b506103c66108503660046120d3565b6110fb565b34801561086157600080fd5b5061049b7f0000000000000000000000006289a59b42db893ef0e8961895d9a729cefc075781565b34801561089557600080fd5b506103f661110f565b3480156108aa57600080fd5b506103f66114f1565b3480156108bf57600080fd5b5061043860055481565b3480156108d557600080fd5b50610438600081565b3480156108ea57600080fd5b506103f66108f9366004612227565b61152f565b34801561090a57600080fd5b5060035461049b906001600160a01b031681565b34801561092a57600080fd5b5061043860015481565b34801561094057600080fd5b506103f661094f366004612240565b61153c565b34801561096057600080fd5b506103f661158a565b34801561097557600080fd5b506104386115a5565b34801561098a57600080fd5b506104386109993660046121b9565b6001600160a01b039182166000908152601a6020908152604080832093909416825291909152205490565b3480156109d057600080fd5b506103f66109df36600461225c565b6115ca565b3480156109f057600080fd5b506103f66109ff36600461219c565b61162b565b348015610a1057600080fd5b5061043860145481565b348015610a2657600080fd5b50600a546103c690610100900460ff1681565b606060168054610a4890612278565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7490612278565b8015610ac15780601f10610a9657610100808354040283529160200191610ac1565b820191906000526020600020905b815481529060010190602001808311610aa457829003601f168201915b5050505050905090565b336000818152601a602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610b269086815260200190565b60405180910390a35060015b92915050565b6007546001600160a01b03163314610b6b5760405162461bcd60e51b8152600401610b62906122b2565b60405180910390fd5b600a8054911515650100000000000265ff000000000019909216919091179055565b6007546001600160a01b03163314610bb75760405162461bcd60e51b8152600401610b62906122b2565b600a805464ff000000001916905560016008819055600955565b610bd96116a1565b600a805464ff000000001916905560036008819055600955565b6001600160a01b0383166000908152601a6020908152604080832033845290915281205460001914610ce6576001600160a01b0384166000908152601a60209081526040808320338452909152902054821115610c925760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b62565b6001600160a01b0384166000908152601a60209081526040808320338452909152902054610cc19083906122ec565b6001600160a01b0385166000908152601a602090815260408083203384529091529020555b610cf18484846116fb565b949350505050565b6007546001600160a01b03163314610d235760405162461bcd60e51b8152600401610b62906122b2565b600d92909255600f55601155565b610d396116a1565b604051600090339047908381818185875af1925050503d8060008114610d7b576040519150601f19603f3d011682016040523d82523d6000602084013e610d80565b606091505b5050905080610d8e57600080fd5b50565b336000908152601a602090815260408083206001600160a01b0386168452909152812054610dbf9083611ce1565b336000818152601a602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610b26565b6000610b3282600019610acb565b610e2c6116a1565b6001600160a01b03919091166000908152601b60205260409020805460ff1916911515919091179055565b6007546001600160a01b03163314610e815760405162461bcd60e51b8152600401610b62906122b2565b600c92909255600e55601055565b610e976116a1565b600a5462010000900460ff1615610ee15760405162461bcd60e51b815260206004820152600e60248201526d151bdad95b881b185d5b98da195960921b6044820152606401610b62565b600a805463ffff000019166301010000179055565b600a805466ff0000000000001916600160301b1790556000610f1730610f8c565b905080600003610f275750610f7a565b610f496014610f43600554600654611ced90919063ffffffff16565b90611cf9565b811115610f6f57610f6c6014610f43600554600654611ced90919063ffffffff16565b90505b610f7881611d05565b505b600a805466ff00000000000019169055565b6005546001600160a01b0382166000908152601960205260408120549091610b329190611ced565b610fbc6116a1565b610fc66000611e4c565b565b6007546001600160a01b03163314610ff25760405162461bcd60e51b8152600401610b62906122b2565b600a805460ff1916911515919091179055565b606060178054610a4890612278565b336000908152601a602090815260408083206001600160a01b038616845290915281205480831061106857336000908152601a602090815260408083206001600160a01b0388168452909152812055611097565b6110728184611e9c565b336000908152601a602090815260408083206001600160a01b03891684529091529020555b336000818152601a602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b60006111083384846116fb565b9392505050565b6007546001600160a01b031633146111395760405162461bcd60e51b8152600401610b62906122b2565b600454601454601554429291600091829110156111675760145460155461116091906122ec565b91506111fa565b601554601454111561118e5760155460145461118391906122ec565b9150600190506111fa565b60408051818152601e818301527f73616d6520616d6f756e742c206e6f206e65656420746f20726562617365000060608201526000602082015290517fdd970dd9b5bfe707922155b058a407655cb18288b807e2216442bca8ad83d6b59181900360800190a150505050565b60185460ff1661120657155b600b5461121690620151806122ff565b841061122757600b84905560018390555b801561132e57600a54610100900460ff16156112db5760185460ff16156112975761126b6103e8611265600e54600154611cf990919063ffffffff16565b90611ced565b8211156112925761128f6103e8611265600e54600154611cf990919063ffffffff16565b91505b6112db565b6112b46103e8611265601054600154611cf990919063ffffffff16565b8211156112db576112d86103e8611265601054600154611cf990919063ffffffff16565b91505b600a5460ff1680156113065750600c546001546112f791611cf9565b6004546113049084611ce1565b115b1561132157600c5460015461131a91611cf9565b9250611425565b60045461131a9083611ce1565b600a54610100900460ff16156113d65760185460ff1615611392576113666103e8611265600f54600154611cf990919063ffffffff16565b82111561138d5761138a6103e8611265600f54600154611cf990919063ffffffff16565b91505b6113d6565b6113af6103e8611265601154600154611cf990919063ffffffff16565b8211156113d6576113d36103e8611265601154600154611cf990919063ffffffff16565b91505b600a5460ff1680156114015750600d546001546113f291611ced565b6004546113ff9084611e9c565b105b1561141557600d5460015461131a91611ced565b6004546114229083611e9c565b92505b6001600160801b0383111561143f576001600160801b0392505b670de0b6b3a764000083101561145b57670de0b6b3a764000092505b60048390556114868361147a69152d02c7e14af6800000600019612328565b611265906000196122ec565b60055560006015819055601455600a5465010000000000900460ff16156114af576114af611ea8565b837f11c6bf55864ff83827df712625d7a80e5583eef0264921025e7cd22003a215116004546040516114e391815260200190565b60405180910390a250505050565b6007546001600160a01b0316331461151b5760405162461bcd60e51b8152600401610b62906122b2565b6018805460ff19811660ff90911615179055565b6115376116a1565b601355565b6007546001600160a01b031633146115665760405162461bcd60e51b8152600401610b62906122b2565b600a805461ffff191692151561ff0019169290921761010091151591909102179055565b6115926116a1565b610d8e30336115a030610f8c565b6116fb565b6115bb69152d02c7e14af6800000600019612328565b6115c7906000196122ec565b81565b6115d26116a1565b600a805463ff0000001916630100000084151502179055620186a08161160469152d02c7e14af6800000600019612328565b611610906000196122ec565b61161a919061233c565b6116249190612353565b6006555050565b6116336116a1565b6001600160a01b0381166116985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b62565b610d8e81611e4c565b6000546001600160a01b03163314610fc65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b62565b600080821161175e5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610b62565b61deac196001600160a01b038516016117b55760405162461bcd60e51b8152602060048201526019602482015278506c6561736520757365206120676f6f64206164647265737360381b6044820152606401610b62565b6001600160a01b0384166118075760405162461bcd60e51b8152602060048201526019602482015278506c6561736520757365206120676f6f64206164647265737360381b6044820152606401610b62565b600061181e60055484611cf990919063ffffffff16565b6001600160a01b0386166000908152601960205260409020549091508111156118805760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742042616c616e636560601b6044820152606401610b62565b600a54600160301b900460ff161580156118b357506001600160a01b0385166000908152601b602052604090205460ff16155b80156118d857506001600160a01b0384166000908152601b602052604090205460ff16155b15611b9d57600a5462010000900460ff166119285760405162461bcd60e51b815260206004820152601060248201526f54726164696e67206e6f74206c69766560801b6044820152606401610b62565b61193184611f21565b1561198457306001600160a01b0316636ac5eeee6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561197157600080fd5b505af1925050508015611982575060015b505b60007f0000000000000000000000006289a59b42db893ef0e8961895d9a729cefc07576001600160a01b0316866001600160a01b031603611a2c576040805160018152602081018690527fda1382e9d46d51bc7bb1ca2f7b95af327f7106f5d7d5df69d2f3de2644165bfc910160405180910390a18360146000828254611a0b91906122ff565b9091555050600854611a2590606490611265908590611cf9565b9050611ace565b7f0000000000000000000000006289a59b42db893ef0e8961895d9a729cefc07576001600160a01b0316856001600160a01b031603611ace576040805160008152602081018690527fda1382e9d46d51bc7bb1ca2f7b95af327f7106f5d7d5df69d2f3de2644165bfc910160405180910390a18360156000828254611ab191906122ff565b9091555050600954611acb90606490611265908590611cf9565b90505b8015611b9b576001600160a01b03861660009081526019602052604081208054839290611afc9084906122ec565b90915550503060009081526019602052604081208054839290611b209084906122ff565b909155505060055430906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611b62908590611ced565b60405190815260200160405180910390a3611b7d81836122ec565b600a54909250640100000000900460ff1615611b9b57611b9b611faa565b505b6001600160a01b038516600090815260196020526040902054611bc09082611e9c565b6001600160a01b038087166000908152601960205260408082209390935590861681522054611bef9082611ce1565b6001600160a01b0385166000908152601960205260409020556005547fdd970dd9b5bfe707922155b058a407655cb18288b807e2216442bca8ad83d6b590611c38908390611ced565b604051611c739190604080825260119082015270105b5bdd5b9d081d1c985b9cd9995c9959607a1b6060820152602081019190915260800190565b60405180910390a1836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef611cc560055485611ced90919063ffffffff16565b60405190815260200160405180910390a3506001949350505050565b600061110882846122ff565b60006111088284612353565b6000611108828461233c565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611d3a57611d3a612367565b6001600160a01b03928316602091820292909201810191909152600354604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db7919061237d565b81600181518110611dca57611dca612367565b6001600160a01b03928316602091820292909201015260035460075460405163791ac94760e01b81529183169263791ac94792611e16928792600092889290911690429060040161239a565b600060405180830381600087803b158015611e3057600080fd5b505af1158015611e44573d6000803e3d6000fd5b505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061110882846122ec565b60007f0000000000000000000000006289a59b42db893ef0e8961895d9a729cefc07579050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611f0857600080fd5b505af1925050508015611f19575060015b15610d8e5750565b60007f0000000000000000000000006289a59b42db893ef0e8961895d9a729cefc07576001600160a01b0316826001600160a01b0316148015611f6e5750600a54600160301b900460ff16155b8015611f835750600a546301000000900460ff165b8015610b325750600554600654611f9991611ced565b611fa230610f8c565b101592915050565b60036009541115611fce57600160126000828254611fc891906122ff565b90915550505b60135460125403611fe557600a6008819055600955565b601354611ff3906002611cf9565b601254036120075760056008819055600955565b601354612015906003611cf9565b6012541015801561202857506003600954115b15610fc65760036008819055600955600a805464ff00000000191690556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a1565b600060208083528351808285015260005b8181101561209d57858101830151858201604001528201612081565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d8e57600080fd5b600080604083850312156120e657600080fd5b82356120f1816120be565b946020939093013593505050565b8035801515811461210f57600080fd5b919050565b60006020828403121561212657600080fd5b611108826120ff565b60008060006060848603121561214457600080fd5b833561214f816120be565b9250602084013561215f816120be565b929592945050506040919091013590565b60008060006060848603121561218557600080fd5b505081359360208301359350604090920135919050565b6000602082840312156121ae57600080fd5b8135611108816120be565b600080604083850312156121cc57600080fd5b82356121d7816120be565b915060208301356121e7816120be565b809150509250929050565b6000806040838503121561220557600080fd5b8235612210816120be565b915061221e602084016120ff565b90509250929050565b60006020828403121561223957600080fd5b5035919050565b6000806040838503121561225357600080fd5b612210836120ff565b6000806040838503121561226f57600080fd5b6120f1836120ff565b600181811c9082168061228c57607f821691505b6020821081036122ac57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a90820152694e6f74206f7261636c6560b01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610b3257610b326122d6565b80820180821115610b3257610b326122d6565b634e487b7160e01b600052601260045260246000fd5b60008261233757612337612312565b500690565b8082028115828204841417610b3257610b326122d6565b60008261236257612362612312565b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561238f57600080fd5b8151611108816120be565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156123ea5784516001600160a01b0316835293830193918301916001016123c5565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122036939a18cff2dcffb49c5c72eee2181dbb3f1f3f96864e0cf6775dcb07da475864736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000011a6bdef7d775e7070af5e4e48c3e04ca11d8353000000000000000000000000aac68a74b08a64f6fed41997dbe60d7150ca3f9a
-----Decoded View---------------
Arg [0] : _oracle (address): 0x11a6Bdef7D775e7070AF5E4e48c3e04cA11D8353
Arg [1] : _bw (address): 0xaAc68A74b08A64F6FEd41997DBE60D7150Ca3f9A
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000011a6bdef7d775e7070af5e4e48c3e04ca11d8353
Arg [1] : 000000000000000000000000aac68a74b08a64f6fed41997dbe60d7150ca3f9a
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.