Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AETH_R21
Compiler Version
v0.6.11+commit.5ef660b1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.6.11; import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; import "../lib/openzeppelin/ERC20UpgradeSafe.sol"; import "../lib/Lockable.sol"; import "../lib/Pausable.sol"; import "../lib/MathUtils.sol"; import "../lib/interfaces/IFeeRecipient.sol"; contract AETH_R21 is OwnableUpgradeSafe, ERC20UpgradeSafe, Lockable { using SafeMath for uint256; event RatioUpdate(uint256 newRatio); event GlobalPoolContractUpdated(address prevValue, address newValue); event NameAndSymbolChanged(string name, string symbol); event OperatorChanged(address prevValue, address newValue); event PauseToggled(bytes32 indexed action, bool newValue); event BscBridgeContractChanged(address prevValue, address newValue); event FeeRecipientChanged(address prevValue, address newValue); event RatioThresholdChanged(uint32 prevValue, uint32 newValue); uint32 public constant MAX_THRESHOLD = uint32(1e8); // 100000000 uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; address private _globalPoolContract; // ratio should be base on 1 ether // if ratio is 0.9, this variable should be 9e17 uint256 private _ratio; modifier onlyOperator() { require(msg.sender == owner() || msg.sender == _operator, "Operator: not allowed"); _; } function initialize(string memory name, string memory symbol) public initializer { OwnableUpgradeSafe.__Ownable_init(); __ERC20_init(name, symbol); _totalSupply = 0; _ratio = 1e18; } function isRebasing() external pure returns (bool) { return false; } function updateRatio(uint256 newRatio) public onlyOperator { _updateRatio(newRatio); } /* * @notice update ratio and claim EL rewards to GlobalPool */ function updateRatioAndClaim(uint256 newRatio) external onlyOperator { _updateRatio(newRatio); _feeRecipient.claim(); } function _updateRatio(uint256 newRatio) internal { (bool valid, string memory reason) = _checkRatioRules(newRatio, _ratio); require(valid, reason); _ratio = newRatio; _ratioUpdateTs = block.timestamp; emit RatioUpdate(newRatio); } function _checkRatioRules( uint256 newRatio, uint256 oldRatio ) internal view returns (bool valid, string memory reason) { // initialization of the first ratio -> skip checks if (oldRatio == 1e18) { return (valid = true, reason); } if (block.timestamp.sub(_ratioUpdateTs) < 12 hours) { return (valid, reason = "AETH: ratio was updated less than 12 hours ago"); } // new ratio should be not greater than a previous one if (newRatio > oldRatio) { return (valid, reason = "AETH: new ratio cannot be greater than old"); } // new ratio should be in the range [oldRatio - threshold , oldRatio] uint256 threshold = oldRatio.mul(_RATIO_THRESHOLD).div(MAX_THRESHOLD); if (newRatio < oldRatio.sub(threshold)) { return (valid, reason = "AETH: new ratio not in threshold range"); } return (valid = true, reason); } function repairRatio(uint256 newRatio) public onlyOwner { _ratio = newRatio; emit RatioUpdate(_ratio); } function ratio() public view returns (uint256) { return _ratio; } function updateGlobalPoolContract(address globalPoolContract) external onlyOwner { address prevValue = _globalPoolContract; _globalPoolContract = globalPoolContract; emit GlobalPoolContractUpdated(prevValue, globalPoolContract); } function burn(address account, uint256 amount) external { require(msg.sender == address(_bscBridgeContract) || msg.sender == address(_globalPoolContract), 'Not allowed'); _burn(account, amount); } function mint(address account, uint256 amount) external returns (uint256) { require(msg.sender == address(_bscBridgeContract) || msg.sender == address(_globalPoolContract), 'Not allowed'); _mint(account, amount); return amount; } function mintApprovedTo(address account, address spender, uint256 amount) external { require(msg.sender == address(_bscBridgeContract) || msg.sender == address(_globalPoolContract), 'Not allowed'); _mint(account, amount); _approve(account, spender, amount); } function symbol() public view override returns (string memory) { return _symbol; } function name() public view override returns (string memory) { return _name; } function setNewNameAndSymbol() public onlyOperator { _name = "Ankr Eth2 Reward Bearing Bond"; _symbol = "aETH"; emit NameAndSymbolChanged(_name, _symbol); } function setNameAndSymbol(string memory new_name, string memory new_symbol) public onlyOperator { _name = new_name; _symbol = new_symbol; emit NameAndSymbolChanged(_name, _symbol); } function changeOperator(address operator) public onlyOwner { address prevValue = _operator; _operator = operator; emit OperatorChanged(prevValue, operator); } function refundPool(address from, uint256 shares) external onlyOwner { _transfer(from, _globalPoolContract, shares); } function _transfer(address sender, address recipient, uint256 amount) internal virtual override whenNotPaused("transfer") { super._transfer(sender, recipient, amount); } /** * @dev Allows to transfer any token from this contract. * Only operator can call this method. * @param token address of the token. * @param to address that will receive the tokens from this contract. */ function claimTokens(address token, address to, uint256 amount) external onlyOperator { require(IERC20(token).transfer(to, amount), "AETH: transfer failed"); } function sharesToBonds(uint256 amount) public view returns (uint256) { return MathUtils.multiplyAndDivideFloor(amount, 1 ether, ratio()); } function bondsToShares(uint256 amount) public view returns (uint256) { return MathUtils.multiplyAndDivideCeil(amount, ratio(), 1 ether); } modifier whenNotPaused(bytes32 action) { require(!_paused[action], "This action currently paused"); _; } function togglePause(bytes32 action) public onlyOwner { _paused[action] = !_paused[action]; emit PauseToggled(action, _paused[action]); } function isPaused(bytes32 action) public view returns (bool) { return _paused[action]; } function setBscBridgeContract(address _bscBridge) public onlyOwner { address prevValue = _bscBridgeContract; _bscBridgeContract = _bscBridge; emit BscBridgeContractChanged(prevValue, _bscBridge); } function setFeeRecipient(address newValue) external onlyOwner { require(newValue != address(0), "AETH: zero address"); emit FeeRecipientChanged(address(_feeRecipient), newValue); _feeRecipient = IFeeRecipient(newValue); } function setRatioThreshold(uint32 newValue) external onlyOwner { require(newValue <= MAX_THRESHOLD, "AETH: greater than threshold"); emit RatioThresholdChanged(_RATIO_THRESHOLD, newValue); _RATIO_THRESHOLD = newValue; } uint256[50] private __gap; address private _operator; mapping(bytes32 => bool) internal _paused; address private _bscBridgeContract; IFeeRecipient internal _feeRecipient; uint256 private _ratioUpdateTs; uint32 public _RATIO_THRESHOLD; }
pragma solidity ^0.6.0; import "../GSN/Context.sol"; import "../Initializable.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. */ contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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; } uint256[49] private __gap; }
pragma solidity ^0.6.0; import "../Initializable.sol"; /* * @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. */ contract ContextUpgradeSafe is Initializable { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } 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; } uint256[50] private __gap; }
pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well * as extending an Initializable contract via inheritance. * WARNING: When used with inheritance, manual care must be taken to not invoke * a parent initializer twice, or ensure that all initializers are idempotent, * because this is not dealt with automatically as with constructors. */ contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the initializer function of a contract. */ modifier initializer() { require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized"); bool isTopLevelCall = !initializing; if (isTopLevelCall) { initializing = true; initialized = true; } _; if (isTopLevelCall) { initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } // Reserved storage space to allow for layout changes in the future. uint256[50] private ______gap; }
pragma solidity ^0.6.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, 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) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * 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); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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 mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
pragma solidity ^0.6.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); }
pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } }
pragma solidity ^0.6.11; interface IFeeRecipient { function claim() external; }
pragma solidity ^0.6.11; abstract contract Lockable { mapping(address => bool) private _locks; modifier unlocked(address addr) { require(!_locks[addr], "Reentrancy protection"); _locks[addr] = true; _; _locks[addr] = false; } uint256[50] private __gap; }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.6.11; library MathUtils { function saturatingMultiply(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; if (c / a != b) return type(uint256).max; return c; } function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; if (c < a) return type(uint256).max; return c; } // Preconditions: // 1. a may be arbitrary (up to 2 ** 256 - 1) // 2. b * c < 2 ** 256 // Returned value: min(floor((a * b) / c), 2 ** 256 - 1) function multiplyAndDivideFloor( uint256 a, uint256 b, uint256 c ) internal pure returns (uint256) { return saturatingAdd( saturatingMultiply(a / c, b), ((a % c) * b) / c // can't fail because of assumption 2. ); } // Preconditions: // 1. a may be arbitrary (up to 2 ** 256 - 1) // 2. b * c < 2 ** 256 // Returned value: min(ceil((a * b) / c), 2 ** 256 - 1) function multiplyAndDivideCeil( uint256 a, uint256 b, uint256 c ) internal pure returns (uint256) { return saturatingAdd( saturatingMultiply(a / c, b), ((a % c) * b + (c - 1)) / c // can't fail because of assumption 2. ); } }
pragma solidity ^0.6.0; import "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.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 {ERC20MinterPauser}. * * 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 ERC20UpgradeSafe is Initializable, ContextUpgradeSafe, IERC20 { using SafeMath for uint256; using Address for address; 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. */ function __ERC20_init(string memory name, string memory symbol) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name, symbol); } function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer { _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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view 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 is 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 { _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 { } uint256[44] private __gap; }
pragma solidity 0.6.11; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; contract Pausable is OwnableUpgradeSafe { mapping (bytes32 => bool) internal _paused; modifier whenNotPaused(bytes32 action) { require(!_paused[action], "This action currently paused"); _; } function togglePause(bytes32 action) public onlyOwner { _paused[action] = !_paused[action]; } function isPaused(bytes32 action) public view returns(bool) { return _paused[action]; } uint256[50] private __gap; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract ABI
API[{"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":"prevValue","type":"address"},{"indexed":false,"internalType":"address","name":"newValue","type":"address"}],"name":"BscBridgeContractChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"prevValue","type":"address"},{"indexed":false,"internalType":"address","name":"newValue","type":"address"}],"name":"FeeRecipientChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"prevValue","type":"address"},{"indexed":false,"internalType":"address","name":"newValue","type":"address"}],"name":"GlobalPoolContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"NameAndSymbolChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"prevValue","type":"address"},{"indexed":false,"internalType":"address","name":"newValue","type":"address"}],"name":"OperatorChanged","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":"bytes32","name":"action","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"newValue","type":"bool"}],"name":"PauseToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"prevValue","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"newValue","type":"uint32"}],"name":"RatioThresholdChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"RatioUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_THRESHOLD","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_RATIO_THRESHOLD","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bondsToShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"changeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimTokens","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":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRebasing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintApprovedTo","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":"ratio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"refundPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"repairRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bscBridge","type":"address"}],"name":"setBscBridgeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newValue","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"new_name","type":"string"},{"internalType":"string","name":"new_symbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setNewNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newValue","type":"uint32"}],"name":"setRatioThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sharesToBonds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"action","type":"bytes32"}],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"globalPoolContract","type":"address"}],"name":"updateGlobalPoolContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"updateRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"updateRatioAndClaim","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50612e28806100206000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80636d46574911610130578063a9059cbb116100b8578063dfa6b7fa1161007c578063dfa6b7fa146108ed578063e5683ad914610913578063e74b981b14610930578063f2fde38b14610956578063fc59a1251461097c57610232565b8063a9059cbb14610866578063ad60a6a614610892578063b4430bfd1461089a578063dc647e29146108a2578063dd62ed3e146108bf57610232565b80638da5cb5b116100ff5780638da5cb5b146107ac57806395d89b41146107d05780639dc29fac146107d85780639fc314c814610804578063a457c2d71461083a57610232565b80636d4657491461074a57806370a0823114610776578063715018a61461079c57806371ca337d146107a457610232565b806327de9869116101be5780634cd88b76116101825780634cd88b76146104b657806353616373146105df5780635a446215146105fc5780635dfba115146107255780636c58d43d1461072d57610232565b806327de9869146103ed5780632c323bbd14610423578063313ce56714610440578063395093511461045e57806340c10f191461048a57610232565b806318160ddd1161020557806318160ddd1461033d57806323b872dd14610357578063241b71bb1461038d5780632472c938146103aa57806325500edd146103c757610232565b806306394c9b1461023757806306fdde031461025f57806308af5431146102dc578063095ea7b3146102fd575b600080fd5b61025d6004803603602081101561024d57600080fd5b50356001600160a01b031661099f565b005b610267610a5b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102a1578181015183820152602001610289565b50505050905090810190601f1680156102ce5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e4610af2565b6040805163ffffffff9092168252519081900360200190f35b6103296004803603604081101561031357600080fd5b506001600160a01b038135169060200135610afa565b604080519115158252519081900360200190f35b610345610b18565b60408051918252519081900360200190f35b6103296004803603606081101561036d57600080fd5b506001600160a01b03813581169160208101359091169060400135610b1e565b610329600480360360208110156103a357600080fd5b5035610bab565b61025d600480360360208110156103c057600080fd5b5035610bc1565b61025d600480360360208110156103dd57600080fd5b50356001600160a01b0316610cb1565b61025d6004803603606081101561040357600080fd5b506001600160a01b03813581169160208101359091169060400135610d76565b61025d6004803603602081101561043957600080fd5b5035610df8565b610448610ead565b6040805160ff9092168252519081900360200190f35b6103296004803603604081101561047457600080fd5b506001600160a01b038135169060200135610eb6565b610345600480360360408110156104a057600080fd5b506001600160a01b038135169060200135610f0a565b61025d600480360360408110156104cc57600080fd5b810190602081018135600160201b8111156104e657600080fd5b8201836020820111156104f857600080fd5b803590602001918460018302840111600160201b8311171561051957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561056b57600080fd5b82018360208201111561057d57600080fd5b803590602001918460018302840111600160201b8311171561059e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f85945050505050565b610345600480360360208110156105f557600080fd5b503561104c565b61025d6004803603604081101561061257600080fd5b810190602081018135600160201b81111561062c57600080fd5b82018360208201111561063e57600080fd5b803590602001918460018302840111600160201b8311171561065f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156106b157600080fd5b8201836020820111156106c357600080fd5b803590602001918460018302840111600160201b831117156106e457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611068945050505050565b610329611239565b6103456004803603602081101561074357600080fd5b503561123e565b61025d6004803603604081101561076057600080fd5b506001600160a01b03813516906020013561125a565b6103456004803603602081101561078c57600080fd5b50356001600160a01b03166112d3565b61025d6112ee565b610345611390565b6107b4611397565b604080516001600160a01b039092168252519081900360200190f35b6102676113a6565b61025d600480360360408110156107ee57600080fd5b506001600160a01b038135169060200135611407565b61025d6004803603606081101561081a57600080fd5b506001600160a01b03813581169160208101359091169060400135611479565b6103296004803603604081101561085057600080fd5b506001600160a01b0381351690602001356115c9565b6103296004803603604081101561087c57600080fd5b506001600160a01b038135169060200135611637565b6102e461164b565b61025d611658565b61025d600480360360208110156108b857600080fd5b5035611870565b610345600480360360408110156108d557600080fd5b506001600160a01b03813581169160200135166118f7565b61025d6004803603602081101561090357600080fd5b50356001600160a01b0316611922565b61025d6004803603602081101561092957600080fd5b50356119de565b61025d6004803603602081101561094657600080fd5b50356001600160a01b0316611a72565b61025d6004803603602081101561096c57600080fd5b50356001600160a01b0316611b86565b61025d6004803603602081101561099257600080fd5b503563ffffffff16611c7f565b6109a7611d99565b6065546001600160a01b039081169116146109f7576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b61013380546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517fd58299b712891143e76310d5e664c4203c940a67db37cf856bdaa3c5c76a802c929181900390910190a15050565b60fd8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ae75780601f10610abc57610100808354040283529160200191610ae7565b820191906000526020600020905b815481529060010190602001808311610aca57829003601f168201915b505050505090505b90565b6305f5e10081565b6000610b0e610b07611d99565b8484611d9d565b5060015b92915050565b60995490565b6000610b2b848484611e89565b610ba184610b37611d99565b610b9c85604051806060016040528060288152602001612cc8602891396001600160a01b038a16600090815260986020526040812090610b75611d99565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611f2816565b611d9d565b5060019392505050565b6000908152610134602052604090205460ff1690565b610bc9611397565b6001600160a01b0316336001600160a01b03161480610bf35750610133546001600160a01b031633145b610c3c576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b610c4581611fbf565b61013660009054906101000a90046001600160a01b03166001600160a01b0316634e71d92d6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610c9657600080fd5b505af1158015610caa573d6000803e3d6000fd5b5050505050565b610cb9611d99565b6065546001600160a01b03908116911614610d09576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b60ff80546001600160a01b03838116610100818102610100600160a81b03198516179094556040805194909304919091168084526020840191909152815190927f03314e00363f5f1eaf482ad09a5533f5e855696bfcbc89c1ab913071bc779a9392908290030190a15050565b610135546001600160a01b0316331480610d9f575060ff5461010090046001600160a01b031633145b610dde576040805162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b610de88382612066565b610df3838383611d9d565b505050565b610e00611d99565b6065546001600160a01b03908116911614610e50576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b60008181526101346020908152604091829020805460ff19811660ff9182161517918290558351911615158152915183927ff85a5280ba8bb267ae7df8bd5fb71bc85ea6cf382ef23304d24ab7ed34482cf792908290030190a250565b609c5460ff1690565b6000610b0e610ec3611d99565b84610b9c8560986000610ed4611d99565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61216416565b610135546000906001600160a01b0316331480610f36575060ff5461010090046001600160a01b031633145b610f75576040805162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b610f7f8383612066565b50919050565b600054610100900460ff1680610f9e5750610f9e6121c5565b80610fac575060005460ff16155b610fe75760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015611012576000805460ff1961ff0019909116610100171660011790555b61101a6121cb565b611024838361227c565b600060fc55670de0b6b3a7640000610100558015610df3576000805461ff0019169055505050565b6000610b128261105a611390565b670de0b6b3a7640000612331565b611070611397565b6001600160a01b0316336001600160a01b0316148061109a5750610133546001600160a01b031633145b6110e3576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b81516110f69060fd906020850190612b03565b50805161110a9060fe906020840190612b03565b506040805181815260fd8054600260001961010060018416150201909116049282018390527f4d807d72b2a493ff2c4e338967d3f82d3352481258457d12a4506a1762a44c6992909160fe91819060208201906060830190869080156111b15780601f10611186576101008083540402835291602001916111b1565b820191906000526020600020905b81548152906001019060200180831161119457829003601f168201915b50508381038252845460026000196101006001841615020190911604808252602090910190859080156112255780601f106111fa57610100808354040283529160200191611225565b820191906000526020600020905b81548152906001019060200180831161120857829003601f168201915b505094505050505060405180910390a15050565b600090565b6000610b1282670de0b6b3a7640000611255611390565b612370565b611262611d99565b6065546001600160a01b039081169116146112b2576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b60ff546112cf90839061010090046001600160a01b031683611e89565b5050565b6001600160a01b031660009081526097602052604090205490565b6112f6611d99565b6065546001600160a01b03908116911614611346576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6065546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580546001600160a01b0319169055565b6101005490565b6065546001600160a01b031690565b60fe8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ae75780601f10610abc57610100808354040283529160200191610ae7565b610135546001600160a01b0316331480611430575060ff5461010090046001600160a01b031633145b61146f576040805162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b6112cf8282612395565b611481611397565b6001600160a01b0316336001600160a01b031614806114ab5750610133546001600160a01b031633145b6114f4576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561155457600080fd5b505af1158015611568573d6000803e3d6000fd5b505050506040513d602081101561157e57600080fd5b5051610df3576040805162461bcd60e51b8152602060048201526015602482015274105155120e881d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b6000610b0e6115d6611d99565b84610b9c85604051806060016040528060258152602001612dce6025913960986000611600611d99565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611f2816565b6000610b0e611644611d99565b8484611e89565b6101385463ffffffff1681565b611660611397565b6001600160a01b0316336001600160a01b0316148061168a5750610133546001600160a01b031633145b6116d3576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b60408051808201909152601d8082527f416e6b722045746832205265776172642042656172696e6720426f6e6400000060209092019182526117179160fd91612b03565b50604080518082019091526004808252630c28aa8960e31b60209092019182526117439160fe91612b03565b506040805181815260fd8054600260001961010060018416150201909116049282018390527f4d807d72b2a493ff2c4e338967d3f82d3352481258457d12a4506a1762a44c6992909160fe91819060208201906060830190869080156117ea5780601f106117bf576101008083540402835291602001916117ea565b820191906000526020600020905b8154815290600101906020018083116117cd57829003601f168201915b505083810382528454600260001961010060018416150201909116048082526020909101908590801561185e5780601f106118335761010080835404028352916020019161185e565b820191906000526020600020905b81548152906001019060200180831161184157829003601f168201915b505094505050505060405180910390a1565b611878611397565b6001600160a01b0316336001600160a01b031614806118a25750610133546001600160a01b031633145b6118eb576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b6118f481611fbf565b50565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b61192a611d99565b6065546001600160a01b0390811691161461197a576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b61013580546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517fb0a39bcef5feccd6b44d2d1d60aa55e6ec08770e0f664c8dbbd2493168937084929181900390910190a15050565b6119e6611d99565b6065546001600160a01b03908116911614611a36576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6101008190556040805182815290517fb779c97cee7508e970bdead8c3ef0bd16f8c63dbba28fe88f7c7a56722fc564d9181900360200190a150565b611a7a611d99565b6065546001600160a01b03908116911614611aca576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6001600160a01b038116611b1a576040805162461bcd60e51b8152602060048201526012602482015271414554483a207a65726f206164647265737360701b604482015290519081900360640190fd5b61013654604080516001600160a01b039283168152918316602083015280517f0bc21fe5c3ab742ff1d15b5c4477ffbacf1167e618228078fa625edebe7f331d9281900390910190a161013680546001600160a01b0319166001600160a01b0392909216919091179055565b611b8e611d99565b6065546001600160a01b03908116911614611bde576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6001600160a01b038116611c235760405162461bcd60e51b8152600401808060200182810382526026815260200180612c0f6026913960400191505060405180910390fd5b6065546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580546001600160a01b0319166001600160a01b0392909216919091179055565b611c87611d99565b6065546001600160a01b03908116911614611cd7576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6305f5e10063ffffffff82161115611d36576040805162461bcd60e51b815260206004820152601c60248201527f414554483a2067726561746572207468616e207468726573686f6c6400000000604482015290519081900360640190fd5b610138546040805163ffffffff9283168152918316602083015280517f79f4459c246e1768bcbec607aaee99439cc37aec7979983ab5b39566ebe155c29281900390910190a1610138805463ffffffff191663ffffffff92909216919091179055565b3390565b6001600160a01b038316611de25760405162461bcd60e51b8152600401808060200182810382526024815260200180612daa6024913960400191505060405180910390fd5b6001600160a01b038216611e275760405162461bcd60e51b8152600401808060200182810382526022815260200180612c356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260986020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b673a3930b739b332b960c11b60008190526101346020527fc4a955c614ae4ce013944f553f6d50f1a4f797e9c9608762f36ccd9ef66e5f7e5460ff1615611f17576040805162461bcd60e51b815260206004820152601c60248201527f5468697320616374696f6e2063757272656e746c792070617573656400000000604482015290519081900360640190fd5b611f2284848461249d565b50505050565b60008184841115611fb75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f7c578181015183820152602001611f64565b50505050905090810190601f168015611fa95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60006060611fd08361010054612606565b915091508181906120225760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611f7c578181015183820152602001611f64565b5061010083905542610137556040805184815290517fb779c97cee7508e970bdead8c3ef0bd16f8c63dbba28fe88f7c7a56722fc564d9181900360200190a1505050565b6001600160a01b0382166120c1576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6120cd60008383610df3565b6099546120e0908263ffffffff61216416565b6099556001600160a01b03821660009081526097602052604090205461210c908263ffffffff61216416565b6001600160a01b03831660008181526097602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000828201838110156121be576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b303b1590565b600054610100900460ff16806121e457506121e46121c5565b806121f2575060005460ff16155b61222d5760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015612258576000805460ff1961ff0019909116610100171660011790555b612260612710565b6122686127b0565b80156118f4576000805461ff001916905550565b600054610100900460ff168061229557506122956121c5565b806122a3575060005460ff16155b6122de5760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015612309576000805460ff1961ff0019909116610100171660011790555b612311612710565b61231b83836128a9565b8015610df3576000805461ff0019169055505050565b600061236861234983868161234257fe5b0485612981565b83600185038686898161235857fe5b0602018161236257fe5b046129ae565b949350505050565b600061236861238183868161234257fe5b838585888161238c57fe5b06028161236257fe5b6001600160a01b0382166123da5760405162461bcd60e51b8152600401808060200182810382526021815260200180612d3e6021913960400191505060405180910390fd5b6123e682600083610df3565b61242981604051806060016040528060228152602001612bed602291396001600160a01b038516600090815260976020526040902054919063ffffffff611f2816565b6001600160a01b038316600090815260976020526040902055609954612455908263ffffffff6129c616565b6099556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0383166124e25760405162461bcd60e51b8152600401808060200182810382526025815260200180612d5f6025913960400191505060405180910390fd5b6001600160a01b0382166125275760405162461bcd60e51b8152600401808060200182810382526023815260200180612bca6023913960400191505060405180910390fd5b612532838383610df3565b61257581604051806060016040528060268152602001612c57602691396001600160a01b038616600090815260976020526040902054919063ffffffff611f2816565b6001600160a01b0380851660009081526097602052604080822093909355908416815220546125aa908263ffffffff61216416565b6001600160a01b0380841660008181526097602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000606082670de0b6b3a764000014156126235760019150612709565b61a8c061263c61013754426129c690919063ffffffff16565b101561266657816040518060600160405280602e8152602001612b9c602e91399092509050612709565b8284111561269257816040518060600160405280602a8152602001612c7d602a91399092509050612709565b610138546000906126c4906305f5e100906126b890879063ffffffff90811690612a0816565b9063ffffffff612a6116565b90506126d6848263ffffffff6129c616565b8510156127035782604051806060016040528060268152602001612d846026913990935091506127099050565b50600191505b9250929050565b600054610100900460ff168061272957506127296121c5565b80612737575060005460ff16155b6127725760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015612268576000805460ff1961ff00199091166101001716600117905580156118f4576000805461ff001916905550565b600054610100900460ff16806127c957506127c96121c5565b806127d7575060005460ff16155b6128125760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff1615801561283d576000805460ff1961ff0019909116610100171660011790555b6000612847611d99565b606580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156118f4576000805461ff001916905550565b600054610100900460ff16806128c257506128c26121c5565b806128d0575060005460ff16155b61290b5760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015612936576000805460ff1961ff0019909116610100171660011790555b825161294990609a906020860190612b03565b50815161295d90609b906020850190612b03565b50609c805460ff191660121790558015610df3576000805461ff0019169055505050565b60008261299057506000610b12565b8282028284828161299d57fe5b04146121be57600019915050610b12565b6000828201838110156121be57600019915050610b12565b60006121be83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f28565b600082612a1757506000610b12565b82820282848281612a2457fe5b04146121be5760405162461bcd60e51b8152600401808060200182810382526021815260200180612ca76021913960400191505060405180910390fd5b60006121be83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060008183612aed5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611f7c578181015183820152602001611f64565b506000838581612af957fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612b4457805160ff1916838001178555612b71565b82800160010185558215612b71579182015b82811115612b71578251825591602001919060010190612b56565b50612b7d929150612b81565b5090565b610aef91905b80821115612b7d5760008155600101612b8756fe414554483a20726174696f207761732075706461746564206c657373207468616e20313220686f7572732061676f45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365414554483a206e657720726174696f2063616e6e6f742062652067726561746572207468616e206f6c64536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373414554483a206e657720726174696f206e6f7420696e207468726573686f6c642072616e676545524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206d1e092af1c8ecf5f7784e67157c09a69b00ae623d4b2b4e5ea4319486be0ec564736f6c634300060b0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102325760003560e01c80636d46574911610130578063a9059cbb116100b8578063dfa6b7fa1161007c578063dfa6b7fa146108ed578063e5683ad914610913578063e74b981b14610930578063f2fde38b14610956578063fc59a1251461097c57610232565b8063a9059cbb14610866578063ad60a6a614610892578063b4430bfd1461089a578063dc647e29146108a2578063dd62ed3e146108bf57610232565b80638da5cb5b116100ff5780638da5cb5b146107ac57806395d89b41146107d05780639dc29fac146107d85780639fc314c814610804578063a457c2d71461083a57610232565b80636d4657491461074a57806370a0823114610776578063715018a61461079c57806371ca337d146107a457610232565b806327de9869116101be5780634cd88b76116101825780634cd88b76146104b657806353616373146105df5780635a446215146105fc5780635dfba115146107255780636c58d43d1461072d57610232565b806327de9869146103ed5780632c323bbd14610423578063313ce56714610440578063395093511461045e57806340c10f191461048a57610232565b806318160ddd1161020557806318160ddd1461033d57806323b872dd14610357578063241b71bb1461038d5780632472c938146103aa57806325500edd146103c757610232565b806306394c9b1461023757806306fdde031461025f57806308af5431146102dc578063095ea7b3146102fd575b600080fd5b61025d6004803603602081101561024d57600080fd5b50356001600160a01b031661099f565b005b610267610a5b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102a1578181015183820152602001610289565b50505050905090810190601f1680156102ce5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e4610af2565b6040805163ffffffff9092168252519081900360200190f35b6103296004803603604081101561031357600080fd5b506001600160a01b038135169060200135610afa565b604080519115158252519081900360200190f35b610345610b18565b60408051918252519081900360200190f35b6103296004803603606081101561036d57600080fd5b506001600160a01b03813581169160208101359091169060400135610b1e565b610329600480360360208110156103a357600080fd5b5035610bab565b61025d600480360360208110156103c057600080fd5b5035610bc1565b61025d600480360360208110156103dd57600080fd5b50356001600160a01b0316610cb1565b61025d6004803603606081101561040357600080fd5b506001600160a01b03813581169160208101359091169060400135610d76565b61025d6004803603602081101561043957600080fd5b5035610df8565b610448610ead565b6040805160ff9092168252519081900360200190f35b6103296004803603604081101561047457600080fd5b506001600160a01b038135169060200135610eb6565b610345600480360360408110156104a057600080fd5b506001600160a01b038135169060200135610f0a565b61025d600480360360408110156104cc57600080fd5b810190602081018135600160201b8111156104e657600080fd5b8201836020820111156104f857600080fd5b803590602001918460018302840111600160201b8311171561051957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561056b57600080fd5b82018360208201111561057d57600080fd5b803590602001918460018302840111600160201b8311171561059e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f85945050505050565b610345600480360360208110156105f557600080fd5b503561104c565b61025d6004803603604081101561061257600080fd5b810190602081018135600160201b81111561062c57600080fd5b82018360208201111561063e57600080fd5b803590602001918460018302840111600160201b8311171561065f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156106b157600080fd5b8201836020820111156106c357600080fd5b803590602001918460018302840111600160201b831117156106e457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611068945050505050565b610329611239565b6103456004803603602081101561074357600080fd5b503561123e565b61025d6004803603604081101561076057600080fd5b506001600160a01b03813516906020013561125a565b6103456004803603602081101561078c57600080fd5b50356001600160a01b03166112d3565b61025d6112ee565b610345611390565b6107b4611397565b604080516001600160a01b039092168252519081900360200190f35b6102676113a6565b61025d600480360360408110156107ee57600080fd5b506001600160a01b038135169060200135611407565b61025d6004803603606081101561081a57600080fd5b506001600160a01b03813581169160208101359091169060400135611479565b6103296004803603604081101561085057600080fd5b506001600160a01b0381351690602001356115c9565b6103296004803603604081101561087c57600080fd5b506001600160a01b038135169060200135611637565b6102e461164b565b61025d611658565b61025d600480360360208110156108b857600080fd5b5035611870565b610345600480360360408110156108d557600080fd5b506001600160a01b03813581169160200135166118f7565b61025d6004803603602081101561090357600080fd5b50356001600160a01b0316611922565b61025d6004803603602081101561092957600080fd5b50356119de565b61025d6004803603602081101561094657600080fd5b50356001600160a01b0316611a72565b61025d6004803603602081101561096c57600080fd5b50356001600160a01b0316611b86565b61025d6004803603602081101561099257600080fd5b503563ffffffff16611c7f565b6109a7611d99565b6065546001600160a01b039081169116146109f7576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b61013380546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517fd58299b712891143e76310d5e664c4203c940a67db37cf856bdaa3c5c76a802c929181900390910190a15050565b60fd8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ae75780601f10610abc57610100808354040283529160200191610ae7565b820191906000526020600020905b815481529060010190602001808311610aca57829003601f168201915b505050505090505b90565b6305f5e10081565b6000610b0e610b07611d99565b8484611d9d565b5060015b92915050565b60995490565b6000610b2b848484611e89565b610ba184610b37611d99565b610b9c85604051806060016040528060288152602001612cc8602891396001600160a01b038a16600090815260986020526040812090610b75611d99565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611f2816565b611d9d565b5060019392505050565b6000908152610134602052604090205460ff1690565b610bc9611397565b6001600160a01b0316336001600160a01b03161480610bf35750610133546001600160a01b031633145b610c3c576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b610c4581611fbf565b61013660009054906101000a90046001600160a01b03166001600160a01b0316634e71d92d6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610c9657600080fd5b505af1158015610caa573d6000803e3d6000fd5b5050505050565b610cb9611d99565b6065546001600160a01b03908116911614610d09576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b60ff80546001600160a01b03838116610100818102610100600160a81b03198516179094556040805194909304919091168084526020840191909152815190927f03314e00363f5f1eaf482ad09a5533f5e855696bfcbc89c1ab913071bc779a9392908290030190a15050565b610135546001600160a01b0316331480610d9f575060ff5461010090046001600160a01b031633145b610dde576040805162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b610de88382612066565b610df3838383611d9d565b505050565b610e00611d99565b6065546001600160a01b03908116911614610e50576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b60008181526101346020908152604091829020805460ff19811660ff9182161517918290558351911615158152915183927ff85a5280ba8bb267ae7df8bd5fb71bc85ea6cf382ef23304d24ab7ed34482cf792908290030190a250565b609c5460ff1690565b6000610b0e610ec3611d99565b84610b9c8560986000610ed4611d99565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61216416565b610135546000906001600160a01b0316331480610f36575060ff5461010090046001600160a01b031633145b610f75576040805162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b610f7f8383612066565b50919050565b600054610100900460ff1680610f9e5750610f9e6121c5565b80610fac575060005460ff16155b610fe75760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015611012576000805460ff1961ff0019909116610100171660011790555b61101a6121cb565b611024838361227c565b600060fc55670de0b6b3a7640000610100558015610df3576000805461ff0019169055505050565b6000610b128261105a611390565b670de0b6b3a7640000612331565b611070611397565b6001600160a01b0316336001600160a01b0316148061109a5750610133546001600160a01b031633145b6110e3576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b81516110f69060fd906020850190612b03565b50805161110a9060fe906020840190612b03565b506040805181815260fd8054600260001961010060018416150201909116049282018390527f4d807d72b2a493ff2c4e338967d3f82d3352481258457d12a4506a1762a44c6992909160fe91819060208201906060830190869080156111b15780601f10611186576101008083540402835291602001916111b1565b820191906000526020600020905b81548152906001019060200180831161119457829003601f168201915b50508381038252845460026000196101006001841615020190911604808252602090910190859080156112255780601f106111fa57610100808354040283529160200191611225565b820191906000526020600020905b81548152906001019060200180831161120857829003601f168201915b505094505050505060405180910390a15050565b600090565b6000610b1282670de0b6b3a7640000611255611390565b612370565b611262611d99565b6065546001600160a01b039081169116146112b2576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b60ff546112cf90839061010090046001600160a01b031683611e89565b5050565b6001600160a01b031660009081526097602052604090205490565b6112f6611d99565b6065546001600160a01b03908116911614611346576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6065546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580546001600160a01b0319169055565b6101005490565b6065546001600160a01b031690565b60fe8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ae75780601f10610abc57610100808354040283529160200191610ae7565b610135546001600160a01b0316331480611430575060ff5461010090046001600160a01b031633145b61146f576040805162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b6112cf8282612395565b611481611397565b6001600160a01b0316336001600160a01b031614806114ab5750610133546001600160a01b031633145b6114f4576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561155457600080fd5b505af1158015611568573d6000803e3d6000fd5b505050506040513d602081101561157e57600080fd5b5051610df3576040805162461bcd60e51b8152602060048201526015602482015274105155120e881d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b6000610b0e6115d6611d99565b84610b9c85604051806060016040528060258152602001612dce6025913960986000611600611d99565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611f2816565b6000610b0e611644611d99565b8484611e89565b6101385463ffffffff1681565b611660611397565b6001600160a01b0316336001600160a01b0316148061168a5750610133546001600160a01b031633145b6116d3576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b60408051808201909152601d8082527f416e6b722045746832205265776172642042656172696e6720426f6e6400000060209092019182526117179160fd91612b03565b50604080518082019091526004808252630c28aa8960e31b60209092019182526117439160fe91612b03565b506040805181815260fd8054600260001961010060018416150201909116049282018390527f4d807d72b2a493ff2c4e338967d3f82d3352481258457d12a4506a1762a44c6992909160fe91819060208201906060830190869080156117ea5780601f106117bf576101008083540402835291602001916117ea565b820191906000526020600020905b8154815290600101906020018083116117cd57829003601f168201915b505083810382528454600260001961010060018416150201909116048082526020909101908590801561185e5780601f106118335761010080835404028352916020019161185e565b820191906000526020600020905b81548152906001019060200180831161184157829003601f168201915b505094505050505060405180910390a1565b611878611397565b6001600160a01b0316336001600160a01b031614806118a25750610133546001600160a01b031633145b6118eb576040805162461bcd60e51b815260206004820152601560248201527413dc195c985d1bdc8e881b9bdd08185b1b1bddd959605a1b604482015290519081900360640190fd5b6118f481611fbf565b50565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b61192a611d99565b6065546001600160a01b0390811691161461197a576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b61013580546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517fb0a39bcef5feccd6b44d2d1d60aa55e6ec08770e0f664c8dbbd2493168937084929181900390910190a15050565b6119e6611d99565b6065546001600160a01b03908116911614611a36576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6101008190556040805182815290517fb779c97cee7508e970bdead8c3ef0bd16f8c63dbba28fe88f7c7a56722fc564d9181900360200190a150565b611a7a611d99565b6065546001600160a01b03908116911614611aca576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6001600160a01b038116611b1a576040805162461bcd60e51b8152602060048201526012602482015271414554483a207a65726f206164647265737360701b604482015290519081900360640190fd5b61013654604080516001600160a01b039283168152918316602083015280517f0bc21fe5c3ab742ff1d15b5c4477ffbacf1167e618228078fa625edebe7f331d9281900390910190a161013680546001600160a01b0319166001600160a01b0392909216919091179055565b611b8e611d99565b6065546001600160a01b03908116911614611bde576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6001600160a01b038116611c235760405162461bcd60e51b8152600401808060200182810382526026815260200180612c0f6026913960400191505060405180910390fd5b6065546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580546001600160a01b0319166001600160a01b0392909216919091179055565b611c87611d99565b6065546001600160a01b03908116911614611cd7576040805162461bcd60e51b81526020600482018190526024820152600080516020612cf0833981519152604482015290519081900360640190fd5b6305f5e10063ffffffff82161115611d36576040805162461bcd60e51b815260206004820152601c60248201527f414554483a2067726561746572207468616e207468726573686f6c6400000000604482015290519081900360640190fd5b610138546040805163ffffffff9283168152918316602083015280517f79f4459c246e1768bcbec607aaee99439cc37aec7979983ab5b39566ebe155c29281900390910190a1610138805463ffffffff191663ffffffff92909216919091179055565b3390565b6001600160a01b038316611de25760405162461bcd60e51b8152600401808060200182810382526024815260200180612daa6024913960400191505060405180910390fd5b6001600160a01b038216611e275760405162461bcd60e51b8152600401808060200182810382526022815260200180612c356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260986020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b673a3930b739b332b960c11b60008190526101346020527fc4a955c614ae4ce013944f553f6d50f1a4f797e9c9608762f36ccd9ef66e5f7e5460ff1615611f17576040805162461bcd60e51b815260206004820152601c60248201527f5468697320616374696f6e2063757272656e746c792070617573656400000000604482015290519081900360640190fd5b611f2284848461249d565b50505050565b60008184841115611fb75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f7c578181015183820152602001611f64565b50505050905090810190601f168015611fa95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60006060611fd08361010054612606565b915091508181906120225760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611f7c578181015183820152602001611f64565b5061010083905542610137556040805184815290517fb779c97cee7508e970bdead8c3ef0bd16f8c63dbba28fe88f7c7a56722fc564d9181900360200190a1505050565b6001600160a01b0382166120c1576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6120cd60008383610df3565b6099546120e0908263ffffffff61216416565b6099556001600160a01b03821660009081526097602052604090205461210c908263ffffffff61216416565b6001600160a01b03831660008181526097602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000828201838110156121be576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b303b1590565b600054610100900460ff16806121e457506121e46121c5565b806121f2575060005460ff16155b61222d5760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015612258576000805460ff1961ff0019909116610100171660011790555b612260612710565b6122686127b0565b80156118f4576000805461ff001916905550565b600054610100900460ff168061229557506122956121c5565b806122a3575060005460ff16155b6122de5760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015612309576000805460ff1961ff0019909116610100171660011790555b612311612710565b61231b83836128a9565b8015610df3576000805461ff0019169055505050565b600061236861234983868161234257fe5b0485612981565b83600185038686898161235857fe5b0602018161236257fe5b046129ae565b949350505050565b600061236861238183868161234257fe5b838585888161238c57fe5b06028161236257fe5b6001600160a01b0382166123da5760405162461bcd60e51b8152600401808060200182810382526021815260200180612d3e6021913960400191505060405180910390fd5b6123e682600083610df3565b61242981604051806060016040528060228152602001612bed602291396001600160a01b038516600090815260976020526040902054919063ffffffff611f2816565b6001600160a01b038316600090815260976020526040902055609954612455908263ffffffff6129c616565b6099556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0383166124e25760405162461bcd60e51b8152600401808060200182810382526025815260200180612d5f6025913960400191505060405180910390fd5b6001600160a01b0382166125275760405162461bcd60e51b8152600401808060200182810382526023815260200180612bca6023913960400191505060405180910390fd5b612532838383610df3565b61257581604051806060016040528060268152602001612c57602691396001600160a01b038616600090815260976020526040902054919063ffffffff611f2816565b6001600160a01b0380851660009081526097602052604080822093909355908416815220546125aa908263ffffffff61216416565b6001600160a01b0380841660008181526097602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000606082670de0b6b3a764000014156126235760019150612709565b61a8c061263c61013754426129c690919063ffffffff16565b101561266657816040518060600160405280602e8152602001612b9c602e91399092509050612709565b8284111561269257816040518060600160405280602a8152602001612c7d602a91399092509050612709565b610138546000906126c4906305f5e100906126b890879063ffffffff90811690612a0816565b9063ffffffff612a6116565b90506126d6848263ffffffff6129c616565b8510156127035782604051806060016040528060268152602001612d846026913990935091506127099050565b50600191505b9250929050565b600054610100900460ff168061272957506127296121c5565b80612737575060005460ff16155b6127725760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015612268576000805460ff1961ff00199091166101001716600117905580156118f4576000805461ff001916905550565b600054610100900460ff16806127c957506127c96121c5565b806127d7575060005460ff16155b6128125760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff1615801561283d576000805460ff1961ff0019909116610100171660011790555b6000612847611d99565b606580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156118f4576000805461ff001916905550565b600054610100900460ff16806128c257506128c26121c5565b806128d0575060005460ff16155b61290b5760405162461bcd60e51b815260040180806020018281038252602e815260200180612d10602e913960400191505060405180910390fd5b600054610100900460ff16158015612936576000805460ff1961ff0019909116610100171660011790555b825161294990609a906020860190612b03565b50815161295d90609b906020850190612b03565b50609c805460ff191660121790558015610df3576000805461ff0019169055505050565b60008261299057506000610b12565b8282028284828161299d57fe5b04146121be57600019915050610b12565b6000828201838110156121be57600019915050610b12565b60006121be83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f28565b600082612a1757506000610b12565b82820282848281612a2457fe5b04146121be5760405162461bcd60e51b8152600401808060200182810382526021815260200180612ca76021913960400191505060405180910390fd5b60006121be83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060008183612aed5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611f7c578181015183820152602001611f64565b506000838581612af957fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612b4457805160ff1916838001178555612b71565b82800160010185558215612b71579182015b82811115612b71578251825591602001919060010190612b56565b50612b7d929150612b81565b5090565b610aef91905b80821115612b7d5760008155600101612b8756fe414554483a20726174696f207761732075706461746564206c657373207468616e20313220686f7572732061676f45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365414554483a206e657720726174696f2063616e6e6f742062652067726561746572207468616e206f6c64536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373414554483a206e657720726174696f206e6f7420696e207468726573686f6c642072616e676545524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206d1e092af1c8ecf5f7784e67157c09a69b00ae623d4b2b4e5ea4319486be0ec564736f6c634300060b0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.