Contract Overview
[ Download CSV Export ]
Contract Name:
MuBank
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No 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.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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 (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// 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); //gets decimals of a token }
// 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.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; interface Token { function decimals() external view returns (uint8); } interface MuMoneyMinter{ function mint(address recipient, uint amount) external; function burn(uint256 amount) external; function burnFrom(address account, uint256 amount) external; } interface Router { function getAmountsOut(uint256 amountIn, address[] memory path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path)external view returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); } interface Pair { function token0() external view returns (address); function token1() external view returns (address); function getReserves()external view returns (uint112 reserve0, uint112 reserve1); } interface Factory { function getPair(address tokenA, address tokenB) external view returns (address pair); } contract MuBank is Context, Ownable, ERC20, Pausable, ERC20Burnable, ReentrancyGuard { using SafeMath for uint256; mapping (address => bool) private whitelisted; address[] _stable_coins; address private _MuMoney = 0x5EA63080E67925501c5c61B9C0581Dbd87860019; address _MuCoin = 0xD036414fa2BCBb802691491E323BFf1348C5F4Ba; address _MuGold = 0xF7ed17f0Fb2B7C9D3DDBc9F0679b2e1098993e81; constructor() ERC20("Mu Bank", "MuBank"){ _stable_coins.push(0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664);//add usdc.e coin _stable_coins.push(0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E);//add usdc coin _stable_coins.push(0x19860CCB0A68fd4213aB9D8266F7bBf05A8dDe98);//add busd.e coin _stable_coins.push(0xd586E7F844cEa2F87f50152665BCbc2C279D8d70);//add dai.e coin _stable_coins.push(0x130966628846BFd36ff31a822705796e8cb8C18D);//add MIM coin _stable_coins.push(0xc7198437980c041c805A1EDcbA50c1Ce5db95118);//add usdt.e coin } modifier whiteListed() { require(whitelisted[msg.sender], "Error: You are not whitelisted"); _; } function isWhitelisted(address wallet) public view returns (bool iswhitelisted){ return whitelisted[wallet]; } function whitelist(address wallet) public onlyOwner{ whitelisted[wallet] = true; } function blacklist(address wallet) public onlyOwner{ whitelisted[wallet] = false; } function mint(address _to, uint256 amount) public onlyOwner { _mint(_to, amount); } //function to add a stable coin to the approved stable coins accepted for bonding function add_stable_coin(address stable_coin) public onlyOwner{ _stable_coins.push(stable_coin); } //function to remove a stable coin from the approved stable coins for bonding function remove_stable_coin(address stable_coin) public onlyOwner{ for(uint256 i = 0; i < _stable_coins.length; i++){ if(_stable_coins[i] == stable_coin) _stable_coins[i] = _stable_coins[_stable_coins.length-1]; } _stable_coins.pop(); } //gives the array of all approved stable coins function get_stable_coins() public view returns(address[] memory stables){ return _stable_coins; } //function that allows you to check if a stable coin is approved for bonding function check_if_approved_stable_coin(address stable)public view returns (bool _is_approved_stable_coin){ return is_approved_stable_coin(stable); } function setMuMoneyAddress(address token) public onlyOwner{ _MuMoney = token; } function showMuMoneyAddress() public view returns(address muMoneyAddress){ return _MuMoney; } //allows a participant to provide an approved stable coin as collertal and receive an equal amount of mu money in a bond function stable_coin_bond(address stable, uint256 amount) public nonReentrant whiteListed{ require(is_approved_stable_coin(stable) ,"Only accepting approved stable coins for bonding"); IERC20 _stable = IERC20(stable); Token token = Token(stable); //decimals() external view returns (uint8) uint8 _decimals = token.decimals(); if((18 - _decimals) == 0){ _stable.transferFrom(msg.sender, address(this), amount); }else{ uint8 div = 18 - _decimals; _stable.transferFrom(msg.sender, address(this), (amount/10**div)); } //transferFrom(address sender, address recipient, uint amount) MuMoneyMinter(_MuMoney).mint(_msgSender(), amount); } function recoverTokens(address tokenAddress) external onlyOwner { IERC20 token = IERC20(tokenAddress); token.transfer(msg.sender, token.balanceOf(address(this))); } //quotes the amount of Mu Coin you can get for a specific amount of approved stable coin function mu_bond_quote(uint256 amount) public view returns(uint256 swapAmount, uint256 bondAmount){ return _mu_bond_quote(amount); } //quotes the amount of Mu Gold you can get for a specific amount of approved stable coin function mu_gold_bond_quote(uint256 amount) public view returns (uint256 swapAmount, uint256 bondAmount){ //return amount of Mu Gold that could be achived via swap vs achived via bonding from the bank return _get_mug_bond_quote(amount); } //internal function only to see if a stable coin is approved function is_approved_stable_coin(address stable) internal view returns(bool){ for(uint256 i = 0; i < _stable_coins.length; i++){ if(_stable_coins[i] == stable) return true; } return false; } function adjust_amount(uint256 amount, uint256 _decimals) public pure returns(uint256 _adujusted_amount){ if(18 - _decimals == 0) return amount; else { return (amount/(10**(18-_decimals))); } } function mu_bond(address stable, uint256 amount) public nonReentrant whiteListed{ require(is_approved_stable_coin(stable) ,"Only accepting approved stable coins for bonding"); IERC20 _stable = IERC20(stable); Token token = Token(stable); uint8 _decimals = token.decimals(); uint256 _adjusted_amount; if(18 - _decimals == 0) _adjusted_amount = amount; else { _adjusted_amount = (amount/(10**(18-_decimals))); } require(_stable.balanceOf(msg.sender) >= _adjusted_amount, "You don't have enough of that token to bond that amount"); (uint256 mu_coin_swap_amount, uint256 mu_coin_amount) = _mu_bond_quote(amount); require(IERC20(_MuCoin).balanceOf(address(this)) >= mu_coin_amount, "This contract does not have enough Mu Coin"); _stable.transferFrom(msg.sender, address(this), _adjusted_amount); IERC20(_MuCoin).transfer(msg.sender, mu_coin_amount); MuMoneyMinter(_MuMoney).mint(address(this), amount); } function mu_gold_bond(address stable, uint256 amount) public nonReentrant whiteListed{ require(is_approved_stable_coin(stable) ,"Only accepting approved stable coins for bonding"); IERC20 _stable = IERC20(stable); Token token = Token(stable); uint8 _decimals = token.decimals(); uint256 _adjusted_amount; if(18 - _decimals == 0) _adjusted_amount = amount; else { _adjusted_amount = (amount/(10**(18-_decimals))); } require(_stable.balanceOf(msg.sender) >= _adjusted_amount, "You don't have enough of that token to bond that amount"); (uint256 mu_gold_swap_amount, uint256 mu_gold_bond_amount) = _get_mug_bond_quote(amount); require(IERC20(_MuGold).balanceOf(address(this)) >= mu_gold_bond_amount, "This contract does not have enough Mu Coin"); _stable.transferFrom(msg.sender, address(this), _adjusted_amount); IERC20(_MuGold).transfer(msg.sender, mu_gold_bond_amount); MuMoneyMinter(_MuMoney).mint(address(this), amount); } function _get_mug_bond_quote(uint256 amount) internal view returns (uint256 swapAmount, uint256 bondAmount){ Router router = Router(0x60aE616a2155Ee3d9A68541Ba4544862310933d4); address muMugPool = 0x67d9aAb77BEDA392b1Ed0276e70598bf2A22945d; address muPool = 0xfacB3892F9A8D55Eb50fDeee00F2b3fA8a85DED5; //get swap amount and bond amount of Mu Coin (uint112 reserve0, uint112 reserve1) = Pair(muPool).getReserves();//MU/USDC.e TJ LP reserve0 = reserve0 * (10 ** 12); uint256 amountIN = router.getAmountIn(amount, reserve1, reserve0); uint256 amountOUT = router.getAmountOut(amount, reserve0, reserve1); uint256 mu_coin_swap_amount = amountOUT; uint256 mu_coin_bond_amount = (((((amountIN + amountOUT)*10))/2)/10); //mu/mug pool token0 is mu coin (18) and token1 is mu gold (18) ( reserve0, reserve1) = Pair(muMugPool).getReserves();//MU/USDC.e TJ LP uint256 mugSwapamountOUT = router.getAmountOut(mu_coin_swap_amount, reserve0, reserve1); uint256 mugBondamountIN = router.getAmountIn(mu_coin_bond_amount, reserve1, reserve0); uint256 mugBondamountOUT = router.getAmountOut(mu_coin_bond_amount, reserve0, reserve1); uint256 mu_gold_bond_amount = (((((mugBondamountIN + mugBondamountOUT)*10))/2)/10); //return amount of Mu Gold that could be achived via swap vs achived via bonding from the bank return(mugSwapamountOUT, mu_gold_bond_amount); } //quotes the amount of Mu Coin you can get for a specific amount of approved stable coin function _mu_bond_quote(uint256 amount) internal view returns(uint256 swapAmount, uint256 bondAmount){ Router router = Router(0x60aE616a2155Ee3d9A68541Ba4544862310933d4); //Pair USDC.e/MU token0 is USDC.e (6) token1 is Mu Coin (18) (uint112 reserve0, uint112 reserve1) = Pair(0xfacB3892F9A8D55Eb50fDeee00F2b3fA8a85DED5).getReserves();//MU/USDC.e TJ LP reserve0 = reserve0 * (10 ** 12); uint256 amountIN = router.getAmountIn(amount, reserve1, reserve0); uint256 amountOUT = router.getAmountOut(amount, reserve0, reserve1); uint256 mu_coin_bond_amount = (((((amountIN + amountOUT)*10))/2)/10); return (amountOUT, mu_coin_bond_amount); } //this function allows anyone to redeem Mu Money for any approved stable coin in our reserves function redeem_mu_money(address stable, uint256 amount) public nonReentrant whiteListed{ //still need to build out this function require(is_approved_stable_coin(stable) ,"Only accepting approved stable coins for bonding"); IERC20 _stable = IERC20(stable); Token token = Token(stable); IERC20 _mu_money = IERC20(_MuMoney); require(_mu_money.balanceOf(msg.sender) >= amount); uint8 _decimals = token.decimals(); uint256 _adjusted_amount; if(18 - _decimals == 0) _adjusted_amount = amount; else { _adjusted_amount = (amount/(10**(18-_decimals))); } require(_stable.balanceOf(address(this)) >= _adjusted_amount); MuMoneyMinter(_MuMoney).burnFrom(msg.sender, amount); _stable.transfer(msg.sender, _adjusted_amount); } function _adjust_amount(uint8 decimals, uint256 amount) internal pure returns(uint256 _amount){ uint256 _adjusted_amount; if(18 - decimals == 0) _adjusted_amount = amount; else { _adjusted_amount = (amount/(10**(18-decimals))); } return _adjusted_amount; } function _beforeTokenTransfer(address from, address to, uint256 amount) internal whenNotPaused override(ERC20) { super._beforeTokenTransfer(from, to, amount); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"stable_coin","type":"address"}],"name":"add_stable_coin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_decimals","type":"uint256"}],"name":"adjust_amount","outputs":[{"internalType":"uint256","name":"_adujusted_amount","type":"uint256"}],"stateMutability":"pure","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":"address","name":"wallet","type":"address"}],"name":"blacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stable","type":"address"}],"name":"check_if_approved_stable_coin","outputs":[{"internalType":"bool","name":"_is_approved_stable_coin","type":"bool"}],"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":"get_stable_coins","outputs":[{"internalType":"address[]","name":"stables","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"iswhitelisted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stable","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mu_bond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mu_bond_quote","outputs":[{"internalType":"uint256","name":"swapAmount","type":"uint256"},{"internalType":"uint256","name":"bondAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stable","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mu_gold_bond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mu_gold_bond_quote","outputs":[{"internalType":"uint256","name":"swapAmount","type":"uint256"},{"internalType":"uint256","name":"bondAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stable","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeem_mu_money","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stable_coin","type":"address"}],"name":"remove_stable_coin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"setMuMoneyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"showMuMoneyAddress","outputs":[{"internalType":"address","name":"muMoneyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stable","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stable_coin_bond","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":"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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052735ea63080e67925501c5c61b9c0581dbd87860019600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073d036414fa2bcbb802691491e323bff1348c5f4ba600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073f7ed17f0fb2b7c9d3ddbc9f0679b2e1098993e81600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200011057600080fd5b506040518060400160405280600781526020017f4d752042616e6b000000000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f4d7542616e6b00000000000000000000000000000000000000000000000000008152506200019d62000191620004c460201b60201c565b620004cc60201b60201c565b8160049080519060200190620001b592919062000590565b508060059080519060200190620001ce92919062000590565b5050506000600660006101000a81548160ff0219169083151502179055506001600781905550600973a7d7079b0fead91f3e65f86e8915cb59c1a4c6649080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600973b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e9080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060097319860ccb0a68fd4213ab9d8266f7bbf05a8dde989080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600973d586e7f844cea2f87f50152665bcbc2c279d8d709080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600973130966628846bfd36ff31a822705796e8cb8c18d9080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600973c7198437980c041c805a1edcba50c1ce5db951189080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620006a5565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200059e906200066f565b90600052602060002090601f016020900481019282620005c257600085556200060e565b82601f10620005dd57805160ff19168380011785556200060e565b828001600101855582156200060e579182015b828111156200060d578251825591602001919060010190620005f0565b5b5090506200061d919062000621565b5090565b5b808211156200063c57600081600090555060010162000622565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200068857607f821691505b602082108114156200069f576200069e62000640565b5b50919050565b614a2480620006b56000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80638da5cb5b11610125578063cc27e149116100ad578063d9a4bf6f1161007c578063d9a4bf6f14610625578063dd62ed3e14610641578063f0873ce314610671578063f2fde38b146106a2578063f9f92be4146106be57610211565b8063cc27e14914610578578063d008880e146105a8578063d61d026d146105d9578063d775b5f2146105f557610211565b80639b594f51116100f45780639b594f51146104c4578063a1e89016146104e0578063a457c2d7146104fc578063a54ba9521461052c578063a9059cbb1461054857610211565b80638da5cb5b1461045057806395d89b411461046e57806396d06ffa1461048c5780639b19251a146104a857610211565b80633af32abf116101a85780635c975abb116101775780635c975abb146103be57806370a08231146103dc578063715018a61461040c57806379cc679014610416578063804f83c91461043257610211565b80633af32abf1461033a57806340c10f191461036a57806342966c68146103865780635622555d146103a257610211565b806318160ddd116101e457806318160ddd1461029e57806323b872dd146102bc578063313ce567146102ec578063395093511461030a57610211565b8063066562d81461021657806306fdde0314610234578063095ea7b31461025257806316114acd14610282575b600080fd5b61021e6106da565b60405161022b91906135e7565b60405180910390f35b61023c610768565b60405161024991906136a2565b60405180910390f35b61026c6004803603810190610267919061372b565b6107fa565b6040516102799190613786565b60405180910390f35b61029c600480360381019061029791906137a1565b61081d565b005b6102a6610944565b6040516102b391906137dd565b60405180910390f35b6102d660048036038101906102d191906137f8565b61094e565b6040516102e39190613786565b60405180910390f35b6102f461097d565b6040516103019190613867565b60405180910390f35b610324600480360381019061031f919061372b565b610986565b6040516103319190613786565b60405180910390f35b610354600480360381019061034f91906137a1565b6109bd565b6040516103619190613786565b60405180910390f35b610384600480360381019061037f919061372b565b610a13565b005b6103a0600480360381019061039b9190613882565b610a29565b005b6103bc60048036038101906103b7919061372b565b610a3d565b005b6103c6610f96565b6040516103d39190613786565b60405180910390f35b6103f660048036038101906103f191906137a1565b610fad565b60405161040391906137dd565b60405180910390f35b610414610ff6565b005b610430600480360381019061042b919061372b565b61100a565b005b61043a61102a565b60405161044791906138be565b60405180910390f35b610458611054565b60405161046591906138be565b60405180910390f35b61047661107d565b60405161048391906136a2565b60405180910390f35b6104a660048036038101906104a1919061372b565b61110f565b005b6104c260048036038101906104bd91906137a1565b61153e565b005b6104de60048036038101906104d9919061372b565b6115a1565b005b6104fa60048036038101906104f591906137a1565b611afa565b005b6105166004803603810190610511919061372b565b611b68565b6040516105239190613786565b60405180910390f35b6105466004803603810190610541919061372b565b611bdf565b005b610562600480360381019061055d919061372b565b611f53565b60405161056f9190613786565b60405180910390f35b610592600480360381019061058d91906137a1565b611f76565b60405161059f9190613786565b60405180910390f35b6105c260048036038101906105bd9190613882565b611f88565b6040516105d09291906138d9565b60405180910390f35b6105f360048036038101906105ee91906137a1565b611f9d565b005b61060f600480360381019061060a9190613902565b611fe9565b60405161061c91906137dd565b60405180910390f35b61063f600480360381019061063a91906137a1565b612034565b005b61065b60048036038101906106569190613942565b6121c9565b60405161066891906137dd565b60405180910390f35b61068b60048036038101906106869190613882565b612250565b6040516106999291906138d9565b60405180910390f35b6106bc60048036038101906106b791906137a1565b612265565b005b6106d860048036038101906106d391906137a1565b6122e9565b005b6060600980548060200260200160405190810160405280929190818152602001828054801561075e57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610714575b5050505050905090565b606060048054610777906139b1565b80601f01602080910402602001604051908101604052809291908181526020018280546107a3906139b1565b80156107f05780601f106107c5576101008083540402835291602001916107f0565b820191906000526020600020905b8154815290600101906020018083116107d357829003601f168201915b5050505050905090565b60008061080561234c565b9050610812818585612354565b600191505092915050565b61082561251f565b60008190508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161088091906138be565b60206040518083038186803b15801561089857600080fd5b505afa1580156108ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d091906139f8565b6040518363ffffffff1660e01b81526004016108ed929190613a25565b602060405180830381600087803b15801561090757600080fd5b505af115801561091b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093f9190613a7a565b505050565b6000600354905090565b60008061095961234c565b905061096685828561259d565b610971858585612629565b60019150509392505050565b60006012905090565b60008061099161234c565b90506109b28185856109a385896121c9565b6109ad9190613ad6565b612354565b600191505092915050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b610a1b61251f565b610a2582826128a4565b5050565b610a3a610a3461234c565b826129fc565b50565b610a45612bcc565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610ad1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac890613b78565b60405180910390fd5b610ada82612c1c565b610b19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1090613c0a565b60405180910390fd5b6000829050600083905060008173ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610b6b57600080fd5b505afa158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba39190613c56565b9050600080826012610bb59190613c83565b60ff161415610bc657849050610bed565b816012610bd39190613c83565b600a610bdf9190613dea565b85610bea9190613e64565b90505b808473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610c2791906138be565b60206040518083038186803b158015610c3f57600080fd5b505afa158015610c53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7791906139f8565b1015610cb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610caf90613f07565b60405180910390fd5b600080610cc487612ccb565b9150915080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610d2491906138be565b60206040518083038186803b158015610d3c57600080fd5b505afa158015610d50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7491906139f8565b1015610db5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dac90613f99565b60405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401610df293929190613fb9565b602060405180830381600087803b158015610e0c57600080fd5b505af1158015610e20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e449190613a7a565b50600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610ea2929190613a25565b602060405180830381600087803b158015610ebc57600080fd5b505af1158015610ed0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef49190613a7a565b50600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930896040518363ffffffff1660e01b8152600401610f52929190613a25565b600060405180830381600087803b158015610f6c57600080fd5b505af1158015610f80573d6000803e3d6000fd5b50505050505050505050610f9261318f565b5050565b6000600660009054906101000a900460ff16905090565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ffe61251f565b6110086000613199565b565b61101c8261101661234c565b8361259d565b61102682826129fc565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606005805461108c906139b1565b80601f01602080910402602001604051908101604052809291908181526020018280546110b8906139b1565b80156111055780601f106110da57610100808354040283529160200191611105565b820191906000526020600020905b8154815290600101906020018083116110e857829003601f168201915b5050505050905090565b611117612bcc565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166111a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119a90613b78565b60405180910390fd5b6111ac82612c1c565b6111eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e290613c0a565b60405180910390fd5b600082905060008390506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050838173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161125691906138be565b60206040518083038186803b15801561126e57600080fd5b505afa158015611282573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a691906139f8565b10156112b157600080fd5b60008273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156112f957600080fd5b505afa15801561130d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113319190613c56565b90506000808260126113439190613c83565b60ff1614156113545785905061137b565b8160126113619190613c83565b600a61136d9190613dea565b866113789190613e64565b90505b808573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113b591906138be565b60206040518083038186803b1580156113cd57600080fd5b505afa1580156113e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140591906139f8565b101561141057600080fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc679033886040518363ffffffff1660e01b815260040161146d929190613a25565b600060405180830381600087803b15801561148757600080fd5b505af115801561149b573d6000803e3d6000fd5b505050508473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016114da929190613a25565b602060405180830381600087803b1580156114f457600080fd5b505af1158015611508573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152c9190613a7a565b50505050505061153a61318f565b5050565b61154661251f565b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6115a9612bcc565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162c90613b78565b60405180910390fd5b61163e82612c1c565b61167d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167490613c0a565b60405180910390fd5b6000829050600083905060008173ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156116cf57600080fd5b505afa1580156116e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117079190613c56565b90506000808260126117199190613c83565b60ff16141561172a57849050611751565b8160126117379190613c83565b600a6117439190613dea565b8561174e9190613e64565b90505b808473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161178b91906138be565b60206040518083038186803b1580156117a357600080fd5b505afa1580156117b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117db91906139f8565b101561181c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181390613f07565b60405180910390fd5b6000806118288761325d565b9150915080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161188891906138be565b60206040518083038186803b1580156118a057600080fd5b505afa1580156118b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d891906139f8565b1015611919576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191090613f99565b60405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b815260040161195693929190613fb9565b602060405180830381600087803b15801561197057600080fd5b505af1158015611984573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a89190613a7a565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611a06929190613a25565b602060405180830381600087803b158015611a2057600080fd5b505af1158015611a34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a589190613a7a565b50600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930896040518363ffffffff1660e01b8152600401611ab6929190613a25565b600060405180830381600087803b158015611ad057600080fd5b505af1158015611ae4573d6000803e3d6000fd5b50505050505050505050611af661318f565b5050565b611b0261251f565b6009819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080611b7361234c565b90506000611b8182866121c9565b905083811015611bc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbd90614062565b60405180910390fd5b611bd38286868403612354565b60019250505092915050565b611be7612bcc565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611c73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6a90613b78565b60405180910390fd5b611c7c82612c1c565b611cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb290613c0a565b60405180910390fd5b6000829050600083905060008173ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611d0d57600080fd5b505afa158015611d21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d459190613c56565b90506000816012611d569190613c83565b60ff161415611df4578273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330876040518463ffffffff1660e01b8152600401611d9c93929190613fb9565b602060405180830381600087803b158015611db657600080fd5b505af1158015611dca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dee9190613a7a565b50611eae565b6000816012611e039190613c83565b90508373ffffffffffffffffffffffffffffffffffffffff166323b872dd333084600a611e309190613dea565b89611e3b9190613e64565b6040518463ffffffff1660e01b8152600401611e5993929190613fb9565b602060405180830381600087803b158015611e7357600080fd5b505af1158015611e87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eab9190613a7a565b50505b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19611ef461234c565b866040518363ffffffff1660e01b8152600401611f12929190613a25565b600060405180830381600087803b158015611f2c57600080fd5b505af1158015611f40573d6000803e3d6000fd5b50505050505050611f4f61318f565b5050565b600080611f5e61234c565b9050611f6b818585612629565b600191505092915050565b6000611f8182612c1c565b9050919050565b600080611f9483612ccb565b91509150915091565b611fa561251f565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080826012611ff99190614082565b14156120075782905061202e565b8160126120149190614082565b600a61202091906140b6565b8361202b9190613e64565b90505b92915050565b61203c61251f565b60005b60098054905081101561217e578173ffffffffffffffffffffffffffffffffffffffff166009828154811061207757612076614101565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561216b57600960016009805490506120d29190614082565b815481106120e3576120e2614101565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166009828154811061212257612121614101565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b808061217690614130565b91505061203f565b50600980548061219157612190614179565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008061225c8361325d565b91509150915091565b61226d61251f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d49061421a565b60405180910390fd5b6122e681613199565b50565b6122f161251f565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123bb906142ac565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242b9061433e565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161251291906137dd565b60405180910390a3505050565b61252761234c565b73ffffffffffffffffffffffffffffffffffffffff16612545611054565b73ffffffffffffffffffffffffffffffffffffffff161461259b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612592906143aa565b60405180910390fd5b565b60006125a984846121c9565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146126235781811015612615576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260c90614416565b60405180910390fd5b6126228484848403612354565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612699576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612690906144a8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612709576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127009061453a565b60405180910390fd5b61271483838361348b565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561279b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612792906145cc565b60405180910390fd5b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161288b91906137dd565b60405180910390a361289e8484846134a3565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290b90614638565b60405180910390fd5b6129206000838361348b565b80600360008282546129329190613ad6565b9250508190555080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516129e491906137dd565b60405180910390a36129f8600083836134a3565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a63906146ca565b60405180910390fd5b612a788260008361348b565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af69061475c565b60405180910390fd5b818103600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612bb391906137dd565b60405180910390a3612bc7836000846134a3565b505050565b60026007541415612c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c09906147c8565b60405180910390fd5b6002600781905550565b600080600090505b600980549050811015612cc0578273ffffffffffffffffffffffffffffffffffffffff1660098281548110612c5c57612c5b614101565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612cad576001915050612cc6565b8080612cb890614130565b915050612c24565b50600090505b919050565b60008060007360ae616a2155ee3d9a68541ba4544862310933d4905060007367d9aab77beda392b1ed0276e70598bf2a22945d9050600073facb3892f9a8d55eb50fdeee00f2b3fa8a85ded590506000808273ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401604080518083038186803b158015612d6157600080fd5b505afa158015612d75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d99919061482e565b9150915064e8d4a5100082612dae919061486e565b915060008573ffffffffffffffffffffffffffffffffffffffff166385f8c2598a84866040518463ffffffff1660e01b8152600401612def939291906148f1565b60206040518083038186803b158015612e0757600080fd5b505afa158015612e1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3f91906139f8565b905060008673ffffffffffffffffffffffffffffffffffffffff1663054d50d48b86866040518463ffffffff1660e01b8152600401612e80939291906148f1565b60206040518083038186803b158015612e9857600080fd5b505afa158015612eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ed091906139f8565b905060008190506000600a6002600a8587612eeb9190613ad6565b612ef59190614928565b612eff9190613e64565b612f099190613e64565b90508773ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401604080518083038186803b158015612f5057600080fd5b505afa158015612f64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f88919061482e565b809650819750505060008973ffffffffffffffffffffffffffffffffffffffff1663054d50d48489896040518463ffffffff1660e01b8152600401612fcf939291906148f1565b60206040518083038186803b158015612fe757600080fd5b505afa158015612ffb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061301f91906139f8565b905060008a73ffffffffffffffffffffffffffffffffffffffff166385f8c25984898b6040518463ffffffff1660e01b8152600401613060939291906148f1565b60206040518083038186803b15801561307857600080fd5b505afa15801561308c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130b091906139f8565b905060008b73ffffffffffffffffffffffffffffffffffffffff1663054d50d4858b8b6040518463ffffffff1660e01b81526004016130f1939291906148f1565b60206040518083038186803b15801561310957600080fd5b505afa15801561311d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061314191906139f8565b90506000600a6002600a84866131579190613ad6565b6131619190614928565b61316b9190613e64565b6131759190613e64565b905083819e509e5050505050505050505050505050915091565b6001600781905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008060007360ae616a2155ee3d9a68541ba4544862310933d4905060008073facb3892f9a8d55eb50fdeee00f2b3fa8a85ded573ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401604080518083038186803b1580156132d557600080fd5b505afa1580156132e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061330d919061482e565b9150915064e8d4a5100082613322919061486e565b915060008373ffffffffffffffffffffffffffffffffffffffff166385f8c2598884866040518463ffffffff1660e01b8152600401613363939291906148f1565b60206040518083038186803b15801561337b57600080fd5b505afa15801561338f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133b391906139f8565b905060008473ffffffffffffffffffffffffffffffffffffffff1663054d50d48986866040518463ffffffff1660e01b81526004016133f4939291906148f1565b60206040518083038186803b15801561340c57600080fd5b505afa158015613420573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061344491906139f8565b90506000600a6002600a848661345a9190613ad6565b6134649190614928565b61346e9190613e64565b6134789190613e64565b9050818197509750505050505050915091565b6134936134a8565b61349e8383836134f2565b505050565b505050565b6134b0610f96565b156134f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e7906149ce565b60405180910390fd5b565b505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061354e82613523565b9050919050565b61355e81613543565b82525050565b60006135708383613555565b60208301905092915050565b6000602082019050919050565b6000613594826134f7565b61359e8185613502565b93506135a983613513565b8060005b838110156135da5781516135c18882613564565b97506135cc8361357c565b9250506001810190506135ad565b5085935050505092915050565b600060208201905081810360008301526136018184613589565b905092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613643578082015181840152602081019050613628565b83811115613652576000848401525b50505050565b6000601f19601f8301169050919050565b600061367482613609565b61367e8185613614565b935061368e818560208601613625565b61369781613658565b840191505092915050565b600060208201905081810360008301526136bc8184613669565b905092915050565b600080fd5b6136d281613543565b81146136dd57600080fd5b50565b6000813590506136ef816136c9565b92915050565b6000819050919050565b613708816136f5565b811461371357600080fd5b50565b600081359050613725816136ff565b92915050565b60008060408385031215613742576137416136c4565b5b6000613750858286016136e0565b925050602061376185828601613716565b9150509250929050565b60008115159050919050565b6137808161376b565b82525050565b600060208201905061379b6000830184613777565b92915050565b6000602082840312156137b7576137b66136c4565b5b60006137c5848285016136e0565b91505092915050565b6137d7816136f5565b82525050565b60006020820190506137f260008301846137ce565b92915050565b600080600060608486031215613811576138106136c4565b5b600061381f868287016136e0565b9350506020613830868287016136e0565b925050604061384186828701613716565b9150509250925092565b600060ff82169050919050565b6138618161384b565b82525050565b600060208201905061387c6000830184613858565b92915050565b600060208284031215613898576138976136c4565b5b60006138a684828501613716565b91505092915050565b6138b881613543565b82525050565b60006020820190506138d360008301846138af565b92915050565b60006040820190506138ee60008301856137ce565b6138fb60208301846137ce565b9392505050565b60008060408385031215613919576139186136c4565b5b600061392785828601613716565b925050602061393885828601613716565b9150509250929050565b60008060408385031215613959576139586136c4565b5b6000613967858286016136e0565b9250506020613978858286016136e0565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806139c957607f821691505b602082108114156139dd576139dc613982565b5b50919050565b6000815190506139f2816136ff565b92915050565b600060208284031215613a0e57613a0d6136c4565b5b6000613a1c848285016139e3565b91505092915050565b6000604082019050613a3a60008301856138af565b613a4760208301846137ce565b9392505050565b613a578161376b565b8114613a6257600080fd5b50565b600081519050613a7481613a4e565b92915050565b600060208284031215613a9057613a8f6136c4565b5b6000613a9e84828501613a65565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613ae1826136f5565b9150613aec836136f5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b2157613b20613aa7565b5b828201905092915050565b7f4572726f723a20596f7520617265206e6f742077686974656c69737465640000600082015250565b6000613b62601e83613614565b9150613b6d82613b2c565b602082019050919050565b60006020820190508181036000830152613b9181613b55565b9050919050565b7f4f6e6c7920616363657074696e6720617070726f76656420737461626c65206360008201527f6f696e7320666f7220626f6e64696e6700000000000000000000000000000000602082015250565b6000613bf4603083613614565b9150613bff82613b98565b604082019050919050565b60006020820190508181036000830152613c2381613be7565b9050919050565b613c338161384b565b8114613c3e57600080fd5b50565b600081519050613c5081613c2a565b92915050565b600060208284031215613c6c57613c6b6136c4565b5b6000613c7a84828501613c41565b91505092915050565b6000613c8e8261384b565b9150613c998361384b565b925082821015613cac57613cab613aa7565b5b828203905092915050565b60008160011c9050919050565b6000808291508390505b6001851115613d0e57808604811115613cea57613ce9613aa7565b5b6001851615613cf95780820291505b8081029050613d0785613cb7565b9450613cce565b94509492505050565b600082613d275760019050613de3565b81613d355760009050613de3565b8160018114613d4b5760028114613d5557613d84565b6001915050613de3565b60ff841115613d6757613d66613aa7565b5b8360020a915084821115613d7e57613d7d613aa7565b5b50613de3565b5060208310610133831016604e8410600b8410161715613db95782820a905083811115613db457613db3613aa7565b5b613de3565b613dc68484846001613cc4565b92509050818404811115613ddd57613ddc613aa7565b5b81810290505b9392505050565b6000613df5826136f5565b9150613e008361384b565b9250613e2d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484613d17565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e6f826136f5565b9150613e7a836136f5565b925082613e8a57613e89613e35565b5b828204905092915050565b7f596f7520646f6e2774206861766520656e6f756768206f66207468617420746f60008201527f6b656e20746f20626f6e64207468617420616d6f756e74000000000000000000602082015250565b6000613ef1603783613614565b9150613efc82613e95565b604082019050919050565b60006020820190508181036000830152613f2081613ee4565b9050919050565b7f5468697320636f6e747261637420646f6573206e6f74206861766520656e6f7560008201527f6768204d7520436f696e00000000000000000000000000000000000000000000602082015250565b6000613f83602a83613614565b9150613f8e82613f27565b604082019050919050565b60006020820190508181036000830152613fb281613f76565b9050919050565b6000606082019050613fce60008301866138af565b613fdb60208301856138af565b613fe860408301846137ce565b949350505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b600061404c602583613614565b915061405782613ff0565b604082019050919050565b6000602082019050818103600083015261407b8161403f565b9050919050565b600061408d826136f5565b9150614098836136f5565b9250828210156140ab576140aa613aa7565b5b828203905092915050565b60006140c1826136f5565b91506140cc836136f5565b92506140f97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484613d17565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061413b826136f5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561416e5761416d613aa7565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614204602683613614565b915061420f826141a8565b604082019050919050565b60006020820190508181036000830152614233816141f7565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614296602483613614565b91506142a18261423a565b604082019050919050565b600060208201905081810360008301526142c581614289565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614328602283613614565b9150614333826142cc565b604082019050919050565b600060208201905081810360008301526143578161431b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614394602083613614565b915061439f8261435e565b602082019050919050565b600060208201905081810360008301526143c381614387565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000614400601d83613614565b915061440b826143ca565b602082019050919050565b6000602082019050818103600083015261442f816143f3565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614492602583613614565b915061449d82614436565b604082019050919050565b600060208201905081810360008301526144c181614485565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614524602383613614565b915061452f826144c8565b604082019050919050565b6000602082019050818103600083015261455381614517565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006145b6602683613614565b91506145c18261455a565b604082019050919050565b600060208201905081810360008301526145e5816145a9565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000614622601f83613614565b915061462d826145ec565b602082019050919050565b6000602082019050818103600083015261465181614615565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006146b4602183613614565b91506146bf82614658565b604082019050919050565b600060208201905081810360008301526146e3816146a7565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000614746602283613614565b9150614751826146ea565b604082019050919050565b6000602082019050818103600083015261477581614739565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006147b2601f83613614565b91506147bd8261477c565b602082019050919050565b600060208201905081810360008301526147e1816147a5565b9050919050565b60006dffffffffffffffffffffffffffff82169050919050565b61480b816147e8565b811461481657600080fd5b50565b60008151905061482881614802565b92915050565b60008060408385031215614845576148446136c4565b5b600061485385828601614819565b925050602061486485828601614819565b9150509250929050565b6000614879826147e8565b9150614884836147e8565b9250816dffffffffffffffffffffffffffff04831182151516156148ab576148aa613aa7565b5b828202905092915050565b6000819050919050565b60006148db6148d66148d1846147e8565b6148b6565b6136f5565b9050919050565b6148eb816148c0565b82525050565b600060608201905061490660008301866137ce565b61491360208301856148e2565b61492060408301846148e2565b949350505050565b6000614933826136f5565b915061493e836136f5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561497757614976613aa7565b5b828202905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006149b8601083613614565b91506149c382614982565b602082019050919050565b600060208201905081810360008301526149e7816149ab565b905091905056fea26469706673582212200de90afebe28da7005d8ea08d8f25518804b94cda1b319c6a93d0f661f4b747764736f6c63430008090033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.