More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,143 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Process Requests | 21528950 | 33 days ago | IN | 0 ETH | 0.00014849 | ||||
Process Requests | 21468532 | 41 days ago | IN | 0 ETH | 0.00020497 | ||||
Process Requests | 21362017 | 56 days ago | IN | 0 ETH | 0.0002392 | ||||
Process Requests | 21334209 | 60 days ago | IN | 0 ETH | 0.00043438 | ||||
Process Requests | 21262637 | 70 days ago | IN | 0 ETH | 0.00016278 | ||||
Process Requests | 20269267 | 209 days ago | IN | 0 ETH | 0.0001075 | ||||
Process Requests | 19879290 | 263 days ago | IN | 0 ETH | 0.00007687 | ||||
Process Requests | 19761551 | 280 days ago | IN | 0 ETH | 0.00025013 | ||||
Process Requests | 19589280 | 304 days ago | IN | 0 ETH | 0.00033361 | ||||
Process Requests | 19366759 | 335 days ago | IN | 0 ETH | 0.00237133 | ||||
Process Requests | 19363942 | 336 days ago | IN | 0 ETH | 0.0025074 | ||||
Process Requests | 19354300 | 337 days ago | IN | 0 ETH | 0.00086357 | ||||
Process Requests | 19349217 | 338 days ago | IN | 0 ETH | 0.00109675 | ||||
Process Requests | 19244508 | 352 days ago | IN | 0 ETH | 0.00038201 | ||||
Process Requests | 19244490 | 352 days ago | IN | 0 ETH | 0.00034274 | ||||
Process Requests | 18567167 | 447 days ago | IN | 0 ETH | 0.00065852 | ||||
Process Requests | 18567142 | 447 days ago | IN | 0 ETH | 0.00063407 | ||||
Process Requests | 18557661 | 449 days ago | IN | 0 ETH | 0.00517708 | ||||
Process Requests | 18467548 | 461 days ago | IN | 0 ETH | 0.002884 | ||||
Process Requests | 18467269 | 461 days ago | IN | 0 ETH | 0.00261121 | ||||
Process Requests | 18467168 | 461 days ago | IN | 0 ETH | 0.00456358 | ||||
Process Requests | 18467098 | 461 days ago | IN | 0 ETH | 0.00050856 | ||||
Process Request | 18243675 | 492 days ago | IN | 0 ETH | 0.01932425 | ||||
Process Requests | 18231780 | 494 days ago | IN | 0 ETH | 0.00090446 | ||||
Request Withdraw... | 18230763 | 494 days ago | IN | 0 ETH | 0.00261774 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
DepositManager
Compiler Version
v0.5.12+commit.7709ece9
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-11 */ // File: openzeppelin-solidity/contracts/GSN/Context.sol pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: openzeppelin-solidity/contracts/ownership/Ownable.sol pragma solidity ^0.5.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * 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 Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _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 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 onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity ^0.5.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. * * _Available since v2.4.0._ */ 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. * * _Available since v2.4.0._ */ 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. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: openzeppelin-solidity/contracts/utils/Address.sol pragma solidity ^0.5.5; /** * @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 Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @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]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File: openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: openzeppelin-solidity/contracts/introspection/IERC165.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: openzeppelin-solidity/contracts/introspection/ERC165.sol pragma solidity ^0.5.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } // File: contracts/Layer2I.sol pragma solidity ^0.5.12; interface Layer2I { function operator() external view returns (address); function isLayer2() external view returns (bool); function currentFork() external view returns (uint); function lastEpoch(uint forkNumber) external view returns (uint); function changeOperator(address _operator) external; } // File: contracts/stake/interfaces/DepositManagerI.sol pragma solidity ^0.5.12; interface DepositManagerI { function owner() external view returns (address); function wton() external view returns (address); function registry() external view returns (address); function seigManager() external view returns (address); function accStaked(address layer2, address account) external view returns (uint256 wtonAmount); function accStakedLayer2(address layer2) external view returns (uint256 wtonAmount); function accStakedAccount(address account) external view returns (uint256 wtonAmount); function pendingUnstaked(address layer2, address account) external view returns (uint256 wtonAmount); function pendingUnstakedLayer2(address layer2) external view returns (uint256 wtonAmount); function pendingUnstakedAccount(address account) external view returns (uint256 wtonAmount); function accUnstaked(address layer2, address account) external view returns (uint256 wtonAmount); function accUnstakedLayer2(address layer2) external view returns (uint256 wtonAmount); function accUnstakedAccount(address account) external view returns (uint256 wtonAmount); function withdrawalRequestIndex(address layer2, address account) external view returns (uint256 index); function withdrawalRequest(address layer2, address account, uint256 index) external view returns (uint128 withdrawableBlockNumber, uint128 amount, bool processed ); function WITHDRAWAL_DELAY() external view returns (uint256); function setSeigManager(address seigManager) external; function deposit(address layer2, uint256 amount) external returns (bool); function requestWithdrawal(address layer2, uint256 amount) external returns (bool); function processRequest(address layer2) external returns (bool); function requestWithdrawalAll(address layer2) external returns (bool); function processRequests(address layer2, uint256 n) external returns (bool); function numRequests(address layer2, address account) external view returns (uint256); function numPendingRequests(address layer2, address account) external view returns (uint256); function slash(address layer2, address recipient, uint256 amount) external returns (bool); } // File: contracts/stake/interfaces/Layer2RegistryI.sol pragma solidity ^0.5.12; interface Layer2RegistryI { function layer2s(address layer2) external view returns (bool); function register(address layer2) external returns (bool); function numLayer2s() external view returns (uint256); function layer2ByIndex(uint256 index) external view returns (address); function deployCoinage(address layer2, address seigManager) external returns (bool); function registerAndDeployCoinage(address layer2, address seigManager) external returns (bool); function unregister(address layer2) external returns (bool); } // File: contracts/stake/interfaces/SeigManagerI.sol pragma solidity ^0.5.12; interface SeigManagerI { function registry() external view returns (address); function depositManager() external view returns (address); function ton() external view returns (address); function wton() external view returns (address); function powerton() external view returns (address); function tot() external view returns (address); function coinages(address layer2) external view returns (address); function commissionRates(address layer2) external view returns (uint256); function lastCommitBlock(address layer2) external view returns (uint256); function seigPerBlock() external view returns (uint256); function lastSeigBlock() external view returns (uint256); function pausedBlock() external view returns (uint256); function unpausedBlock() external view returns (uint256); function DEFAULT_FACTOR() external view returns (uint256); function deployCoinage(address layer2) external returns (bool); function setCommissionRate(address layer2, uint256 commission, bool isCommissionRateNegative) external returns (bool); function uncomittedStakeOf(address layer2, address account) external view returns (uint256); function stakeOf(address layer2, address account) external view returns (uint256); function additionalTotBurnAmount(address layer2, address account, uint256 amount) external view returns (uint256 totAmount); function onTransfer(address sender, address recipient, uint256 amount) external returns (bool); function updateSeigniorage() external returns (bool); function onDeposit(address layer2, address account, uint256 amount) external returns (bool); function onWithdraw(address layer2, address account, uint256 amount) external returns (bool); } // File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol pragma solidity ^0.5.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view 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 returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public 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 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 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 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 { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _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 { require(account != address(0), "ERC20: mint to the zero address"); _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 { require(account != address(0), "ERC20: burn from the zero address"); _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 { 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 Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); } } // File: openzeppelin-solidity/contracts/access/Roles.sol pragma solidity ^0.5.0; /** * @title Roles * @dev Library for managing addresses assigned to a Role. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[account] = true; } /** * @dev Remove an account's access to this role. */ function remove(Role storage role, address account) internal { require(has(role, account), "Roles: account does not have role"); role.bearer[account] = false; } /** * @dev Check if an account has this role. * @return bool */ function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), "Roles: account is the zero address"); return role.bearer[account]; } } // File: openzeppelin-solidity/contracts/access/roles/MinterRole.sol pragma solidity ^0.5.0; contract MinterRole is Context { using Roles for Roles.Role; event MinterAdded(address indexed account); event MinterRemoved(address indexed account); Roles.Role private _minters; constructor () internal { _addMinter(_msgSender()); } modifier onlyMinter() { require(isMinter(_msgSender()), "MinterRole: caller does not have the Minter role"); _; } function isMinter(address account) public view returns (bool) { return _minters.has(account); } function addMinter(address account) public onlyMinter { _addMinter(account); } function renounceMinter() public { _removeMinter(_msgSender()); } function _addMinter(address account) internal { _minters.add(account); emit MinterAdded(account); } function _removeMinter(address account) internal { _minters.remove(account); emit MinterRemoved(account); } } // File: openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol pragma solidity ^0.5.0; /** * @dev Extension of {ERC20} that adds a set of accounts with the {MinterRole}, * which have permission to mint (create) new tokens as they see fit. * * At construction, the deployer of the contract is the only minter. */ contract ERC20Mintable is ERC20, MinterRole { /** * @dev See {ERC20-_mint}. * * Requirements: * * - the caller must have the {MinterRole}. */ function mint(address account, uint256 amount) public onlyMinter returns (bool) { _mint(account, amount); return true; } } // File: openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol pragma solidity ^0.5.0; /** * @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). */ contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public { _burn(_msgSender(), amount); } /** * @dev See {ERC20-_burnFrom}. */ function burnFrom(address account, uint256 amount) public { _burnFrom(account, amount); } } // File: openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol pragma solidity ^0.5.0; /** * @dev Optional functions from the ERC20 standard. */ contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view 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. * * 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; } } // File: openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol pragma solidity ^0.5.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]. * * _Since v2.5.0:_ this module is now much more gas efficient, given net gas * metering changes introduced in the Istanbul hardfork. */ contract ReentrancyGuard { bool private _notEntered; constructor () internal { // Storing an initial 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 percetange 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. _notEntered = true; } /** * @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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_notEntered, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _notEntered = false; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _notEntered = true; } } // File: openzeppelin-solidity/contracts/introspection/ERC165Checker.sol pragma solidity ^0.5.10; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function _supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, _INTERFACE_ID_ERC165) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function _supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return _supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function _supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!_supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with the `supportsERC165` method in this library. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { // success determines whether the staticcall succeeded and result determines // whether the contract at account indicates support of _interfaceId (bool success, bool result) = _callERC165SupportsInterface(account, interfaceId); return (success && result); } /** * @notice Calls the function with selector 0x01ffc9a7 (ERC165) and suppresses throw * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return success true if the STATICCALL succeeded, false otherwise * @return result true if the STATICCALL succeeded and the contract at account * indicates support of the interface with identifier interfaceId, false otherwise */ function _callERC165SupportsInterface(address account, bytes4 interfaceId) private view returns (bool, bool) { bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, interfaceId); (bool success, bytes memory result) = account.staticcall.gas(30000)(encodedParams); if (result.length < 32) return (false, false); return (success, abi.decode(result, (bool))); } } // File: coinage-token/contracts/lib/DSMath.sol // https://github.com/dapphub/ds-math/blob/de45767/src/math.sol /// math.sol -- mixin for inline numerical wizardry // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. pragma solidity >0.4.13; contract DSMath { function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x, "ds-math-add-overflow"); } function sub(uint x, uint y) internal pure returns (uint z) { require((z = x - y) <= x, "ds-math-sub-underflow"); } function mul(uint x, uint y) internal pure returns (uint z) { require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow"); } function min(uint x, uint y) internal pure returns (uint z) { return x <= y ? x : y; } function max(uint x, uint y) internal pure returns (uint z) { return x >= y ? x : y; } function imin(int x, int y) internal pure returns (int z) { return x <= y ? x : y; } function imax(int x, int y) internal pure returns (int z) { return x >= y ? x : y; } uint constant WAD = 10 ** 18; uint constant RAY = 10 ** 27; function wmul(uint x, uint y) internal pure returns (uint z) { z = add(mul(x, y), WAD / 2) / WAD; } function rmul(uint x, uint y) internal pure returns (uint z) { z = add(mul(x, y), RAY / 2) / RAY; } function wdiv(uint x, uint y) internal pure returns (uint z) { z = add(mul(x, WAD), y / 2) / y; } function rdiv(uint x, uint y) internal pure returns (uint z) { z = add(mul(x, RAY), y / 2) / y; } // This famous algorithm is called "exponentiation by squaring" // and calculates x^n with x as fixed-point and n as regular unsigned. // // It's O(log n), instead of O(n) for naive repeated multiplication. // // These facts are why it works: // // If n is even, then x^n = (x^2)^(n/2). // If n is odd, then x^n = x * x^(n-1), // and applying the equation for even x gives // x^n = x * (x^2)^((n-1) / 2). // // Also, EVM division is flooring and // floor[(n-1) / 2] = floor[n / 2]. // function wpow(uint x, uint n) internal pure returns (uint z) { z = n % 2 != 0 ? x : WAD; for (n /= 2; n != 0; n /= 2) { x = wmul(x, x); if (n % 2 != 0) { z = wmul(z, x); } } } function rpow(uint x, uint n) internal pure returns (uint z) { z = n % 2 != 0 ? x : RAY; for (n /= 2; n != 0; n /= 2) { x = rmul(x, x); if (n % 2 != 0) { z = rmul(z, x); } } } } // File: contracts/stake/tokens/OnApprove.sol pragma solidity ^0.5.12; contract OnApprove is ERC165 { constructor() public { _registerInterface(OnApprove(this).onApprove.selector); } function onApprove(address owner, address spender, uint256 amount, bytes calldata data) external returns (bool); } // File: contracts/stake/tokens/ERC20OnApprove.sol pragma solidity ^0.5.12; contract ERC20OnApprove is ERC20 { function approveAndCall(address spender, uint256 amount, bytes memory data) public returns (bool) { require(approve(spender, amount)); _callOnApprove(msg.sender, spender, amount, data); return true; } function _callOnApprove(address owner, address spender, uint256 amount, bytes memory data) internal { bytes4 onApproveSelector = OnApprove(spender).onApprove.selector; require(ERC165Checker._supportsInterface(spender, onApproveSelector), "ERC20OnApprove: spender doesn't support onApprove"); (bool ok, bytes memory res) = spender.call( abi.encodeWithSelector( onApproveSelector, owner, spender, amount, data ) ); // check if low-level call reverted or not require(ok, string(res)); assembly { ok := mload(add(res, 0x20)) } // check if OnApprove.onApprove returns true or false require(ok, "ERC20OnApprove: failed to call onApprove"); } } // File: contracts/stake/tokens/AuthController.sol pragma solidity ^0.5.12; interface MinterRoleRenounceTarget { function renounceMinter() external; } interface PauserRoleRenounceTarget { function renouncePauser() external; } interface OwnableTarget { function renounceOwnership() external; function transferOwnership(address newOwner) external; } contract AuthController is Ownable { function renounceMinter(address target) public onlyOwner { MinterRoleRenounceTarget(target).renounceMinter(); } function renouncePauser(address target) public onlyOwner { PauserRoleRenounceTarget(target).renouncePauser(); } function renounceOwnership(address target) public onlyOwner { OwnableTarget(target).renounceOwnership(); } function transferOwnership(address target, address newOwner) public onlyOwner { OwnableTarget(target).transferOwnership(newOwner); } } // File: contracts/stake/tokens/SeigToken.sol pragma solidity ^0.5.12; contract SeigToken is ERC20, Ownable, ERC20OnApprove, AuthController { SeigManagerI public seigManager; bool public callbackEnabled; function enableCallback(bool _callbackEnabled) external onlyOwner { callbackEnabled = _callbackEnabled; } function setSeigManager(SeigManagerI _seigManager) external onlyOwner { seigManager = _seigManager; } ////////////////////// // Override ERC20 functions ////////////////////// function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { return super.transferFrom(sender, recipient, amount); } function _transfer(address sender, address recipient, uint256 amount) internal { super._transfer(sender, recipient, amount); if (callbackEnabled && address(seigManager) != address(0)) { require(seigManager.onTransfer(sender, recipient, amount)); } } function _mint(address account, uint256 amount) internal { super._mint(account, amount); if (callbackEnabled && address(seigManager) != address(0)) { require(seigManager.onTransfer(address(0), account, amount)); } } function _burn(address account, uint256 amount) internal { super._burn(account, amount); if (callbackEnabled && address(seigManager) != address(0)) { require(seigManager.onTransfer(account, address(0), amount)); } } } // File: contracts/stake/tokens/WTON.sol pragma solidity ^0.5.12; contract WTON is DSMath, ReentrancyGuard, Ownable, ERC20Mintable, ERC20Burnable, ERC20Detailed, SeigToken, OnApprove { using SafeERC20 for ERC20Mintable; ERC20Mintable public ton; constructor ( ERC20Mintable _ton ) public ERC20Detailed("Wrapped TON", "WTON", 27) { require(ERC20Detailed(address(_ton)).decimals() == 18, "WTON: decimals of TON must be 18"); ton = _ton; } ////////////////////// // TON Approve callback ////////////////////// function onApprove( address owner, address spender, uint256 tonAmount, bytes calldata data ) external returns (bool) { require(msg.sender == address(ton), "WTON: only accept TON approve callback"); // swap owner's TON to WTON _swapFromTON(owner, owner, tonAmount); uint256 wtonAmount = _toRAY(tonAmount); (address depositManager, address layer2) = _decodeTONApproveData(data); // approve WTON to DepositManager _approve(owner, depositManager, wtonAmount); // call DepositManager.onApprove to deposit WTON bytes memory depositManagerOnApproveData = _encodeDepositManagerOnApproveData(layer2); _callOnApprove(owner, depositManager, wtonAmount, depositManagerOnApproveData); return true; } /** * @dev data is 64 bytes of 2 addresses in left-padded 32 bytes */ function _decodeTONApproveData( bytes memory data ) internal pure returns (address depositManager, address layer2) { require(data.length == 0x40); assembly { depositManager := mload(add(data, 0x20)) layer2 := mload(add(data, 0x40)) } } function _encodeDepositManagerOnApproveData( address layer2 ) internal pure returns (bytes memory data) { data = new bytes(0x20); assembly { mstore(add(data, 0x20), layer2) } } ////////////////////// // Override ERC20 functions ////////////////////// function burnFrom(address account, uint256 amount) public { if (isMinter(msg.sender)) { _burn(account, amount); return; } super.burnFrom(account, amount); } ////////////////////// // Swap functions ////////////////////// /** * @dev swap WTON to TON */ function swapToTON(uint256 wtonAmount) public nonReentrant returns (bool) { return _swapToTON(msg.sender, msg.sender, wtonAmount); } /** * @dev swap TON to WTON */ function swapFromTON(uint256 tonAmount) public nonReentrant returns (bool) { return _swapFromTON(msg.sender, msg.sender, tonAmount); } /** * @dev swap WTON to TON, and transfer TON * NOTE: TON's transfer event's `from` argument is not `msg.sender` but `WTON` address. */ function swapToTONAndTransfer(address to, uint256 wtonAmount) public nonReentrant returns (bool) { return _swapToTON(to, msg.sender, wtonAmount); } /** * @dev swap TON to WTON, and transfer WTON */ function swapFromTONAndTransfer(address to, uint256 tonAmount) public nonReentrant returns (bool) { return _swapFromTON(msg.sender, to, tonAmount); } function renounceTonMinter() external onlyOwner { ton.renounceMinter(); } ////////////////////// // Internal functions ////////////////////// function _swapToTON(address tonAccount, address wtonAccount, uint256 wtonAmount) internal returns (bool) { _burn(wtonAccount, wtonAmount); // mint TON if WTON contract has not enough TON to transfer uint256 tonAmount = _toWAD(wtonAmount); uint256 tonBalance = ton.balanceOf(address(this)); if (tonBalance < tonAmount) { ton.mint(address(this), tonAmount.sub(tonBalance)); } ton.safeTransfer(tonAccount, tonAmount); return true; } function _swapFromTON(address tonAccount, address wtonAccount, uint256 tonAmount) internal returns (bool) { _mint(wtonAccount, _toRAY(tonAmount)); ton.safeTransferFrom(tonAccount, address(this), tonAmount); return true; } /** * @dev transform WAD to RAY */ function _toRAY(uint256 v) internal pure returns (uint256) { return v * 10 ** 9; } /** * @dev transform RAY to WAD */ function _toWAD(uint256 v) internal pure returns (uint256) { return v / 10 ** 9; } } // File: contracts/stake/managers/DepositManager.sol pragma solidity ^0.5.12; // TODO: add events // TODO: check deposit/withdraw WTON amount (1e27) /** * @dev DepositManager manages WTON deposit and withdrawal from operator and WTON holders. */ contract DepositManager is Ownable, ERC165, OnApprove { using SafeMath for uint256; using SafeERC20 for WTON; //////////////////// // Storage - contracts //////////////////// WTON internal _wton; Layer2RegistryI internal _registry; SeigManagerI internal _seigManager; //////////////////// // Storage - token amount //////////////////// // accumulated staked amount // layer2 => msg.sender => wton amount mapping (address => mapping (address => uint256)) internal _accStaked; // layer2 => wton amount mapping (address => uint256) internal _accStakedLayer2; // msg.sender => wton amount mapping (address => uint256) internal _accStakedAccount; // pending unstaked amount // layer2 => msg.sender => wton amount mapping (address => mapping (address => uint256)) internal _pendingUnstaked; // layer2 => wton amount mapping (address => uint256) internal _pendingUnstakedLayer2; // msg.sender => wton amount mapping (address => uint256) internal _pendingUnstakedAccount; // accumulated unstaked amount // layer2 => msg.sender => wton amount mapping (address => mapping (address => uint256)) internal _accUnstaked; // layer2 => wton amount mapping (address => uint256) internal _accUnstakedLayer2; // msg.sender => wton amount mapping (address => uint256) internal _accUnstakedAccount; // layer2 => msg.sender => withdrawal requests mapping (address => mapping (address => WithdrawalReqeust[])) internal _withdrawalRequests; // layer2 => msg.sender => index mapping (address => mapping (address => uint256)) internal _withdrawalRequestIndex; //////////////////// // Storage - configuration / ERC165 interfaces //////////////////// // withdrawal delay in block number // @TODO: change delay unit to CYCLE? uint256 public globalWithdrawalDelay; mapping (address => uint256) public withdrawalDelay; struct WithdrawalReqeust { uint128 withdrawableBlockNumber; uint128 amount; bool processed; } //////////////////// // Modifiers //////////////////// modifier onlyLayer2(address layer2) { require(_registry.layer2s(layer2)); _; } modifier onlySeigManager() { require(msg.sender == address(_seigManager)); _; } //////////////////// // Events //////////////////// event Deposited(address indexed layer2, address depositor, uint256 amount); event WithdrawalRequested(address indexed layer2, address depositor, uint256 amount); event WithdrawalProcessed(address indexed layer2, address depositor, uint256 amount); //////////////////// // Constructor //////////////////// constructor ( WTON wton, Layer2RegistryI registry, uint256 globalWithdrawalDelay_ ) public { _wton = wton; _registry = registry; globalWithdrawalDelay = globalWithdrawalDelay_; } //////////////////// // SeiManager function //////////////////// function setSeigManager(SeigManagerI seigManager) external onlyOwner { _seigManager = seigManager; } //////////////////// // ERC20 Approve callback //////////////////// function onApprove( address owner, address spender, uint256 amount, bytes calldata data ) external returns (bool) { require(msg.sender == address(_wton), "DepositManager: only accept WTON approve callback"); address layer2 = _decodeDepositManagerOnApproveData(data); require(_deposit(layer2, owner, amount)); return true; } function _decodeDepositManagerOnApproveData( bytes memory data ) internal pure returns (address layer2) { require(data.length == 0x20); assembly { layer2 := mload(add(data, 0x20)) } } //////////////////// // Deposit function //////////////////// /** * @dev deposit `amount` WTON in RAY */ function deposit(address layer2, uint256 amount) external returns (bool) { require(_deposit(layer2, msg.sender, amount)); } function _deposit(address layer2, address account, uint256 amount) internal onlyLayer2(layer2) returns (bool) { _accStaked[layer2][account] = _accStaked[layer2][account].add(amount); _accStakedLayer2[layer2] = _accStakedLayer2[layer2].add(amount); _accStakedAccount[account] = _accStakedAccount[account].add(amount); _wton.safeTransferFrom(account, address(this), amount); emit Deposited(layer2, account, amount); require(_seigManager.onDeposit(layer2, account, amount)); return true; } //////////////////// // Re-deposit function //////////////////// /** * @dev re-deposit pending requests in the pending queue */ function redeposit(address layer2) external returns (bool) { uint256 i = _withdrawalRequestIndex[layer2][msg.sender]; require(_redeposit(layer2, i, 1)); } function redepositMulti(address layer2, uint256 n) external returns (bool) { uint256 i = _withdrawalRequestIndex[layer2][msg.sender]; require(_redeposit(layer2, i, n)); } function _redeposit(address layer2, uint256 i, uint256 n) internal onlyLayer2(layer2) returns (bool) { uint256 accAmount; require(_withdrawalRequests[layer2][msg.sender].length > 0, "DepositManager: no request"); require(_withdrawalRequests[layer2][msg.sender].length - i >= n, "DepositManager: n exceeds num of pending requests"); uint256 e = i + n; for (; i < e; i++) { WithdrawalReqeust storage r = _withdrawalRequests[layer2][msg.sender][i]; uint256 amount = r.amount; require(!r.processed, "DepositManager: pending request already processed"); require(amount > 0, "DepositManager: no valid pending request"); accAmount = accAmount.add(amount); r.processed = true; } // deposit-related storages _accStaked[layer2][msg.sender] = _accStaked[layer2][msg.sender].add(accAmount); _accStakedLayer2[layer2] = _accStakedLayer2[layer2].add(accAmount); _accStakedAccount[msg.sender] = _accStakedAccount[msg.sender].add(accAmount); // withdrawal-related storages _pendingUnstaked[layer2][msg.sender] = _pendingUnstaked[layer2][msg.sender].sub(accAmount); _pendingUnstakedLayer2[layer2] = _pendingUnstakedLayer2[layer2].sub(accAmount); _pendingUnstakedAccount[msg.sender] = _pendingUnstakedAccount[msg.sender].sub(accAmount); _withdrawalRequestIndex[layer2][msg.sender] += n; emit Deposited(layer2, msg.sender, accAmount); require(_seigManager.onDeposit(layer2, msg.sender, accAmount)); return true; } //////////////////// // Slash functions //////////////////// function slash(address layer2, address recipient, uint256 amount) external onlySeigManager returns (bool) { //return _wton.transferFrom(owner, recipient, amount); } //////////////////// // Setter //////////////////// function setGlobalWithdrawalDelay(uint256 globalWithdrawalDelay_) external onlyOwner { globalWithdrawalDelay = globalWithdrawalDelay_; } function setWithdrawalDelay(address l2chain, uint256 withdrawalDelay_) external { require(_isOperator(l2chain, msg.sender)); withdrawalDelay[l2chain] = withdrawalDelay_; } //////////////////// // Withdrawal functions //////////////////// function requestWithdrawal(address layer2, uint256 amount) external returns (bool) { return _requestWithdrawal(layer2, amount); } function _requestWithdrawal(address layer2, uint256 amount) internal onlyLayer2(layer2) returns (bool) { require(amount > 0, "DepositManager: amount must not be zero"); uint256 delay = globalWithdrawalDelay > withdrawalDelay[layer2] ? globalWithdrawalDelay : withdrawalDelay[layer2]; _withdrawalRequests[layer2][msg.sender].push(WithdrawalReqeust({ withdrawableBlockNumber: uint128(block.number + delay), amount: uint128(amount), processed: false })); _pendingUnstaked[layer2][msg.sender] = _pendingUnstaked[layer2][msg.sender].add(amount); _pendingUnstakedLayer2[layer2] = _pendingUnstakedLayer2[layer2].add(amount); _pendingUnstakedAccount[msg.sender] = _pendingUnstakedAccount[msg.sender].add(amount); emit WithdrawalRequested(layer2, msg.sender, amount); require(_seigManager.onWithdraw(layer2, msg.sender, amount)); return true; } function processRequest(address layer2, bool receiveTON) external returns (bool) { return _processRequest(layer2, receiveTON); } function _processRequest(address layer2, bool receiveTON) internal returns (bool) { uint256 index = _withdrawalRequestIndex[layer2][msg.sender]; require(_withdrawalRequests[layer2][msg.sender].length > index, "DepositManager: no request to process"); WithdrawalReqeust storage r = _withdrawalRequests[layer2][msg.sender][index]; require(r.withdrawableBlockNumber <= block.number, "DepositManager: wait for withdrawal delay"); r.processed = true; _withdrawalRequestIndex[layer2][msg.sender] += 1; uint256 amount = r.amount; _pendingUnstaked[layer2][msg.sender] = _pendingUnstaked[layer2][msg.sender].sub(amount); _pendingUnstakedLayer2[layer2] = _pendingUnstakedLayer2[layer2].sub(amount); _pendingUnstakedAccount[msg.sender] = _pendingUnstakedAccount[msg.sender].sub(amount); _accUnstaked[layer2][msg.sender] = _accUnstaked[layer2][msg.sender].add(amount); _accUnstakedLayer2[layer2] = _accUnstakedLayer2[layer2].add(amount); _accUnstakedAccount[msg.sender] = _accUnstakedAccount[msg.sender].add(amount); if (receiveTON) { require(_wton.swapToTONAndTransfer(msg.sender, amount)); } else { _wton.safeTransfer(msg.sender, amount); } emit WithdrawalProcessed(layer2, msg.sender, amount); return true; } function requestWithdrawalAll(address layer2) external onlyLayer2(layer2) returns (bool) { uint256 amount = _seigManager.stakeOf(layer2, msg.sender); return _requestWithdrawal(layer2, amount); } function processRequests(address layer2, uint256 n, bool receiveTON) external returns (bool) { for (uint256 i = 0; i < n; i++) { require(_processRequest(layer2, receiveTON)); } return true; } function numRequests(address layer2, address account) external view returns (uint256) { return _withdrawalRequests[layer2][account].length; } function numPendingRequests(address layer2, address account) external view returns (uint256) { uint256 numRequests = _withdrawalRequests[layer2][account].length; uint256 index = _withdrawalRequestIndex[layer2][account]; if (numRequests == 0) return 0; return numRequests - index; } function _isOperator(address layer2, address operator) internal view returns (bool) { return operator == Layer2I(layer2).operator(); } //////////////////// // Storage getters //////////////////// // solium-disable function wton() external view returns (address) { return address(_wton); } function registry() external view returns (address) { return address(_registry); } function seigManager() external view returns (address) { return address(_seigManager); } function accStaked(address layer2, address account) external view returns (uint256 wtonAmount) { return _accStaked[layer2][account]; } function accStakedLayer2(address layer2) external view returns (uint256 wtonAmount) { return _accStakedLayer2[layer2]; } function accStakedAccount(address account) external view returns (uint256 wtonAmount) { return _accStakedAccount[account]; } function pendingUnstaked(address layer2, address account) external view returns (uint256 wtonAmount) { return _pendingUnstaked[layer2][account]; } function pendingUnstakedLayer2(address layer2) external view returns (uint256 wtonAmount) { return _pendingUnstakedLayer2[layer2]; } function pendingUnstakedAccount(address account) external view returns (uint256 wtonAmount) { return _pendingUnstakedAccount[account]; } function accUnstaked(address layer2, address account) external view returns (uint256 wtonAmount) { return _accUnstaked[layer2][account]; } function accUnstakedLayer2(address layer2) external view returns (uint256 wtonAmount) { return _accUnstakedLayer2[layer2]; } function accUnstakedAccount(address account) external view returns (uint256 wtonAmount) { return _accUnstakedAccount[account]; } function withdrawalRequestIndex(address layer2, address account) external view returns (uint256 index) { return _withdrawalRequestIndex[layer2][account]; } function withdrawalRequest(address layer2, address account, uint256 index) external view returns (uint128 withdrawableBlockNumber, uint128 amount, bool processed ) { withdrawableBlockNumber = _withdrawalRequests[layer2][account][index].withdrawableBlockNumber; amount = _withdrawalRequests[layer2][account][index].amount; processed = _withdrawalRequests[layer2][account][index].processed; } // solium-enable }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract WTON","name":"wton","type":"address"},{"internalType":"contract Layer2RegistryI","name":"registry","type":"address"},{"internalType":"uint256","name":"globalWithdrawalDelay_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"layer2","type":"address"},{"indexed":false,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"layer2","type":"address"},{"indexed":false,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawalProcessed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"layer2","type":"address"},{"indexed":false,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawalRequested","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"accStaked","outputs":[{"internalType":"uint256","name":"wtonAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"accStakedAccount","outputs":[{"internalType":"uint256","name":"wtonAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"}],"name":"accStakedLayer2","outputs":[{"internalType":"uint256","name":"wtonAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"accUnstaked","outputs":[{"internalType":"uint256","name":"wtonAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"accUnstakedAccount","outputs":[{"internalType":"uint256","name":"wtonAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"}],"name":"accUnstakedLayer2","outputs":[{"internalType":"uint256","name":"wtonAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"globalWithdrawalDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"numPendingRequests","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"numRequests","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onApprove","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"pendingUnstaked","outputs":[{"internalType":"uint256","name":"wtonAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"pendingUnstakedAccount","outputs":[{"internalType":"uint256","name":"wtonAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"}],"name":"pendingUnstakedLayer2","outputs":[{"internalType":"uint256","name":"wtonAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"bool","name":"receiveTON","type":"bool"}],"name":"processRequest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"uint256","name":"n","type":"uint256"},{"internalType":"bool","name":"receiveTON","type":"bool"}],"name":"processRequests","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"layer2","type":"address"}],"name":"redeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"uint256","name":"n","type":"uint256"}],"name":"redepositMulti","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"registry","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"requestWithdrawal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"layer2","type":"address"}],"name":"requestWithdrawalAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"seigManager","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"globalWithdrawalDelay_","type":"uint256"}],"name":"setGlobalWithdrawalDelay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract SeigManagerI","name":"seigManager","type":"address"}],"name":"setSeigManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"l2chain","type":"address"},{"internalType":"uint256","name":"withdrawalDelay_","type":"uint256"}],"name":"setWithdrawalDelay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"slash","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawalDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"withdrawalRequest","outputs":[{"internalType":"uint128","name":"withdrawableBlockNumber","type":"uint128"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"bool","name":"processed","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"withdrawalRequestIndex","outputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"wton","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620026b3380380620026b3833981810160405260608110156200003757600080fd5b508051602082015160409092015190919060006200005d6001600160e01b036200014816565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000db7f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b036200014c16565b6200010f7f4273ca16000000000000000000000000000000000000000000000000000000006001600160e01b036200014c16565b600280546001600160a01b039485166001600160a01b03199182161790915560038054939094169216919091179091556010556200021e565b3390565b7fffffffff000000000000000000000000000000000000000000000000000000008082161415620001de57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152600160208190526040909120805460ff19169091179055565b612485806200022e6000396000f3fe608060405234801561001057600080fd5b50600436106102105760003560e01c80638d62d94911610125578063c20a44c6116100ad578063dc5a709f1161007c578063dc5a709f146106db578063e74f823914610707578063f2fde38b1461073d578063f762eb5714610763578063fb0713b11461079157610210565b8063c20a44c61461062d578063c647f26e1461065b578063d285f78c14610689578063da95ebf7146106af57610210565b80639d91b87b116100f45780639d91b87b14610570578063a0b2a9131461059e578063a3543989146105c4578063a79da341146105ea578063b8bee6281461060757610210565b80638d62d949146104f65780638da5cb5b146104fe5780638f32d59b146105065780638fbef2d01461050e57610210565b80634ce97036116101a85780636fb7f558116101775780636fb7f55814610474578063715018a6146104985780637657f20a146104a25780637b103999146104c85780638af4a948146104d057610210565b80634ce97036146103f25780635c0df46b146104185780636b2160b7146104465780636ec3d5ae1461046c57610210565b80632d2fab94116101e45780632d2fab94146102dc5780634273ca161461030a578063445e83b91461039a57806347e7ef24146103c657610210565b806255f5c114610215578063010ca3901461024d57806301ffc9a7146102735780632638fdf5146102ae575b600080fd5b61023b6004803603602081101561022b57600080fd5b50356001600160a01b03166107c5565b60408051918252519081900360200190f35b61023b6004803603602081101561026357600080fd5b50356001600160a01b03166107e0565b61029a6004803603602081101561028957600080fd5b50356001600160e01b0319166107fb565b604080519115158252519081900360200190f35b61023b600480360360408110156102c457600080fd5b506001600160a01b038135811691602001351661081a565b61023b600480360360408110156102f257600080fd5b506001600160a01b0381358116916020013516610847565b61029a6004803603608081101561032057600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561035b57600080fd5b82018360208201111561036d57600080fd5b8035906020019184600183028401116401000000008311171561038f57600080fd5b509092509050610872565b61029a600480360360408110156103b057600080fd5b506001600160a01b038135169060200135610922565b61029a600480360360408110156103dc57600080fd5b506001600160a01b038135169060200135610961565b61023b6004803603602081101561040857600080fd5b50356001600160a01b0316610977565b61023b6004803603604081101561042e57600080fd5b506001600160a01b0381358116916020013516610989565b61029a6004803603602081101561045c57600080fd5b50356001600160a01b03166109df565b61023b610afe565b61047c610b04565b604080516001600160a01b039092168252519081900360200190f35b6104a0610b13565b005b6104a0600480360360208110156104b857600080fd5b50356001600160a01b0316610ba4565b61047c610c0d565b61023b600480360360208110156104e657600080fd5b50356001600160a01b0316610c1c565b61047c610c37565b61047c610c46565b61029a610c55565b6105446004803603606081101561052457600080fd5b506001600160a01b03813581169160208101359091169060400135610c79565b604080516001600160801b03948516815292909316602083015215158183015290519081900360600190f35b61023b6004803603604081101561058657600080fd5b506001600160a01b0381358116916020013516610d74565b61023b600480360360208110156105b457600080fd5b50356001600160a01b0316610d9f565b61023b600480360360208110156105da57600080fd5b50356001600160a01b0316610dba565b6104a06004803603602081101561060057600080fd5b5035610dd5565b61029a6004803603602081101561061d57600080fd5b50356001600160a01b0316610e21565b61029a6004803603604081101561064357600080fd5b506001600160a01b0381351690602001351515610e5a565b61023b6004803603604081101561067157600080fd5b506001600160a01b0381358116916020013516610e6d565b61023b6004803603602081101561069f57600080fd5b50356001600160a01b0316610e98565b61029a600480360360408110156106c557600080fd5b506001600160a01b038135169060200135610eb3565b6104a0600480360360408110156106f157600080fd5b506001600160a01b038135169060200135610ebf565b61029a6004803603606081101561071d57600080fd5b506001600160a01b03813581169160208101359091169060400135610eee565b6104a06004803603602081101561075357600080fd5b50356001600160a01b0316610f08565b61023b6004803603604081101561077957600080fd5b506001600160a01b0381358116916020013516610f5b565b61029a600480360360608110156107a757600080fd5b506001600160a01b0381351690602081013590604001351515610f86565b6001600160a01b031660009081526007602052604090205490565b6001600160a01b031660009081526006602052604090205490565b6001600160e01b03191660009081526001602052604090205460ff1690565b6001600160a01b038083166000908152600860209081526040808320938516835292905220545b92915050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6002546000906001600160a01b031633146108be5760405162461bcd60e51b81526004018080602001828103825260318152602001806123ae6031913960400191505060405180910390fd5b60006108ff84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610fb892505050565b905061090c818887610fd0565b61091557600080fd5b5060019695505050505050565b6001600160a01b0382166000908152600f6020908152604080832033845290915281205461095184828561121c565b61095a57600080fd5b5092915050565b600061096e833384610fd0565b61084157600080fd5b60116020526000908152604090205481565b6001600160a01b038083166000818152600e6020908152604080832094861680845294825280832054938352600f825280832094835293905291822054816109d657600092505050610841565b90039392505050565b60035460408051630c39b8b760e31b81526001600160a01b0380851660048301529151600093859316916361cdc5b8916024808301926020929190829003018186803b158015610a2e57600080fd5b505afa158015610a42573d6000803e3d6000fd5b505050506040513d6020811015610a5857600080fd5b5051610a6357600080fd5b60048054604080516367265c3b60e11b81526001600160a01b038781169482019490945233602482015290516000939092169163ce4cb87691604480820192602092909190829003018186803b158015610abc57600080fd5b505afa158015610ad0573d6000803e3d6000fd5b505050506040513d6020811015610ae657600080fd5b50519050610af484826116f7565b9250505b50919050565b60105481565b6004546001600160a01b031690565b610b1b610c55565b610b5a576040805162461bcd60e51b815260206004820181905260248201526000805160206123df833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610bac610c55565b610beb576040805162461bcd60e51b815260206004820181905260248201526000805160206123df833981519152604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031690565b6001600160a01b03166000908152600c602052604090205490565b6002546001600160a01b031690565b6000546001600160a01b031690565b600080546001600160a01b0316610c6a6119fb565b6001600160a01b031614905090565b6001600160a01b038084166000908152600e60209081526040808320938616835292905290812080548291829185908110610cb057fe5b600091825260208083206002909202909101546001600160a01b03808a168452600e83526040808520918a1685529252912080546001600160801b0390921694509085908110610cfc57fe5b60009182526020808320600292909202909101546001600160a01b038981168452600e83526040808520918a168552925291208054600160801b9092046001600160801b031693509085908110610d4f57fe5b600091825260209091206001600290920201015492969195505060ff90911692509050565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b6001600160a01b03166000908152600a602052604090205490565b6001600160a01b03166000908152600d602052604090205490565b610ddd610c55565b610e1c576040805162461bcd60e51b815260206004820181905260248201526000805160206123df833981519152604482015290519081900360640190fd5b601055565b6001600160a01b0381166000908152600f60209081526040808320338452909152812054610e518382600161121c565b610af857600080fd5b6000610e6683836119ff565b9392505050565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6001600160a01b031660009081526009602052604090205490565b6000610e6683836116f7565b610ec98233611db8565b610ed257600080fd5b6001600160a01b03909116600090815260116020526040902055565b6004546000906001600160a01b03163314610e6657600080fd5b610f10610c55565b610f4f576040805162461bcd60e51b815260206004820181905260248201526000805160206123df833981519152604482015290519081900360640190fd5b610f5881611e35565b50565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b6000805b83811015610fad57610f9c85846119ff565b610fa557600080fd5b600101610f8a565b506001949350505050565b60008151602014610fc857600080fd5b506020015190565b60035460408051630c39b8b760e31b81526001600160a01b0380871660048301529151600093879316916361cdc5b8916024808301926020929190829003018186803b15801561101f57600080fd5b505afa158015611033573d6000803e3d6000fd5b505050506040513d602081101561104957600080fd5b505161105457600080fd5b6001600160a01b0380861660009081526005602090815260408083209388168352929052205461108a908463ffffffff611ed516565b6001600160a01b038087166000818152600560209081526040808320948a1683529381528382209490945590815260069092529020546110d0908463ffffffff611ed516565b6001600160a01b0380871660009081526006602090815260408083209490945591871681526007909152205461110c908463ffffffff611ed516565b6001600160a01b0380861660009081526007602052604090209190915560025461113f911685308663ffffffff611f2f16565b604080516001600160a01b038681168252602082018690528251908816927f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7928290030190a26004805460408051630412c6d560e41b81526001600160a01b03898116948201949094528784166024820152604481018790529051929091169163412c6d50916064808201926020929091908290030181600087803b1580156111e757600080fd5b505af11580156111fb573d6000803e3d6000fd5b505050506040513d602081101561121157600080fd5b5051610fad57600080fd5b60035460408051630c39b8b760e31b81526001600160a01b0380871660048301529151600093879316916361cdc5b8916024808301926020929190829003018186803b15801561126b57600080fd5b505afa15801561127f573d6000803e3d6000fd5b505050506040513d602081101561129557600080fd5b50516112a057600080fd5b6001600160a01b0385166000908152600e60209081526040808320338452909152812054611315576040805162461bcd60e51b815260206004820152601a60248201527f4465706f7369744d616e616765723a206e6f2072657175657374000000000000604482015290519081900360640190fd5b6001600160a01b0386166000908152600e6020908152604080832033845290915290205485900384111561137a5760405162461bcd60e51b81526004018080602001828103825260318152602001806123086031913960400191505060405180910390fd5b8484015b8086101561148b576001600160a01b0387166000908152600e6020908152604080832033845290915281208054889081106113b557fe5b6000918252602090912060029091020180546001820154919250600160801b90046001600160801b03169060ff161561141f5760405162461bcd60e51b81526004018080602001828103825260318152602001806122b16031913960400191505060405180910390fd5b6000811161145e5760405162461bcd60e51b81526004018080602001828103825260288152602001806124296028913960400191505060405180910390fd5b61146e848263ffffffff611ed516565b6001928301805460ff1916841790559790910196925061137e9050565b6001600160a01b03871660009081526005602090815260408083203384529091529020546114bf908363ffffffff611ed516565b6001600160a01b038816600081815260056020908152604080832033845282528083209490945591815260069091522054611500908363ffffffff611ed516565b6001600160a01b038816600090815260066020908152604080832093909355338252600790522054611538908363ffffffff611ed516565b336000818152600760209081526040808320949094556001600160a01b038b1682526008815283822092825291909152205461157a908363ffffffff611f8f16565b6001600160a01b0388166000818152600860209081526040808320338452825280832094909455918152600990915220546115bb908363ffffffff611f8f16565b6001600160a01b038816600090815260096020908152604080832093909355338252600a905220546115f3908363ffffffff611f8f16565b336000818152600a60209081526040808320949094556001600160a01b038b16808352600f825284832084845282529184902080548a01905583519283528201859052825190927f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7928290030190a26004805460408051630412c6d560e41b81526001600160a01b038b811694820194909452336024820152604481018690529051929091169163412c6d50916064808201926020929091908290030181600087803b1580156116c257600080fd5b505af11580156116d6573d6000803e3d6000fd5b505050506040513d60208110156116ec57600080fd5b505161091557600080fd5b60035460408051630c39b8b760e31b81526001600160a01b0380861660048301529151600093869316916361cdc5b8916024808301926020929190829003018186803b15801561174657600080fd5b505afa15801561175a573d6000803e3d6000fd5b505050506040513d602081101561177057600080fd5b505161177b57600080fd5b600083116117ba5760405162461bcd60e51b815260040180806020018281038252602781526020018061235e6027913960400191505060405180910390fd5b6001600160a01b038416600090815260116020526040812054601054116117f9576001600160a01b0385166000908152601160205260409020546117fd565b6010545b6001600160a01b0386166000818152600e602090815260408083203380855290835281842082516060810184526001600160801b03438901811682528c8116828701908152828601888152845460018181018755958a52888a2094516002909102909401805492518416600160801b029484166fffffffffffffffffffffffffffffffff1990931692909217909216929092178255519101805491151560ff199092169190911790559383526008825280832093835292905220549091506118cb908563ffffffff611ed516565b6001600160a01b03861660008181526008602090815260408083203384528252808320949094559181526009909152205461190c908563ffffffff611ed516565b6001600160a01b038616600090815260096020908152604080832093909355338252600a90522054611944908563ffffffff611ed516565b336000818152600a602090815260409182902093909355805191825291810186905281516001600160a01b038816927f04c56a409d50971e45c5a2d96e5d557d2b0f1d66d40f14b141e4c958b0f39b32928290030190a26004805460408051637c287fd560e11b81526001600160a01b0389811694820194909452336024820152604481018890529051929091169163f850ffaa916064808201926020929091908290030181600087803b1580156111e757600080fd5b3390565b6001600160a01b0382166000818152600f602090815260408083203380855290835281842054948452600e83528184209084529091528120549091908110611a785760405162461bcd60e51b81526004018080602001828103825260258152602001806123396025913960400191505060405180910390fd5b6001600160a01b0384166000908152600e602090815260408083203384529091528120805483908110611aa757fe5b600091825260209091206002909102018054909150436001600160801b039091161115611b055760405162461bcd60e51b81526004018080602001828103825260298152602001806123856029913960400191505060405180910390fd5b6001818101805460ff1916821790556001600160a01b0386166000818152600f602090815260408083203380855290835281842080549096019095558554938352600882528083209483529390529190912054600160801b9091046001600160801b031690611b749082611f8f565b6001600160a01b038716600081815260086020908152604080832033845282528083209490945591815260099091522054611bb5908263ffffffff611f8f16565b6001600160a01b038716600090815260096020908152604080832093909355338252600a90522054611bed908263ffffffff611f8f16565b336000818152600a60209081526040808320949094556001600160a01b038a168252600b8152838220928252919091522054611c2f908263ffffffff611ed516565b6001600160a01b0387166000818152600b60209081526040808320338452825280832094909455918152600c9091522054611c70908263ffffffff611ed516565b6001600160a01b0387166000908152600c6020908152604080832093909355338252600d90522054611ca8908263ffffffff611ed516565b336000908152600d60205260409020558415611d4c576002546040805163e3b99e8560e01b81523360048201526024810184905290516001600160a01b039092169163e3b99e85916044808201926020929091908290030181600087803b158015611d1257600080fd5b505af1158015611d26573d6000803e3d6000fd5b505050506040513d6020811015611d3c57600080fd5b5051611d4757600080fd5b611d69565b600254611d69906001600160a01b0316338363ffffffff611fd116565b604080513381526020810183905281516001600160a01b038916927fcd1fce47d5ad89dd70b04c75bd6bdb8114d4d4ff7b4393f9fb5937e733ba9582928290030190a250600195945050505050565b6000826001600160a01b031663570ca7356040518163ffffffff1660e01b815260040160206040518083038186803b158015611df357600080fd5b505afa158015611e07573d6000803e3d6000fd5b505050506040513d6020811015611e1d57600080fd5b50516001600160a01b03838116911614905092915050565b6001600160a01b038116611e7a5760405162461bcd60e51b81526004018080602001828103825260268152602001806122e26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015610e66576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611f89908590612028565b50505050565b6000610e6683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506121e0565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612023908490612028565b505050565b61203a826001600160a01b0316612277565b61208b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106120c95780518252601f1990920191602091820191016120aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461212b576040519150601f19603f3d011682016040523d82523d6000602084013e612130565b606091505b509150915081612187576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611f89578080602001905160208110156121a357600080fd5b5051611f895760405162461bcd60e51b815260040180806020018281038252602a8152602001806123ff602a913960400191505060405180910390fd5b6000818484111561226f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561223457818101518382015260200161221c565b50505050905090810190601f1680156122615780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610af457505015159291505056fe4465706f7369744d616e616765723a2070656e64696e67207265717565737420616c72656164792070726f6365737365644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734465706f7369744d616e616765723a206e2065786365656473206e756d206f662070656e64696e672072657175657374734465706f7369744d616e616765723a206e6f207265717565737420746f2070726f636573734465706f7369744d616e616765723a20616d6f756e74206d757374206e6f74206265207a65726f4465706f7369744d616e616765723a207761697420666f72207769746864726177616c2064656c61794465706f7369744d616e616765723a206f6e6c79206163636570742057544f4e20617070726f76652063616c6c6261636b4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644465706f7369744d616e616765723a206e6f2076616c69642070656e64696e672072657175657374a265627a7a723158208700a6509393bde54d7dac4d43195842492ce7f38eb9b0e0d15109ce7bd1515f64736f6c634300050c0032000000000000000000000000c4a11aaf6ea915ed7ac194161d2fc9384f15bff20000000000000000000000000b3e174a2170083e770d5d4cf56774d221b7063e0000000000000000000000000000000000000000000000000000000000016b76
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102105760003560e01c80638d62d94911610125578063c20a44c6116100ad578063dc5a709f1161007c578063dc5a709f146106db578063e74f823914610707578063f2fde38b1461073d578063f762eb5714610763578063fb0713b11461079157610210565b8063c20a44c61461062d578063c647f26e1461065b578063d285f78c14610689578063da95ebf7146106af57610210565b80639d91b87b116100f45780639d91b87b14610570578063a0b2a9131461059e578063a3543989146105c4578063a79da341146105ea578063b8bee6281461060757610210565b80638d62d949146104f65780638da5cb5b146104fe5780638f32d59b146105065780638fbef2d01461050e57610210565b80634ce97036116101a85780636fb7f558116101775780636fb7f55814610474578063715018a6146104985780637657f20a146104a25780637b103999146104c85780638af4a948146104d057610210565b80634ce97036146103f25780635c0df46b146104185780636b2160b7146104465780636ec3d5ae1461046c57610210565b80632d2fab94116101e45780632d2fab94146102dc5780634273ca161461030a578063445e83b91461039a57806347e7ef24146103c657610210565b806255f5c114610215578063010ca3901461024d57806301ffc9a7146102735780632638fdf5146102ae575b600080fd5b61023b6004803603602081101561022b57600080fd5b50356001600160a01b03166107c5565b60408051918252519081900360200190f35b61023b6004803603602081101561026357600080fd5b50356001600160a01b03166107e0565b61029a6004803603602081101561028957600080fd5b50356001600160e01b0319166107fb565b604080519115158252519081900360200190f35b61023b600480360360408110156102c457600080fd5b506001600160a01b038135811691602001351661081a565b61023b600480360360408110156102f257600080fd5b506001600160a01b0381358116916020013516610847565b61029a6004803603608081101561032057600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561035b57600080fd5b82018360208201111561036d57600080fd5b8035906020019184600183028401116401000000008311171561038f57600080fd5b509092509050610872565b61029a600480360360408110156103b057600080fd5b506001600160a01b038135169060200135610922565b61029a600480360360408110156103dc57600080fd5b506001600160a01b038135169060200135610961565b61023b6004803603602081101561040857600080fd5b50356001600160a01b0316610977565b61023b6004803603604081101561042e57600080fd5b506001600160a01b0381358116916020013516610989565b61029a6004803603602081101561045c57600080fd5b50356001600160a01b03166109df565b61023b610afe565b61047c610b04565b604080516001600160a01b039092168252519081900360200190f35b6104a0610b13565b005b6104a0600480360360208110156104b857600080fd5b50356001600160a01b0316610ba4565b61047c610c0d565b61023b600480360360208110156104e657600080fd5b50356001600160a01b0316610c1c565b61047c610c37565b61047c610c46565b61029a610c55565b6105446004803603606081101561052457600080fd5b506001600160a01b03813581169160208101359091169060400135610c79565b604080516001600160801b03948516815292909316602083015215158183015290519081900360600190f35b61023b6004803603604081101561058657600080fd5b506001600160a01b0381358116916020013516610d74565b61023b600480360360208110156105b457600080fd5b50356001600160a01b0316610d9f565b61023b600480360360208110156105da57600080fd5b50356001600160a01b0316610dba565b6104a06004803603602081101561060057600080fd5b5035610dd5565b61029a6004803603602081101561061d57600080fd5b50356001600160a01b0316610e21565b61029a6004803603604081101561064357600080fd5b506001600160a01b0381351690602001351515610e5a565b61023b6004803603604081101561067157600080fd5b506001600160a01b0381358116916020013516610e6d565b61023b6004803603602081101561069f57600080fd5b50356001600160a01b0316610e98565b61029a600480360360408110156106c557600080fd5b506001600160a01b038135169060200135610eb3565b6104a0600480360360408110156106f157600080fd5b506001600160a01b038135169060200135610ebf565b61029a6004803603606081101561071d57600080fd5b506001600160a01b03813581169160208101359091169060400135610eee565b6104a06004803603602081101561075357600080fd5b50356001600160a01b0316610f08565b61023b6004803603604081101561077957600080fd5b506001600160a01b0381358116916020013516610f5b565b61029a600480360360608110156107a757600080fd5b506001600160a01b0381351690602081013590604001351515610f86565b6001600160a01b031660009081526007602052604090205490565b6001600160a01b031660009081526006602052604090205490565b6001600160e01b03191660009081526001602052604090205460ff1690565b6001600160a01b038083166000908152600860209081526040808320938516835292905220545b92915050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6002546000906001600160a01b031633146108be5760405162461bcd60e51b81526004018080602001828103825260318152602001806123ae6031913960400191505060405180910390fd5b60006108ff84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610fb892505050565b905061090c818887610fd0565b61091557600080fd5b5060019695505050505050565b6001600160a01b0382166000908152600f6020908152604080832033845290915281205461095184828561121c565b61095a57600080fd5b5092915050565b600061096e833384610fd0565b61084157600080fd5b60116020526000908152604090205481565b6001600160a01b038083166000818152600e6020908152604080832094861680845294825280832054938352600f825280832094835293905291822054816109d657600092505050610841565b90039392505050565b60035460408051630c39b8b760e31b81526001600160a01b0380851660048301529151600093859316916361cdc5b8916024808301926020929190829003018186803b158015610a2e57600080fd5b505afa158015610a42573d6000803e3d6000fd5b505050506040513d6020811015610a5857600080fd5b5051610a6357600080fd5b60048054604080516367265c3b60e11b81526001600160a01b038781169482019490945233602482015290516000939092169163ce4cb87691604480820192602092909190829003018186803b158015610abc57600080fd5b505afa158015610ad0573d6000803e3d6000fd5b505050506040513d6020811015610ae657600080fd5b50519050610af484826116f7565b9250505b50919050565b60105481565b6004546001600160a01b031690565b610b1b610c55565b610b5a576040805162461bcd60e51b815260206004820181905260248201526000805160206123df833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610bac610c55565b610beb576040805162461bcd60e51b815260206004820181905260248201526000805160206123df833981519152604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031690565b6001600160a01b03166000908152600c602052604090205490565b6002546001600160a01b031690565b6000546001600160a01b031690565b600080546001600160a01b0316610c6a6119fb565b6001600160a01b031614905090565b6001600160a01b038084166000908152600e60209081526040808320938616835292905290812080548291829185908110610cb057fe5b600091825260208083206002909202909101546001600160a01b03808a168452600e83526040808520918a1685529252912080546001600160801b0390921694509085908110610cfc57fe5b60009182526020808320600292909202909101546001600160a01b038981168452600e83526040808520918a168552925291208054600160801b9092046001600160801b031693509085908110610d4f57fe5b600091825260209091206001600290920201015492969195505060ff90911692509050565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b6001600160a01b03166000908152600a602052604090205490565b6001600160a01b03166000908152600d602052604090205490565b610ddd610c55565b610e1c576040805162461bcd60e51b815260206004820181905260248201526000805160206123df833981519152604482015290519081900360640190fd5b601055565b6001600160a01b0381166000908152600f60209081526040808320338452909152812054610e518382600161121c565b610af857600080fd5b6000610e6683836119ff565b9392505050565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6001600160a01b031660009081526009602052604090205490565b6000610e6683836116f7565b610ec98233611db8565b610ed257600080fd5b6001600160a01b03909116600090815260116020526040902055565b6004546000906001600160a01b03163314610e6657600080fd5b610f10610c55565b610f4f576040805162461bcd60e51b815260206004820181905260248201526000805160206123df833981519152604482015290519081900360640190fd5b610f5881611e35565b50565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b6000805b83811015610fad57610f9c85846119ff565b610fa557600080fd5b600101610f8a565b506001949350505050565b60008151602014610fc857600080fd5b506020015190565b60035460408051630c39b8b760e31b81526001600160a01b0380871660048301529151600093879316916361cdc5b8916024808301926020929190829003018186803b15801561101f57600080fd5b505afa158015611033573d6000803e3d6000fd5b505050506040513d602081101561104957600080fd5b505161105457600080fd5b6001600160a01b0380861660009081526005602090815260408083209388168352929052205461108a908463ffffffff611ed516565b6001600160a01b038087166000818152600560209081526040808320948a1683529381528382209490945590815260069092529020546110d0908463ffffffff611ed516565b6001600160a01b0380871660009081526006602090815260408083209490945591871681526007909152205461110c908463ffffffff611ed516565b6001600160a01b0380861660009081526007602052604090209190915560025461113f911685308663ffffffff611f2f16565b604080516001600160a01b038681168252602082018690528251908816927f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7928290030190a26004805460408051630412c6d560e41b81526001600160a01b03898116948201949094528784166024820152604481018790529051929091169163412c6d50916064808201926020929091908290030181600087803b1580156111e757600080fd5b505af11580156111fb573d6000803e3d6000fd5b505050506040513d602081101561121157600080fd5b5051610fad57600080fd5b60035460408051630c39b8b760e31b81526001600160a01b0380871660048301529151600093879316916361cdc5b8916024808301926020929190829003018186803b15801561126b57600080fd5b505afa15801561127f573d6000803e3d6000fd5b505050506040513d602081101561129557600080fd5b50516112a057600080fd5b6001600160a01b0385166000908152600e60209081526040808320338452909152812054611315576040805162461bcd60e51b815260206004820152601a60248201527f4465706f7369744d616e616765723a206e6f2072657175657374000000000000604482015290519081900360640190fd5b6001600160a01b0386166000908152600e6020908152604080832033845290915290205485900384111561137a5760405162461bcd60e51b81526004018080602001828103825260318152602001806123086031913960400191505060405180910390fd5b8484015b8086101561148b576001600160a01b0387166000908152600e6020908152604080832033845290915281208054889081106113b557fe5b6000918252602090912060029091020180546001820154919250600160801b90046001600160801b03169060ff161561141f5760405162461bcd60e51b81526004018080602001828103825260318152602001806122b16031913960400191505060405180910390fd5b6000811161145e5760405162461bcd60e51b81526004018080602001828103825260288152602001806124296028913960400191505060405180910390fd5b61146e848263ffffffff611ed516565b6001928301805460ff1916841790559790910196925061137e9050565b6001600160a01b03871660009081526005602090815260408083203384529091529020546114bf908363ffffffff611ed516565b6001600160a01b038816600081815260056020908152604080832033845282528083209490945591815260069091522054611500908363ffffffff611ed516565b6001600160a01b038816600090815260066020908152604080832093909355338252600790522054611538908363ffffffff611ed516565b336000818152600760209081526040808320949094556001600160a01b038b1682526008815283822092825291909152205461157a908363ffffffff611f8f16565b6001600160a01b0388166000818152600860209081526040808320338452825280832094909455918152600990915220546115bb908363ffffffff611f8f16565b6001600160a01b038816600090815260096020908152604080832093909355338252600a905220546115f3908363ffffffff611f8f16565b336000818152600a60209081526040808320949094556001600160a01b038b16808352600f825284832084845282529184902080548a01905583519283528201859052825190927f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7928290030190a26004805460408051630412c6d560e41b81526001600160a01b038b811694820194909452336024820152604481018690529051929091169163412c6d50916064808201926020929091908290030181600087803b1580156116c257600080fd5b505af11580156116d6573d6000803e3d6000fd5b505050506040513d60208110156116ec57600080fd5b505161091557600080fd5b60035460408051630c39b8b760e31b81526001600160a01b0380861660048301529151600093869316916361cdc5b8916024808301926020929190829003018186803b15801561174657600080fd5b505afa15801561175a573d6000803e3d6000fd5b505050506040513d602081101561177057600080fd5b505161177b57600080fd5b600083116117ba5760405162461bcd60e51b815260040180806020018281038252602781526020018061235e6027913960400191505060405180910390fd5b6001600160a01b038416600090815260116020526040812054601054116117f9576001600160a01b0385166000908152601160205260409020546117fd565b6010545b6001600160a01b0386166000818152600e602090815260408083203380855290835281842082516060810184526001600160801b03438901811682528c8116828701908152828601888152845460018181018755958a52888a2094516002909102909401805492518416600160801b029484166fffffffffffffffffffffffffffffffff1990931692909217909216929092178255519101805491151560ff199092169190911790559383526008825280832093835292905220549091506118cb908563ffffffff611ed516565b6001600160a01b03861660008181526008602090815260408083203384528252808320949094559181526009909152205461190c908563ffffffff611ed516565b6001600160a01b038616600090815260096020908152604080832093909355338252600a90522054611944908563ffffffff611ed516565b336000818152600a602090815260409182902093909355805191825291810186905281516001600160a01b038816927f04c56a409d50971e45c5a2d96e5d557d2b0f1d66d40f14b141e4c958b0f39b32928290030190a26004805460408051637c287fd560e11b81526001600160a01b0389811694820194909452336024820152604481018890529051929091169163f850ffaa916064808201926020929091908290030181600087803b1580156111e757600080fd5b3390565b6001600160a01b0382166000818152600f602090815260408083203380855290835281842054948452600e83528184209084529091528120549091908110611a785760405162461bcd60e51b81526004018080602001828103825260258152602001806123396025913960400191505060405180910390fd5b6001600160a01b0384166000908152600e602090815260408083203384529091528120805483908110611aa757fe5b600091825260209091206002909102018054909150436001600160801b039091161115611b055760405162461bcd60e51b81526004018080602001828103825260298152602001806123856029913960400191505060405180910390fd5b6001818101805460ff1916821790556001600160a01b0386166000818152600f602090815260408083203380855290835281842080549096019095558554938352600882528083209483529390529190912054600160801b9091046001600160801b031690611b749082611f8f565b6001600160a01b038716600081815260086020908152604080832033845282528083209490945591815260099091522054611bb5908263ffffffff611f8f16565b6001600160a01b038716600090815260096020908152604080832093909355338252600a90522054611bed908263ffffffff611f8f16565b336000818152600a60209081526040808320949094556001600160a01b038a168252600b8152838220928252919091522054611c2f908263ffffffff611ed516565b6001600160a01b0387166000818152600b60209081526040808320338452825280832094909455918152600c9091522054611c70908263ffffffff611ed516565b6001600160a01b0387166000908152600c6020908152604080832093909355338252600d90522054611ca8908263ffffffff611ed516565b336000908152600d60205260409020558415611d4c576002546040805163e3b99e8560e01b81523360048201526024810184905290516001600160a01b039092169163e3b99e85916044808201926020929091908290030181600087803b158015611d1257600080fd5b505af1158015611d26573d6000803e3d6000fd5b505050506040513d6020811015611d3c57600080fd5b5051611d4757600080fd5b611d69565b600254611d69906001600160a01b0316338363ffffffff611fd116565b604080513381526020810183905281516001600160a01b038916927fcd1fce47d5ad89dd70b04c75bd6bdb8114d4d4ff7b4393f9fb5937e733ba9582928290030190a250600195945050505050565b6000826001600160a01b031663570ca7356040518163ffffffff1660e01b815260040160206040518083038186803b158015611df357600080fd5b505afa158015611e07573d6000803e3d6000fd5b505050506040513d6020811015611e1d57600080fd5b50516001600160a01b03838116911614905092915050565b6001600160a01b038116611e7a5760405162461bcd60e51b81526004018080602001828103825260268152602001806122e26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015610e66576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611f89908590612028565b50505050565b6000610e6683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506121e0565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612023908490612028565b505050565b61203a826001600160a01b0316612277565b61208b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106120c95780518252601f1990920191602091820191016120aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461212b576040519150601f19603f3d011682016040523d82523d6000602084013e612130565b606091505b509150915081612187576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611f89578080602001905160208110156121a357600080fd5b5051611f895760405162461bcd60e51b815260040180806020018281038252602a8152602001806123ff602a913960400191505060405180910390fd5b6000818484111561226f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561223457818101518382015260200161221c565b50505050905090810190601f1680156122615780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610af457505015159291505056fe4465706f7369744d616e616765723a2070656e64696e67207265717565737420616c72656164792070726f6365737365644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734465706f7369744d616e616765723a206e2065786365656473206e756d206f662070656e64696e672072657175657374734465706f7369744d616e616765723a206e6f207265717565737420746f2070726f636573734465706f7369744d616e616765723a20616d6f756e74206d757374206e6f74206265207a65726f4465706f7369744d616e616765723a207761697420666f72207769746864726177616c2064656c61794465706f7369744d616e616765723a206f6e6c79206163636570742057544f4e20617070726f76652063616c6c6261636b4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644465706f7369744d616e616765723a206e6f2076616c69642070656e64696e672072657175657374a265627a7a723158208700a6509393bde54d7dac4d43195842492ce7f38eb9b0e0d15109ce7bd1515f64736f6c634300050c0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c4a11aaf6ea915ed7ac194161d2fc9384f15bff20000000000000000000000000b3e174a2170083e770d5d4cf56774d221b7063e0000000000000000000000000000000000000000000000000000000000016b76
-----Decoded View---------------
Arg [0] : wton (address): 0xc4A11aaf6ea915Ed7Ac194161d2fC9384F15bff2
Arg [1] : registry (address): 0x0b3E174A2170083e770D5d4Cf56774D221b7063e
Arg [2] : globalWithdrawalDelay_ (uint256): 93046
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c4a11aaf6ea915ed7ac194161d2fc9384f15bff2
Arg [1] : 0000000000000000000000000b3e174a2170083e770d5d4cf56774d221b7063e
Arg [2] : 0000000000000000000000000000000000000000000000000000000000016b76
Deployed Bytecode Sourcemap
59174:13167:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59174:13167:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70787:124;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70787:124:0;-1:-1:-1;;;;;70787:124:0;;:::i;:::-;;;;;;;;;;;;;;;;70663:120;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70663:120:0;-1:-1:-1;;;;;70663:120:0;;:::i;20879:135::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20879:135:0;-1:-1:-1;;;;;;20879:135:0;;:::i;:::-;;;;;;;;;;;;;;;;;;70917:146;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;70917:146:0;;;;;;;;;;:::i;70525:134::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;70525:134:0;;;;;;;;;;:::i;62373:373::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;62373:373:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;62373:373:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;62373:373:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;62373:373:0;;-1:-1:-1;62373:373:0;-1:-1:-1;62373:373:0;:::i;64105:183::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;64105:183:0;;;;;;;;:::i;63105:131::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;63105:131:0;;;;;;;;:::i;61058:51::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61058:51:0;-1:-1:-1;;;;;61058:51:0;;:::i;69710:308::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;69710:308:0;;;;;;;;;;:::i;69118:209::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69118:209:0;-1:-1:-1;;;;;69118:209:0;;:::i;61017:36::-;;;:::i;70431:88::-;;;:::i;:::-;;;;-1:-1:-1;;;;;70431:88:0;;;;;;;;;;;;;;2979:140;;;:::i;:::-;;62180:108;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62180:108:0;-1:-1:-1;;;;;62180:108:0;;:::i;70345:82::-;;;:::i;71487:124::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71487:124:0;-1:-1:-1;;;;;71487:124:0;;:::i;70267:74::-;;;:::i;2168:79::-;;;:::i;2534:94::-;;;:::i;71908:408::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;71908:408:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;71908:408:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71345:138;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;71345:138:0;;;;;;;;;;:::i;71203:136::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71203:136:0;-1:-1:-1;;;;;71203:136:0;;:::i;71615:128::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71615:128:0;-1:-1:-1;;;;;71615:128:0;;:::i;66163:144::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;66163:144:0;;:::i;63932:167::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63932:167:0;-1:-1:-1;;;;;63932:167:0;;:::i;67648:136::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;67648:136:0;;;;;;;;;;:::i;71749:155::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;71749:155:0;;;;;;;;;;:::i;71067:132::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71067:132:0;-1:-1:-1;;;;;71067:132:0;;:::i;66580:137::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;66580:137:0;;;;;;;;:::i;66313:184::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;66313:184:0;;;;;;;;:::i;65922:172::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;65922:172:0;;;;;;;;;;;;;;;;;:::i;3274:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3274:109:0;-1:-1:-1;;;;;3274:109:0;;:::i;69555:149::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;69555:149:0;;;;;;;;;;:::i;69333:216::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;69333:216:0;;;;;;;;;;;;;;;:::i;70787:124::-;-1:-1:-1;;;;;70882:26:0;70853:18;70882:26;;;:17;:26;;;;;;;70787:124::o;70663:120::-;-1:-1:-1;;;;;70756:24:0;70727:18;70756:24;;;:16;:24;;;;;;;70663:120::o;20879:135::-;-1:-1:-1;;;;;;20973:33:0;20949:4;20973:33;;;:20;:33;;;;;;;;;20879:135::o;70917:146::-;-1:-1:-1;;;;;71027:24:0;;;70998:18;71027:24;;;:16;:24;;;;;;;;:33;;;;;;;;;;70917:146;;;;;:::o;70525:134::-;-1:-1:-1;;;;;70629:18:0;;;70600;70629;;;:10;:18;;;;;;;;:27;;;;;;;;;;;;;70525:134::o;62373:373::-;62547:5;;62504:4;;-1:-1:-1;;;;;62547:5:0;62525:10;:28;62517:90;;;;-1:-1:-1;;;62517:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62616:14;62633:40;62668:4;;62633:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;62633:34:0;;-1:-1:-1;;;62633:40:0:i;:::-;62616:57;;62688:31;62697:6;62705:5;62712:6;62688:8;:31::i;:::-;62680:40;;;;;;-1:-1:-1;62736:4:0;;62373:373;-1:-1:-1;;;;;;62373:373:0:o;64105:183::-;-1:-1:-1;;;;;64199:31:0;;64174:4;64199:31;;;:23;:31;;;;;;;;64231:10;64199:43;;;;;;;;64257:24;64223:6;64199:43;64279:1;64257:10;:24::i;:::-;64249:33;;;;;;64105:183;;;;;:::o;63105:131::-;63172:4;63193:36;63202:6;63210:10;63222:6;63193:8;:36::i;:::-;63185:45;;;;;61058:51;;;;;;;;;;;;;:::o;69710:308::-;-1:-1:-1;;;;;69832:27:0;;;69794:7;69832:27;;;:19;:27;;;;;;;;:36;;;;;;;;;;;;:43;69898:31;;;:23;:31;;;;;:40;;;;;;;;;;69951:16;69947:30;;69976:1;69969:8;;;;;;69947:30;69993:19;;;69710:308;-1:-1:-1;;;69710:308:0:o;69118:209::-;61350:9;;:25;;;-1:-1:-1;;;61350:25:0;;-1:-1:-1;;;;;61350:25:0;;;;;;;;;69201:4;;69184:6;;61350:9;;:17;;:25;;;;;;;;;;;;;;:9;:25;;;5:2:-1;;;;30:1;27;20:12;5:2;61350:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61350:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61350:25:0;61342:34;;;;;;69231:12;;;:40;;;-1:-1:-1;;;69231:40:0;;-1:-1:-1;;;;;69231:40:0;;;;;;;;;;69260:10;69231:40;;;;;;69214:14;;69231:12;;;;:20;;:40;;;;;;;;;;;;;;;:12;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;69231:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69231:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69231:40:0;;-1:-1:-1;69287:34:0;69306:6;69231:40;69287:18;:34::i;:::-;69280:41;;;61383:1;69118:209;;;;:::o;61017:36::-;;;;:::o;70431:88::-;70503:12;;-1:-1:-1;;;;;70503:12:0;70431:88;:::o;2979:140::-;2380:9;:7;:9::i;:::-;2372:54;;;;;-1:-1:-1;;;2372:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:54:0;;;;;;;;;;;;;;;3078:1;3062:6;;3041:40;;-1:-1:-1;;;;;3062:6:0;;;;3041:40;;3078:1;;3041:40;3109:1;3092:19;;-1:-1:-1;;;;;;3092:19:0;;;2979:140::o;62180:108::-;2380:9;:7;:9::i;:::-;2372:54;;;;;-1:-1:-1;;;2372:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:54:0;;;;;;;;;;;;;;;62256:12;:26;;-1:-1:-1;;;;;;62256:26:0;-1:-1:-1;;;;;62256:26:0;;;;;;;;;;62180:108::o;70345:82::-;70414:9;;-1:-1:-1;;;;;70414:9:0;70345:82;:::o;71487:124::-;-1:-1:-1;;;;;71582:26:0;71553:18;71582:26;;;:18;:26;;;;;;;71487:124::o;70267:74::-;70332:5;;-1:-1:-1;;;;;70332:5:0;70267:74;:::o;2168:79::-;2206:7;2233:6;-1:-1:-1;;;;;2233:6:0;2168:79;:::o;2534:94::-;2574:4;2614:6;;-1:-1:-1;;;;;2614:6:0;2598:12;:10;:12::i;:::-;-1:-1:-1;;;;;2598:22:0;;2591:29;;2534:94;:::o;71908:408::-;-1:-1:-1;;;;;72105:27:0;;;72006:31;72105:27;;;:19;:27;;;;;;;;:36;;;;;;;;;;;:43;;72006:31;;;;72142:5;;72105:43;;;;;;;;;;;;;;;;;;;;;:67;-1:-1:-1;;;;;72188:27:0;;;;;:19;:27;;;;;;:36;;;;;;;;;:43;;-1:-1:-1;;;;;72105:67:0;;;;-1:-1:-1;72188:36:0;72225:5;;72188:43;;;;;;;;;;;;;;;;;;;;;;:50;-1:-1:-1;;;;;72257:27:0;;;;;:19;:27;;;;;;:36;;;;;;;;;:43;;-1:-1:-1;;;72188:50:0;;;-1:-1:-1;;;;;72188:50:0;;-1:-1:-1;72257:36:0;72294:5;;72257:43;;;;;;;;;;;;;;:53;:43;;;;;:53;;71908:408;;;;-1:-1:-1;;72257:53:0;;;;;-1:-1:-1;71908:408:0;-1:-1:-1;71908:408:0:o;71345:138::-;-1:-1:-1;;;;;71451:20:0;;;71422:18;71451:20;;;:12;:20;;;;;;;;:29;;;;;;;;;;;;;71345:138::o;71203:136::-;-1:-1:-1;;;;;71304:32:0;71275:18;71304:32;;;:23;:32;;;;;;;71203:136::o;71615:128::-;-1:-1:-1;;;;;71712:28:0;71683:18;71712:28;;;:19;:28;;;;;;;71615:128::o;66163:144::-;2380:9;:7;:9::i;:::-;2372:54;;;;;-1:-1:-1;;;2372:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:54:0;;;;;;;;;;;;;;;66255:21;:46;66163:144::o;63932:167::-;-1:-1:-1;;;;;64010:31:0;;63985:4;64010:31;;;:23;:31;;;;;;;;64042:10;64010:43;;;;;;;;64068:24;64034:6;64010:43;64090:1;64068:10;:24::i;:::-;64060:33;;;;;67648:136;67723:4;67743:35;67759:6;67767:10;67743:15;:35::i;:::-;67736:42;67648:136;-1:-1:-1;;;67648:136:0:o;71749:155::-;-1:-1:-1;;;;;71861:31:0;;;71837:13;71861:31;;;:23;:31;;;;;;;;:40;;;;;;;;;;;;;71749:155::o;71067:132::-;-1:-1:-1;;;;;71166:30:0;71137:18;71166:30;;;:22;:30;;;;;;;71067:132::o;66580:137::-;66657:4;66677:34;66696:6;66704;66677:18;:34::i;66313:184::-;66408:32;66420:7;66429:10;66408:11;:32::i;:::-;66400:41;;;;;;-1:-1:-1;;;;;66448:24:0;;;;;;;:15;:24;;;;;:43;66313:184::o;65922:172::-;61460:12;;66022:4;;-1:-1:-1;;;;;61460:12:0;61438:10;:35;61430:44;;;;;3274:109;2380:9;:7;:9::i;:::-;2372:54;;;;;-1:-1:-1;;;2372:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:54:0;;;;;;;;;;;;;;;3347:28;3366:8;3347:18;:28::i;:::-;3274:109;:::o;69555:149::-;-1:-1:-1;;;;;69655:27:0;;;69632:7;69655:27;;;:19;:27;;;;;;;;:36;;;;;;;;;;;:43;;69555:149::o;69333:216::-;69420:4;;69433:93;69457:1;69453;:5;69433:93;;;69482:35;69498:6;69506:10;69482:15;:35::i;:::-;69474:44;;;;;;69460:3;;69433:93;;;-1:-1:-1;69539:4:0;;69333:216;-1:-1:-1;;;;69333:216:0:o;62752:218::-;62848:14;62879:4;:11;62894:4;62879:19;62871:28;;;;;;-1:-1:-1;62952:4:0;62942:15;62936:22;;62917:48::o;63242:532::-;61350:9;;:25;;;-1:-1:-1;;;61350:25:0;;-1:-1:-1;;;;;61350:25:0;;;;;;;;;63346:4;;63329:6;;61350:9;;:17;;:25;;;;;;;;;;;;;;:9;:25;;;5:2:-1;;;;30:1;27;20:12;5:2;61350:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61350:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61350:25:0;61342:34;;;;;;-1:-1:-1;;;;;63389:18:0;;;;;;;:10;:18;;;;;;;;:27;;;;;;;;;;:39;;63421:6;63389:39;:31;:39;:::i;:::-;-1:-1:-1;;;;;63359:18:0;;;;;;;:10;:18;;;;;;;;:27;;;;;;;;;;;:69;;;;63462:24;;;:16;:24;;;;;;:36;;63491:6;63462:36;:28;:36;:::i;:::-;-1:-1:-1;;;;;63435:24:0;;;;;;;:16;:24;;;;;;;;:63;;;;63534:26;;;;;:17;:26;;;;;:38;;63565:6;63534:38;:30;:38;:::i;:::-;-1:-1:-1;;;;;63505:26:0;;;;;;;:17;:26;;;;;:67;;;;63581:5;;:54;;:5;63523:7;63621:4;63628:6;63581:54;:22;:54;:::i;:::-;63649:34;;;-1:-1:-1;;;;;63649:34:0;;;;;;;;;;;;;;;;;;;;;;;;;63700:12;;;:47;;;-1:-1:-1;;;63700:47:0;;-1:-1:-1;;;;;63700:47:0;;;;;;;;;;;;;;;;;;;;;;;;;:12;;;;;:22;;:47;;;;;;;;;;;;;;;:12;;:47;;;5:2:-1;;;;30:1;27;20:12;5:2;63700:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;63700:47:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63700:47:0;63692:56;;;;;64294:1550;61350:9;;:25;;;-1:-1:-1;;;61350:25:0;;-1:-1:-1;;;;;61350:25:0;;;;;;;;;64389:4;;64372:6;;61350:9;;:17;;:25;;;;;;;;;;;;;;:9;:25;;;5:2:-1;;;;30:1;27;20:12;5:2;61350:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61350:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61350:25:0;61342:34;;;;;;-1:-1:-1;;;;;64436:27:0;;64402:17;64436:27;;;:19;:27;;;;;;;;64464:10;64436:39;;;;;;;:46;64428:89;;;;;-1:-1:-1;;;64428:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;64532:27:0;;;;;;:19;:27;;;;;;;;64560:10;64532:39;;;;;;;:46;:50;;;:55;-1:-1:-1;64532:55:0;64524:117;;;;-1:-1:-1;;;64524:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64662:5;;;64674:370;64685:1;64681;:5;64674:370;;;-1:-1:-1;;;;;64732:27:0;;64702;64732;;;:19;:27;;;;;;;;64760:10;64732:39;;;;;;;:42;;64772:1;;64732:42;;;;;;;;;;;;;;;;;;;64800:8;;64828:11;;;;64732:42;;-1:-1:-1;;;;64800:8:0;;-1:-1:-1;;;;;64800:8:0;;64828:11;;64827:12;64819:74;;;;-1:-1:-1;;;64819:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64919:1;64910:6;:10;64902:63;;;;-1:-1:-1;;;64902:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64988:21;:9;65002:6;64988:21;:13;:21;:::i;:::-;65032:4;65018:11;;;:18;;-1:-1:-1;;65018:18:0;;;;;64688:3;;;;;64976:33;-1:-1:-1;64674:370:0;;-1:-1:-1;64674:370:0;;-1:-1:-1;;;;;65120:18:0;;;;;;:10;:18;;;;;;;;65139:10;65120:30;;;;;;;;:45;;65155:9;65120:45;:34;:45;:::i;:::-;-1:-1:-1;;;;;65087:18:0;;;;;;:10;:18;;;;;;;;65106:10;65087:30;;;;;;;:78;;;;65199:24;;;:16;:24;;;;;:39;;65228:9;65199:39;:28;:39;:::i;:::-;-1:-1:-1;;;;;65172:24:0;;;;;;:16;:24;;;;;;;;:66;;;;65295:10;65277:29;;:17;:29;;;;:44;;65311:9;65277:44;:33;:44;:::i;:::-;65263:10;65245:29;;;;:17;:29;;;;;;;;:76;;;;-1:-1:-1;;;;;65405:24:0;;;;:16;:24;;;;;:36;;;;;;;;;:51;;65446:9;65405:51;:40;:51;:::i;:::-;-1:-1:-1;;;;;65366:24:0;;;;;;:16;:24;;;;;;;;65391:10;65366:36;;;;;;;:90;;;;65496:30;;;:22;:30;;;;;:45;;65531:9;65496:45;:34;:45;:::i;:::-;-1:-1:-1;;;;;65463:30:0;;;;;;:22;:30;;;;;;;;:78;;;;65610:10;65586:35;;:23;:35;;;;:50;;65626:9;65586:50;:39;:50;:::i;:::-;65572:10;65548:35;;;;:23;:35;;;;;;;;:88;;;;-1:-1:-1;;;;;65645:31:0;;;;;:23;:31;;;;;:43;;;;;;;;;:48;;;;;;65707:40;;;;;;;;;;;;65645:31;;65707:40;;;;;;;;65764:12;;;:53;;;-1:-1:-1;;;65764:53:0;;-1:-1:-1;;;;;65764:53:0;;;;;;;;;;65795:10;65764:53;;;;;;;;;;;;:12;;;;;:22;;:53;;;;;;;;;;;;;;;:12;;:53;;;5:2:-1;;;;30:1;27;20:12;5:2;65764:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;65764:53:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65764:53:0;65756:62;;;;;66723:919;61350:9;;:25;;;-1:-1:-1;;;61350:25:0;;-1:-1:-1;;;;;61350:25:0;;;;;;;;;66820:4;;66803:6;;61350:9;;:17;;:25;;;;;;;;;;;;;;:9;:25;;;5:2:-1;;;;30:1;27;20:12;5:2;61350:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61350:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61350:25:0;61342:34;;;;;;66850:1;66841:6;:10;66833:62;;;;-1:-1:-1;;;66833:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;66944:23:0;;66904:13;66944:23;;;:15;:23;;;;;;66920:21;;:47;:97;;-1:-1:-1;;;;;66994:23:0;;;;;;:15;:23;;;;;;66920:97;;;66970:21;;66920:97;-1:-1:-1;;;;;67024:27:0;;;;;;:19;:27;;;;;;;;67052:10;67024:39;;;;;;;;;67069:146;;;;;;;-1:-1:-1;;;;;67129:12:0;:20;;67069:146;;;;;;;;;;;;;;;;;;;27:10:-1;;67069:146:0;23:18:-1;;;45:23;;67024:192:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;67024:192:0;;;;-1:-1:-1;;67024:192:0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;67024:192:0;;;;;;;;;67264:24;;;:16;:24;;;;;:36;;;;;;;;66904:113;;-1:-1:-1;67264:48:0;;67175:6;67264:48;:40;:48;:::i;:::-;-1:-1:-1;;;;;67225:24:0;;;;;;:16;:24;;;;;;;;67250:10;67225:36;;;;;;;:87;;;;67352:30;;;:22;:30;;;;;:42;;67387:6;67352:42;:34;:42;:::i;:::-;-1:-1:-1;;;;;67319:30:0;;;;;;:22;:30;;;;;;;;:75;;;;67463:10;67439:35;;:23;:35;;;;:47;;67479:6;67439:47;:39;:47;:::i;:::-;67425:10;67401:35;;;;:23;:35;;;;;;;;;:85;;;;67500:47;;;;;;;;;;;;;-1:-1:-1;;;;;67500:47:0;;;;;;;;;;;67564:12;;;:51;;;-1:-1:-1;;;67564:51:0;;-1:-1:-1;;;;;67564:51:0;;;;;;;;;;67596:10;67564:51;;;;;;;;;;;;:12;;;;;:23;;:51;;;;;;;;;;;;;;;:12;;:51;;;5:2:-1;;;;30:1;27;20:12;866:98:0;946:10;866:98;:::o;67790:1322::-;-1:-1:-1;;;;;67895:31:0;;67866:4;67895:31;;;:23;:31;;;;;;;;67927:10;67895:43;;;;;;;;;;67953:27;;;:19;:27;;;;;:39;;;;;;;;:46;67866:4;;67895:43;67953:54;-1:-1:-1;67945:104:0;;;;-1:-1:-1;;;67945:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;68088:27:0;;68058;68088;;;:19;:27;;;;;;;;68116:10;68088:39;;;;;;;:46;;68128:5;;68088:46;;;;;;;;;;;;;;;;;;;68151:25;;68088:46;;-1:-1:-1;68180:12:0;-1:-1:-1;;;;;68151:25:0;;;:41;;68143:95;;;;-1:-1:-1;;;68143:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68259:4;68245:11;;;:18;;-1:-1:-1;;68245:18:0;;;;;-1:-1:-1;;;;;68272:31:0;;-1:-1:-1;68272:31:0;;;:23;:31;;;;;;;;68304:10;68272:43;;;;;;;;;:48;;;;;;;;68346:8;;68402:24;;;:16;:24;;;;;:36;;;;;;;;;;;-1:-1:-1;;;68346:8:0;;;-1:-1:-1;;;;;68346:8:0;;68402:48;;68346:8;68402:40;:48::i;:::-;-1:-1:-1;;;;;68363:24:0;;;;;;:16;:24;;;;;;;;68388:10;68363:36;;;;;;;:87;;;;68490:30;;;:22;:30;;;;;:42;;68525:6;68490:42;:34;:42;:::i;:::-;-1:-1:-1;;;;;68457:30:0;;;;;;:22;:30;;;;;;;;:75;;;;68601:10;68577:35;;:23;:35;;;;:47;;68617:6;68577:47;:39;:47;:::i;:::-;68563:10;68539:35;;;;:23;:35;;;;;;;;:85;;;;-1:-1:-1;;;;;68668:20:0;;;;:12;:20;;;;;:32;;;;;;;;;:44;;68705:6;68668:44;:36;:44;:::i;:::-;-1:-1:-1;;;;;68633:20:0;;;;;;:12;:20;;;;;;;;68654:10;68633:32;;;;;;;:79;;;;68748:26;;;:18;:26;;;;;:38;;68779:6;68748:38;:30;:38;:::i;:::-;-1:-1:-1;;;;;68719:26:0;;;;;;:18;:26;;;;;;;;:67;;;;68847:10;68827:31;;:19;:31;;;;:43;;68863:6;68827:43;:35;:43;:::i;:::-;68813:10;68793:31;;;;:19;:31;;;;;:77;68879:149;;;;68912:5;;:46;;;-1:-1:-1;;;68912:46:0;;68939:10;68912:46;;;;;;;;;;;;-1:-1:-1;;;;;68912:5:0;;;;:26;;:46;;;;;;;;;;;;;;;:5;;:46;;;5:2:-1;;;;30:1;27;20:12;5:2;68912:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;68912:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;68912:46:0;68904:55;;;;;;68879:149;;;68982:5;;:38;;-1:-1:-1;;;;;68982:5:0;69001:10;69013:6;68982:38;:18;:38;:::i;:::-;69041:47;;;69069:10;69041:47;;;;;;;;;;-1:-1:-1;;;;;69041:47:0;;;;;;;;;;;-1:-1:-1;69102:4:0;;67790:1322;-1:-1:-1;;;;;67790:1322:0:o;70024:142::-;70102:4;70142:6;-1:-1:-1;;;;;70134:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70134:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70134:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70134:26:0;-1:-1:-1;;;;;70122:38:0;;;;;;;-1:-1:-1;70024:142:0;;;;:::o;3489:229::-;-1:-1:-1;;;;;3563:22:0;;3555:73;;;;-1:-1:-1;;;3555:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3665:6;;;3644:38;;-1:-1:-1;;;;;3644:38:0;;;;3665:6;;;3644:38;;;3693:6;:17;;-1:-1:-1;;;;;;3693:17:0;-1:-1:-1;;;;;3693:17:0;;;;;;;;;;3489:229::o;4646:181::-;4704:7;4736:5;;;4760:6;;;;4752:46;;;;;-1:-1:-1;;;4752:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;16065:204;16192:68;;;-1:-1:-1;;;;;16192:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;16192:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;16166:95:0;;16185:5;;16166:18;:95::i;:::-;16065:204;;;;:::o;5102:136::-;5160:7;5187:43;5191:1;5194;5187:43;;;;;;;;;;;;;;;;;:3;:43::i;15881:176::-;15990:58;;;-1:-1:-1;;;;;15990:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;15990:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;15964:85:0;;15983:5;;15964:18;:85::i;:::-;15881:176;;;:::o;17920:1114::-;18524:27;18532:5;-1:-1:-1;;;;;18524:25:0;;:27::i;:::-;18516:71;;;;;-1:-1:-1;;;18516:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18661:12;18675:23;18710:5;-1:-1:-1;;;;;18702:19:0;18722:4;18702:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;18702:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;18660:67:0;;;;18746:7;18738:52;;;;;-1:-1:-1;;;18738:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18807:17;;:21;18803:224;;18949:10;18938:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18938:30:0;18930:85;;;;-1:-1:-1;;;18930:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5575:192;5661:7;5697:12;5689:6;;;;5681:29;;;;-1:-1:-1;;;5681:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5681:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5733:5:0;;;5575:192::o;12902:619::-;12962:4;13430:20;;13273:66;13470:23;;;;;;:42;;-1:-1:-1;;13497:15:0;;;12902:619;-1:-1:-1;;12902:619:0:o
Swarm Source
bzzr://8700a6509393bde54d7dac4d43195842492ce7f38eb9b0e0d15109ce7bd1515f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
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.