Token xMATIC
Overview ERC-20
Price
$0.00 @ 0.000000 MATIC
Fully Diluted Market Cap
Total Supply:
57,314.426574 xMATIC
Holders:
134 addresses
Transfers:
-
Contract:
Decimals:
18
[ Download CSV Export ]
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
XMatic
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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 pragma solidity >=0.6.12; interface IOracle { function update() external; function consult(address _token, uint256 _amountIn) external view returns (uint144 amountOut); function twap(address _token, uint256 _amountIn) external view returns (uint144 _amountOut); function sync() external; }
pragma solidity ^0.8.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint256); 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 feeTo() external view returns (address); function feeToSetter() external view returns (address); function createPair(address tokenA, address tokenB) external returns (address pair); function pairCodeHash() external pure returns (bytes32); }
pragma solidity >=0.6.12; 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 swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; 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 pragma solidity >=0.6.12; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Operator is Context, Ownable { address private _operator; event OperatorTransferred(address indexed previousOperator, address indexed newOperator); constructor() { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } modifier onlyOperator() { require(_operator == msg.sender, "operator: caller is not the operator"); _; } function isOperator() public view returns (bool) { return _msgSender() == _operator; } function transferOperator(address newOperator_) public onlyOwner { _transferOperator(newOperator_); } function _transferOperator(address newOperator_) internal { require(newOperator_ != address(0) && newOperator_ != _operator, "operator: zero address given for new operator"); emit OperatorTransferred(address(0), newOperator_); _operator = newOperator_; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "../Operator.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/IUniswapV2Router01.sol"; import "../interfaces/IUniswapV2Factory.sol"; contract XMatic is ERC20, Operator { using SafeMath for uint256; // Initial distribution for the first 24h genesis pools uint256 public constant INITIAL_GENESIS_POOL_DISTRIBUTION = 10000 ether; // Have the rewards been distributed to the pools bool public rewardPoolDistributed; uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 15000 ether; // Rebase uint256 private constant MAX_SUPPLY = ~uint128(0); uint256 public TOTAL_GONS; uint256 private _gonsPerFragment; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _isExcluded; address[] public excluded; address private daoFund; address private devFund; uint256 private _totalSupply; uint256 private constant maxExclusion = 20; address public oracle; // Tax address public taxOffice; uint256 private lastTimeRebase; uint256 public timeTaxAfterRebase; uint256 public taxRateAfterRebase; // Sender addresses excluded from Tax mapping(address => bool) public excludedTaxAddresses; mapping(address => bool) public marketLpPairs; // LP Pairs // Tax tiers uint256[] public taxTiersTwaps; uint256[] public taxTiersRates; // Taxes to be calculated using the tax tiers bool public enabledTax; bool public isSetOracle = false; address public dexRouter = address(0x7E5E5957De93D00c352dF75159FbC37d5935f8bF); address public wMaticAddress = address(0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270); /* =================== Events =================== */ event LogRebase(uint256 indexed epoch, uint256 totalSupply, uint256 prevTotalSupply, uint256 prevRebaseSupply); event GrantExclusion(address indexed account); event RevokeExclusion(address indexed account); event DisableRebase(address indexed account); event EnableRebase(address indexed account); event SetTaxTiersTwap(uint8 _index, uint256 _value); event SetTaxTiersRate(uint8 _index, uint256 _value); event SetTokenOracle(address oldOracle, address newOracle); event SetTaxRateAfterRebase(uint256 oldValue, uint256 newValue); event SetTimeTaxAfterRebase(uint256 oldValue, uint256 newValue); event EnableCalculateTax(); event DisableCalculateTax(); constructor(address _daoFund, address _devFund) ERC20("xMATIC", "xMATIC") { require(_daoFund != address(0), "!_wethAddress"); require(_devFund != address(0), "!_wethAddress"); rewardPoolDistributed = false; _gonsPerFragment = 10 ** 18; _totalSupply = 0; lastTimeRebase = 0; daoFund = _daoFund; devFund = _devFund; taxTiersTwaps = [0, 8e17, 9e17, 101e16]; taxTiersRates = [2000, 2000, 2000, 0]; taxRateAfterRebase = 2000; // 20% timeTaxAfterRebase = 24 hours; taxOffice = msg.sender; IUniswapV2Router01 _dexRouter = IUniswapV2Router01(dexRouter); address dexPair = IUniswapV2Factory(_dexRouter.factory()).createPair(address(this), wMaticAddress); setMarketLpPairs(dexPair, true); _mint(msg.sender, INITIAL_FRAGMENTS_SUPPLY); } modifier onlyTaxOffice() { require(taxOffice == msg.sender, "taxOffice: caller is not the taxOffice"); _; } function getDaoFund() external view returns (address){ return daoFund; } function getDevFund() external view returns (address){ return devFund; } function getExcluded() external view returns (address[] memory){ return excluded; } function rebase(uint256 epoch, uint256 supplyDelta, bool negative) external onlyOperator returns (uint256){ uint256 prevRebaseSupply = rebaseSupply(); uint256 prevTotalSupply = _totalSupply; uint256 total = _rebase(supplyDelta, negative); emit LogRebase(epoch, total, prevTotalSupply, prevRebaseSupply); return total; } /** * @dev Notifies Fragments contract about a new rebase cycle. * @param supplyDelta The number of new fragment tokens to add into circulation via expansion. * @param negative check increase or decrease token * Return The total number of fragments after the supply adjustment. */ function _rebase(uint256 supplyDelta, bool negative) internal virtual returns (uint256) { // if supply delta is 0 nothing to rebase // if rebaseSupply is 0 nothing can be rebased if (supplyDelta == 0 || rebaseSupply() == 0) { return _totalSupply; } require(_totalSupply > supplyDelta, 'SupplyDelta must be lower than totalSupply'); uint256[] memory excludedBalances = _burnExcludedAccountTokens(); if (negative) { _totalSupply = _totalSupply.sub(uint256(supplyDelta)); } else { _totalSupply = _totalSupply.add(uint256(supplyDelta)); } if (_totalSupply > MAX_SUPPLY) { _totalSupply = MAX_SUPPLY; } _gonsPerFragment = TOTAL_GONS.div(_totalSupply); lastTimeRebase = block.timestamp; _mintExcludedAccountTokens(excludedBalances); return _totalSupply; } /** * @dev Exposes the supply available for rebasing. Essentially this is total supply minus excluded accounts * @return rebaseSupply The supply available for rebase */ function rebaseSupply() public view returns (uint256) { uint256 excludedSupply = 0; uint256 excludedLength = excluded.length; for (uint256 i = 0; i < excludedLength; i++) { excludedSupply = excludedSupply.add(balanceOf(excluded[i])); } return _totalSupply.sub(excludedSupply); } /** * @dev Burns all tokens from excluded accounts * @return excludedBalances The excluded account balances before burn */ function _burnExcludedAccountTokens() private returns (uint256[] memory excludedBalances){ uint256 excludedLength = excluded.length; excludedBalances = new uint256[](excludedLength); for (uint256 i = 0; i < excludedLength; i++) { address account = excluded[i]; uint256 balance = balanceOf(account); excludedBalances[i] = balance; if (balance > 0) _burn(account, balance); } return excludedBalances; } /** * @dev Mints tokens to excluded accounts * @param excludedBalances The amount of tokens to mint per address */ function _mintExcludedAccountTokens(uint256[] memory excludedBalances) private { uint256 excludedLength = excluded.length; for (uint256 i = 0; i < excludedLength; i++) { if (excludedBalances[i] > 0) _mint(excluded[i], excludedBalances[i]); } } /** * @dev Grant an exclusion from rebases * @param account The account to grant exclusion */ function grantRebaseExclusion(address account) external onlyOperator { if (_isExcluded[account]) return; require(excluded.length <= maxExclusion, 'Too many excluded accounts'); _isExcluded[account] = true; excluded.push(account); emit GrantExclusion(account); } /** * @dev Revokes an exclusion from rebases * @param account The account to revoke */ function revokeRebaseExclusion(address account) external onlyOperator { require(_isExcluded[account], 'Account is not already excluded'); uint256 excludedLength = excluded.length; for (uint256 i = 0; i < excludedLength; i++) { if (excluded[i] == account) { excluded[i] = excluded[excludedLength - 1]; _isExcluded[account] = false; excluded.pop(); emit RevokeExclusion(account); return; } } } //---OVERRIDE FUNCTION--- function totalSupply() public view override returns (uint256) { return _totalSupply; } function balanceOf(address who) public view override returns (uint256) { if (_gonsPerFragment == 0) return 0; return _balances[who].div(_gonsPerFragment); } function _mint(address account, uint256 amount) internal virtual override { require(account != address(0), 'ERC20: transfer to the zero address'); require(amount > 0, "ERC20: Can't mint 0 tokens"); TOTAL_GONS = TOTAL_GONS.add(_gonsPerFragment.mul(amount)); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add( amount.mul(_gonsPerFragment) ); emit Transfer(address(0), account, amount); } function _burn(address account, uint256 amount) internal virtual override { require(account != address(0), 'ERC20: burn from the zero address'); uint256 accountBalance = _balances[account]; require( accountBalance >= amount.mul(_gonsPerFragment), 'ERC20: burn amount exceeds balance' ); unchecked { _balances[account] = _balances[account].sub( amount.mul(_gonsPerFragment) ); } TOTAL_GONS = TOTAL_GONS.sub(_gonsPerFragment.mul(amount)); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function increaseAllowance(address spender, uint256 addedValue) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual override returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } function _approve( address owner, address spender, uint256 amount ) internal virtual override { 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 _transferBase( address from, address to, uint256 amount ) internal { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 gonValue = amount.mul(_gonsPerFragment); uint256 fromBalance = _balances[from]; require(fromBalance >= gonValue, "ERC20: transfer amount exceeds balance"); _balances[from] = _balances[from].sub(gonValue); _balances[to] = _balances[to].add(gonValue); emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } function _transfer( address from, address to, uint256 amount ) internal virtual override { require(from != address(0), "zero address"); require(to != address(0), "zero address"); require(daoFund != address(0), "require to set daoFund address"); if (enabledTax) { uint256 taxAmount = 0; if (marketLpPairs[to] && !excludedTaxAddresses[from]) { // _updatePrice(); uint256 currentTokenPrice = _getTokenPrice(); uint256 currentTaxRate = calculateTaxRate(currentTokenPrice); if (currentTaxRate > 0) { taxAmount = amount.mul(currentTaxRate).div(10000); } } if (taxAmount > 0) { amount = amount.sub(taxAmount); _transferBase(from, daoFund, taxAmount); } } _transferBase(from, to, amount); } /** * @notice Operator mints Token to a recipient * @param recipient_ The address of recipient * @param amount_ The amount of Token to mint to * @return whether the process has been done */ function mint(address recipient_, uint256 amount_) external onlyOperator returns (bool) { uint256 balanceBefore = balanceOf(recipient_); _mint(recipient_, amount_); uint256 balanceAfter = balanceOf(recipient_); return balanceAfter > balanceBefore; } function burn(uint256 amount) external { if (amount > 0) _burn(_msgSender(), amount); } //---END OVERRIDE FUNCTION--- function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), allowance(sender, _msgSender()).sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @notice distribute to reward pool (only once) */ function distributeReward( address _genesisPool ) external onlyOwner { require(!rewardPoolDistributed, "only can distribute once"); require(_genesisPool != address(0), "!_genesisPool"); rewardPoolDistributed = true; _mint(_genesisPool, INITIAL_GENESIS_POOL_DISTRIBUTION); } function setDaoFund(address _daoFund) external onlyOperator { require(_daoFund != address(0), "Invalid address"); daoFund = _daoFund; } function setDevFund(address _devFund) external onlyOperator { require(_devFund != address(0), "Invalid address"); devFund = _devFund; } function isDaoFund(address _address) external view returns (bool) { return _address == daoFund; } function _getTokenPrice() internal view returns (uint256) { try IOracle(oracle).consult(address(this), 1e18) returns (uint144 _price) { return uint256(_price); } catch { revert("Error: Failed to fetch token price from Oracle"); } } function _updatePrice() internal { try IOracle(oracle).update() {} catch { revert("Error: failed to update price from the oracle"); } } function setTokenOracle(address _oracle) external onlyTaxOffice { require(!isSetOracle, "Only can setTokenOracle once"); require(_oracle != address(0), "Oracle address cannot be 0 address"); emit SetTokenOracle(oracle, _oracle); oracle = _oracle; isSetOracle = true; } function calculateTaxRate(uint256 _tokenPrice) public view returns (uint256) { uint256 taxTiersTwapsCount = taxTiersTwaps.length; uint256 taxRate = 0; if (block.timestamp >= lastTimeRebase && block.timestamp < lastTimeRebase.add(timeTaxAfterRebase)) { return taxRateAfterRebase; } for (uint8 tierId = uint8(taxTiersTwapsCount.sub(1)); tierId >= 0; --tierId) { if (_tokenPrice >= taxTiersTwaps[tierId]) { taxRate = taxTiersRates[tierId]; break; } } return taxRate; } function setTaxTiersTwap(uint8 _index, uint256 _value) external onlyTaxOffice returns (bool) { uint256 taxTiersTwapsCount = taxTiersTwaps.length; require(_index < uint8(taxTiersTwapsCount), "Index has to lower than count of tax tiers"); if (_index > 0) { require(_value > taxTiersTwaps[_index - 1]); } if (_index < uint8(taxTiersTwapsCount.sub(1))) { require(_value < taxTiersTwaps[_index + 1]); } taxTiersTwaps[_index] = _value; emit SetTaxTiersTwap(_index, _value); return true; } function setTaxTiersRate(uint8 _index, uint256 _value) external onlyTaxOffice returns (bool) { uint8 taxTiersRatesCount = uint8(taxTiersRates.length); require(_index < taxTiersRatesCount, "Index has to lower than count of tax tiers"); require(_value <= 3000, "Tax equal or bigger to 30%"); taxTiersRates[_index] = _value; emit SetTaxTiersRate(_index, _value); return true; } function setTaxRateAfterRebase(uint256 _value) external onlyTaxOffice returns (bool) { require(_value <= 3000, "Tax equal or bigger to 30%"); emit SetTaxRateAfterRebase(taxRateAfterRebase, _value); taxRateAfterRebase = _value; return true; } function setTimeTaxAfterRebase(uint256 _value) external onlyTaxOffice returns (bool) { require(_value <= 24 hours, "Time equal or bigger to 24h"); emit SetTimeTaxAfterRebase(timeTaxAfterRebase, _value); timeTaxAfterRebase = _value; return true; } function excludeTaxAddress(address _address) external onlyTaxOffice returns (bool) { require(!excludedTaxAddresses[_address], "Address can't be excluded"); excludedTaxAddresses[_address] = true; return true; } function includeTaxAddress(address _address) external onlyTaxOffice returns (bool) { require(excludedTaxAddresses[_address], "Address can't be included"); excludedTaxAddresses[_address] = false; return true; } function isAddressExcluded(address _address) external view returns (bool) { return _isExcluded[_address]; } function enableCalculateTax() external onlyTaxOffice { enabledTax = true; emit EnableCalculateTax(); } function disableCalculateTax() external onlyTaxOffice { enabledTax = false; emit DisableCalculateTax(); } //Add new LP's for selling / buying fees function setMarketLpPairs(address _pair, bool _value) public onlyTaxOffice { marketLpPairs[_pair] = _value; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_daoFund","type":"address"},{"internalType":"address","name":"_devFund","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"DisableCalculateTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"DisableRebase","type":"event"},{"anonymous":false,"inputs":[],"name":"EnableCalculateTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"EnableRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"GrantExclusion","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prevTotalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prevRebaseSupply","type":"uint256"}],"name":"LogRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","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":"account","type":"address"}],"name":"RevokeExclusion","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SetTaxRateAfterRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"_index","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"SetTaxTiersRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"_index","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"SetTaxTiersTwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SetTimeTaxAfterRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOracle","type":"address"},{"indexed":false,"internalType":"address","name":"newOracle","type":"address"}],"name":"SetTokenOracle","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":"INITIAL_GENESIS_POOL_DISTRIBUTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_GONS","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":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"name":"calculateTaxRate","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":"dexRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableCalculateTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_genesisPool","type":"address"}],"name":"distributeReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableCalculateTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enabledTax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"excludeTaxAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"excluded","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedTaxAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDaoFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDevFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExcluded","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"grantRebaseExclusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"includeTaxAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"_address","type":"address"}],"name":"isAddressExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isDaoFund","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSetOracle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"marketLpPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"supplyDelta","type":"uint256"},{"internalType":"bool","name":"negative","type":"bool"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebaseSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeRebaseExclusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPoolDistributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_daoFund","type":"address"}],"name":"setDaoFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devFund","type":"address"}],"name":"setDevFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pair","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setMarketLpPairs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTaxRateAfterRebase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_index","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTaxTiersRate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_index","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTaxTiersTwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTimeTaxAfterRebase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"setTokenOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxOffice","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxRateAfterRebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"taxTiersRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"taxTiersTwaps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeTaxAfterRebase","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":"to","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":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wMaticAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405260198054757e5e5957de93d00c352df75159fbc37d5935f8bf0000610100600160b01b0319909116179055601a80546001600160a01b031916730d500b1d8e8ef31e21c99d1db9a6444d3adf12701790553480156200006257600080fd5b50604051620035a9380380620035a983398101604081905262000085916200083d565b604080518082018252600680825265784d4154494360d01b602080840182815285518087019096529285528401528151919291620000c691600391620006cf565b508051620000dc906004906020840190620006cf565b505050620000f9620000f36200040060201b60201c565b62000404565b600680546001600160a01b031916339081179091556040516000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36001600160a01b038216620001855760405162461bcd60e51b815260206004820152600d60248201526c215f776574684164647265737360981b60448201526064015b60405180910390fd5b6001600160a01b038116620001cd5760405162461bcd60e51b815260206004820152600d60248201526c215f776574684164647265737360981b60448201526064016200017c565b6006805460ff60a01b19169055670de0b6b3a76400006008556000600f8190556012819055600d80546001600160a01b038086166001600160a01b031992831617909255600e80549285169290911691909117905560408051608081018252918252670b1a2bc2ec5000006020830152670c7d713b49da000090820152670e043da6172500006060820152620002689060179060046200075e565b50604080516080810182526107d08082526020820181905291810191909152600060608201526200029e906018906004620007a7565b506107d060145562015180601355601180546001600160a01b031916331790556019546040805163c45a015560e01b81529051620100009092046001600160a01b031691600091839163c45a015591600480820192602092909190829003018186803b1580156200030e57600080fd5b505afa15801562000323573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200034991906200081f565b601a546040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c6539690604401602060405180830381600087803b1580156200039657600080fd5b505af1158015620003ab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003d191906200081f565b9050620003e081600162000456565b620003f63369032d26d12e980b600000620004ec565b5050505062000905565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6011546001600160a01b03163314620004c15760405162461bcd60e51b815260206004820152602660248201527f7461784f66666963653a2063616c6c6572206973206e6f7420746865207461786044820152654f666669636560d01b60648201526084016200017c565b6001600160a01b03919091166000908152601660205260409020805460ff1916911515919091179055565b6001600160a01b038216620005505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016200017c565b60008111620005a25760405162461bcd60e51b815260206004820152601a60248201527f45524332303a2043616e2774206d696e74203020746f6b656e7300000000000060448201526064016200017c565b620005d9620005c282600854620006ac60201b62001aa11790919060201c565b600754620006c160201b62001ab41790919060201c565b600781905550620005fb81600f54620006c160201b62001ab41790919060201c565b600f819055506200064e6200062160085483620006ac60201b62001aa11790919060201c565b6001600160a01b038416600090815260096020908152604090912054919062001ab4620006c1821b17901c565b6001600160a01b0383166000818152600960205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90620006a09085815260200190565b60405180910390a35050565b6000620006ba828462000890565b9392505050565b6000620006ba828462000875565b828054620006dd90620008b2565b90600052602060002090601f0160209004810192826200070157600085556200074c565b82601f106200071c57805160ff19168380011785556200074c565b828001600101855582156200074c579182015b828111156200074c5782518255916020019190600101906200072f565b506200075a929150620007eb565b5090565b8280548282559060005260206000209081019282156200074c579160200282015b828111156200074c57825182906001600160401b03169055916020019190600101906200077f565b8280548282559060005260206000209081019282156200074c579160200282015b828111156200074c578251829061ffff16905591602001919060010190620007c8565b5b808211156200075a5760008155600101620007ec565b80516001600160a01b03811681146200081a57600080fd5b919050565b6000602082840312156200083257600080fd5b620006ba8262000802565b600080604083850312156200085157600080fd5b6200085c8362000802565b91506200086c6020840162000802565b90509250929050565b600082198211156200088b576200088b620008ef565b500190565b6000816000190483118215151615620008ad57620008ad620008ef565b500290565b600181811c90821680620008c757607f821691505b60208210811415620008e957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b612c9480620009156000396000f3fe608060405234801561001057600080fd5b506004361061038e5760003560e01c80635d5d67d6116101de5780639badc3651161010f578063dd62ed3e116100ad578063ebca1bd91161007c578063ebca1bd9146107c3578063ee0ccea3146107ef578063f2fde38b146107f8578063f6050e501461080b57600080fd5b8063dd62ed3e14610756578063de9330171461078f578063e00713e9146107b2578063e5defb57146107bb57600080fd5b8063ab77f47c116100e9578063ab77f47c1461070a578063ae4db9191461071d578063b87c5a4a14610730578063bee2ddc21461074357600080fd5b80639badc365146106cf578063a457c2d7146106e4578063a9059cbb146106f757600080fd5b80637dc0d1d01161017c57806390bc2ded1161015657806390bc2ded1461068d57806395d89b41146106a05780639662676c146106a857806396a6ba20146106bc57600080fd5b80637dc0d1d01461065657806382fab8fc146106695780638da5cb5b1461067c57600080fd5b80636756c7b1116101b85780636756c7b11461062057806370a0823114610628578063715018a61461063b5780637af548c11461064357600080fd5b80635d5d67d6146105e75780635ed4f7cb146105fa57806366206ce91461060d57600080fd5b8063313ce567116102c35780634456eda21161026157806354dc8c441161023057806354dc8c44146105b2578063556f98fc146105bb578063570ca735146105c35780635c29908d146105d457600080fd5b80634456eda21461056e5780634965b279146105815780634be9d62d146105945780634e20a02c146105a157600080fd5b80633fc818031161029d5780633fc818031461052457806340c10f191461053557806342966c681461054857806342c6b4f11461055b57600080fd5b8063313ce567146104ef57806339509351146104fe5780633e5f13d41461051157600080fd5b806319157deb1161033057806329605e771161030a57806329605e77146104a55780632af0547d146104b85780632c559d27146104c95780632d559f6a146104dc57600080fd5b806319157deb1461046d57806323b872dd1461047f5780632418c4e11461049257600080fd5b8063092193ab1161036c578063092193ab14610410578063095ea7b314610425578063178055711461043857806318160ddd1461045b57600080fd5b806305fa791f1461039357806306fdde03146103ca5780630758d924146103df575b600080fd5b6103b56103a1366004612781565b600d546001600160a01b0391821691161490565b60405190151581526020015b60405180910390f35b6103d261081e565b6040516103c19190612947565b6019546103f8906201000090046001600160a01b031681565b6040516001600160a01b0390911681526020016103c1565b61042361041e366004612781565b6108b0565b005b6103b5610433366004612835565b610987565b6103b5610446366004612781565b60156020526000908152604090205460ff1681565b600f545b6040519081526020016103c1565b6019546103b590610100900460ff1681565b6103b561048d3660046127cf565b6109a1565b6104236104a0366004612781565b6109f0565b6104236104b3366004612781565b610bd2565b600d546001600160a01b03166103f8565b6104236104d7366004612781565b610be3565b601a546103f8906001600160a01b031681565b604051601281526020016103c1565b6103b561050c366004612835565b610c77565b6011546103f8906001600160a01b031681565b600e546001600160a01b03166103f8565b6103b5610543366004612835565b610cb1565b610423610556366004612888565b610d0c565b61045f610569366004612888565b610d1c565b6006546001600160a01b031633146103b5565b6103b561058f366004612781565b610d3d565b6019546103b59060ff1681565b61045f69021e19e0c9bab240000081565b61045f60145481565b61045f610dfb565b6006546001600160a01b03166103f8565b61045f6105e2366004612888565b610e70565b61045f6105f5366004612888565b610e80565b61042361060836600461280b565b610f2f565b6103b561061b3660046128d6565b610f84565b6104236110d3565b61045f610636366004612781565b611132565b61042361116c565b61045f6106513660046128a1565b611180565b6010546103f8906001600160a01b031681565b6103b5610677366004612781565b611219565b6005546001600160a01b03166103f8565b6103b561069b366004612888565b6112d8565b6103d261139d565b6006546103b590600160a01b900460ff1681565b6104236106ca366004612781565b6113ac565b6106d7611508565b6040516103c191906128fa565b6103b56106f2366004612835565b611569565b6103b5610705366004612835565b611606565b6103b5610718366004612888565b611614565b61042361072b366004612781565b6116d8565b6103b561073e3660046128d6565b61176c565b6103f8610751366004612888565b611872565b61045f61076436600461279c565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b6103b561079d366004612781565b60166020526000908152604090205460ff1681565b61045f60075481565b61042361189c565b6103b56107d1366004612781565b6001600160a01b03166000908152600b602052604090205460ff1690565b61045f60135481565b610423610806366004612781565b6118fe565b610423610819366004612781565b611974565b60606003805461082d90612b88565b80601f016020809104026020016040519081016040528092919081815260200182805461085990612b88565b80156108a65780601f1061087b576101008083540402835291602001916108a6565b820191906000526020600020905b81548152906001019060200180831161088957829003601f168201915b5050505050905090565b6108b8611ac0565b600654600160a01b900460ff16156109175760405162461bcd60e51b815260206004820152601860248201527f6f6e6c792063616e2064697374726962757465206f6e6365000000000000000060448201526064015b60405180910390fd5b6001600160a01b03811661095d5760405162461bcd60e51b815260206004820152600d60248201526c0857d9d95b995cda5cd41bdbdb609a1b604482015260640161090e565b6006805460ff60a01b1916600160a01b1790556109848169021e19e0c9bab2400000611b1a565b50565b600033610995818585611c4b565b60019150505b92915050565b60006109ae848484611d70565b6109e684336109e185604051806060016040528060288152602001612c37602891396109da8a33610764565b9190611f16565b611c4b565b5060019392505050565b6006546001600160a01b03163314610a1a5760405162461bcd60e51b815260040161090e90612a25565b6001600160a01b0381166000908152600b602052604090205460ff16610a825760405162461bcd60e51b815260206004820152601f60248201527f4163636f756e74206973206e6f7420616c7265616479206578636c7564656400604482015260640161090e565b600c5460005b81811015610bcd57826001600160a01b0316600c8281548110610aad57610aad612c0a565b6000918252602090912001546001600160a01b03161415610bbb57600c610ad5600184612b31565b81548110610ae557610ae5612c0a565b600091825260209091200154600c80546001600160a01b039092169183908110610b1157610b11612c0a565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559185168152600b90915260409020805460ff19169055600c805480610b6057610b60612bf4565b600082815260208120820160001990810180546001600160a01b03191690559091019091556040516001600160a01b038516917fd16467d2057124ad076db0cac7022ebd0361128424aeb658f33adaa5c57b716891a2505050565b80610bc581612bc3565b915050610a88565b505050565b610bda611ac0565b61098481611f42565b6006546001600160a01b03163314610c0d5760405162461bcd60e51b815260040161090e90612a25565b6001600160a01b038116610c555760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161090e565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b336000818152600a602090815260408083206001600160a01b038716845290915281205490919061099590829086906109e1908790612ab3565b6006546000906001600160a01b03163314610cde5760405162461bcd60e51b815260040161090e90612a25565b6000610ce984611132565b9050610cf58484611b1a565b6000610d0085611132565b91909111949350505050565b8015610984576109843382612022565b60178181548110610d2c57600080fd5b600091825260209091200154905081565b6011546000906001600160a01b03163314610d6a5760405162461bcd60e51b815260040161090e906129df565b6001600160a01b03821660009081526015602052604090205460ff16610dd25760405162461bcd60e51b815260206004820152601960248201527f416464726573732063616e277420626520696e636c7564656400000000000000604482015260640161090e565b506001600160a01b0381166000908152601560205260409020805460ff1916905560015b919050565b600c546000908190815b81811015610e5b57610e47610e40600c8381548110610e2657610e26612c0a565b6000918252602090912001546001600160a01b0316611132565b8490611ab4565b925080610e5381612bc3565b915050610e05565b50600f54610e6990836121be565b9250505090565b60188181548110610d2c57600080fd5b6017546012546000919082904210801590610ea85750601354601254610ea591611ab4565b42105b15610eb857505060145492915050565b6000610ec58360016121be565b90505b60178160ff1681548110610ede57610ede612c0a565b90600052602060002001548510610f175760188160ff1681548110610f0557610f05612c0a565b90600052602060002001549150610f27565b610f2081612b6b565b9050610ec8565b509392505050565b6011546001600160a01b03163314610f595760405162461bcd60e51b815260040161090e906129df565b6001600160a01b03919091166000908152601660205260409020805460ff1916911515919091179055565b6011546000906001600160a01b03163314610fb15760405162461bcd60e51b815260040161090e906129df565b60175460ff80821690851610610fd95760405162461bcd60e51b815260040161090e90612a69565b60ff841615611018576017610fef600186612b48565b60ff168154811061100257611002612c0a565b9060005260206000200154831161101857600080fd5b6110238160016121be565b60ff168460ff16101561106657601761103d856001612acb565b60ff168154811061105057611050612c0a565b9060005260206000200154831061106657600080fd5b8260178560ff168154811061107d5761107d612c0a565b600091825260209182902001919091556040805160ff871681529182018590527f11e258830da0354d8151119ccda6016bdaf9683e8bd24ff5a64b00700f92eef491015b60405180910390a15060019392505050565b6011546001600160a01b031633146110fd5760405162461bcd60e51b815260040161090e906129df565b6019805460ff191690556040517f98e3faa1ead102f33ef2051acf38a89c11f481da1a7f749ed33a7d05adbdd52790600090a1565b60006008546000141561114757506000919050565b6008546001600160a01b03831660009081526009602052604090205461099b916121ca565b611174611ac0565b61117e60006121d6565b565b6006546000906001600160a01b031633146111ad5760405162461bcd60e51b815260040161090e90612a25565b60006111b7610dfb565b600f5490915060006111c98686612228565b604080518281526020810185905290810185905290915087907fa9219328b62d2057317e0a7d7634032c7caca3f5b8230d51b25e957efc67dbf49060600160405180910390a29695505050505050565b6011546000906001600160a01b031633146112465760405162461bcd60e51b815260040161090e906129df565b6001600160a01b03821660009081526015602052604090205460ff16156112af5760405162461bcd60e51b815260206004820152601960248201527f416464726573732063616e2774206265206578636c7564656400000000000000604482015260640161090e565b506001600160a01b03166000908152601560205260409020805460ff1916600190811790915590565b6011546000906001600160a01b031633146113055760405162461bcd60e51b815260040161090e906129df565b620151808211156113585760405162461bcd60e51b815260206004820152601b60248201527f54696d6520657175616c206f722062696767657220746f203234680000000000604482015260640161090e565b60135460408051918252602082018490527ffde063ffda8384bf087375de3cae7ff5d6533d140c08e310dc5b7d2cbb0cd7b0910160405180910390a150601355600190565b60606004805461082d90612b88565b6011546001600160a01b031633146113d65760405162461bcd60e51b815260040161090e906129df565b601954610100900460ff161561142e5760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c792063616e20736574546f6b656e4f7261636c65206f6e636500000000604482015260640161090e565b6001600160a01b03811661148f5760405162461bcd60e51b815260206004820152602260248201527f4f7261636c6520616464726573732063616e6e6f742062652030206164647265604482015261737360f01b606482015260840161090e565b601054604080516001600160a01b03928316815291831660208301527f6bc4fdedd1957cfe13a110158929940440c759893f647a147e8a3dfd3c531dd0910160405180910390a1601080546001600160a01b039092166001600160a01b03199092169190911790556019805461ff001916610100179055565b6060600c8054806020026020016040519081016040528092919081815260200182805480156108a657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611542575050505050905090565b336000818152600a602090815260408083206001600160a01b0387168452909152812054909190838110156115ee5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161090e565b6115fb8286868403611c4b565b506001949350505050565b600033610995818585611d70565b6011546000906001600160a01b031633146116415760405162461bcd60e51b815260040161090e906129df565b610bb88211156116935760405162461bcd60e51b815260206004820152601a60248201527f54617820657175616c206f722062696767657220746f20333025000000000000604482015260640161090e565b60145460408051918252602082018490527f33111a6fc2c14cc35d93644865b3ded9566a9c0e6ec6cd7d4e07b4d17ba04ad0910160405180910390a150601455600190565b6006546001600160a01b031633146117025760405162461bcd60e51b815260040161090e90612a25565b6001600160a01b03811661174a5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640161090e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6011546000906001600160a01b031633146117995760405162461bcd60e51b815260040161090e906129df565b60185460ff808216908516106117c15760405162461bcd60e51b815260040161090e90612a69565b610bb88311156118135760405162461bcd60e51b815260206004820152601a60248201527f54617820657175616c206f722062696767657220746f20333025000000000000604482015260640161090e565b8260188560ff168154811061182a5761182a612c0a565b600091825260209182902001919091556040805160ff871681529182018590527f29c340d68011babd0e45b8048773a42de62c7d73e7628251d056421439bd1d7691016110c1565b600c818154811061188257600080fd5b6000918252602090912001546001600160a01b0316905081565b6011546001600160a01b031633146118c65760405162461bcd60e51b815260040161090e906129df565b6019805460ff191660011790556040517f3407c535a6480fb414a58a6e68477ae52993ed4255ac2f970e91fd0d36c79ec390600090a1565b611906611ac0565b6001600160a01b03811661196b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161090e565b610984816121d6565b6006546001600160a01b0316331461199e5760405162461bcd60e51b815260040161090e90612a25565b6001600160a01b0381166000908152600b602052604090205460ff16156119c25750565b600c5460141015611a155760405162461bcd60e51b815260206004820152601a60248201527f546f6f206d616e79206578636c75646564206163636f756e7473000000000000604482015260640161090e565b6001600160a01b0381166000818152600b6020526040808220805460ff19166001908117909155600c8054918201815583527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191684179055517fa97aa82b14e9f5eee05f81ff79815563498d3b5d92f4d4b3e3d380f0c0d9eebe9190a250565b6000611aad8284612b12565b9392505050565b6000611aad8284612ab3565b6005546001600160a01b0316331461117e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161090e565b6001600160a01b038216611b405760405162461bcd60e51b815260040161090e9061299c565b60008111611b905760405162461bcd60e51b815260206004820152601a60248201527f45524332303a2043616e2774206d696e74203020746f6b656e73000000000000604482015260640161090e565b600854611baa90611ba19083611aa1565b60075490611ab4565b600755600f54611bba9082611ab4565b600f55600854611bee90611bcf908390611aa1565b6001600160a01b03841660009081526009602052604090205490611ab4565b6001600160a01b0383166000818152600960205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611c3f9085815260200190565b60405180910390a35050565b6001600160a01b038316611cad5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161090e565b6001600160a01b038216611d0e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161090e565b6001600160a01b038381166000818152600a602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316611db55760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b604482015260640161090e565b6001600160a01b038216611dfa5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b604482015260640161090e565b600d546001600160a01b0316611e525760405162461bcd60e51b815260206004820152601e60248201527f7265717569726520746f207365742064616f46756e6420616464726573730000604482015260640161090e565b60195460ff1615611f0b576001600160a01b03821660009081526016602052604081205460ff168015611e9e57506001600160a01b03841660009081526015602052604090205460ff16155b15611ede576000611ead61232d565b90506000611eba82610e80565b90508015611edb57611ed8612710611ed28684611aa1565b906121ca565b92505b50505b8015611f0957611eee82826121be565b600d54909250611f099085906001600160a01b031683612420565b505b610bcd838383612420565b60008184841115611f3a5760405162461bcd60e51b815260040161090e9190612947565b505050900390565b6001600160a01b03811615801590611f6857506006546001600160a01b03828116911614155b611fca5760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b606482015260840161090e565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0382166120825760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161090e565b6001600160a01b0382166000908152600960205260409020546008546120a9908390611aa1565b8110156121035760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161090e565b61213a61211b60085484611aa190919063ffffffff16565b6001600160a01b038516600090815260096020526040902054906121be565b6001600160a01b03841660009081526009602052604090205560085461216d906121649084611aa1565b600754906121be565b600755600f5461217d90836121be565b600f556040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611d63565b6000611aad8284612b31565b6000611aad8284612af0565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082158061223c575061223a610dfb565b155b1561224a5750600f5461099b565b82600f54116122ae5760405162461bcd60e51b815260206004820152602a60248201527f537570706c7944656c7461206d757374206265206c6f776572207468616e20746044820152696f74616c537570706c7960b01b606482015260840161090e565b60006122b86125f1565b905082156122d557600f546122cd90856121be565b600f556122e6565b600f546122e29085611ab4565b600f555b600f546001600160801b031015612303576001600160801b03600f555b600f54600754612312916121ca565b60085542601255612322816126c5565b5050600f5492915050565b601054604051633ddac95360e01b8152306004820152670de0b6b3a764000060248201526000916001600160a01b031690633ddac9539060440160206040518083038186803b15801561237f57600080fd5b505afa9250505080156123af575060408051601f3d908101601f191682019092526123ac9181019061285f565b60015b6124125760405162461bcd60e51b815260206004820152602e60248201527f4572726f723a204661696c656420746f20666574636820746f6b656e2070726960448201526d63652066726f6d204f7261636c6560901b606482015260840161090e565b6001600160901b0316919050565b6001600160a01b0383166124845760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161090e565b6001600160a01b0382166124aa5760405162461bcd60e51b815260040161090e9061299c565b60006124c160085483611aa190919063ffffffff16565b6001600160a01b0385166000908152600960205260409020549091508181101561253c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161090e565b6001600160a01b03851660009081526009602052604090205461255f90836121be565b6001600160a01b03808716600090815260096020526040808220939093559086168152205461258e9083611ab4565b6001600160a01b0380861660008181526009602052604090819020939093559151908716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906125e29087815260200190565b60405180910390a35050505050565b600c546060908067ffffffffffffffff81111561261057612610612c20565b604051908082528060200260200182016040528015612639578160200160208202803683370190505b50915060005b818110156126c0576000600c828154811061265c5761265c612c0a565b60009182526020822001546001600160a01b0316915061267b82611132565b90508085848151811061269057612690612c0a565b602090810291909101015280156126ab576126ab8282612022565b505080806126b890612bc3565b91505061263f565b505090565b600c5460005b81811015610bcd5760008382815181106126e7576126e7612c0a565b6020026020010151111561274857612748600c828154811061270b5761270b612c0a565b9060005260206000200160009054906101000a90046001600160a01b031684838151811061273b5761273b612c0a565b6020026020010151611b1a565b8061275281612bc3565b9150506126cb565b80356001600160a01b0381168114610df657600080fd5b80358015158114610df657600080fd5b60006020828403121561279357600080fd5b611aad8261275a565b600080604083850312156127af57600080fd5b6127b88361275a565b91506127c66020840161275a565b90509250929050565b6000806000606084860312156127e457600080fd5b6127ed8461275a565b92506127fb6020850161275a565b9150604084013590509250925092565b6000806040838503121561281e57600080fd5b6128278361275a565b91506127c660208401612771565b6000806040838503121561284857600080fd5b6128518361275a565b946020939093013593505050565b60006020828403121561287157600080fd5b81516001600160901b0381168114611aad57600080fd5b60006020828403121561289a57600080fd5b5035919050565b6000806000606084860312156128b657600080fd5b83359250602084013591506128cd60408501612771565b90509250925092565b600080604083850312156128e957600080fd5b823560ff8116811461285157600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561293b5783516001600160a01b031683529284019291840191600101612916565b50909695505050505050565b600060208083528351808285015260005b8181101561297457858101830151858201604001528201612958565b81811115612986576000604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526026908201527f7461784f66666963653a2063616c6c6572206973206e6f7420746865207461786040820152654f666669636560d01b606082015260800190565b60208082526024908201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201526330ba37b960e11b606082015260800190565b6020808252602a908201527f496e6465782068617320746f206c6f776572207468616e20636f756e74206f666040820152692074617820746965727360b01b606082015260800190565b60008219821115612ac657612ac6612bde565b500190565b600060ff821660ff84168060ff03821115612ae857612ae8612bde565b019392505050565b600082612b0d57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612b2c57612b2c612bde565b500290565b600082821015612b4357612b43612bde565b500390565b600060ff821660ff841680821015612b6257612b62612bde565b90039392505050565b600060ff821680612b7e57612b7e612bde565b6000190192915050565b600181811c90821680612b9c57607f821691505b60208210811415612bbd57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612bd757612bd7612bde565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a264697066735822122001b58a9403ed4c81120420cbe724220ed07495b62c3c7589c002c3a6792d58a764736f6c6343000807003300000000000000000000000062ce5d9cd2fbb670cf2c73d0df2bfe8e706d887f00000000000000000000000036cca19c2e8906a2106a0e19b1b8d550ee772439
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000062ce5d9cd2fbb670cf2c73d0df2bfe8e706d887f00000000000000000000000036cca19c2e8906a2106a0e19b1b8d550ee772439
-----Decoded View---------------
Arg [0] : _daoFund (address): 0x62ce5d9cd2fbb670cf2c73d0df2bfe8e706d887f
Arg [1] : _devFund (address): 0x36cca19c2e8906a2106a0e19b1b8d550ee772439
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000062ce5d9cd2fbb670cf2c73d0df2bfe8e706d887f
Arg [1] : 00000000000000000000000036cca19c2e8906a2106a0e19b1b8d550ee772439