ERC-20
Overview
Max Total Supply
100,000,000,000,000 VTERRAFORM
Holders
92
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
11,964,482.276103500761035007 VTERRAFORMValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
VTERRAFORM
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-08 */ //SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; /** * @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; } } 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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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); } } 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 substraction 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; } } } interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } ////// src/IUniswapV2Factory.sol /* pragma solidity 0.8.10; */ /* pragma experimental ABIEncoderV2; */ interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); 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(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } ////// src/IUniswapV2Pair.sol /* pragma solidity 0.8.10; */ /* pragma experimental ABIEncoderV2; */ interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } ////// src/IUniswapV2Router02.sol /* pragma solidity 0.8.10; */ /* pragma experimental ABIEncoderV2; */ interface IUniswapV2Router02 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } contract VTERRAFORM is Ownable, IERC20, IERC20Metadata{ using SafeMath for uint256; address UNISWAPROUTER = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address DEAD = 0x000000000000000000000000000000000000dEaD; address ZERO = 0x0000000000000000000000000000000000000000; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; DividendTracker public dividendTracker; IUniswapV2Router02 public uniswapV2Router; bool public compoundingEnabled = false; address public uniswapV2Pair; event CompoundingEnabled(bool enabled); constructor () { _name = 'vTerraform'; _symbol = 'VTERRAFORM'; _decimals = 18; _totalSupply = 100_000_000_000_000 * 1e18; _balances[msg.sender] = _totalSupply; dividendTracker = new DividendTracker(address(this), UNISWAPROUTER); dividendTracker.excludeFromDividends(address(dividendTracker), true); dividendTracker.excludeFromDividends(address(this), true); dividendTracker.excludeFromDividends(owner(), true); emit Transfer(address(0), msg.sender, _totalSupply); // Optional } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public view returns (uint8) { return _decimals; } function totalSupply() public view override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); dividendTracker.setBalance(payable(sender), _balances[sender]); dividendTracker.setBalance(payable(recipient), _balances[recipient]); emit Transfer(sender, recipient, amount); } function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } function setCompoundingEnabled(bool _enabled) external onlyOwner { compoundingEnabled = _enabled; emit CompoundingEnabled(_enabled); } function manualSendDividend(uint256 amount, address holder) external onlyOwner { dividendTracker.manualSendDividend(amount, holder); } function excludeFromDividends(address account, bool excluded) public onlyOwner { dividendTracker.excludeFromDividends(account, excluded); } function isExcludedFromDividends(address account) public view returns (bool) { return dividendTracker.isExcludedFromDividends(account); } function currentDividendsBalance(address account) public view returns (uint256) { return dividendTracker.currentDividendsBalance(account); } function claim() public { dividendTracker.processAccount(payable(_msgSender())); } function compound() public { require(compoundingEnabled, "vTerra: compounding is not enabled"); dividendTracker.compoundAccount(payable(_msgSender())); } function withdrawableDividendOf(address account) public view returns (uint256) { return dividendTracker.withdrawableDividendOf(account); } function withdrawnDividendOf(address account) public view returns (uint256) { return dividendTracker.withdrawnDividendOf(account); } function accumulativeDividendOf(address account) public view returns (uint256) { return dividendTracker.accumulativeDividendOf(account); } function getAccountInfo(address account) public view returns ( address, uint256, uint256, uint256, uint256 ) { return dividendTracker.getAccountInfo(account); } function getLastClaimTime(address account) public view returns (uint256) { return dividendTracker.getLastClaimTime(account); } function rescueToken(address _token, uint256 _amount) external onlyOwner { IERC20(_token).transfer(msg.sender, _amount); } function rescueETH(uint256 _amount) external onlyOwner { payable(msg.sender).transfer(_amount); } } contract DividendTracker is Ownable, IERC20 { address UNISWAPROUTER; string private _name = "vTerra Tribute Fund"; string private _symbol = "vTerra_TributeFund"; uint256 public lastProcessedIndex; uint256 private _totalSupply; mapping(address => uint256) private _balances; uint256 private constant magnitude = 2**128; uint256 public immutable minTokenBalanceForDividends; uint256 private magnifiedDividendPerShare; uint256 public totalDividendsDistributed; uint256 public totalDividendsWithdrawn; address public tokenAddress; mapping(address => bool) public excludedFromDividends; mapping(address => int256) private magnifiedDividendCorrections; mapping(address => uint256) private withdrawnDividends; mapping(address => uint256) private lastClaimTimes; event DividendsDistributed(address indexed from, uint256 weiAmount); event DividendWithdrawn(address indexed to, uint256 weiAmount); event ExcludeFromDividends(address indexed account, bool excluded); event Claim(address indexed account, uint256 amount); event Compound(address indexed account, uint256 amount, uint256 tokens); struct AccountInfo { address account; uint256 withdrawableDividends; uint256 totalDividends; uint256 lastClaimTime; } constructor(address _tokenAddress, address _uniswapRouter) { minTokenBalanceForDividends = 1 * (10**18); tokenAddress = _tokenAddress; UNISWAPROUTER = _uniswapRouter; } receive() external payable { distributeDividends(); } function distributeDividends() public payable { require(_totalSupply > 0); if (msg.value > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare + ((msg.value * magnitude) / _totalSupply); emit DividendsDistributed(msg.sender, msg.value); totalDividendsDistributed += msg.value; } } function setBalance(address payable account, uint256 newBalance) external onlyOwner { if (excludedFromDividends[account]) { return; } if (newBalance >= minTokenBalanceForDividends) { _setBalance(account, newBalance); } else { _setBalance(account, 0); } } function excludeFromDividends(address account, bool excluded) external onlyOwner { require( excludedFromDividends[account] != excluded, "vTerra_DividendTracker: account already set to requested state" ); excludedFromDividends[account] = excluded; if (excluded) { _setBalance(account, 0); } else { uint256 newBalance = IERC20(tokenAddress).balanceOf(account); if (newBalance >= minTokenBalanceForDividends) { _setBalance(account, newBalance); } else { _setBalance(account, 0); } } emit ExcludeFromDividends(account, excluded); } function isExcludedFromDividends(address account) public view returns (bool) { return excludedFromDividends[account]; } function manualSendDividend(uint256 amount, address holder) external onlyOwner { uint256 contractETHBalance = address(this).balance; payable(holder).transfer(amount > 0 ? amount : contractETHBalance); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = _balances[account]; if (newBalance > currentBalance) { uint256 addAmount = newBalance - currentBalance; _mint(account, addAmount); } else if (newBalance < currentBalance) { uint256 subAmount = currentBalance - newBalance; _burn(account, subAmount); } } function _mint(address account, uint256 amount) private { require( account != address(0), "vTerra_DividendTracker: mint to the zero address" ); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] - int256(magnifiedDividendPerShare * amount); } function _burn(address account, uint256 amount) private { require( account != address(0), "vTerra_DividendTracker: burn from the zero address" ); uint256 accountBalance = _balances[account]; require( accountBalance >= amount, "vTerra_DividendTracker: burn amount exceeds balance" ); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] + int256(magnifiedDividendPerShare * amount); } function processAccount(address payable account) public onlyOwner returns (bool) { uint256 amount = _withdrawDividendOfUser(account); if (amount > 0) { lastClaimTimes[account] = block.timestamp; emit Claim(account, amount); return true; } return false; } function _withdrawDividendOfUser(address payable account) private returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(account); if (_withdrawableDividend > 0) { withdrawnDividends[account] += _withdrawableDividend; totalDividendsWithdrawn += _withdrawableDividend; emit DividendWithdrawn(account, _withdrawableDividend); (bool success, ) = account.call{ value: _withdrawableDividend, gas: 3000 }(""); if (!success) { withdrawnDividends[account] -= _withdrawableDividend; totalDividendsWithdrawn -= _withdrawableDividend; return 0; } return _withdrawableDividend; } return 0; } function compoundAccount(address payable account) public onlyOwner returns (bool) { (uint256 amount, uint256 tokens) = _compoundDividendOfUser(account); if (amount > 0) { lastClaimTimes[account] = block.timestamp; emit Compound(account, amount, tokens); return true; } return false; } function _compoundDividendOfUser(address payable account) private returns (uint256, uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(account); if (_withdrawableDividend > 0) { withdrawnDividends[account] += _withdrawableDividend; totalDividendsWithdrawn += _withdrawableDividend; emit DividendWithdrawn(account, _withdrawableDividend); IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02( UNISWAPROUTER ); address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = address(tokenAddress); bool success; uint256 tokens; uint256 initTokenBal = IERC20(tokenAddress).balanceOf(account); try uniswapV2Router .swapExactETHForTokensSupportingFeeOnTransferTokens{ value: _withdrawableDividend }(0, path, address(account), block.timestamp) { success = true; tokens = IERC20(tokenAddress).balanceOf(account) - initTokenBal; } catch Error( string memory /*err*/ ) { success = false; } if (!success) { withdrawnDividends[account] -= _withdrawableDividend; totalDividendsWithdrawn -= _withdrawableDividend; return (0, 0); } return (_withdrawableDividend, tokens); } return (0, 0); } function withdrawableDividendOf(address account) public view returns (uint256) { return accumulativeDividendOf(account) - withdrawnDividends[account]; } function withdrawnDividendOf(address account) public view returns (uint256) { return withdrawnDividends[account]; } function currentDividendsBalance(address account) public view returns (uint256) { return _balances[account]; } function accumulativeDividendOf(address account) public view returns (uint256) { int256 a = int256(magnifiedDividendPerShare * balanceOf(account)); int256 b = magnifiedDividendCorrections[account]; // this is an explicit int256 (signed) return uint256(a + b) / magnitude; } function getAccountInfo(address account) public view returns ( address, uint256, uint256, uint256, uint256 ) { AccountInfo memory info; info.account = account; info.withdrawableDividends = withdrawableDividendOf(account); info.totalDividends = accumulativeDividendOf(account); info.lastClaimTime = lastClaimTimes[account]; return ( info.account, info.withdrawableDividends, info.totalDividends, info.lastClaimTime, totalDividendsWithdrawn ); } function getLastClaimTime(address account) public view returns (uint256) { return lastClaimTimes[account]; } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public pure returns (uint8) { return 18; } function totalSupply() public view override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } function transfer(address, uint256) public pure override returns (bool) { revert("vTerra_DividendTracker: method not implemented"); } function allowance(address, address) public pure override returns (uint256) { revert("vTerra_DividendTracker: method not implemented"); } function approve(address, uint256) public pure override returns (bool) { revert("vTerra_DividendTracker: method not implemented"); } function transferFrom( address, address, uint256 ) public pure override returns (bool) { revert("vTerra_DividendTracker: method not implemented"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"bool","name":"enabled","type":"bool"}],"name":"CompoundingEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"accumulativeDividendOf","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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compoundingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"currentDividendsBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract DividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getLastClaimTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"account","type":"address"}],"name":"isExcludedFromDividends","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"holder","type":"address"}],"name":"manualSendDividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setCompoundingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawnDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600180546001600160a01b0319908116737a250d5630b4cf539739df2c5dacb4c659f2488d1790915560028054821661dead179055600380549091169055600a805460ff60a01b191690553480156200005c57600080fd5b50620000683362000312565b60408051808201909152600a80825269765465727261666f726d60b01b60209092019182526200009b9160079162000362565b5060408051808201909152600a80825269565445525241464f524d60b01b6020909201918252620000cf9160089162000362565b506009805460ff191660121790556d04ee2d6d415b85acef81000000006006819055336000908152600460205260409081902091909155600154905130916001600160a01b0316906200012290620003f1565b6001600160a01b03928316815291166020820152604001604051809103906000f08015801562000156573d6000803e3d6000fd5b5060098054610100600160a81b0319166101006001600160a01b039384168102919091179182905560405162241fbd60e51b81529104909116600482018190526001602483015290630483f7a090604401600060405180830381600087803b158015620001c257600080fd5b505af1158015620001d7573d6000803e3d6000fd5b505060095460405162241fbd60e51b8152306004820152600160248201526101009091046001600160a01b03169250630483f7a09150604401600060405180830381600087803b1580156200022b57600080fd5b505af115801562000240573d6000803e3d6000fd5b505060095461010090046001600160a01b03169150630483f7a090506200026f6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260016024820152604401600060405180830381600087803b158015620002b857600080fd5b505af1158015620002cd573d6000803e3d6000fd5b5050600654604051908152339250600091507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a362000452565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620003709062000416565b90600052602060002090601f016020900481019282620003945760008555620003df565b82601f10620003af57805160ff1916838001178555620003df565b82800160010185558215620003df579182015b82811115620003df578251825591602001919060010190620003c2565b50620003ed929150620003ff565b5090565b611e09806200195583390190565b5b80821115620003ed576000815560010162000400565b600181811c908216806200042b57607f821691505b6020821081036200044c57634e487b7160e01b600052602260045260246000fd5b50919050565b6114f380620004626000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80637b510fe81161010f578063a8b9d240116100a2578063dd62ed3e11610071578063dd62ed3e1461046a578063e4956ce2146104a3578063f2fde38b146104b6578063f69e2046146104c957600080fd5b8063a8b9d2401461041e578063a9059cbb14610431578063aafd847a14610444578063c705c5691461045757600080fd5b806395d89b41116100de57806395d89b41146103dd5780639e252f00146103e5578063a457c2d7146103f8578063a680e0bc1461040b57600080fd5b80637b510fe8146103615780638884ebc3146103a65780638da5cb5b146103b95780638e126944146103ca57600080fd5b80632f4504ae1161018757806349bd5a5e1161015657806349bd5a5e146103155780634e71d92d1461032857806370a0823114610330578063715018a61461035957600080fd5b80632f4504ae146102c6578063313ce567146102da57806333f3d628146102ef578063395093511461030257600080fd5b806318160ddd116101c357806318160ddd1461027657806323b872dd1461028857806327ce01471461029b5780632c1f5216146102ae57600080fd5b80630483f7a0146101f557806306fdde031461020a578063095ea7b3146102285780631694505e1461024b575b600080fd5b610208610203366004611195565b6104d1565b005b610212610575565b60405161021f91906111ce565b60405180910390f35b61023b610236366004611223565b610607565b604051901515815260200161021f565b600a5461025e906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b6006545b60405190815260200161021f565b61023b61029636600461124f565b61061d565b61027a6102a9366004611290565b610686565b60095461025e9061010090046001600160a01b031681565b600a5461023b90600160a01b900460ff1681565b60095460405160ff909116815260200161021f565b6102086102fd366004611223565b610701565b61023b610310366004611223565b6107a1565b600b5461025e906001600160a01b031681565b6102086107d7565b61027a61033e366004611290565b6001600160a01b031660009081526004602052604090205490565b61020861085c565b61037461036f366004611290565b610892565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161021f565b61027a6103b4366004611290565b610923565b6000546001600160a01b031661025e565b6102086103d83660046112ad565b61095b565b6102126109c4565b6102086103f33660046112d2565b6109d3565b61023b610406366004611223565b610a2e565b61027a610419366004611290565b610a7d565b61027a61042c366004611290565b610ab5565b61023b61043f366004611223565b610aed565b61027a610452366004611290565b610afa565b61023b610465366004611290565b610b32565b61027a6104783660046112eb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6102086104b1366004611319565b610ba6565b6102086104c4366004611290565b610c28565b610208610cc0565b6000546001600160a01b031633146105045760405162461bcd60e51b81526004016104fb90611336565b60405180910390fd5b60095460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015261010090920490911690630483f7a0906044015b600060405180830381600087803b15801561055957600080fd5b505af115801561056d573d6000803e3d6000fd5b505050505050565b6060600780546105849061136b565b80601f01602080910402602001604051908101604052809291908181526020018280546105b09061136b565b80156105fd5780601f106105d2576101008083540402835291602001916105fd565b820191906000526020600020905b8154815290600101906020018083116105e057829003601f168201915b5050505050905090565b6000610614338484610d40565b50600192915050565b600061062a848484610e65565b61067c843361067785604051806060016040528060288152602001611471602891396001600160a01b038a16600090815260056020908152604080832033845290915290205491906110e3565b610d40565b5060019392505050565b6009546040516327ce014760e01b81526001600160a01b038381166004830152600092610100900416906327ce0147906024015b602060405180830381865afa1580156106d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fb91906113a5565b92915050565b6000546001600160a01b0316331461072b5760405162461bcd60e51b81526004016104fb90611336565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610778573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079c91906113be565b505050565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610614918590610677908661110f565b60095461010090046001600160a01b031663807ab4f7335b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024016020604051808303816000875af1158015610835573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085991906113be565b50565b6000546001600160a01b031633146108865760405162461bcd60e51b81526004016104fb90611336565b6108906000611122565b565b600954604051630f6a21fd60e31b81526001600160a01b038381166004830152600092839283928392839261010090910490911690637b510fe89060240160a060405180830381865afa1580156108ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091191906113db565b939a9299509097509550909350915050565b600954604051638884ebc360e01b81526001600160a01b03838116600483015260009261010090041690638884ebc3906024016106ba565b6000546001600160a01b031633146109855760405162461bcd60e51b81526004016104fb90611336565b6009546040516323849a5160e21b8152600481018490526001600160a01b03838116602483015261010090920490911690638e1269449060440161053f565b6060600880546105849061136b565b6000546001600160a01b031633146109fd5760405162461bcd60e51b81526004016104fb90611336565b604051339082156108fc029083906000818181858888f19350505050158015610a2a573d6000803e3d6000fd5b5050565b6000610614338461067785604051806060016040528060258152602001611499602591393360009081526005602090815260408083206001600160a01b038d16845290915290205491906110e3565b6009546040516329a0382f60e21b81526001600160a01b0383811660048301526000926101009004169063a680e0bc906024016106ba565b6009546040516302a2e74960e61b81526001600160a01b0383811660048301526000926101009004169063a8b9d240906024016106ba565b6000610614338484610e65565b60095460405163557ec23d60e11b81526001600160a01b0383811660048301526000926101009004169063aafd847a906024016106ba565b60095460405163c705c56960e01b81526001600160a01b0383811660048301526000926101009004169063c705c56990602401602060405180830381865afa158015610b82573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fb91906113be565b6000546001600160a01b03163314610bd05760405162461bcd60e51b81526004016104fb90611336565b600a8054821515600160a01b0260ff60a01b199091161790556040517f341322866a3a2c26c27efa4c270c5ba86f6963257118897dd8196f224c002d4390610c1d90831515815260200190565b60405180910390a150565b6000546001600160a01b03163314610c525760405162461bcd60e51b81526004016104fb90611336565b6001600160a01b038116610cb75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104fb565b61085981611122565b600a54600160a01b900460ff16610d245760405162461bcd60e51b815260206004820152602260248201527f7654657272613a20636f6d706f756e64696e67206973206e6f7420656e61626c604482015261195960f21b60648201526084016104fb565b60095461010090046001600160a01b0316636de1a5a9336107ef565b6001600160a01b038316610da25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104fb565b6001600160a01b038216610e035760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104fb565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610ec95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104fb565b6001600160a01b038216610f2b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104fb565b610f688160405180606001604052806026815260200161144b602691396001600160a01b03861660009081526004602052604090205491906110e3565b6001600160a01b038085166000908152600460205260408082209390935590841681522054610f97908261110f565b6001600160a01b03838116600090815260046020819052604080832094909455600954878416808452928590205494516338c110ef60e21b81529182019290925260248101939093526101009004169063e30443bc90604401600060405180830381600087803b15801561100a57600080fd5b505af115801561101e573d6000803e3d6000fd5b50506009546001600160a01b038581166000818152600460208190526040918290205491516338c110ef60e21b815290810192909252602482015261010090920416925063e30443bc9150604401600060405180830381600087803b15801561108657600080fd5b505af115801561109a573d6000803e3d6000fd5b50505050816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e5891815260200190565b600081848411156111075760405162461bcd60e51b81526004016104fb91906111ce565b505050900390565b600061111b8284611424565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461085957600080fd5b801515811461085957600080fd5b600080604083850312156111a857600080fd5b82356111b381611172565b915060208301356111c381611187565b809150509250929050565b600060208083528351808285015260005b818110156111fb578581018301518582016040015282016111df565b8181111561120d576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561123657600080fd5b823561124181611172565b946020939093013593505050565b60008060006060848603121561126457600080fd5b833561126f81611172565b9250602084013561127f81611172565b929592945050506040919091013590565b6000602082840312156112a257600080fd5b813561111b81611172565b600080604083850312156112c057600080fd5b8235915060208301356111c381611172565b6000602082840312156112e457600080fd5b5035919050565b600080604083850312156112fe57600080fd5b823561130981611172565b915060208301356111c381611172565b60006020828403121561132b57600080fd5b813561111b81611187565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061137f57607f821691505b60208210810361139f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156113b757600080fd5b5051919050565b6000602082840312156113d057600080fd5b815161111b81611187565b600080600080600060a086880312156113f357600080fd5b85516113fe81611172565b602087015160408801516060890151608090990151929a91995097965090945092505050565b6000821982111561144557634e487b7160e01b600052601160045260246000fd5b50019056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122027f5d8b9d9c24e9105791399ba9788d89a1d48f0992461d6dc9db3a336a7b99264736f6c634300080d003360e0604052601360a08190527f76546572726120547269627574652046756e640000000000000000000000000060c090815262000040916002919062000146565b50604080518082019091526012808252711d95195c9c9857d51c9a589d5d19519d5b9960721b60209092019182526200007c9160039162000146565b503480156200008a57600080fd5b5060405162001e0938038062001e09833981016040819052620000ad9162000209565b620000b833620000f6565b670de0b6b3a7640000608052600a80546001600160a01b039384166001600160a01b031991821617909155600180549290931691161790556200027d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001549062000241565b90600052602060002090601f016020900481019282620001785760008555620001c3565b82601f106200019357805160ff1916838001178555620001c3565b82800160010185558215620001c3579182015b82811115620001c3578251825591602001919060010190620001a6565b50620001d1929150620001d5565b5090565b5b80821115620001d15760008155600101620001d6565b80516001600160a01b03811681146200020457600080fd5b919050565b600080604083850312156200021d57600080fd5b6200022883620001ec565b91506200023860208401620001ec565b90509250929050565b600181811c908216806200025657607f821691505b6020821081036200027757634e487b7160e01b600052602260045260246000fd5b50919050565b608051611b62620002a76000396000818161055d0152818161081b0152610d290152611b626000f3fe6080604052600436106101dc5760003560e01c806385a6b3ae11610102578063a8b9d24011610095578063c705c56911610064578063c705c5691461057f578063dd62ed3e146105b8578063e30443bc146105d3578063f2fde38b146105f357600080fd5b8063a8b9d240146104f5578063a9059cbb14610243578063aafd847a14610515578063c49af5f01461054b57600080fd5b806395d89b41116100d157806395d89b41146104745780639d76ea58146104895780639e1e0661146104a9578063a680e0bc146104bf57600080fd5b806385a6b3ae1461040c5780638884ebc31461034f5780638da5cb5b146104225780638e1269441461045457600080fd5b80633009a6091161017a57806370a082311161014957806370a082311461034f578063715018a6146103855780637b510fe81461039a578063807ab4f7146103ec57600080fd5b80633009a609146102cd578063313ce567146102e35780634e7b827f146102ff5780636de1a5a91461032f57600080fd5b8063095ea7b3116101b6578063095ea7b31461024357806318160ddd1461027357806323b872dd1461029257806327ce0147146102ad57600080fd5b806303c83302146101f05780630483f7a0146101f857806306fdde031461021857600080fd5b366101eb576101e9610613565b005b600080fd5b6101e9610613565b34801561020457600080fd5b506101e96102133660046116a9565b6106a2565b34801561022457600080fd5b5061022d6108a5565b60405161023a91906116e7565b60405180910390f35b34801561024f57600080fd5b5061026361025e36600461173c565b610937565b604051901515815260200161023a565b34801561027f57600080fd5b506005545b60405190815260200161023a565b34801561029e57600080fd5b5061026361025e366004611768565b3480156102b957600080fd5b506102846102c83660046117a9565b610999565b3480156102d957600080fd5b5061028460045481565b3480156102ef57600080fd5b506040516012815260200161023a565b34801561030b57600080fd5b5061026361031a3660046117a9565b600b6020526000908152604090205460ff1681565b34801561033b57600080fd5b5061026361034a3660046117a9565b6109fd565b34801561035b57600080fd5b5061028461036a3660046117a9565b6001600160a01b031660009081526006602052604090205490565b34801561039157600080fd5b506101e9610aa8565b3480156103a657600080fd5b506103ba6103b53660046117a9565b610adc565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161023a565b3480156103f857600080fd5b506102636104073660046117a9565b610b84565b34801561041857600080fd5b5061028460085481565b34801561042e57600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161023a565b34801561046057600080fd5b506101e961046f3660046117cd565b610c29565b34801561048057600080fd5b5061022d610c9c565b34801561049557600080fd5b50600a5461043c906001600160a01b031681565b3480156104b557600080fd5b5061028460095481565b3480156104cb57600080fd5b506102846104da3660046117a9565b6001600160a01b03166000908152600e602052604090205490565b34801561050157600080fd5b506102846105103660046117a9565b610cab565b34801561052157600080fd5b506102846105303660046117a9565b6001600160a01b03166000908152600d602052604090205490565b34801561055757600080fd5b506102847f000000000000000000000000000000000000000000000000000000000000000081565b34801561058b57600080fd5b5061026361059a3660046117a9565b6001600160a01b03166000908152600b602052604090205460ff1690565b3480156105c457600080fd5b5061028461025e3660046117f2565b3480156105df57600080fd5b506101e96105ee36600461173c565b610cdd565b3480156105ff57600080fd5b506101e961060e3660046117a9565b610d67565b60006005541161062257600080fd5b34156106a057600554610639600160801b34611836565b6106439190611855565b6007546106509190611877565b60075560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2346008600082825461069a9190611877565b90915550505b565b6000546001600160a01b031633146106d55760405162461bcd60e51b81526004016106cc9061188f565b60405180910390fd5b6001600160a01b0382166000908152600b602052604090205481151560ff90911615150361076b5760405162461bcd60e51b815260206004820152603e60248201527f7654657272615f4469766964656e64547261636b65723a206163636f756e742060448201527f616c72656164792073657420746f20726571756573746564207374617465000060648201526084016106cc565b6001600160a01b0382166000908152600b60205260409020805460ff191682158015919091179091556107a8576107a3826000610e02565b61085c565b600a546040516370a0823160e01b81526001600160a01b03848116600483015260009216906370a0823190602401602060405180830381865afa1580156107f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081791906118c4565b90507f0000000000000000000000000000000000000000000000000000000000000000811061084f5761084a8382610e02565b61085a565b61085a836000610e02565b505b816001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be82604051610899911515815260200190565b60405180910390a25050565b6060600280546108b4906118dd565b80601f01602080910402602001604051908101604052809291908181526020018280546108e0906118dd565b801561092d5780601f106109025761010080835404028352916020019161092d565b820191906000526020600020905b81548152906001019060200180831161091057829003601f168201915b5050505050905090565b60405162461bcd60e51b815260206004820152602e60248201527f7654657272615f4469766964656e64547261636b65723a206d6574686f64206e60448201526d1bdd081a5b5c1b195b595b9d195960921b60648201526000906084016106cc565b6001600160a01b03811660009081526006602052604081205460075482916109c091611836565b6001600160a01b0384166000908152600c6020526040902054909150600160801b6109eb8284611917565b6109f59190611855565b949350505050565b600080546001600160a01b03163314610a285760405162461bcd60e51b81526004016106cc9061188f565b600080610a3484610e60565b90925090508115610a9e576001600160a01b0384166000818152600e602090815260409182902042905581518581529081018490527f0e311a2c6dbfb0153ec3a8a5bdca09070b3e5f60768fdc10a20453f38d186873910160405180910390a25060019392505050565b5060009392505050565b6000546001600160a01b03163314610ad25760405162461bcd60e51b81526004016106cc9061188f565b6106a060006111ea565b6000806000806000610b18604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b0387168152610b2d87610cab565b6020820152610b3b87610999565b60408281019182526001600160a01b03989098166000908152600e6020908152989020546060830181905282519890920151905160095498999198909750919550909350915050565b600080546001600160a01b03163314610baf5760405162461bcd60e51b81526004016106cc9061188f565b6000610bba8361123a565b90508015610c20576001600160a01b0383166000818152600e602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490610c0f9084815260200190565b60405180910390a250600192915050565b50600092915050565b6000546001600160a01b03163314610c535760405162461bcd60e51b81526004016106cc9061188f565b476001600160a01b0382166108fc84610c6c5782610c6e565b845b6040518115909202916000818181858888f19350505050158015610c96573d6000803e3d6000fd5b50505050565b6060600380546108b4906118dd565b6001600160a01b0381166000908152600d6020526040812054610ccd83610999565b610cd79190611958565b92915050565b6000546001600160a01b03163314610d075760405162461bcd60e51b81526004016106cc9061188f565b6001600160a01b0382166000908152600b602052604090205460ff16610d58577f00000000000000000000000000000000000000000000000000000000000000008110610d5c57610d588282610e02565b5050565b610d58826000610e02565b6000546001600160a01b03163314610d915760405162461bcd60e51b81526004016106cc9061188f565b6001600160a01b038116610df65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106cc565b610dff816111ea565b50565b6001600160a01b03821660009081526006602052604090205480821115610e3b576000610e2f8284611958565b9050610c968482611389565b80821015610e5b576000610e4f8383611958565b9050610c9684826114ce565b505050565b6000806000610e6e84610cab565b905080156111de576001600160a01b0384166000908152600d602052604081208054839290610e9e908490611877565b925050819055508060096000828254610eb79190611877565b90915550506040518181526001600160a01b038516907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a26001546040805160028082526060820183526001600160a01b0390931692600092602083019080368337019050509050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8c919061196f565b81600081518110610f9f57610f9f61198c565b6001600160a01b039283166020918202929092010152600a54825191169082906001908110610fd057610fd061198c565b6001600160a01b039283166020918202929092010152600a546040516370a0823160e01b81528883166004820152600092839283929116906370a0823190602401602060405180830381865afa15801561102e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105291906118c4565b9050846001600160a01b031663b6f9de95876000878d426040518663ffffffff1660e01b815260040161108894939291906119a2565b6000604051808303818588803b1580156110a157600080fd5b505af1935050505080156110b3575060015b6110f4576110bf611a0c565b806308c379a0036110e857506110d3611a63565b806110de57506110ea565b6000935050611173565b505b3d6000803e3d6000fd5b600a546040516370a0823160e01b81526001600160a01b038b8116600483015260019550839216906370a0823190602401602060405180830381865afa158015611142573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061116691906118c4565b6111709190611958565b91505b826111cf576001600160a01b0389166000908152600d6020526040812080548892906111a0908490611958565b9250508190555085600960008282546111b99190611958565b9091555060009a8b9a5098505050505050505050565b50939793965092945050505050565b50600093849350915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008061124683610cab565b90508015610c20576001600160a01b0383166000908152600d602052604081208054839290611276908490611877565b92505081905550806009600082825461128f9190611877565b90915550506040518181526001600160a01b038416907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a26000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d8060008114611324576040519150601f19603f3d011682016040523d82523d6000602084013e611329565b606091505b5050905080611382576001600160a01b0384166000908152600d60205260408120805484929061135a908490611958565b9250508190555081600960008282546113739190611958565b90915550600095945050505050565b5092915050565b6001600160a01b0382166113f85760405162461bcd60e51b815260206004820152603060248201527f7654657272615f4469766964656e64547261636b65723a206d696e7420746f2060448201526f746865207a65726f206164647265737360801b60648201526084016106cc565b806005600082825461140a9190611877565b90915550506001600160a01b03821660009081526006602052604081208054839290611437908490611877565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a38060075461148b9190611836565b6001600160a01b0383166000908152600c60205260409020546114ae9190611aed565b6001600160a01b039092166000908152600c602052604090209190915550565b6001600160a01b03821661153f5760405162461bcd60e51b815260206004820152603260248201527f7654657272615f4469766964656e64547261636b65723a206275726e2066726f6044820152716d20746865207a65726f206164647265737360701b60648201526084016106cc565b6001600160a01b038216600090815260066020526040902054818110156115c45760405162461bcd60e51b815260206004820152603360248201527f7654657272615f4469766964656e64547261636b65723a206275726e20616d6f604482015272756e7420657863656564732062616c616e636560681b60648201526084016106cc565b6115ce8282611958565b6001600160a01b038416600090815260066020526040812091909155600580548492906115fc908490611958565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3816007546116509190611836565b6001600160a01b0384166000908152600c60205260409020546116739190611917565b6001600160a01b039093166000908152600c60205260409020929092555050565b6001600160a01b0381168114610dff57600080fd5b600080604083850312156116bc57600080fd5b82356116c781611694565b9150602083013580151581146116dc57600080fd5b809150509250929050565b600060208083528351808285015260005b81811015611714578581018301518582016040015282016116f8565b81811115611726576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561174f57600080fd5b823561175a81611694565b946020939093013593505050565b60008060006060848603121561177d57600080fd5b833561178881611694565b9250602084013561179881611694565b929592945050506040919091013590565b6000602082840312156117bb57600080fd5b81356117c681611694565b9392505050565b600080604083850312156117e057600080fd5b8235915060208301356116dc81611694565b6000806040838503121561180557600080fd5b823561181081611694565b915060208301356116dc81611694565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561185057611850611820565b500290565b60008261187257634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561188a5761188a611820565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156118d657600080fd5b5051919050565b600181811c908216806118f157607f821691505b60208210810361191157634e487b7160e01b600052602260045260246000fd5b50919050565b600080821280156001600160ff1b038490038513161561193957611939611820565b600160ff1b839003841281161561195257611952611820565b50500190565b60008282101561196a5761196a611820565b500390565b60006020828403121561198157600080fd5b81516117c681611694565b634e487b7160e01b600052603260045260246000fd5b600060808201868352602060808185015281875180845260a086019150828901935060005b818110156119ec5784516001600160a01b0316835293830193918301916001016119c7565b50506001600160a01b039690961660408501525050506060015292915050565b600060033d1115611a255760046000803e5060005160e01c5b90565b601f8201601f1916810167ffffffffffffffff81118282101715611a5c57634e487b7160e01b600052604160045260246000fd5b6040525050565b600060443d1015611a715790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611aa157505050505090565b8285019150815181811115611ab95750505050505090565b843d8701016020828501011115611ad35750505050505090565b611ae260208286010187611a28565b509095945050505050565b60008083128015600160ff1b850184121615611b0b57611b0b611820565b6001600160ff1b0384018313811615611b2657611b26611820565b5050039056fea2646970667358221220f9c83c5364fbcc5080eae696cf7dce844155821ac7b07dec36d5c8268fd1adf764736f6c634300080d0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80637b510fe81161010f578063a8b9d240116100a2578063dd62ed3e11610071578063dd62ed3e1461046a578063e4956ce2146104a3578063f2fde38b146104b6578063f69e2046146104c957600080fd5b8063a8b9d2401461041e578063a9059cbb14610431578063aafd847a14610444578063c705c5691461045757600080fd5b806395d89b41116100de57806395d89b41146103dd5780639e252f00146103e5578063a457c2d7146103f8578063a680e0bc1461040b57600080fd5b80637b510fe8146103615780638884ebc3146103a65780638da5cb5b146103b95780638e126944146103ca57600080fd5b80632f4504ae1161018757806349bd5a5e1161015657806349bd5a5e146103155780634e71d92d1461032857806370a0823114610330578063715018a61461035957600080fd5b80632f4504ae146102c6578063313ce567146102da57806333f3d628146102ef578063395093511461030257600080fd5b806318160ddd116101c357806318160ddd1461027657806323b872dd1461028857806327ce01471461029b5780632c1f5216146102ae57600080fd5b80630483f7a0146101f557806306fdde031461020a578063095ea7b3146102285780631694505e1461024b575b600080fd5b610208610203366004611195565b6104d1565b005b610212610575565b60405161021f91906111ce565b60405180910390f35b61023b610236366004611223565b610607565b604051901515815260200161021f565b600a5461025e906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b6006545b60405190815260200161021f565b61023b61029636600461124f565b61061d565b61027a6102a9366004611290565b610686565b60095461025e9061010090046001600160a01b031681565b600a5461023b90600160a01b900460ff1681565b60095460405160ff909116815260200161021f565b6102086102fd366004611223565b610701565b61023b610310366004611223565b6107a1565b600b5461025e906001600160a01b031681565b6102086107d7565b61027a61033e366004611290565b6001600160a01b031660009081526004602052604090205490565b61020861085c565b61037461036f366004611290565b610892565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161021f565b61027a6103b4366004611290565b610923565b6000546001600160a01b031661025e565b6102086103d83660046112ad565b61095b565b6102126109c4565b6102086103f33660046112d2565b6109d3565b61023b610406366004611223565b610a2e565b61027a610419366004611290565b610a7d565b61027a61042c366004611290565b610ab5565b61023b61043f366004611223565b610aed565b61027a610452366004611290565b610afa565b61023b610465366004611290565b610b32565b61027a6104783660046112eb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6102086104b1366004611319565b610ba6565b6102086104c4366004611290565b610c28565b610208610cc0565b6000546001600160a01b031633146105045760405162461bcd60e51b81526004016104fb90611336565b60405180910390fd5b60095460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015261010090920490911690630483f7a0906044015b600060405180830381600087803b15801561055957600080fd5b505af115801561056d573d6000803e3d6000fd5b505050505050565b6060600780546105849061136b565b80601f01602080910402602001604051908101604052809291908181526020018280546105b09061136b565b80156105fd5780601f106105d2576101008083540402835291602001916105fd565b820191906000526020600020905b8154815290600101906020018083116105e057829003601f168201915b5050505050905090565b6000610614338484610d40565b50600192915050565b600061062a848484610e65565b61067c843361067785604051806060016040528060288152602001611471602891396001600160a01b038a16600090815260056020908152604080832033845290915290205491906110e3565b610d40565b5060019392505050565b6009546040516327ce014760e01b81526001600160a01b038381166004830152600092610100900416906327ce0147906024015b602060405180830381865afa1580156106d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fb91906113a5565b92915050565b6000546001600160a01b0316331461072b5760405162461bcd60e51b81526004016104fb90611336565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610778573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079c91906113be565b505050565b3360008181526005602090815260408083206001600160a01b03871684529091528120549091610614918590610677908661110f565b60095461010090046001600160a01b031663807ab4f7335b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024016020604051808303816000875af1158015610835573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085991906113be565b50565b6000546001600160a01b031633146108865760405162461bcd60e51b81526004016104fb90611336565b6108906000611122565b565b600954604051630f6a21fd60e31b81526001600160a01b038381166004830152600092839283928392839261010090910490911690637b510fe89060240160a060405180830381865afa1580156108ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091191906113db565b939a9299509097509550909350915050565b600954604051638884ebc360e01b81526001600160a01b03838116600483015260009261010090041690638884ebc3906024016106ba565b6000546001600160a01b031633146109855760405162461bcd60e51b81526004016104fb90611336565b6009546040516323849a5160e21b8152600481018490526001600160a01b03838116602483015261010090920490911690638e1269449060440161053f565b6060600880546105849061136b565b6000546001600160a01b031633146109fd5760405162461bcd60e51b81526004016104fb90611336565b604051339082156108fc029083906000818181858888f19350505050158015610a2a573d6000803e3d6000fd5b5050565b6000610614338461067785604051806060016040528060258152602001611499602591393360009081526005602090815260408083206001600160a01b038d16845290915290205491906110e3565b6009546040516329a0382f60e21b81526001600160a01b0383811660048301526000926101009004169063a680e0bc906024016106ba565b6009546040516302a2e74960e61b81526001600160a01b0383811660048301526000926101009004169063a8b9d240906024016106ba565b6000610614338484610e65565b60095460405163557ec23d60e11b81526001600160a01b0383811660048301526000926101009004169063aafd847a906024016106ba565b60095460405163c705c56960e01b81526001600160a01b0383811660048301526000926101009004169063c705c56990602401602060405180830381865afa158015610b82573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fb91906113be565b6000546001600160a01b03163314610bd05760405162461bcd60e51b81526004016104fb90611336565b600a8054821515600160a01b0260ff60a01b199091161790556040517f341322866a3a2c26c27efa4c270c5ba86f6963257118897dd8196f224c002d4390610c1d90831515815260200190565b60405180910390a150565b6000546001600160a01b03163314610c525760405162461bcd60e51b81526004016104fb90611336565b6001600160a01b038116610cb75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104fb565b61085981611122565b600a54600160a01b900460ff16610d245760405162461bcd60e51b815260206004820152602260248201527f7654657272613a20636f6d706f756e64696e67206973206e6f7420656e61626c604482015261195960f21b60648201526084016104fb565b60095461010090046001600160a01b0316636de1a5a9336107ef565b6001600160a01b038316610da25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104fb565b6001600160a01b038216610e035760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104fb565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610ec95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104fb565b6001600160a01b038216610f2b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104fb565b610f688160405180606001604052806026815260200161144b602691396001600160a01b03861660009081526004602052604090205491906110e3565b6001600160a01b038085166000908152600460205260408082209390935590841681522054610f97908261110f565b6001600160a01b03838116600090815260046020819052604080832094909455600954878416808452928590205494516338c110ef60e21b81529182019290925260248101939093526101009004169063e30443bc90604401600060405180830381600087803b15801561100a57600080fd5b505af115801561101e573d6000803e3d6000fd5b50506009546001600160a01b038581166000818152600460208190526040918290205491516338c110ef60e21b815290810192909252602482015261010090920416925063e30443bc9150604401600060405180830381600087803b15801561108657600080fd5b505af115801561109a573d6000803e3d6000fd5b50505050816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e5891815260200190565b600081848411156111075760405162461bcd60e51b81526004016104fb91906111ce565b505050900390565b600061111b8284611424565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461085957600080fd5b801515811461085957600080fd5b600080604083850312156111a857600080fd5b82356111b381611172565b915060208301356111c381611187565b809150509250929050565b600060208083528351808285015260005b818110156111fb578581018301518582016040015282016111df565b8181111561120d576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561123657600080fd5b823561124181611172565b946020939093013593505050565b60008060006060848603121561126457600080fd5b833561126f81611172565b9250602084013561127f81611172565b929592945050506040919091013590565b6000602082840312156112a257600080fd5b813561111b81611172565b600080604083850312156112c057600080fd5b8235915060208301356111c381611172565b6000602082840312156112e457600080fd5b5035919050565b600080604083850312156112fe57600080fd5b823561130981611172565b915060208301356111c381611172565b60006020828403121561132b57600080fd5b813561111b81611187565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061137f57607f821691505b60208210810361139f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156113b757600080fd5b5051919050565b6000602082840312156113d057600080fd5b815161111b81611187565b600080600080600060a086880312156113f357600080fd5b85516113fe81611172565b602087015160408801516060890151608090990151929a91995097965090945092505050565b6000821982111561144557634e487b7160e01b600052601160045260246000fd5b50019056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122027f5d8b9d9c24e9105791399ba9788d89a1d48f0992461d6dc9db3a336a7b99264736f6c634300080d0033
Deployed Bytecode Sourcemap
17900:7290:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23156:153;;;;;;:::i;:::-;;:::i;:::-;;19276:83;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;20130:169;;;;;;:::i;:::-;;:::i;:::-;;;1747:14:1;;1740:22;1722:41;;1710:2;1695:18;20130:169:0;1582:187:1;18505:41:0;;;;;-1:-1:-1;;;;;18505:41:0;;;;;;-1:-1:-1;;;;;1964:32:1;;;1946:51;;1934:2;1919:18;18505:41:0;1774:229:1;19553:100:0;19633:12;;19553:100;;;2154:25:1;;;2142:2;2127:18;19553:100:0;2008:177:1;20307:321:0;;;;;;:::i;:::-;;:::i;24303:184::-;;;;;;:::i;:::-;;:::i;18460:38::-;;;;;;;;-1:-1:-1;;;;;18460:38:0;;;18553;;;;;-1:-1:-1;;;18553:38:0;;;;;;19462:83;19528:9;;19462:83;;19528:9;;;;3285:36:1;;3273:2;3258:18;19462:83:0;3143:184:1;24931:136:0;;;;;;:::i;:::-;;:::i;20636:218::-;;;;;;:::i;:::-;;:::i;18600:28::-;;;;;-1:-1:-1;;;;;18600:28:0;;;23637:96;;;:::i;19661:119::-;;;;;;:::i;:::-;-1:-1:-1;;;;;19754:18:0;19727:7;19754:18;;;:9;:18;;;;;;;19661:119;1886:103;;;:::i;24495:280::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3817:32:1;;;3799:51;;3881:2;3866:18;;3859:34;;;;3909:18;;;3902:34;;;;3967:2;3952:18;;3945:34;4010:3;3995:19;;3988:35;3786:3;3771:19;24495:280:0;3540:489:1;23476:154:0;;;;;;:::i;:::-;;:::i;1235:87::-;1281:7;1308:6;-1:-1:-1;;;;;1308:6:0;1235:87;;23000:148;;;;;;:::i;:::-;;:::i;19367:87::-;;;:::i;25074:111::-;;;;;;:::i;:::-;;:::i;20862:269::-;;;;;;:::i;:::-;;:::i;24783:140::-;;;;;;:::i;:::-;;:::i;23925:184::-;;;;;;:::i;:::-;;:::i;19788:175::-;;;;;;:::i;:::-;;:::i;24117:178::-;;;;;;:::i;:::-;;:::i;23317:151::-;;;;;;:::i;:::-;;:::i;19971:::-;;;;;;:::i;:::-;-1:-1:-1;;;;;20087:18:0;;;20060:7;20087:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;19971:151;22835:157;;;;;;:::i;:::-;;:::i;2144:201::-;;;;;;:::i;:::-;;:::i;23741:176::-;;;:::i;23156:153::-;1281:7;1308:6;-1:-1:-1;;;;;1308:6:0;687:10;1455:23;1447:68;;;;-1:-1:-1;;;1447:68:0;;;;;;;:::i;:::-;;;;;;;;;23246:15:::1;::::0;:55:::1;::::0;-1:-1:-1;;;23246:55:0;;-1:-1:-1;;;;;5725:32:1;;;23246:55:0::1;::::0;::::1;5707:51:1::0;5801:14;;5794:22;5774:18;;;5767:50;23246:15:0::1;::::0;;::::1;::::0;;::::1;::::0;:36:::1;::::0;5680:18:1;;23246:55:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;23156:153:::0;;:::o;19276:83::-;19313:13;19346:5;19339:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19276:83;:::o;20130:169::-;20213:4;20230:39;687:10;20253:7;20262:6;20230:8;:39::i;:::-;-1:-1:-1;20287:4:0;20130:169;;;;:::o;20307:321::-;20413:4;20430:36;20440:6;20448:9;20459:6;20430:9;:36::i;:::-;20477:121;20486:6;687:10;20508:89;20546:6;20508:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20508:19:0;;;;;;:11;:19;;;;;;;;687:10;20508:33;;;;;;;;;;:37;:89::i;:::-;20477:8;:121::i;:::-;-1:-1:-1;20616:4:0;20307:321;;;;;:::o;24303:184::-;24432:15;;:47;;-1:-1:-1;;;24432:47:0;;-1:-1:-1;;;;;1964:32:1;;;24432:47:0;;;1946:51:1;24400:7:0;;24432:15;;;;;:38;;1919:18:1;;24432:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24425:54;24303:184;-1:-1:-1;;24303:184:0:o;24931:136::-;1281:7;1308:6;-1:-1:-1;;;;;1308:6:0;687:10;1455:23;1447:68;;;;-1:-1:-1;;;1447:68:0;;;;;;;:::i;:::-;25015:44:::1;::::0;-1:-1:-1;;;25015:44:0;;25039:10:::1;25015:44;::::0;::::1;6576:51:1::0;6643:18;;;6636:34;;;-1:-1:-1;;;;;25015:23:0;::::1;::::0;::::1;::::0;6549:18:1;;25015:44:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;24931:136:::0;;:::o;20636:218::-;687:10;20724:4;20773:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;20773:34:0;;;;;;;;;;20724:4;;20741:83;;20764:7;;20773:50;;20812:10;20773:38;:50::i;23637:96::-;23672:15;;;;;-1:-1:-1;;;;;23672:15:0;:30;687:10;23711:12;23672:53;;-1:-1:-1;;;;;;23672:53:0;;;;;;;-1:-1:-1;;;;;1964:32:1;;;23672:53:0;;;1946:51:1;1919:18;;23672:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;23637:96::o;1886:103::-;1281:7;1308:6;-1:-1:-1;;;;;1308:6:0;687:10;1455:23;1447:68;;;;-1:-1:-1;;;1447:68:0;;;;;;;:::i;:::-;1951:30:::1;1978:1;1951:18;:30::i;:::-;1886:103::o:0;24495:280::-;24728:15;;:39;;-1:-1:-1;;;24728:39:0;;-1:-1:-1;;;;;1964:32:1;;;24728:39:0;;;1946:51:1;24598:7:0;;;;;;;;;;24728:15;;;;;;;;:30;;1919:18:1;;24728:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24721:46;;;;-1:-1:-1;24721:46:0;;-1:-1:-1;24721:46:0;-1:-1:-1;24721:46:0;;-1:-1:-1;24495:280:0;-1:-1:-1;;24495:280:0:o;23476:154::-;23574:15;;:48;;-1:-1:-1;;;23574:48:0;;-1:-1:-1;;;;;1964:32:1;;;23574:48:0;;;1946:51:1;23547:7:0;;23574:15;;;;;:39;;1919:18:1;;23574:48:0;1774:229:1;23000:148:0;1281:7;1308:6;-1:-1:-1;;;;;1308:6:0;687:10;1455:23;1447:68;;;;-1:-1:-1;;;1447:68:0;;;;;;;:::i;:::-;23090:15:::1;::::0;:50:::1;::::0;-1:-1:-1;;;23090:50:0;;::::1;::::0;::::1;7831:25:1::0;;;-1:-1:-1;;;;;7892:32:1;;;7872:18;;;7865:60;23090:15:0::1;::::0;;::::1;::::0;;::::1;::::0;:34:::1;::::0;7804:18:1;;23090:50:0::1;7657:274:1::0;19367:87:0;19406:13;19439:7;19432:14;;;;;:::i;25074:111::-;1281:7;1308:6;-1:-1:-1;;;;;1308:6:0;687:10;1455:23;1447:68;;;;-1:-1:-1;;;1447:68:0;;;;;;;:::i;:::-;25140:37:::1;::::0;25148:10:::1;::::0;25140:37;::::1;;;::::0;25169:7;;25140:37:::1;::::0;;;25169:7;25148:10;25140:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;25074:111:::0;:::o;20862:269::-;20955:4;20972:129;687:10;20995:7;21004:96;21043:15;21004:96;;;;;;;;;;;;;;;;;687:10;21004:25;;;;:11;:25;;;;;;;;-1:-1:-1;;;;;21004:34:0;;;;;;;;;;;;:38;:96::i;24783:140::-;24874:15;;:41;;-1:-1:-1;;;24874:41:0;;-1:-1:-1;;;;;1964:32:1;;;24874:41:0;;;1946:51:1;24847:7:0;;24874:15;;;;;:32;;1919:18:1;;24874:41:0;1774:229:1;23925:184:0;24054:15;;:47;;-1:-1:-1;;;24054:47:0;;-1:-1:-1;;;;;1964:32:1;;;24054:47:0;;;1946:51:1;24022:7:0;;24054:15;;;;;:38;;1919:18:1;;24054:47:0;1774:229:1;19788:175:0;19874:4;19891:42;687:10;19915:9;19926:6;19891:9;:42::i;24117:178::-;24243:15;;:44;;-1:-1:-1;;;24243:44:0;;-1:-1:-1;;;;;1964:32:1;;;24243:44:0;;;1946:51:1;24211:7:0;;24243:15;;;;;:35;;1919:18:1;;24243:44:0;1774:229:1;23317:151:0;23412:15;;:48;;-1:-1:-1;;;23412:48:0;;-1:-1:-1;;;;;1964:32:1;;;23412:48:0;;;1946:51:1;23388:4:0;;23412:15;;;;;:39;;1919:18:1;;23412:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;22835:157::-;1281:7;1308:6;-1:-1:-1;;;;;1308:6:0;687:10;1455:23;1447:68;;;;-1:-1:-1;;;1447:68:0;;;;;;;:::i;:::-;22911:18:::1;:29:::0;;;::::1;;-1:-1:-1::0;;;22911:29:0::1;-1:-1:-1::0;;;;22911:29:0;;::::1;;::::0;;22956:28:::1;::::0;::::1;::::0;::::1;::::0;22932:8;1747:14:1;1740:22;1722:41;;1710:2;1695:18;;1582:187;22956:28:0::1;;;;;;;;22835:157:::0;:::o;2144:201::-;1281:7;1308:6;-1:-1:-1;;;;;1308:6:0;687:10;1455:23;1447:68;;;;-1:-1:-1;;;1447:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2233:22:0;::::1;2225:73;;;::::0;-1:-1:-1;;;2225:73:0;;8138:2:1;2225:73:0::1;::::0;::::1;8120:21:1::0;8177:2;8157:18;;;8150:30;8216:34;8196:18;;;8189:62;-1:-1:-1;;;8267:18:1;;;8260:36;8313:19;;2225:73:0::1;7936:402:1::0;2225:73:0::1;2309:28;2328:8;2309:18;:28::i;23741:176::-:0;23787:18;;-1:-1:-1;;;23787:18:0;;;;23779:65;;;;-1:-1:-1;;;23779:65:0;;8545:2:1;23779:65:0;;;8527:21:1;8584:2;8564:18;;;8557:30;8623:34;8603:18;;;8596:62;-1:-1:-1;;;8674:18:1;;;8667:32;8716:19;;23779:65:0;8343:398:1;23779:65:0;23855:15;;;;;-1:-1:-1;;;;;23855:15:0;:31;687:10;23895:12;607:98;22264:346;-1:-1:-1;;;;;22366:19:0;;22358:68;;;;-1:-1:-1;;;22358:68:0;;8948:2:1;22358:68:0;;;8930:21:1;8987:2;8967:18;;;8960:30;9026:34;9006:18;;;8999:62;-1:-1:-1;;;9077:18:1;;;9070:34;9121:19;;22358:68:0;8746:400:1;22358:68:0;-1:-1:-1;;;;;22445:21:0;;22437:68;;;;-1:-1:-1;;;22437:68:0;;9353:2:1;22437:68:0;;;9335:21:1;9392:2;9372:18;;;9365:30;9431:34;9411:18;;;9404:62;-1:-1:-1;;;9482:18:1;;;9475:32;9524:19;;22437:68:0;9151:398:1;22437:68:0;-1:-1:-1;;;;;22518:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;22570:32;;2154:25:1;;;22570:32:0;;2127:18:1;22570:32:0;;;;;;;;22264:346;;;:::o;21139:691::-;-1:-1:-1;;;;;21245:20:0;;21237:70;;;;-1:-1:-1;;;21237:70:0;;9756:2:1;21237:70:0;;;9738:21:1;9795:2;9775:18;;;9768:30;9834:34;9814:18;;;9807:62;-1:-1:-1;;;9885:18:1;;;9878:35;9930:19;;21237:70:0;9554:401:1;21237:70:0;-1:-1:-1;;;;;21326:23:0;;21318:71;;;;-1:-1:-1;;;21318:71:0;;10162:2:1;21318:71:0;;;10144:21:1;10201:2;10181:18;;;10174:30;10240:34;10220:18;;;10213:62;-1:-1:-1;;;10291:18:1;;;10284:33;10334:19;;21318:71:0;9960:399:1;21318:71:0;21482;21504:6;21482:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21482:17:0;;;;;;:9;:17;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;21462:17:0;;;;;;;:9;:17;;;;;;:91;;;;21587:20;;;;;;;:32;;21612:6;21587:24;:32::i;:::-;-1:-1:-1;;;;;21564:20:0;;;;;;;:9;:20;;;;;;;;:55;;;;21630:15;;21674:17;;;;;;;;;;;21630:62;;-1:-1:-1;;;21630:62:0;;;;;6576:51:1;;;;6643:18;;;6636:34;;;;21630:15:0;;;;;:26;;6549:18:1;;21630:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;21703:15:0;;-1:-1:-1;;;;;21750:20:0;;;;;;;:9;:20;;;;;;;;;;21703:68;;-1:-1:-1;;;21703:68:0;;;;;6576:51:1;;;;6643:18;;;6636:34;21703:15:0;;;;;;-1:-1:-1;21703:26:0;;-1:-1:-1;6549:18:1;;21703:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21804:9;-1:-1:-1;;;;;21787:35:0;21796:6;-1:-1:-1;;;;;21787:35:0;;21815:6;21787:35;;;;2154:25:1;;2142:2;2127:18;;2008:177;7335:240:0;7455:7;7516:12;7508:6;;;;7500:29;;;;-1:-1:-1;;;7500:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;7551:5:0;;;7335:240::o;5056:98::-;5114:7;5141:5;5145:1;5141;:5;:::i;:::-;5134:12;5056:98;-1:-1:-1;;;5056:98:0:o;2505:191::-;2579:16;2598:6;;-1:-1:-1;;;;;2615:17:0;;;-1:-1:-1;;;;;;2615:17:0;;;;;;2648:40;;2598:6;;;;;;;2648:40;;2579:16;2648:40;2568:128;2505:191;:::o;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;150:118;236:5;229:13;222:21;215:5;212:32;202:60;;258:1;255;248:12;273:382;338:6;346;399:2;387:9;378:7;374:23;370:32;367:52;;;415:1;412;405:12;367:52;454:9;441:23;473:31;498:5;473:31;:::i;:::-;523:5;-1:-1:-1;580:2:1;565:18;;552:32;593:30;552:32;593:30;:::i;:::-;642:7;632:17;;;273:382;;;;;:::o;660:597::-;772:4;801:2;830;819:9;812:21;862:6;856:13;905:6;900:2;889:9;885:18;878:34;930:1;940:140;954:6;951:1;948:13;940:140;;;1049:14;;;1045:23;;1039:30;1015:17;;;1034:2;1011:26;1004:66;969:10;;940:140;;;1098:6;1095:1;1092:13;1089:91;;;1168:1;1163:2;1154:6;1143:9;1139:22;1135:31;1128:42;1089:91;-1:-1:-1;1241:2:1;1220:15;-1:-1:-1;;1216:29:1;1201:45;;;;1248:2;1197:54;;660:597;-1:-1:-1;;;660:597:1:o;1262:315::-;1330:6;1338;1391:2;1379:9;1370:7;1366:23;1362:32;1359:52;;;1407:1;1404;1397:12;1359:52;1446:9;1433:23;1465:31;1490:5;1465:31;:::i;:::-;1515:5;1567:2;1552:18;;;;1539:32;;-1:-1:-1;;;1262:315:1:o;2190:456::-;2267:6;2275;2283;2336:2;2324:9;2315:7;2311:23;2307:32;2304:52;;;2352:1;2349;2342:12;2304:52;2391:9;2378:23;2410:31;2435:5;2410:31;:::i;:::-;2460:5;-1:-1:-1;2517:2:1;2502:18;;2489:32;2530:33;2489:32;2530:33;:::i;:::-;2190:456;;2582:7;;-1:-1:-1;;;2636:2:1;2621:18;;;;2608:32;;2190:456::o;2651:247::-;2710:6;2763:2;2751:9;2742:7;2738:23;2734:32;2731:52;;;2779:1;2776;2769:12;2731:52;2818:9;2805:23;2837:31;2862:5;2837:31;:::i;4034:315::-;4102:6;4110;4163:2;4151:9;4142:7;4138:23;4134:32;4131:52;;;4179:1;4176;4169:12;4131:52;4215:9;4202:23;4192:33;;4275:2;4264:9;4260:18;4247:32;4288:31;4313:5;4288:31;:::i;4354:180::-;4413:6;4466:2;4454:9;4445:7;4441:23;4437:32;4434:52;;;4482:1;4479;4472:12;4434:52;-1:-1:-1;4505:23:1;;4354:180;-1:-1:-1;4354:180:1:o;4539:388::-;4607:6;4615;4668:2;4656:9;4647:7;4643:23;4639:32;4636:52;;;4684:1;4681;4674:12;4636:52;4723:9;4710:23;4742:31;4767:5;4742:31;:::i;:::-;4792:5;-1:-1:-1;4849:2:1;4834:18;;4821:32;4862:33;4821:32;4862:33;:::i;4932:241::-;4988:6;5041:2;5029:9;5020:7;5016:23;5012:32;5009:52;;;5057:1;5054;5047:12;5009:52;5096:9;5083:23;5115:28;5137:5;5115:28;:::i;5178:356::-;5380:2;5362:21;;;5399:18;;;5392:30;5458:34;5453:2;5438:18;;5431:62;5525:2;5510:18;;5178:356::o;5828:380::-;5907:1;5903:12;;;;5950;;;5971:61;;6025:4;6017:6;6013:17;6003:27;;5971:61;6078:2;6070:6;6067:14;6047:18;6044:38;6041:161;;6124:10;6119:3;6115:20;6112:1;6105:31;6159:4;6156:1;6149:15;6187:4;6184:1;6177:15;6041:161;;5828:380;;;:::o;6213:184::-;6283:6;6336:2;6324:9;6315:7;6311:23;6307:32;6304:52;;;6352:1;6349;6342:12;6304:52;-1:-1:-1;6375:16:1;;6213:184;-1:-1:-1;6213:184:1:o;6681:245::-;6748:6;6801:2;6789:9;6780:7;6776:23;6772:32;6769:52;;;6817:1;6814;6807:12;6769:52;6849:9;6843:16;6868:28;6890:5;6868:28;:::i;7155:497::-;7261:6;7269;7277;7285;7293;7346:3;7334:9;7325:7;7321:23;7317:33;7314:53;;;7363:1;7360;7353:12;7314:53;7395:9;7389:16;7414:31;7439:5;7414:31;:::i;:::-;7509:2;7494:18;;7488:25;7553:2;7538:18;;7532:25;7597:2;7582:18;;7576:25;7641:3;7626:19;;;7620:26;7464:5;;7488:25;;-1:-1:-1;7532:25:1;7576;-1:-1:-1;7620:26:1;;-1:-1:-1;7155:497:1;-1:-1:-1;;;7155:497:1:o;10659:225::-;10699:3;10730:1;10726:6;10723:1;10720:13;10717:136;;;10775:10;10770:3;10766:20;10763:1;10756:31;10810:4;10807:1;10800:15;10838:4;10835:1;10828:15;10717:136;-1:-1:-1;10869:9:1;;10659:225::o
Swarm Source
ipfs://f9c83c5364fbcc5080eae696cf7dce844155821ac7b07dec36d5c8268fd1adf7
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.