ERC-20
DeFi
Overview
Max Total Supply
427,053,638.538257846777493344 UMB
Holders
10,229 ( -0.049%)
Market
Price
$0.02 @ 0.000005 ETH (-6.42%)
Onchain Market Cap
$7,796,974.51
Circulating Supply Market Cap
$7,467,147.00
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
UMB
Compiler Version
v0.7.5+commit.eb77ed08
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-02-08 */ // File: @openzeppelin/contracts/math/SafeMath.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ 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) { 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) { 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) { // 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) { 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) { 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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); 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) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @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. 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) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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) { 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) { require(b > 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/Context.sol pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ 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); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of 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 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ 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; } /** * @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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ 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); emit Transfer(sender, recipient, 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: * * - `to` 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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(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); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @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 to 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 { } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity >=0.6.0 <0.8.0; /** * @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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/interfaces/Owned.sol pragma solidity 0.7.5; abstract contract Owned is Ownable { constructor(address _owner) { transferOwnership(_owner); } } // File: contracts/interfaces/ISwapReceiver.sol pragma solidity 0.7.5; interface ISwapReceiver { function swapMint(address _holder, uint256 _amount) external; } // File: contracts/interfaces/SwappableToken.sol pragma solidity 0.7.5; // Inheritance /// @title Umbrella Rewards contract /// @author umb.network /// @notice This contract serves Swap functionality for rewards tokens /// @dev It allows to swap itself for other token (main UMB token). /// Swap can start 1y from deployment or can be triggered earlier by owner. /// There is a daily limit for swapping so we can't swap all at once. /// When swap is executing, this contract do not care about target token, /// so target token should be responsible for all the check before he mint tokens for swap. abstract contract SwappableToken is Owned, ERC20 { using SafeMath for uint256; uint256 public totalAmountToBeSwapped; uint256 public swappedSoFar; uint256 public swapStartsOn; uint256 public swapDuration; // ========== CONSTRUCTOR ========== // constructor(uint _totalAmountToBeSwapped, uint _swapDuration) { require(_totalAmountToBeSwapped != 0, "_totalAmountToBeSwapped is empty"); require(_swapDuration != 0, "swapDuration is empty"); totalAmountToBeSwapped = _totalAmountToBeSwapped; swapStartsOn = block.timestamp + 365 days; swapDuration = _swapDuration; } // ========== MODIFIERS ========== // // ========== VIEWS ========== // function isSwapStarted() public view returns (bool) { return block.timestamp >= swapStartsOn; } function canSwapTokens(address _address) public view returns (bool) { return balanceOf(_address) <= totalUnlockedAmountOfToken().sub(swappedSoFar); } function totalUnlockedAmountOfToken() public view returns (uint256) { if (block.timestamp < swapStartsOn) return 0; if (block.timestamp >= swapStartsOn.add(swapDuration)) { return totalSupply().add(swappedSoFar); } else { return totalSupply().add(swappedSoFar).mul(block.timestamp.sub(swapStartsOn)).div(swapDuration); } } // ========== MUTATIVE FUNCTIONS ========== // function swapFor(ISwapReceiver _umb) external { require(block.timestamp >= swapStartsOn, "swapping period has not started yet"); uint amountToSwap = balanceOf(_msgSender()); require(amountToSwap != 0, "you dont have tokens to swap"); require(amountToSwap <= totalUnlockedAmountOfToken().sub(swappedSoFar), "your swap is over the limit"); swappedSoFar = swappedSoFar.add(amountToSwap); _burn(_msgSender(), amountToSwap); _umb.swapMint(_msgSender(), amountToSwap); emit LogSwap(_msgSender(), amountToSwap); } // ========== PRIVATE / INTERNAL ========== // // ========== RESTRICTED FUNCTIONS ========== // function startEarlySwap() external onlyOwner { require(block.timestamp < swapStartsOn, "swap is already allowed"); swapStartsOn = block.timestamp; emit LogStartEarlySwapNow(block.timestamp); } // ========== EVENTS ========== // event LogStartEarlySwapNow(uint time); event LogSwap(address indexed swappedTo, uint amount); } // File: contracts/interfaces/IBurnableToken.sol pragma solidity 0.7.5; interface IBurnableToken { function burn(uint256 _amount) external; } // File: contracts/interfaces/MintableToken.sol pragma solidity 0.7.5; // Inheritance /// @title Umbrella Rewards contract /// @author umb.network /// @notice This contract allows to mint tokens and burn key (renounceOwnership) /// @dev Can be use used with MultiSig as owner abstract contract MintableToken is Owned, ERC20, IBurnableToken { using SafeMath for uint256; // ========== STATE VARIABLES ========== // uint256 public maxAllowedTotalSupply; // ========== CONSTRUCTOR ========== // constructor (uint256 _maxAllowedTotalSupply) { require(_maxAllowedTotalSupply != 0, "_maxAllowedTotalSupply is empty"); maxAllowedTotalSupply = _maxAllowedTotalSupply; } // ========== MODIFIERS ========== // modifier assertMaxSupply(uint256 _amountToMint) { require(totalSupply().add(_amountToMint) <= maxAllowedTotalSupply, "total supply limit exceeded"); _; } // ========== MUTATIVE FUNCTIONS ========== // function burn(uint256 _amount) override external { uint balance = balanceOf(msg.sender); require(_amount <= balance, "not enough tokens to burn"); _burn(msg.sender, _amount); maxAllowedTotalSupply = maxAllowedTotalSupply - _amount; } // ========== RESTRICTED FUNCTIONS ========== // function mint(address _holder, uint256 _amount) external onlyOwner() assertMaxSupply(_amount) { require(_amount > 0, "zero amount"); _mint(_holder, _amount); } } // File: contracts/interfaces/Airdrop.sol pragma solidity 0.7.5; // Inheritance /// @title Umbrella Airdrop contract /// @author umb.network /// @notice This contract provides Airdrop capability. abstract contract Airdrop is ERC20 { function airdropTokens( address[] calldata _addresses, uint256[] calldata _amounts ) external { require(_addresses.length != 0, "there are no _addresses"); require(_addresses.length == _amounts.length, "the number of _addresses should match _amounts"); for(uint i = 0; i < _addresses.length; i++) { transfer(_addresses[i], _amounts[i]); } } } // File: contracts/UMB.sol pragma solidity 0.7.5; // import "@nomiclabs/buidler/console.sol"; // Inheritance /// @title Umbrella Rewards contract /// @author umb.network /// @notice This is main UMB token /// /// @dev Owner (multisig) can set list of rewards tokens rUMB. rUMBs can be swapped to UMB. /// This token can be mint by owner eg we need UMB for auction. After that we can burn the key /// so nobody can mint anymore. /// It has limit for max total supply, so we need to make sure, total amount of rUMBs fit this limit. contract UMB is MintableToken, Airdrop, ISwapReceiver { using SafeMath for uint256; // ========== STATE VARIABLES ========== // mapping(address => bool) rewardsTokens; // ========== CONSTRUCTOR ========== // constructor ( address _owner, address _initialHolder, uint _initialBalance, uint256 _maxAllowedTotalSupply, string memory _name, string memory _symbol ) Owned(_owner) ERC20(_name, _symbol) MintableToken(_maxAllowedTotalSupply) { if (_initialHolder != address(0) && _initialBalance != 0) { _mint(_initialHolder, _initialBalance); } } // ========== MODIFIERS ========== // // ========== MUTATIVE FUNCTIONS ========== // // ========== PRIVATE / INTERNAL ========== // // ========== RESTRICTED FUNCTIONS ========== // function setRewardTokens(address[] calldata _tokens, bool[] calldata _statuses) external onlyOwner { require(_tokens.length > 0, "please pass a positive number of reward tokens"); require(_tokens.length == _statuses.length, "please pass same number of tokens and statuses"); for (uint i = 0; i < _tokens.length; i++) { rewardsTokens[_tokens[i]] = _statuses[i]; } emit LogSetRewardTokens(_tokens, _statuses); } function swapMint(address _holder, uint256 _amount) public override assertMaxSupply(_amount) { require(rewardsTokens[_msgSender()], "only reward token can be swapped"); _mint(_holder, _amount); } // ========== EVENTS ========== // event LogSetRewardTokens(address[] tokens, bool[] statuses); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_initialHolder","type":"address"},{"internalType":"uint256","name":"_initialBalance","type":"uint256"},{"internalType":"uint256","name":"_maxAllowedTotalSupply","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"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":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"bool[]","name":"statuses","type":"bool[]"}],"name":"LogSetRewardTokens","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":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"airdropTokens","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":[{"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":[],"name":"maxAllowedTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","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":"address[]","name":"_tokens","type":"address[]"},{"internalType":"bool[]","name":"_statuses","type":"bool[]"}],"name":"setRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"swapMint","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"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162002e2938038062002e29833981810160405260c08110156200003757600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190805160405193929190846401000000008211156200008057600080fd5b838201915060208201858111156200009757600080fd5b8251866001820283011164010000000082111715620000b557600080fd5b8083526020830192505050908051906020019080838360005b83811015620000eb578082015181840152602081019050620000ce565b50505050905090810190601f168015620001195780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013d57600080fd5b838201915060208201858111156200015457600080fd5b82518660018202830111640100000000821117156200017257600080fd5b8083526020830192505050908051906020019080838360005b83811015620001a85780820151818401526020810190506200018b565b50505050905090810190601f168015620001d65780820380516001836020036101000a031916815260200191505b50604052505050828282886000620001f3620003d760201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350620002a281620003df60201b60201c565b508160049080519060200190620002bb9291906200087b565b508060059080519060200190620002d49291906200087b565b506012600660006101000a81548160ff021916908360ff160217905550505060008114156200036b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5f6d6178416c6c6f776564546f74616c537570706c7920697320656d7074790081525060200191505060405180910390fd5b8060078190555050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614158015620003b2575060008414155b15620003cb57620003ca8585620005e460201b60201c565b5b50505050505062000931565b600033905090565b620003ef620003d760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000415620007c460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200049f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018062002e036026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000688576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b6200069c60008383620007ed60201b60201c565b620006b881600354620007f260201b6200187b1790919060201c565b6003819055506200071781600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054620007f260201b6200187b1790919060201c565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b505050565b60008082840190508381101562000871576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620008b35760008555620008ff565b82601f10620008ce57805160ff1916838001178555620008ff565b82800160010185558215620008ff579182015b82811115620008fe578251825591602001919060010190620008e1565b5b5090506200090e919062000912565b5090565b5b808211156200092d57600081600090555060010162000913565b5090565b6124c280620009416000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063706f6937116100ad578063a457c2d711610071578063a457c2d71461068e578063a4d70962146106f2578063a9059cbb14610740578063dd62ed3e146107a4578063f2fde38b1461081c5761012c565b8063706f6937146104a757806370a0823114610575578063715018a6146105cd5780638da5cb5b146105d757806395d89b411461060b5761012c565b8063313ce567116100f4578063313ce567146102d857806339509351146102f957806340c10f191461035d57806342966c68146103ab5780636daf029f146103d95761012c565b806306fdde0314610131578063095ea7b3146101b457806313e4172c1461021857806318160ddd1461023657806323b872dd14610254575b600080fd5b610139610860565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561017957808201518184015260208101905061015e565b50505050905090810190601f1680156101a65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610200600480360360408110156101ca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610902565b60405180821515815260200191505060405180910390f35b610220610920565b6040518082815260200191505060405180910390f35b61023e610926565b6040518082815260200191505060405180910390f35b6102c06004803603606081101561026a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610930565b60405180821515815260200191505060405180910390f35b6102e0610a09565b604051808260ff16815260200191505060405180910390f35b6103456004803603604081101561030f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a20565b60405180821515815260200191505060405180910390f35b6103a96004803603604081101561037357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ad3565b005b6103d7600480360360208110156103c157600080fd5b8101908080359060200190929190505050610c99565b005b6104a5600480360360408110156103ef57600080fd5b810190808035906020019064010000000081111561040c57600080fd5b82018360208201111561041e57600080fd5b8035906020019184602083028401116401000000008311171561044057600080fd5b90919293919293908035906020019064010000000081111561046157600080fd5b82018360208201111561047357600080fd5b8035906020019184602083028401116401000000008311171561049557600080fd5b9091929391929390505050610d35565b005b610573600480360360408110156104bd57600080fd5b81019080803590602001906401000000008111156104da57600080fd5b8201836020820111156104ec57600080fd5b8035906020019184602083028401116401000000008311171561050e57600080fd5b90919293919293908035906020019064010000000081111561052f57600080fd5b82018360208201111561054157600080fd5b8035906020019184602083028401116401000000008311171561056357600080fd5b9091929391929390505050610ff0565b005b6105b76004803603602081101561058b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061112f565b6040518082815260200191505060405180910390f35b6105d5611178565b005b6105df6112e5565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61061361130e565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610653578082015181840152602081019050610638565b50505050905090810190601f1680156106805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106da600480360360408110156106a457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113b0565b60405180821515815260200191505060405180910390f35b61073e6004803603604081101561070857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061147d565b005b61078c6004803603604081101561075657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506115e4565b60405180821515815260200191505060405180910390f35b610806600480360360408110156107ba57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611602565b6040518082815260200191505060405180910390f35b61085e6004803603602081101561083257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611689565b005b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108f85780601f106108cd576101008083540402835291602001916108f8565b820191906000526020600020905b8154815290600101906020018083116108db57829003601f168201915b5050505050905090565b600061091661090f611903565b848461190b565b6001905092915050565b60075481565b6000600354905090565b600061093d848484611b02565b6109fe84610949611903565b6109f9856040518060600160405280602881526020016123a860289139600260008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006109af611903565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611dc79092919063ffffffff16565b61190b565b600190509392505050565b6000600660009054906101000a900460ff16905090565b6000610ac9610a2d611903565b84610ac48560026000610a3e611903565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461187b90919063ffffffff16565b61190b565b6001905092915050565b610adb611903565b73ffffffffffffffffffffffffffffffffffffffff16610af96112e5565b73ffffffffffffffffffffffffffffffffffffffff1614610b82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600754610ba082610b92610926565b61187b90919063ffffffff16565b1115610c14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f746f74616c20737570706c79206c696d6974206578636565646564000000000081525060200191505060405180910390fd5b60008211610c8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f7a65726f20616d6f756e7400000000000000000000000000000000000000000081525060200191505060405180910390fd5b610c948383611e81565b505050565b6000610ca43361112f565b905080821115610d1c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f6e6f7420656e6f75676820746f6b656e7320746f206275726e0000000000000081525060200191505060405180910390fd5b610d26338361204a565b81600754036007819055505050565b610d3d611903565b73ffffffffffffffffffffffffffffffffffffffff16610d5b6112e5565b73ffffffffffffffffffffffffffffffffffffffff1614610de4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008484905011610e40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061243a602e913960400191505060405180910390fd5b818190508484905014610e9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806122bc602e913960400191505060405180910390fd5b60005b84849050811015610f4c57828282818110610eb857fe5b90506020020135151560086000878785818110610ed157fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610ea1565b507f1c642aedd77a6c0551f3b7c026dae498837b683e54380a47c3874bef3ad0394a848484846040518080602001806020018381038352878782818152602001925060200280828437600081840152601f19601f8201169050808301925050508381038252858582818152602001925060200280828437600081840152601f19601f820116905080830192505050965050505050505060405180910390a150505050565b600084849050141561106a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f746865726520617265206e6f205f61646472657373657300000000000000000081525060200191505060405180910390fd5b8181905084849050146110c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061237a602e913960400191505060405180910390fd5b60005b848490508110156111285761111a8585838181106110e557fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1684848481811061110e57fe5b905060200201356115e4565b5080806001019150506110cb565b5050505050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611180611903565b73ffffffffffffffffffffffffffffffffffffffff1661119e6112e5565b73ffffffffffffffffffffffffffffffffffffffff1614611227576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113a65780601f1061137b576101008083540402835291602001916113a6565b820191906000526020600020905b81548152906001019060200180831161138957829003601f168201915b5050505050905090565b60006114736113bd611903565b8461146e8560405180606001604052806025815260200161246860259139600260006113e7611903565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611dc79092919063ffffffff16565b61190b565b6001905092915050565b8060075461149b8261148d610926565b61187b90919063ffffffff16565b111561150f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f746f74616c20737570706c79206c696d6974206578636565646564000000000081525060200191505060405180910390fd5b6008600061151b611903565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166115d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f6f6e6c792072657761726420746f6b656e2063616e206265207377617070656481525060200191505060405180910390fd5b6115df8383611e81565b505050565b60006115f86115f1611903565b8484611b02565b6001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611691611903565b73ffffffffffffffffffffffffffffffffffffffff166116af6112e5565b73ffffffffffffffffffffffffffffffffffffffff1614611738576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061230c6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808284019050838110156118f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611991576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124166024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a17576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806123326022913960400191505060405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611b88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806123f16025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c0e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806122996023913960400191505060405180910390fd5b611c19838383612210565b611c858160405180606001604052806026815260200161235460269139600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611dc79092919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611d1a81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461187b90919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290611e74576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e39578082015181840152602081019050611e1e565b50505050905090810190601f168015611e665780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b611f3060008383612210565b611f458160035461187b90919063ffffffff16565b600381905550611f9d81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461187b90919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806123d06021913960400191505060405180910390fd5b6120dc82600083612210565b612148816040518060600160405280602281526020016122ea60229139600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611dc79092919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506121a08160035461221590919063ffffffff16565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b505050565b60008282111561228d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b81830390509291505056fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373706c6561736520706173732073616d65206e756d626572206f6620746f6b656e7320616e6420737461747573657345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365746865206e756d626572206f66205f6164647265737365732073686f756c64206d61746368205f616d6f756e747345524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373706c656173652070617373206120706f736974697665206e756d626572206f662072657761726420746f6b656e7345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f3936711bdbe43a13ff02d01454f940d274f05e35f1ff21e737e5d9cb92edc6f64736f6c634300070500334f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373000000000000000000000000a6e4ffa19b213abea258ae72e8e1a209b9e543e70000000000000000000000003601ec1e652a4cc624c8c6fa74b00bddaf5989fd0000000000000000000000000000000000000000000422ca8b0a00a4250000000000000000000000000000000000000000000000019d971e4fe8401e7400000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000008556d6272656c6c610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003554d420000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063706f6937116100ad578063a457c2d711610071578063a457c2d71461068e578063a4d70962146106f2578063a9059cbb14610740578063dd62ed3e146107a4578063f2fde38b1461081c5761012c565b8063706f6937146104a757806370a0823114610575578063715018a6146105cd5780638da5cb5b146105d757806395d89b411461060b5761012c565b8063313ce567116100f4578063313ce567146102d857806339509351146102f957806340c10f191461035d57806342966c68146103ab5780636daf029f146103d95761012c565b806306fdde0314610131578063095ea7b3146101b457806313e4172c1461021857806318160ddd1461023657806323b872dd14610254575b600080fd5b610139610860565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561017957808201518184015260208101905061015e565b50505050905090810190601f1680156101a65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610200600480360360408110156101ca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610902565b60405180821515815260200191505060405180910390f35b610220610920565b6040518082815260200191505060405180910390f35b61023e610926565b6040518082815260200191505060405180910390f35b6102c06004803603606081101561026a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610930565b60405180821515815260200191505060405180910390f35b6102e0610a09565b604051808260ff16815260200191505060405180910390f35b6103456004803603604081101561030f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a20565b60405180821515815260200191505060405180910390f35b6103a96004803603604081101561037357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ad3565b005b6103d7600480360360208110156103c157600080fd5b8101908080359060200190929190505050610c99565b005b6104a5600480360360408110156103ef57600080fd5b810190808035906020019064010000000081111561040c57600080fd5b82018360208201111561041e57600080fd5b8035906020019184602083028401116401000000008311171561044057600080fd5b90919293919293908035906020019064010000000081111561046157600080fd5b82018360208201111561047357600080fd5b8035906020019184602083028401116401000000008311171561049557600080fd5b9091929391929390505050610d35565b005b610573600480360360408110156104bd57600080fd5b81019080803590602001906401000000008111156104da57600080fd5b8201836020820111156104ec57600080fd5b8035906020019184602083028401116401000000008311171561050e57600080fd5b90919293919293908035906020019064010000000081111561052f57600080fd5b82018360208201111561054157600080fd5b8035906020019184602083028401116401000000008311171561056357600080fd5b9091929391929390505050610ff0565b005b6105b76004803603602081101561058b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061112f565b6040518082815260200191505060405180910390f35b6105d5611178565b005b6105df6112e5565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61061361130e565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610653578082015181840152602081019050610638565b50505050905090810190601f1680156106805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106da600480360360408110156106a457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113b0565b60405180821515815260200191505060405180910390f35b61073e6004803603604081101561070857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061147d565b005b61078c6004803603604081101561075657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506115e4565b60405180821515815260200191505060405180910390f35b610806600480360360408110156107ba57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611602565b6040518082815260200191505060405180910390f35b61085e6004803603602081101561083257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611689565b005b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108f85780601f106108cd576101008083540402835291602001916108f8565b820191906000526020600020905b8154815290600101906020018083116108db57829003601f168201915b5050505050905090565b600061091661090f611903565b848461190b565b6001905092915050565b60075481565b6000600354905090565b600061093d848484611b02565b6109fe84610949611903565b6109f9856040518060600160405280602881526020016123a860289139600260008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006109af611903565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611dc79092919063ffffffff16565b61190b565b600190509392505050565b6000600660009054906101000a900460ff16905090565b6000610ac9610a2d611903565b84610ac48560026000610a3e611903565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461187b90919063ffffffff16565b61190b565b6001905092915050565b610adb611903565b73ffffffffffffffffffffffffffffffffffffffff16610af96112e5565b73ffffffffffffffffffffffffffffffffffffffff1614610b82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600754610ba082610b92610926565b61187b90919063ffffffff16565b1115610c14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f746f74616c20737570706c79206c696d6974206578636565646564000000000081525060200191505060405180910390fd5b60008211610c8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f7a65726f20616d6f756e7400000000000000000000000000000000000000000081525060200191505060405180910390fd5b610c948383611e81565b505050565b6000610ca43361112f565b905080821115610d1c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f6e6f7420656e6f75676820746f6b656e7320746f206275726e0000000000000081525060200191505060405180910390fd5b610d26338361204a565b81600754036007819055505050565b610d3d611903565b73ffffffffffffffffffffffffffffffffffffffff16610d5b6112e5565b73ffffffffffffffffffffffffffffffffffffffff1614610de4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008484905011610e40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061243a602e913960400191505060405180910390fd5b818190508484905014610e9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806122bc602e913960400191505060405180910390fd5b60005b84849050811015610f4c57828282818110610eb857fe5b90506020020135151560086000878785818110610ed157fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610ea1565b507f1c642aedd77a6c0551f3b7c026dae498837b683e54380a47c3874bef3ad0394a848484846040518080602001806020018381038352878782818152602001925060200280828437600081840152601f19601f8201169050808301925050508381038252858582818152602001925060200280828437600081840152601f19601f820116905080830192505050965050505050505060405180910390a150505050565b600084849050141561106a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f746865726520617265206e6f205f61646472657373657300000000000000000081525060200191505060405180910390fd5b8181905084849050146110c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061237a602e913960400191505060405180910390fd5b60005b848490508110156111285761111a8585838181106110e557fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1684848481811061110e57fe5b905060200201356115e4565b5080806001019150506110cb565b5050505050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611180611903565b73ffffffffffffffffffffffffffffffffffffffff1661119e6112e5565b73ffffffffffffffffffffffffffffffffffffffff1614611227576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113a65780601f1061137b576101008083540402835291602001916113a6565b820191906000526020600020905b81548152906001019060200180831161138957829003601f168201915b5050505050905090565b60006114736113bd611903565b8461146e8560405180606001604052806025815260200161246860259139600260006113e7611903565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611dc79092919063ffffffff16565b61190b565b6001905092915050565b8060075461149b8261148d610926565b61187b90919063ffffffff16565b111561150f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f746f74616c20737570706c79206c696d6974206578636565646564000000000081525060200191505060405180910390fd5b6008600061151b611903565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166115d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f6f6e6c792072657761726420746f6b656e2063616e206265207377617070656481525060200191505060405180910390fd5b6115df8383611e81565b505050565b60006115f86115f1611903565b8484611b02565b6001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611691611903565b73ffffffffffffffffffffffffffffffffffffffff166116af6112e5565b73ffffffffffffffffffffffffffffffffffffffff1614611738576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061230c6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808284019050838110156118f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611991576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806124166024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a17576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806123326022913960400191505060405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611b88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806123f16025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c0e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806122996023913960400191505060405180910390fd5b611c19838383612210565b611c858160405180606001604052806026815260200161235460269139600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611dc79092919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611d1a81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461187b90919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290611e74576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e39578082015181840152602081019050611e1e565b50505050905090810190601f168015611e665780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b611f3060008383612210565b611f458160035461187b90919063ffffffff16565b600381905550611f9d81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461187b90919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806123d06021913960400191505060405180910390fd5b6120dc82600083612210565b612148816040518060600160405280602281526020016122ea60229139600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611dc79092919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506121a08160035461221590919063ffffffff16565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b505050565b60008282111561228d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b81830390509291505056fe45524332303a207472616e7366657220746f20746865207a65726f2061646472657373706c6561736520706173732073616d65206e756d626572206f6620746f6b656e7320616e6420737461747573657345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365746865206e756d626572206f66205f6164647265737365732073686f756c64206d61746368205f616d6f756e747345524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373706c656173652070617373206120706f736974697665206e756d626572206f662072657761726420746f6b656e7345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f3936711bdbe43a13ff02d01454f940d274f05e35f1ff21e737e5d9cb92edc6f64736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a6e4ffa19b213abea258ae72e8e1a209b9e543e70000000000000000000000003601ec1e652a4cc624c8c6fa74b00bddaf5989fd0000000000000000000000000000000000000000000422ca8b0a00a4250000000000000000000000000000000000000000000000019d971e4fe8401e7400000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000008556d6272656c6c610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003554d420000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _owner (address): 0xA6e4fFa19B213AbeA258ae72e8e1a209B9E543e7
Arg [1] : _initialHolder (address): 0x3601EC1e652a4Cc624c8C6FA74b00BdDaf5989fD
Arg [2] : _initialBalance (uint256): 5000000000000000000000000
Arg [3] : _maxAllowedTotalSupply (uint256): 500000000000000000000000000
Arg [4] : _name (string): Umbrella
Arg [5] : _symbol (string): UMB
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000a6e4ffa19b213abea258ae72e8e1a209b9e543e7
Arg [1] : 0000000000000000000000003601ec1e652a4cc624c8c6fa74b00bddaf5989fd
Arg [2] : 0000000000000000000000000000000000000000000422ca8b0a00a425000000
Arg [3] : 0000000000000000000000000000000000000000019d971e4fe8401e74000000
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [7] : 556d6272656c6c61000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 554d420000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
31297:1727:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13458:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15604:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;28895:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14557:108;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16255:321;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;14401:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;16985:218;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29810:199;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;29470:276;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;32197:486;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;30272:419;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;14728:127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24091:148;;;:::i;:::-;;23440:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;13668:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17706:269;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;32691:220;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;15068:175;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;15306:151;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24394:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;13458:91;13503:13;13536:5;13529:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13458:91;:::o;15604:169::-;15687:4;15704:39;15713:12;:10;:12::i;:::-;15727:7;15736:6;15704:8;:39::i;:::-;15761:4;15754:11;;15604:169;;;;:::o;28895:36::-;;;;:::o;14557:108::-;14618:7;14645:12;;14638:19;;14557:108;:::o;16255:321::-;16361:4;16378:36;16388:6;16396:9;16407:6;16378:9;:36::i;:::-;16425:121;16434:6;16442:12;:10;:12::i;:::-;16456:89;16494:6;16456:89;;;;;;;;;;;;;;;;;:11;:19;16468:6;16456:19;;;;;;;;;;;;;;;:33;16476:12;:10;:12::i;:::-;16456:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;16425:8;:121::i;:::-;16564:4;16557:11;;16255:321;;;;;:::o;14401:91::-;14450:5;14475:9;;;;;;;;;;;14468:16;;14401:91;:::o;16985:218::-;17073:4;17090:83;17099:12;:10;:12::i;:::-;17113:7;17122:50;17161:10;17122:11;:25;17134:12;:10;:12::i;:::-;17122:25;;;;;;;;;;;;;;;:34;17148:7;17122:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;17090:8;:83::i;:::-;17191:4;17184:11;;16985:218;;;;:::o;29810:199::-;23671:12;:10;:12::i;:::-;23660:23;;:7;:5;:7::i;:::-;:23;;;23652:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29910:7:::1;29335:21;;29299:32;29317:13;29299;:11;:13::i;:::-;:17;;:32;;;;:::i;:::-;:57;;29291:97;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;29948:1:::2;29938:7;:11;29930:35;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;29978:23;29984:7;29993;29978:5;:23::i;:::-;23731:1:::1;29810:199:::0;;:::o;29470:276::-;29530:12;29545:21;29555:10;29545:9;:21::i;:::-;29530:36;;29596:7;29585;:18;;29577:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29646:26;29652:10;29664:7;29646:5;:26::i;:::-;29731:7;29707:21;;:31;29683:21;:55;;;;29470:276;;:::o;32197:486::-;23671:12;:10;:12::i;:::-;23660:23;;:7;:5;:7::i;:::-;:23;;;23652:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32342:1:::1;32325:7;;:14;;:18;32317:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32431:9;;:16;;32413:7;;:14;;:34;32405:93;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32516:6;32511:109;32532:7;;:14;;32528:1;:18;32511:109;;;32596:9;;32606:1;32596:12;;;;;;;;;;;;;;;32568:13;:25;32582:7;;32590:1;32582:10;;;;;;;;;;;;;;;32568:25;;;;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;32548:3;;;;;;;32511:109;;;;32637:38;32656:7;;32665:9;;32637:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32197:486:::0;;;;:::o;30272:419::-;30429:1;30408:10;;:17;;:22;;30400:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30498:8;;:15;;30477:10;;:17;;:36;30469:95;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30581:6;30577:107;30597:10;;:17;;30593:1;:21;30577:107;;;30636:36;30645:10;;30656:1;30645:13;;;;;;;;;;;;;;;30660:8;;30669:1;30660:11;;;;;;;;;;;;;30636:8;:36::i;:::-;;30616:3;;;;;;;30577:107;;;;30272:419;;;;:::o;14728:127::-;14802:7;14829:9;:18;14839:7;14829:18;;;;;;;;;;;;;;;;14822:25;;14728:127;;;:::o;24091:148::-;23671:12;:10;:12::i;:::-;23660:23;;:7;:5;:7::i;:::-;:23;;;23652:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24198:1:::1;24161:40;;24182:6;::::0;::::1;;;;;;;;24161:40;;;;;;;;;;;;24229:1;24212:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;24091:148::o:0;23440:87::-;23486:7;23513:6;;;;;;;;;;;23506:13;;23440:87;:::o;13668:95::-;13715:13;13748:7;13741:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13668:95;:::o;17706:269::-;17799:4;17816:129;17825:12;:10;:12::i;:::-;17839:7;17848:96;17887:15;17848:96;;;;;;;;;;;;;;;;;:11;:25;17860:12;:10;:12::i;:::-;17848:25;;;;;;;;;;;;;;;:34;17874:7;17848:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;17816:8;:129::i;:::-;17963:4;17956:11;;17706:269;;;;:::o;32691:220::-;32775:7;29335:21;;29299:32;29317:13;29299;:11;:13::i;:::-;:17;;:32;;;;:::i;:::-;:57;;29291:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32803:13:::1;:27;32817:12;:10;:12::i;:::-;32803:27;;;;;;;;;;;;;;;;;;;;;;;;;32795:72;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;32880:23;32886:7;32895;32880:5;:23::i;:::-;32691:220:::0;;;:::o;15068:175::-;15154:4;15171:42;15181:12;:10;:12::i;:::-;15195:9;15206:6;15171:9;:42::i;:::-;15231:4;15224:11;;15068:175;;;;:::o;15306:151::-;15395:7;15422:11;:18;15434:5;15422:18;;;;;;;;;;;;;;;:27;15441:7;15422:27;;;;;;;;;;;;;;;;15415:34;;15306:151;;;;:::o;24394:244::-;23671:12;:10;:12::i;:::-;23660:23;;:7;:5;:7::i;:::-;:23;;;23652:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24503:1:::1;24483:22;;:8;:22;;;;24475:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24593:8;24564:38;;24585:6;::::0;::::1;;;;;;;;24564:38;;;;;;;;;;;;24622:8;24613:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;24394:244:::0;:::o;2828:179::-;2886:7;2906:9;2922:1;2918;:5;2906:17;;2947:1;2942;:6;;2934:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2998:1;2991:8;;;2828:179;;;;:::o;8129:106::-;8182:15;8217:10;8210:17;;8129:106;:::o;20853:346::-;20972:1;20955:19;;:5;:19;;;;20947:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21053:1;21034:21;;:7;:21;;;;21026:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21137:6;21107:11;:18;21119:5;21107:18;;;;;;;;;;;;;;;:27;21126:7;21107:27;;;;;;;;;;;;;;;:36;;;;21175:7;21159:32;;21168:5;21159:32;;;21184:6;21159:32;;;;;;;;;;;;;;;;;;20853:346;;;:::o;18465:539::-;18589:1;18571:20;;:6;:20;;;;18563:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18673:1;18652:23;;:9;:23;;;;18644:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18728:47;18749:6;18757:9;18768:6;18728:20;:47::i;:::-;18808:71;18830:6;18808:71;;;;;;;;;;;;;;;;;:9;:17;18818:6;18808:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;18788:9;:17;18798:6;18788:17;;;;;;;;;;;;;;;:91;;;;18913:32;18938:6;18913:9;:20;18923:9;18913:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;18890:9;:20;18900:9;18890:20;;;;;;;;;;;;;;;:55;;;;18978:9;18961:35;;18970:6;18961:35;;;18989:6;18961:35;;;;;;;;;;;;;;;;;;18465:539;;;:::o;5655:166::-;5741:7;5774:1;5769;:6;;5777:12;5761:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5812:1;5808;:5;5801:12;;5655:166;;;;;:::o;19286:378::-;19389:1;19370:21;;:7;:21;;;;19362:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19440:49;19469:1;19473:7;19482:6;19440:20;:49::i;:::-;19517:24;19534:6;19517:12;;:16;;:24;;;;:::i;:::-;19502:12;:39;;;;19573:30;19596:6;19573:9;:18;19583:7;19573:18;;;;;;;;;;;;;;;;:22;;:30;;;;:::i;:::-;19552:9;:18;19562:7;19552:18;;;;;;;;;;;;;;;:51;;;;19640:7;19619:37;;19636:1;19619:37;;;19649:6;19619:37;;;;;;;;;;;;;;;;;;19286:378;;:::o;19997:418::-;20100:1;20081:21;;:7;:21;;;;20073:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20153:49;20174:7;20191:1;20195:6;20153:20;:49::i;:::-;20236:68;20259:6;20236:68;;;;;;;;;;;;;;;;;:9;:18;20246:7;20236:18;;;;;;;;;;;;;;;;:22;;:68;;;;;:::i;:::-;20215:9;:18;20225:7;20215:18;;;;;;;;;;;;;;;:89;;;;20330:24;20347:6;20330:12;;:16;;:24;;;;:::i;:::-;20315:12;:39;;;;20396:1;20370:37;;20379:7;20370:37;;;20400:6;20370:37;;;;;;;;;;;;;;;;;;19997:418;;:::o;22232:92::-;;;;:::o;3290:158::-;3348:7;3381:1;3376;:6;;3368:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3439:1;3435;:5;3428:12;;3290:158;;;;:::o
Swarm Source
ipfs://f3936711bdbe43a13ff02d01454f940d274f05e35f1ff21e737e5d9cb92edc6f
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.