ERC-20
Overview
Max Total Supply
100,000 VFIAX
Holders
39
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Vanguard500
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // // Website: https://www.vanguard500.org/ // X: https://twitter.com/vanguardindex // Telegram: https://t.me/vanguardindex pragma solidity ^0.8.19; import "./IUniswapV2Router02.sol"; import "./IUniswapV2Factory.sol"; import "./IUniswapV2Pair.sol"; import "./SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Vanguard500 is IERC20, Ownable(msg.sender) { 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 public constant 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 = true; bool public swapEnabled = true; 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 = "Vanguard 500 Index Fund"; string _symbol = "VFIAX"; 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) { // 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[msg.sender] = TOTAL_CRUMBS; // 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); if ( sender != owner() && sender != oracleWallet && sender != address(this) && recipient != owner() && recipient != oracleWallet && recipient != address(this) ) { require(amount <= ((_totalSupply * 25) / 1000)); } 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 {} }
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.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.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; }
// 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) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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); } }
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.20; /** * @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. * * @custom:stateless */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "lib/forge-std:ds-test/=lib/forge-std/lib/ds-test/src/", "lib/openzeppelin-contracts:@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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
60a060405269152d02c7e14af68000006001819055600280546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d179055620186a0906200004d90600019620005a4565b6200005b90600019620005d1565b620000679190620005e7565b62000074906019620005fe565b600655600a805465ffffffffffff1916650101010101011781556000600b819055600c919091556005600d556064600e556041600f819055603c6010556011556012819055601481905560155560408051808201909152601781527f56616e67756172642035303020496e6465782046756e640000000000000000006020820152601690620001049082620006bd565b506040805180820190915260058152640ac8c9282b60db1b6020820152601790620001309082620006bd565b506018805460ff191660011790553480156200014b57600080fd5b5060405162002c9e38038062002c9e8339810160408190526200016e9162000789565b33806200019557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620001a081620004fd565b50600254600380546001600160a01b0319166001600160a01b0390921691821790556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa15801562000201573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000227919062000789565b6001600160a01b031663c9c6539630600360009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200028a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b0919062000789565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620002fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000324919062000789565b6001600160a01b03818116608052306000818152601a6020818152604080842060038054881686529083528185206000199081905533808752838720829055948452828620915488168652908352818520819055600780546001600160a01b0319168b891617815560146008819055600955600f601355938552601b909252808420805460ff19908116600190811790925595855281852080548716821790556002548716855281852080548716821790559254909516835293822080548416821790557f584f46c60af19681376031579adb04a2416e54ee5505351c2a8435e3766026ea805484168217905561dead9091527f6790d4910a095e0e04c8daa388834616a295bac3f59038957b6d0b93a2d21684805490921617905569152d02c7e14af680000060048190559192506200047b919062000466908290620005a4565b6200047490600019620005d1565b906200054d565b6005556200049669152d02c7e14af6800000600019620005a4565b620004a490600019620005d1565b33600081815260196020526040812092909255907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef620004e48362000564565b60405190815260200160405180910390a35050620007bb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006200055b8284620005e7565b90505b92915050565b6005546001600160a01b03821660009081526019602052604081205490916200055e91906200054d565b634e487b7160e01b600052601260045260246000fd5b600082620005b657620005b66200058e565b500690565b634e487b7160e01b600052601160045260246000fd5b818103818111156200055e576200055e620005bb565b600082620005f957620005f96200058e565b500490565b80820281158282048414176200055e576200055e620005bb565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200064357607f821691505b6020821081036200066457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620006b857600081815260208120601f850160051c81016020861015620006935750805b601f850160051c820191505b81811015620006b4578281556001016200069f565b5050505b505050565b81516001600160401b03811115620006d957620006d962000618565b620006f181620006ea84546200062e565b846200066a565b602080601f831160018114620007295760008415620007105750858301515b600019600386901b1c1916600185901b178555620006b4565b600085815260208120601f198616915b828110156200075a5788860151825594840194600190910190840162000739565b5085821015620007795787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200079c57600080fd5b81516001600160a01b0381168114620007b457600080fd5b9392505050565b6080516124ab620007f36000396000818161086701528181611920015281816119c601528181611f160152611f8f01526124ab6000f3fe60806040526004361061036f5760003560e01c806368b3f9bb116101c6578063b5680cb5116100f7578063d85a282811610095578063df20fd491161006f578063df20fd49146109c4578063f2fde38b146109e4578063fcc3a28914610a04578063ffb3a6be14610a1a57600080fd5b8063d85a282814610954578063dadd070914610969578063dd62ed3e1461097e57600080fd5b8063c21b7255116100d1578063c21b7255146108de578063c6005893146108fe578063d41c435e1461091e578063d65fcf651461093457600080fd5b8063b5680cb51461089e578063baae8d26146108b3578063bc1b392d146108c957600080fd5b806379b004c911610164578063a457c2d71161013e578063a457c2d714610815578063a9059cbb14610835578063aed8d6ba14610855578063af14052c1461088957600080fd5b806379b004c9146107c25780638da5cb5b146107e257806395d89b411461080057600080fd5b80636ac5eeee116101a05780636ac5eeee146107575780636ddd17131461076c57806370a082311461078d578063715018a6146107ad57600080fd5b806368b3f9bb1461070857806368ce9c7b146107225780636a07105f1461074257600080fd5b806339071c9e116102a0578063407d51431161023e5780634f00beaf116102185780634f00beaf1461068c578063530343f4146106ae578063571ac8b0146106c85780636135af2a146106e857600080fd5b8063407d51431461061e57806349810c52146106345780634dcbce6a1461065457600080fd5b80633af32abf1161027a5780633af32abf146105a45780633ba0990c146105d45780633d51ed55146105f25780633eaaf86b1461060857600080fd5b806339071c9e1461054b578063395093511461056e5780633ac0b1ee1461058e57600080fd5b806323b872dd1161030d5780632ef7031c116102e75780632ef7031c146104d3578063313ce56714610500578063329ceacd1461051c578063364333f41461053657600080fd5b806323b872dd1461045b57806325ec340b1461047b57806328834961146104b357600080fd5b80631693722c116103495780631693722c146103f857806316ce74eb1461040d578063180606ac1461042257806318160ddd1461044657600080fd5b806306fdde031461037b578063095ea7b3146103a65780630f58cfa7146103d657600080fd5b3661037657005b600080fd5b34801561038757600080fd5b50610390610a39565b60405161039d91906120da565b60405180910390f35b3480156103b257600080fd5b506103c66103c136600461213d565b610acb565b604051901515815260200161039d565b3480156103e257600080fd5b506103f66103f136600461217e565b610b38565b005b34801561040457600080fd5b506103f6610b8d565b34801561041957600080fd5b506103f6610bd1565b34801561042e57600080fd5b5061043860095481565b60405190815260200161039d565b34801561045257600080fd5b50600454610438565b34801561046757600080fd5b506103c6610476366004612199565b610bf3565b34801561048757600080fd5b5060025461049b906001600160a01b031681565b6040516001600160a01b03909116815260200161039d565b3480156104bf57600080fd5b506103f66104ce3660046121da565b610cf9565b3480156104df57600080fd5b506104386104ee366004612206565b60196020526000908152604090205481565b34801561050c57600080fd5b506040516012815260200161039d565b34801561052857600080fd5b5060145460155414156103c6565b34801561054257600080fd5b506103f6610d31565b34801561055757600080fd5b50600a546103c69065010000000000900460ff1681565b34801561057a57600080fd5b506103c661058936600461213d565b610d91565b34801561059a57600080fd5b5061043860155481565b3480156105b057600080fd5b506103c66105bf366004612206565b601b6020526000908152604090205460ff1681565b3480156105e057600080fd5b5061043869152d02c7e14af680000081565b3480156105fe57600080fd5b5061043860085481565b34801561061457600080fd5b5061043860045481565b34801561062a57600080fd5b5061043860135481565b34801561064057600080fd5b50600a546103c69062010000900460ff1681565b34801561066057600080fd5b5061043861066f366004612223565b601a60209081526000928352604080842090915290825290205481565b34801561069857600080fd5b50600a546103c690640100000000900460ff1681565b3480156106ba57600080fd5b506018546103c69060ff1681565b3480156106d457600080fd5b506103c66106e3366004612206565b610e16565b3480156106f457600080fd5b506103f661070336600461225c565b610e24565b34801561071457600080fd5b50600a546103c69060ff1681565b34801561072e57600080fd5b506103f661073d3660046121da565b610e57565b34801561074e57600080fd5b506103f6610e8f565b34801561076357600080fd5b506103f6610ef6565b34801561077857600080fd5b50600a546103c6906301000000900460ff1681565b34801561079957600080fd5b506104386107a8366004612206565b610f8c565b3480156107b957600080fd5b506103f6610fb4565b3480156107ce57600080fd5b506103f66107dd36600461217e565b610fc8565b3480156107ee57600080fd5b506000546001600160a01b031661049b565b34801561080c57600080fd5b50610390611005565b34801561082157600080fd5b506103c661083036600461213d565b611014565b34801561084157600080fd5b506103c661085036600461213d565b6110fb565b34801561086157600080fd5b5061049b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561089557600080fd5b506103f661110f565b3480156108aa57600080fd5b506103f66114f1565b3480156108bf57600080fd5b5061043860055481565b3480156108d557600080fd5b50610438600081565b3480156108ea57600080fd5b506103f66108f9366004612291565b61152f565b34801561090a57600080fd5b5060035461049b906001600160a01b031681565b34801561092a57600080fd5b5061043860015481565b34801561094057600080fd5b506103f661094f3660046122aa565b61153c565b34801561096057600080fd5b506103f661158a565b34801561097557600080fd5b506104386115a5565b34801561098a57600080fd5b50610438610999366004612223565b6001600160a01b039182166000908152601a6020908152604080832093909416825291909152205490565b3480156109d057600080fd5b506103f66109df3660046122c6565b6115ca565b3480156109f057600080fd5b506103f66109ff366004612206565b61162b565b348015610a1057600080fd5b5061043860145481565b348015610a2657600080fd5b50600a546103c690610100900460ff1681565b606060168054610a48906122e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a74906122e2565b8015610ac15780601f10610a9657610100808354040283529160200191610ac1565b820191906000526020600020905b815481529060010190602001808311610aa457829003601f168201915b5050505050905090565b336000818152601a602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610b269086815260200190565b60405180910390a35060015b92915050565b6007546001600160a01b03163314610b6b5760405162461bcd60e51b8152600401610b629061231c565b60405180910390fd5b600a8054911515650100000000000265ff000000000019909216919091179055565b6007546001600160a01b03163314610bb75760405162461bcd60e51b8152600401610b629061231c565b600a805464ff000000001916905560016008819055600955565b610bd9611666565b600a805464ff000000001916905560036008819055600955565b6001600160a01b0383166000908152601a6020908152604080832033845290915281205460001914610ce6576001600160a01b0384166000908152601a60209081526040808320338452909152902054821115610c925760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b62565b6001600160a01b0384166000908152601a60209081526040808320338452909152902054610cc1908390612356565b6001600160a01b0385166000908152601a602090815260408083203384529091529020555b610cf1848484611693565b949350505050565b6007546001600160a01b03163314610d235760405162461bcd60e51b8152600401610b629061231c565b600d92909255600f55601155565b610d39611666565b604051600090339047908381818185875af1925050503d8060008114610d7b576040519150601f19603f3d011682016040523d82523d6000602084013e610d80565b606091505b5050905080610d8e57600080fd5b50565b336000908152601a602090815260408083206001600160a01b0386168452909152812054610dbf9083611d4b565b336000818152601a602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610b26565b6000610b3282600019610acb565b610e2c611666565b6001600160a01b03919091166000908152601b60205260409020805460ff1916911515919091179055565b6007546001600160a01b03163314610e815760405162461bcd60e51b8152600401610b629061231c565b600c92909255600e55601055565b610e97611666565b600a5462010000900460ff1615610ee15760405162461bcd60e51b815260206004820152600e60248201526d151bdad95b881b185d5b98da195960921b6044820152606401610b62565b600a805463ffff000019166301010000179055565b600a805466ff0000000000001916600160301b1790556000610f1730610f8c565b905080600003610f275750610f7a565b610f496014610f43600554600654611d5790919063ffffffff16565b90611d63565b811115610f6f57610f6c6014610f43600554600654611d5790919063ffffffff16565b90505b610f7881611d6f565b505b600a805466ff00000000000019169055565b6005546001600160a01b0382166000908152601960205260408120549091610b329190611d57565b610fbc611666565b610fc66000611eb6565b565b6007546001600160a01b03163314610ff25760405162461bcd60e51b8152600401610b629061231c565b600a805460ff1916911515919091179055565b606060178054610a48906122e2565b336000908152601a602090815260408083206001600160a01b038616845290915281205480831061106857336000908152601a602090815260408083206001600160a01b0388168452909152812055611097565b6110728184611f06565b336000908152601a602090815260408083206001600160a01b03891684529091529020555b336000818152601a602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b6000611108338484611693565b9392505050565b6007546001600160a01b031633146111395760405162461bcd60e51b8152600401610b629061231c565b60045460145460155442929160009182911015611167576014546015546111609190612356565b91506111fa565b601554601454111561118e576015546014546111839190612356565b9150600190506111fa565b60408051818152601e818301527f73616d6520616d6f756e742c206e6f206e65656420746f20726562617365000060608201526000602082015290517fdd970dd9b5bfe707922155b058a407655cb18288b807e2216442bca8ad83d6b59181900360800190a150505050565b60185460ff1661120657155b600b546112169062015180612369565b841061122757600b84905560018390555b801561132e57600a54610100900460ff16156112db5760185460ff16156112975761126b6103e8611265600e54600154611d6390919063ffffffff16565b90611d57565b8211156112925761128f6103e8611265600e54600154611d6390919063ffffffff16565b91505b6112db565b6112b46103e8611265601054600154611d6390919063ffffffff16565b8211156112db576112d86103e8611265601054600154611d6390919063ffffffff16565b91505b600a5460ff1680156113065750600c546001546112f791611d63565b6004546113049084611d4b565b115b1561132157600c5460015461131a91611d63565b9250611425565b60045461131a9083611d4b565b600a54610100900460ff16156113d65760185460ff1615611392576113666103e8611265600f54600154611d6390919063ffffffff16565b82111561138d5761138a6103e8611265600f54600154611d6390919063ffffffff16565b91505b6113d6565b6113af6103e8611265601154600154611d6390919063ffffffff16565b8211156113d6576113d36103e8611265601154600154611d6390919063ffffffff16565b91505b600a5460ff1680156114015750600d546001546113f291611d57565b6004546113ff9084611f06565b105b1561141557600d5460015461131a91611d57565b6004546114229083611f06565b92505b6001600160801b0383111561143f576001600160801b0392505b670de0b6b3a764000083101561145b57670de0b6b3a764000092505b60048390556114868361147a69152d02c7e14af6800000600019612392565b61126590600019612356565b60055560006015819055601455600a5465010000000000900460ff16156114af576114af611f12565b837f11c6bf55864ff83827df712625d7a80e5583eef0264921025e7cd22003a215116004546040516114e391815260200190565b60405180910390a250505050565b6007546001600160a01b0316331461151b5760405162461bcd60e51b8152600401610b629061231c565b6018805460ff19811660ff90911615179055565b611537611666565b601355565b6007546001600160a01b031633146115665760405162461bcd60e51b8152600401610b629061231c565b600a805461ffff191692151561ff0019169290921761010091151591909102179055565b611592611666565b610d8e30336115a030610f8c565b611693565b6115bb69152d02c7e14af6800000600019612392565b6115c790600019612356565b81565b6115d2611666565b600a805463ff0000001916630100000084151502179055620186a08161160469152d02c7e14af6800000600019612392565b61161090600019612356565b61161a91906123a6565b61162491906123bd565b6006555050565b611633611666565b6001600160a01b03811661165d57604051631e4fbdf760e01b815260006004820152602401610b62565b610d8e81611eb6565b6000546001600160a01b03163314610fc65760405163118cdaa760e01b8152336004820152602401610b62565b60008082116116f65760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610b62565b61deac196001600160a01b0385160161174d5760405162461bcd60e51b8152602060048201526019602482015278506c6561736520757365206120676f6f64206164647265737360381b6044820152606401610b62565b6001600160a01b03841661179f5760405162461bcd60e51b8152602060048201526019602482015278506c6561736520757365206120676f6f64206164647265737360381b6044820152606401610b62565b60006117b660055484611d6390919063ffffffff16565b6001600160a01b0386166000908152601960205260409020549091508111156118185760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742042616c616e636560601b6044820152606401610b62565b600a54600160301b900460ff1615801561184b57506001600160a01b0385166000908152601b602052604090205460ff16155b801561187057506001600160a01b0384166000908152601b602052604090205460ff16155b15611b3557600a5462010000900460ff166118c05760405162461bcd60e51b815260206004820152601060248201526f54726164696e67206e6f74206c69766560801b6044820152606401610b62565b6118c984611f8b565b1561191c57306001600160a01b0316636ac5eeee6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561190957600080fd5b505af192505050801561191a575060015b505b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b0316036119c4576040805160018152602081018690527fda1382e9d46d51bc7bb1ca2f7b95af327f7106f5d7d5df69d2f3de2644165bfc910160405180910390a183601460008282546119a39190612369565b90915550506008546119bd90606490611265908590611d63565b9050611a66565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b031603611a66576040805160008152602081018690527fda1382e9d46d51bc7bb1ca2f7b95af327f7106f5d7d5df69d2f3de2644165bfc910160405180910390a18360156000828254611a499190612369565b9091555050600954611a6390606490611265908590611d63565b90505b8015611b33576001600160a01b03861660009081526019602052604081208054839290611a94908490612356565b90915550503060009081526019602052604081208054839290611ab8908490612369565b909155505060055430906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611afa908590611d57565b60405190815260200160405180910390a3611b158183612356565b600a54909250640100000000900460ff1615611b3357611b33612014565b505b6001600160a01b038516600090815260196020526040902054611b589082611f06565b6001600160a01b038087166000908152601960205260408082209390935590861681522054611b879082611d4b565b6001600160a01b038516600090815260196020526040902055611bb26000546001600160a01b031690565b6001600160a01b0316856001600160a01b031614158015611be157506007546001600160a01b03868116911614155b8015611bf657506001600160a01b0385163014155b8015611c1057506000546001600160a01b03858116911614155b8015611c2a57506007546001600160a01b03858116911614155b8015611c3f57506001600160a01b0384163014155b15611c6c576103e86004546019611c5691906123a6565b611c6091906123bd565b831115611c6c57600080fd5b7fdd970dd9b5bfe707922155b058a407655cb18288b807e2216442bca8ad83d6b5611ca260055483611d5790919063ffffffff16565b604051611cdd9190604080825260119082015270105b5bdd5b9d081d1c985b9cd9995c9959607a1b6060820152602081019190915260800190565b60405180910390a1836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef611d2f60055485611d5790919063ffffffff16565b60405190815260200160405180910390a3506001949350505050565b60006111088284612369565b600061110882846123bd565b600061110882846123a6565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611da457611da46123d1565b6001600160a01b03928316602091820292909201810191909152600354604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2191906123e7565b81600181518110611e3457611e346123d1565b6001600160a01b03928316602091820292909201015260035460075460405163791ac94760e01b81529183169263791ac94792611e809287926000928892909116904290600401612404565b600060405180830381600087803b158015611e9a57600080fd5b505af1158015611eae573d6000803e3d6000fd5b505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006111088284612356565b60007f00000000000000000000000000000000000000000000000000000000000000009050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611f7257600080fd5b505af1925050508015611f83575060015b15610d8e5750565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316148015611fd85750600a54600160301b900460ff16155b8015611fed5750600a546301000000900460ff165b8015610b32575060055460065461200391611d57565b61200c30610f8c565b101592915050565b60036009541115612038576001601260008282546120329190612369565b90915550505b6013546012540361204f57600a6008819055600955565b60135461205d906002611d63565b601254036120715760056008819055600955565b60135461207f906003611d63565b6012541015801561209257506003600954115b15610fc65760036008819055600955600a805464ff00000000191690556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a1565b600060208083528351808285015260005b81811015612107578581018301518582016040015282016120eb565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d8e57600080fd5b6000806040838503121561215057600080fd5b823561215b81612128565b946020939093013593505050565b8035801515811461217957600080fd5b919050565b60006020828403121561219057600080fd5b61110882612169565b6000806000606084860312156121ae57600080fd5b83356121b981612128565b925060208401356121c981612128565b929592945050506040919091013590565b6000806000606084860312156121ef57600080fd5b505081359360208301359350604090920135919050565b60006020828403121561221857600080fd5b813561110881612128565b6000806040838503121561223657600080fd5b823561224181612128565b9150602083013561225181612128565b809150509250929050565b6000806040838503121561226f57600080fd5b823561227a81612128565b915061228860208401612169565b90509250929050565b6000602082840312156122a357600080fd5b5035919050565b600080604083850312156122bd57600080fd5b61227a83612169565b600080604083850312156122d957600080fd5b61215b83612169565b600181811c908216806122f657607f821691505b60208210810361231657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a90820152694e6f74206f7261636c6560b01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610b3257610b32612340565b80820180821115610b3257610b32612340565b634e487b7160e01b600052601260045260246000fd5b6000826123a1576123a161237c565b500690565b8082028115828204841417610b3257610b32612340565b6000826123cc576123cc61237c565b500490565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156123f957600080fd5b815161110881612128565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156124545784516001600160a01b03168352938301939183019160010161242f565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212203fe74bd8707959a8417ae6074f24a92713d27936239d11f628dbc2f05e9dbe7964736f6c63430008140033000000000000000000000000c1de6834d43445ffe8ff3a8ef18856b306af82e4
Deployed Bytecode
0x60806040526004361061036f5760003560e01c806368b3f9bb116101c6578063b5680cb5116100f7578063d85a282811610095578063df20fd491161006f578063df20fd49146109c4578063f2fde38b146109e4578063fcc3a28914610a04578063ffb3a6be14610a1a57600080fd5b8063d85a282814610954578063dadd070914610969578063dd62ed3e1461097e57600080fd5b8063c21b7255116100d1578063c21b7255146108de578063c6005893146108fe578063d41c435e1461091e578063d65fcf651461093457600080fd5b8063b5680cb51461089e578063baae8d26146108b3578063bc1b392d146108c957600080fd5b806379b004c911610164578063a457c2d71161013e578063a457c2d714610815578063a9059cbb14610835578063aed8d6ba14610855578063af14052c1461088957600080fd5b806379b004c9146107c25780638da5cb5b146107e257806395d89b411461080057600080fd5b80636ac5eeee116101a05780636ac5eeee146107575780636ddd17131461076c57806370a082311461078d578063715018a6146107ad57600080fd5b806368b3f9bb1461070857806368ce9c7b146107225780636a07105f1461074257600080fd5b806339071c9e116102a0578063407d51431161023e5780634f00beaf116102185780634f00beaf1461068c578063530343f4146106ae578063571ac8b0146106c85780636135af2a146106e857600080fd5b8063407d51431461061e57806349810c52146106345780634dcbce6a1461065457600080fd5b80633af32abf1161027a5780633af32abf146105a45780633ba0990c146105d45780633d51ed55146105f25780633eaaf86b1461060857600080fd5b806339071c9e1461054b578063395093511461056e5780633ac0b1ee1461058e57600080fd5b806323b872dd1161030d5780632ef7031c116102e75780632ef7031c146104d3578063313ce56714610500578063329ceacd1461051c578063364333f41461053657600080fd5b806323b872dd1461045b57806325ec340b1461047b57806328834961146104b357600080fd5b80631693722c116103495780631693722c146103f857806316ce74eb1461040d578063180606ac1461042257806318160ddd1461044657600080fd5b806306fdde031461037b578063095ea7b3146103a65780630f58cfa7146103d657600080fd5b3661037657005b600080fd5b34801561038757600080fd5b50610390610a39565b60405161039d91906120da565b60405180910390f35b3480156103b257600080fd5b506103c66103c136600461213d565b610acb565b604051901515815260200161039d565b3480156103e257600080fd5b506103f66103f136600461217e565b610b38565b005b34801561040457600080fd5b506103f6610b8d565b34801561041957600080fd5b506103f6610bd1565b34801561042e57600080fd5b5061043860095481565b60405190815260200161039d565b34801561045257600080fd5b50600454610438565b34801561046757600080fd5b506103c6610476366004612199565b610bf3565b34801561048757600080fd5b5060025461049b906001600160a01b031681565b6040516001600160a01b03909116815260200161039d565b3480156104bf57600080fd5b506103f66104ce3660046121da565b610cf9565b3480156104df57600080fd5b506104386104ee366004612206565b60196020526000908152604090205481565b34801561050c57600080fd5b506040516012815260200161039d565b34801561052857600080fd5b5060145460155414156103c6565b34801561054257600080fd5b506103f6610d31565b34801561055757600080fd5b50600a546103c69065010000000000900460ff1681565b34801561057a57600080fd5b506103c661058936600461213d565b610d91565b34801561059a57600080fd5b5061043860155481565b3480156105b057600080fd5b506103c66105bf366004612206565b601b6020526000908152604090205460ff1681565b3480156105e057600080fd5b5061043869152d02c7e14af680000081565b3480156105fe57600080fd5b5061043860085481565b34801561061457600080fd5b5061043860045481565b34801561062a57600080fd5b5061043860135481565b34801561064057600080fd5b50600a546103c69062010000900460ff1681565b34801561066057600080fd5b5061043861066f366004612223565b601a60209081526000928352604080842090915290825290205481565b34801561069857600080fd5b50600a546103c690640100000000900460ff1681565b3480156106ba57600080fd5b506018546103c69060ff1681565b3480156106d457600080fd5b506103c66106e3366004612206565b610e16565b3480156106f457600080fd5b506103f661070336600461225c565b610e24565b34801561071457600080fd5b50600a546103c69060ff1681565b34801561072e57600080fd5b506103f661073d3660046121da565b610e57565b34801561074e57600080fd5b506103f6610e8f565b34801561076357600080fd5b506103f6610ef6565b34801561077857600080fd5b50600a546103c6906301000000900460ff1681565b34801561079957600080fd5b506104386107a8366004612206565b610f8c565b3480156107b957600080fd5b506103f6610fb4565b3480156107ce57600080fd5b506103f66107dd36600461217e565b610fc8565b3480156107ee57600080fd5b506000546001600160a01b031661049b565b34801561080c57600080fd5b50610390611005565b34801561082157600080fd5b506103c661083036600461213d565b611014565b34801561084157600080fd5b506103c661085036600461213d565b6110fb565b34801561086157600080fd5b5061049b7f0000000000000000000000000b2aeacdd91e94a22ce02055d1eb15a04254133a81565b34801561089557600080fd5b506103f661110f565b3480156108aa57600080fd5b506103f66114f1565b3480156108bf57600080fd5b5061043860055481565b3480156108d557600080fd5b50610438600081565b3480156108ea57600080fd5b506103f66108f9366004612291565b61152f565b34801561090a57600080fd5b5060035461049b906001600160a01b031681565b34801561092a57600080fd5b5061043860015481565b34801561094057600080fd5b506103f661094f3660046122aa565b61153c565b34801561096057600080fd5b506103f661158a565b34801561097557600080fd5b506104386115a5565b34801561098a57600080fd5b50610438610999366004612223565b6001600160a01b039182166000908152601a6020908152604080832093909416825291909152205490565b3480156109d057600080fd5b506103f66109df3660046122c6565b6115ca565b3480156109f057600080fd5b506103f66109ff366004612206565b61162b565b348015610a1057600080fd5b5061043860145481565b348015610a2657600080fd5b50600a546103c690610100900460ff1681565b606060168054610a48906122e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a74906122e2565b8015610ac15780601f10610a9657610100808354040283529160200191610ac1565b820191906000526020600020905b815481529060010190602001808311610aa457829003601f168201915b5050505050905090565b336000818152601a602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610b269086815260200190565b60405180910390a35060015b92915050565b6007546001600160a01b03163314610b6b5760405162461bcd60e51b8152600401610b629061231c565b60405180910390fd5b600a8054911515650100000000000265ff000000000019909216919091179055565b6007546001600160a01b03163314610bb75760405162461bcd60e51b8152600401610b629061231c565b600a805464ff000000001916905560016008819055600955565b610bd9611666565b600a805464ff000000001916905560036008819055600955565b6001600160a01b0383166000908152601a6020908152604080832033845290915281205460001914610ce6576001600160a01b0384166000908152601a60209081526040808320338452909152902054821115610c925760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b62565b6001600160a01b0384166000908152601a60209081526040808320338452909152902054610cc1908390612356565b6001600160a01b0385166000908152601a602090815260408083203384529091529020555b610cf1848484611693565b949350505050565b6007546001600160a01b03163314610d235760405162461bcd60e51b8152600401610b629061231c565b600d92909255600f55601155565b610d39611666565b604051600090339047908381818185875af1925050503d8060008114610d7b576040519150601f19603f3d011682016040523d82523d6000602084013e610d80565b606091505b5050905080610d8e57600080fd5b50565b336000908152601a602090815260408083206001600160a01b0386168452909152812054610dbf9083611d4b565b336000818152601a602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610b26565b6000610b3282600019610acb565b610e2c611666565b6001600160a01b03919091166000908152601b60205260409020805460ff1916911515919091179055565b6007546001600160a01b03163314610e815760405162461bcd60e51b8152600401610b629061231c565b600c92909255600e55601055565b610e97611666565b600a5462010000900460ff1615610ee15760405162461bcd60e51b815260206004820152600e60248201526d151bdad95b881b185d5b98da195960921b6044820152606401610b62565b600a805463ffff000019166301010000179055565b600a805466ff0000000000001916600160301b1790556000610f1730610f8c565b905080600003610f275750610f7a565b610f496014610f43600554600654611d5790919063ffffffff16565b90611d63565b811115610f6f57610f6c6014610f43600554600654611d5790919063ffffffff16565b90505b610f7881611d6f565b505b600a805466ff00000000000019169055565b6005546001600160a01b0382166000908152601960205260408120549091610b329190611d57565b610fbc611666565b610fc66000611eb6565b565b6007546001600160a01b03163314610ff25760405162461bcd60e51b8152600401610b629061231c565b600a805460ff1916911515919091179055565b606060178054610a48906122e2565b336000908152601a602090815260408083206001600160a01b038616845290915281205480831061106857336000908152601a602090815260408083206001600160a01b0388168452909152812055611097565b6110728184611f06565b336000908152601a602090815260408083206001600160a01b03891684529091529020555b336000818152601a602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b6000611108338484611693565b9392505050565b6007546001600160a01b031633146111395760405162461bcd60e51b8152600401610b629061231c565b60045460145460155442929160009182911015611167576014546015546111609190612356565b91506111fa565b601554601454111561118e576015546014546111839190612356565b9150600190506111fa565b60408051818152601e818301527f73616d6520616d6f756e742c206e6f206e65656420746f20726562617365000060608201526000602082015290517fdd970dd9b5bfe707922155b058a407655cb18288b807e2216442bca8ad83d6b59181900360800190a150505050565b60185460ff1661120657155b600b546112169062015180612369565b841061122757600b84905560018390555b801561132e57600a54610100900460ff16156112db5760185460ff16156112975761126b6103e8611265600e54600154611d6390919063ffffffff16565b90611d57565b8211156112925761128f6103e8611265600e54600154611d6390919063ffffffff16565b91505b6112db565b6112b46103e8611265601054600154611d6390919063ffffffff16565b8211156112db576112d86103e8611265601054600154611d6390919063ffffffff16565b91505b600a5460ff1680156113065750600c546001546112f791611d63565b6004546113049084611d4b565b115b1561132157600c5460015461131a91611d63565b9250611425565b60045461131a9083611d4b565b600a54610100900460ff16156113d65760185460ff1615611392576113666103e8611265600f54600154611d6390919063ffffffff16565b82111561138d5761138a6103e8611265600f54600154611d6390919063ffffffff16565b91505b6113d6565b6113af6103e8611265601154600154611d6390919063ffffffff16565b8211156113d6576113d36103e8611265601154600154611d6390919063ffffffff16565b91505b600a5460ff1680156114015750600d546001546113f291611d57565b6004546113ff9084611f06565b105b1561141557600d5460015461131a91611d57565b6004546114229083611f06565b92505b6001600160801b0383111561143f576001600160801b0392505b670de0b6b3a764000083101561145b57670de0b6b3a764000092505b60048390556114868361147a69152d02c7e14af6800000600019612392565b61126590600019612356565b60055560006015819055601455600a5465010000000000900460ff16156114af576114af611f12565b837f11c6bf55864ff83827df712625d7a80e5583eef0264921025e7cd22003a215116004546040516114e391815260200190565b60405180910390a250505050565b6007546001600160a01b0316331461151b5760405162461bcd60e51b8152600401610b629061231c565b6018805460ff19811660ff90911615179055565b611537611666565b601355565b6007546001600160a01b031633146115665760405162461bcd60e51b8152600401610b629061231c565b600a805461ffff191692151561ff0019169290921761010091151591909102179055565b611592611666565b610d8e30336115a030610f8c565b611693565b6115bb69152d02c7e14af6800000600019612392565b6115c790600019612356565b81565b6115d2611666565b600a805463ff0000001916630100000084151502179055620186a08161160469152d02c7e14af6800000600019612392565b61161090600019612356565b61161a91906123a6565b61162491906123bd565b6006555050565b611633611666565b6001600160a01b03811661165d57604051631e4fbdf760e01b815260006004820152602401610b62565b610d8e81611eb6565b6000546001600160a01b03163314610fc65760405163118cdaa760e01b8152336004820152602401610b62565b60008082116116f65760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610b62565b61deac196001600160a01b0385160161174d5760405162461bcd60e51b8152602060048201526019602482015278506c6561736520757365206120676f6f64206164647265737360381b6044820152606401610b62565b6001600160a01b03841661179f5760405162461bcd60e51b8152602060048201526019602482015278506c6561736520757365206120676f6f64206164647265737360381b6044820152606401610b62565b60006117b660055484611d6390919063ffffffff16565b6001600160a01b0386166000908152601960205260409020549091508111156118185760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742042616c616e636560601b6044820152606401610b62565b600a54600160301b900460ff1615801561184b57506001600160a01b0385166000908152601b602052604090205460ff16155b801561187057506001600160a01b0384166000908152601b602052604090205460ff16155b15611b3557600a5462010000900460ff166118c05760405162461bcd60e51b815260206004820152601060248201526f54726164696e67206e6f74206c69766560801b6044820152606401610b62565b6118c984611f8b565b1561191c57306001600160a01b0316636ac5eeee6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561190957600080fd5b505af192505050801561191a575060015b505b60007f0000000000000000000000000b2aeacdd91e94a22ce02055d1eb15a04254133a6001600160a01b0316866001600160a01b0316036119c4576040805160018152602081018690527fda1382e9d46d51bc7bb1ca2f7b95af327f7106f5d7d5df69d2f3de2644165bfc910160405180910390a183601460008282546119a39190612369565b90915550506008546119bd90606490611265908590611d63565b9050611a66565b7f0000000000000000000000000b2aeacdd91e94a22ce02055d1eb15a04254133a6001600160a01b0316856001600160a01b031603611a66576040805160008152602081018690527fda1382e9d46d51bc7bb1ca2f7b95af327f7106f5d7d5df69d2f3de2644165bfc910160405180910390a18360156000828254611a499190612369565b9091555050600954611a6390606490611265908590611d63565b90505b8015611b33576001600160a01b03861660009081526019602052604081208054839290611a94908490612356565b90915550503060009081526019602052604081208054839290611ab8908490612369565b909155505060055430906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611afa908590611d57565b60405190815260200160405180910390a3611b158183612356565b600a54909250640100000000900460ff1615611b3357611b33612014565b505b6001600160a01b038516600090815260196020526040902054611b589082611f06565b6001600160a01b038087166000908152601960205260408082209390935590861681522054611b879082611d4b565b6001600160a01b038516600090815260196020526040902055611bb26000546001600160a01b031690565b6001600160a01b0316856001600160a01b031614158015611be157506007546001600160a01b03868116911614155b8015611bf657506001600160a01b0385163014155b8015611c1057506000546001600160a01b03858116911614155b8015611c2a57506007546001600160a01b03858116911614155b8015611c3f57506001600160a01b0384163014155b15611c6c576103e86004546019611c5691906123a6565b611c6091906123bd565b831115611c6c57600080fd5b7fdd970dd9b5bfe707922155b058a407655cb18288b807e2216442bca8ad83d6b5611ca260055483611d5790919063ffffffff16565b604051611cdd9190604080825260119082015270105b5bdd5b9d081d1c985b9cd9995c9959607a1b6060820152602081019190915260800190565b60405180910390a1836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef611d2f60055485611d5790919063ffffffff16565b60405190815260200160405180910390a3506001949350505050565b60006111088284612369565b600061110882846123bd565b600061110882846123a6565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611da457611da46123d1565b6001600160a01b03928316602091820292909201810191909152600354604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2191906123e7565b81600181518110611e3457611e346123d1565b6001600160a01b03928316602091820292909201015260035460075460405163791ac94760e01b81529183169263791ac94792611e809287926000928892909116904290600401612404565b600060405180830381600087803b158015611e9a57600080fd5b505af1158015611eae573d6000803e3d6000fd5b505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006111088284612356565b60007f0000000000000000000000000b2aeacdd91e94a22ce02055d1eb15a04254133a9050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611f7257600080fd5b505af1925050508015611f83575060015b15610d8e5750565b60007f0000000000000000000000000b2aeacdd91e94a22ce02055d1eb15a04254133a6001600160a01b0316826001600160a01b0316148015611fd85750600a54600160301b900460ff16155b8015611fed5750600a546301000000900460ff165b8015610b32575060055460065461200391611d57565b61200c30610f8c565b101592915050565b60036009541115612038576001601260008282546120329190612369565b90915550505b6013546012540361204f57600a6008819055600955565b60135461205d906002611d63565b601254036120715760056008819055600955565b60135461207f906003611d63565b6012541015801561209257506003600954115b15610fc65760036008819055600955600a805464ff00000000191690556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a1565b600060208083528351808285015260005b81811015612107578581018301518582016040015282016120eb565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d8e57600080fd5b6000806040838503121561215057600080fd5b823561215b81612128565b946020939093013593505050565b8035801515811461217957600080fd5b919050565b60006020828403121561219057600080fd5b61110882612169565b6000806000606084860312156121ae57600080fd5b83356121b981612128565b925060208401356121c981612128565b929592945050506040919091013590565b6000806000606084860312156121ef57600080fd5b505081359360208301359350604090920135919050565b60006020828403121561221857600080fd5b813561110881612128565b6000806040838503121561223657600080fd5b823561224181612128565b9150602083013561225181612128565b809150509250929050565b6000806040838503121561226f57600080fd5b823561227a81612128565b915061228860208401612169565b90509250929050565b6000602082840312156122a357600080fd5b5035919050565b600080604083850312156122bd57600080fd5b61227a83612169565b600080604083850312156122d957600080fd5b61215b83612169565b600181811c908216806122f657607f821691505b60208210810361231657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a90820152694e6f74206f7261636c6560b01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610b3257610b32612340565b80820180821115610b3257610b32612340565b634e487b7160e01b600052601260045260246000fd5b6000826123a1576123a161237c565b500690565b8082028115828204841417610b3257610b32612340565b6000826123cc576123cc61237c565b500490565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156123f957600080fd5b815161110881612128565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156124545784516001600160a01b03168352938301939183019160010161242f565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212203fe74bd8707959a8417ae6074f24a92713d27936239d11f628dbc2f05e9dbe7964736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c1de6834d43445ffe8ff3a8ef18856b306af82e4
-----Decoded View---------------
Arg [0] : _oracle (address): 0xc1DE6834d43445Ffe8Ff3A8eF18856B306af82E4
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c1de6834d43445ffe8ff3a8ef18856b306af82e4
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.