Contract Overview
Contract Name:
UPController
Compiler Version
v0.8.7+commit.e28d00a7
// File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.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 IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { 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)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/Helpers/Safe.sol pragma solidity ^0.8.4; abstract contract Safe { using SafeERC20 for IERC20; address target; constructor(address _target) { target = _target; } function _withdrawFunds() internal returns (bool) { (bool sent, ) = address(target).call{value: address(this).balance}(""); require(sent, "Safe: Failed to send Ether"); return sent; } function _withdrawFundsERC20(address tokenAddress) internal returns (bool) { IERC20 token = IERC20(tokenAddress); token.safeTransfer(target, token.balanceOf(address(this))); return true; } } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.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/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: @openzeppelin/contracts/security/Pausable.sol // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/access/IAccessControl.sol // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File: @openzeppelin/contracts/access/AccessControl.sol // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File: contracts/UP.sol pragma solidity ^0.8.4; contract UP is ERC20, AccessControl { bytes32 public constant MINT_ROLE = keccak256("MINT_ROLE"); bytes32 public constant LEGACY_MINT_ROLE = keccak256("LEGACY_MINT_ROLE"); address public UP_CONTROLLER = address(0); event SetUPController(address _setter, address _newController); modifier onlyMint() { require(hasRole(MINT_ROLE, msg.sender), "UP: ONLY_MINT"); _; } modifier onlyAdmin() { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "UP: ONLY_ADMIN"); _; } constructor() ERC20("UPong", "UPong") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } /// @notice UPv1 legacy receive() external payable {} function burn(uint256 amount) public { _burn(_msgSender(), amount); } function burnFrom(address account, uint256 amount) public { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } /// @notice Retrocompatible function with v1 function justBurn(uint256 amount) external { burn(amount); } /// @notice Mints token and have logic for supporting legacy mint logic function mint(address to, uint256 amount) public payable onlyMint returns (bool) { /// LEGACY_MINT_ROLE retrocompatible with UPv1 if (hasRole(LEGACY_MINT_ROLE, msg.sender) && UP_CONTROLLER != address(0)) { (bool success, ) = UP_CONTROLLER.call{value: msg.value}( abi.encodeWithSignature(("mintUP(address)"), to) ); require(success, "UP: LEGACY_MINT_FAILED"); } else { _mint(to, amount); } /// Legacy UPv1 return return true; } /// @notice Sets a controller address that will receive the funds from LEGACY_MINT_ROLE function setController(address newController) public onlyAdmin { UP_CONTROLLER = newController; emit SetUPController(msg.sender, newController); } function withdrawFunds() public { require(UP_CONTROLLER != address(0)); (bool success, ) = UP_CONTROLLER.call{value: address(this).balance}(""); require(success); } } // File: contracts/UPController.sol pragma solidity ^0.8.4; /// @title UP Controller /// @author dxffffff & A Fistful of Stray Cat Hair /// @notice This controller back up the UP token and has the logic for borrowing tokens. contract UPController is AccessControl, Safe, Pausable { bytes32 public constant REBALANCER_ROLE = keccak256("REBALANCER_ROLE"); bytes32 public constant REDEEMER_ROLE = keccak256("REDEEMER_ROLE"); address payable public UP_TOKEN = payable(address(0)); uint256 public nativeBorrowed = 0; uint256 public upBorrowed = 0; event SyntheticMint(address _from, uint256 _amount, uint256 _newUpBorrowed); event BorrowNative(address _from, uint256 _amount, uint256 _newNativeBorrowed); event Repay(uint256 _nativeAmount, uint256 _upAmount); event Redeem(uint256 _upAmount, uint256 _redeemAmount); modifier onlyRebalancer() { require(hasRole(REBALANCER_ROLE, msg.sender), "UPController: ONLY_REBALANCER"); _; } modifier onlyAdmin() { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "UPController: ONLY_ADMIN"); _; } modifier onlyRedeemer() { require(hasRole(REDEEMER_ROLE, msg.sender), "UPController: ONLY_REDEEMER"); _; } constructor(address _UP, address _fundsTarget) Safe(_fundsTarget) { require(_UP != address(0), "UPController: Invalid UP address"); UP_TOKEN = payable(_UP); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } receive() external payable {} /// @notice Returns price of UP token based on its reserves function getVirtualPrice() public view returns (uint256) { if (getNativeBalance() == 0) return 0; return ((getNativeBalance() * 1e18) / actualTotalSupply()); } /// @notice Returns price of UP token based on its reserves minus amount sent to the contract function getVirtualPrice(uint256 sentValue) public view returns (uint256) { if (getNativeBalance() == 0) return 0; uint256 nativeBalance = getNativeBalance() - sentValue; return ((nativeBalance * 1e18) / actualTotalSupply()); } /// @notice Computed the actual native balances of the contract function getNativeBalance() public view returns (uint256) { return address(this).balance + nativeBorrowed; } /// @notice Computed total supply of UP token function actualTotalSupply() public view returns (uint256) { return UP(UP_TOKEN).totalSupply() - upBorrowed; } /// @notice Borrows native token from the back up reserves function borrowNative(uint256 _borrowAmount, address _to) public onlyRebalancer whenNotPaused { require(address(this).balance >= _borrowAmount, "UPController: NOT_ENOUGH_BALANCE"); (bool success, ) = _to.call{value: _borrowAmount}(""); nativeBorrowed += _borrowAmount; require(success, "UPController: BORROW_NATIVE_FAILED"); emit BorrowNative(_to, _borrowAmount, nativeBorrowed); } /// @notice Borrows UP token minting it function borrowUP(uint256 _borrowAmount, address _to) public onlyRebalancer whenNotPaused { upBorrowed += _borrowAmount; UP(UP_TOKEN).mint(_to, _borrowAmount); emit SyntheticMint(msg.sender, _borrowAmount, upBorrowed); } function mintSyntheticUP(uint256 _mintAmount, address _to) public onlyRebalancer whenNotPaused { borrowUP(_mintAmount, _to); } /// @notice Mints UP based on virtual price - UPv1 logic function mintUP(address to) external payable whenNotPaused { require(msg.sender == UP_TOKEN, "UPController: NON_UP_CONTRACT"); uint256 mintAmount = (msg.value * 1e18) / getVirtualPrice(msg.value); UP(UP_TOKEN).mint(to, mintAmount); } /// @notice Allows to return back borrowed amounts to the controller function repay(uint256 upAmount) public payable onlyRebalancer whenNotPaused { UP(UP_TOKEN).burnFrom(msg.sender, upAmount); upBorrowed -= upAmount <= upBorrowed ? upAmount : upBorrowed; nativeBorrowed -= msg.value <= nativeBorrowed ? msg.value : nativeBorrowed; emit Repay(msg.value, upAmount); } /// @notice Swaps UP token by native token function redeem(uint256 upAmount) public onlyRedeemer whenNotPaused { require(upAmount > 0, "UPController: AMOUNT_EQ_0"); uint256 redeemAmount = (getVirtualPrice() * upAmount) / 1e18; UP(UP_TOKEN).burnFrom(msg.sender, upAmount); (bool success, ) = msg.sender.call{value: redeemAmount}(""); require(success, "UPController: REDEEM_FAILED"); emit Redeem(upAmount, redeemAmount); } function pause() public onlyAdmin { _pause(); } function unpause() public onlyAdmin { _unpause(); } function withdrawFunds() public onlyAdmin returns (bool) { return _withdrawFunds(); } function withdrawFundsERC20(address tokenAddress) public onlyAdmin returns (bool) { return _withdrawFundsERC20(tokenAddress); } }
[{"inputs":[{"internalType":"address","name":"_UP","type":"address"},{"internalType":"address","name":"_fundsTarget","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newNativeBorrowed","type":"uint256"}],"name":"BorrowNative","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_upAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_redeemAmount","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_nativeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_upAmount","type":"uint256"}],"name":"Repay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newUpBorrowed","type":"uint256"}],"name":"SyntheticMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REBALANCER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REDEEMER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UP_TOKEN","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"actualTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_borrowAmount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"borrowNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_borrowAmount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"borrowUP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getNativeBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVirtualPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"sentValue","type":"uint256"}],"name":"getVirtualPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mintSyntheticUP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintUP","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"nativeBorrowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"upAmount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"upAmount","type":"uint256"}],"name":"repay","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upBorrowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawFundsERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600436106101a05760003560e01c806388a9d554116100ec578063d547741f1161008a578063dd58b00211610064578063dd58b0021461057f578063e25aa5fa146105a8578063fa12a370146105d3578063fb11613814610610576101a7565b8063d547741f14610502578063d657ae0c1461052b578063db006a7514610556576101a7565b8063a217fddf116100c6578063a217fddf14610455578063a4125eb714610480578063aba2f2d4146104bd578063aff1bebf146104d9576101a7565b806388a9d554146103c45780638a76f1fb146103ef57806391d1485414610418576101a7565b80633f4ba83a116101595780637809311711610133578063780931171461032c5780637ebcc528146103575780637fa46ab4146103825780638456cb59146103ad576101a7565b80633f4ba83a146102bf578063490b48f8146102d65780635c975abb14610301576101a7565b806301ffc9a7146101ac57806324600fc3146101e9578063248a9ca3146102145780632f2ff15d1461025157806336568abe1461027a578063371fd8e6146102a3576101a7565b366101a757005b600080fd5b3480156101b857600080fd5b506101d360048036038101906101ce9190612274565b61063b565b6040516101e091906127b6565b60405180910390f35b3480156101f557600080fd5b506101fe6106b5565b60405161020b91906127b6565b60405180910390f35b34801561022057600080fd5b5061023b60048036038101906102369190612207565b610710565b60405161024891906127d1565b60405180910390f35b34801561025d57600080fd5b5061027860048036038101906102739190612234565b61072f565b005b34801561028657600080fd5b506102a1600480360381019061029c9190612234565b610750565b005b6102bd60048036038101906102b891906122a1565b6107d3565b005b3480156102cb57600080fd5b506102d46109a7565b005b3480156102e257600080fd5b506102eb6109fd565b6040516102f891906127d1565b60405180910390f35b34801561030d57600080fd5b50610316610a21565b60405161032391906127b6565b60405180910390f35b34801561033857600080fd5b50610341610a38565b60405161034e919061273b565b60405180910390f35b34801561036357600080fd5b5061036c610a5e565b6040516103799190612a0e565b60405180910390f35b34801561038e57600080fd5b50610397610a64565b6040516103a491906127d1565b60405180910390f35b3480156103b957600080fd5b506103c2610a88565b005b3480156103d057600080fd5b506103d9610ade565b6040516103e69190612a0e565b60405180910390f35b3480156103fb57600080fd5b50610416600480360381019061041191906122fb565b610af3565b005b34801561042457600080fd5b5061043f600480360381019061043a9190612234565b610cae565b60405161044c91906127b6565b60405180910390f35b34801561046157600080fd5b5061046a610d18565b60405161047791906127d1565b60405180910390f35b34801561048c57600080fd5b506104a760048036038101906104a291906121ad565b610d1f565b6040516104b491906127b6565b60405180910390f35b6104d760048036038101906104d291906121ad565b610d7d565b005b3480156104e557600080fd5b5061050060048036038101906104fb91906122fb565b610f34565b005b34801561050e57600080fd5b5061052960048036038101906105249190612234565b61112f565b005b34801561053757600080fd5b50610540611150565b60405161054d9190612a0e565b60405180910390f35b34801561056257600080fd5b5061057d600480360381019061057891906122a1565b611204565b005b34801561058b57600080fd5b506105a660048036038101906105a191906122fb565b61149b565b005b3480156105b457600080fd5b506105bd61155a565b6040516105ca9190612a0e565b60405180910390f35b3480156105df57600080fd5b506105fa60048036038101906105f591906122a1565b6115a7565b6040516106079190612a0e565b60405180910390f35b34801561061c57600080fd5b50610625611607565b6040516106329190612a0e565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106ae57506106ad8261160d565b5b9050919050565b60006106c46000801b33610cae565b610703576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106fa9061282e565b60405180910390fd5b61070b611677565b905090565b6000806000838152602001908152602001600020600101549050919050565b61073882610710565b6107418161174d565b61074b8383611761565b505050565b610758611841565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bc906129ee565b60405180910390fd5b6107cf8282611849565b5050565b6107fd7fccc64574297998b6c3edf6078cc5e01268465ff116954e3af02ff3a70a730f4633610cae565b61083c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108339061286e565b60405180910390fd5b610844610a21565b15610884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087b906128ce565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc679033836040518363ffffffff1660e01b81526004016108e1929190612756565b600060405180830381600087803b1580156108fb57600080fd5b505af115801561090f573d6000803e3d6000fd5b5050505060045481111561092557600454610927565b805b600460008282546109389190612b70565b9250508190555060035434111561095157600354610953565b345b600360008282546109649190612b70565b925050819055507f552544cb36551120f07c66c5cd4b2987725a0c72198587f2ce796099bb66c58c348260405161099c929190612a29565b60405180910390a150565b6109b46000801b33610cae565b6109f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ea9061282e565b60405180910390fd5b6109fb61192a565b565b7fccc64574297998b6c3edf6078cc5e01268465ff116954e3af02ff3a70a730f4681565b6000600160149054906101000a900460ff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc81565b610a956000801b33610cae565b610ad4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acb9061282e565b60405180910390fd5b610adc6119cc565b565b600060035447610aee9190612a8f565b905090565b610b1d7fccc64574297998b6c3edf6078cc5e01268465ff116954e3af02ff3a70a730f4633610cae565b610b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b539061286e565b60405180910390fd5b610b64610a21565b15610ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9b906128ce565b60405180910390fd5b8160046000828254610bb69190612a8f565b92505081905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1982846040518363ffffffff1660e01b8152600401610c1a929190612756565b602060405180830381600087803b158015610c3457600080fd5b505af1158015610c48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6c91906121da565b507fecf648316a3c252cf4f1bbb71f9b0141c1767c5697683b543a60270f6b69971f3383600454604051610ca29392919061277f565b60405180910390a15050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b6000610d2e6000801b33610cae565b610d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d649061282e565b60405180910390fd5b610d7682611a6e565b9050919050565b610d85610a21565b15610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc906128ce565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4c906129ae565b60405180910390fd5b6000610e60346115a7565b670de0b6b3a764000034610e749190612b16565b610e7e9190612ae5565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401610edd929190612756565b602060405180830381600087803b158015610ef757600080fd5b505af1158015610f0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2f91906121da565b505050565b610f5e7fccc64574297998b6c3edf6078cc5e01268465ff116954e3af02ff3a70a730f4633610cae565b610f9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f949061286e565b60405180910390fd5b610fa5610a21565b15610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc906128ce565b60405180910390fd5b81471015611028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101f9061294e565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff168360405161104e906126d1565b60006040518083038185875af1925050503d806000811461108b576040519150601f19603f3d011682016040523d82523d6000602084013e611090565b606091505b5050905082600360008282546110a69190612a8f565b92505081905550806110ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e49061292e565b60405180910390fd5b7f272cea3bc56aaffeb2449f500cae633abb6c392881d7463668831bebb73f058582846003546040516111229392919061277f565b60405180910390a1505050565b61113882610710565b6111418161174d565b61114b8383611849565b505050565b6000600454600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111bd57600080fd5b505afa1580156111d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f591906122ce565b6111ff9190612b70565b905090565b61122e7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc33610cae565b61126d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112649061290e565b60405180910390fd5b611275610a21565b156112b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ac906128ce565b60405180910390fd5b600081116112f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ef906128ee565b60405180910390fd5b6000670de0b6b3a76400008261130c61155a565b6113169190612b16565b6113209190612ae5565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc679033846040518363ffffffff1660e01b815260040161137f929190612756565b600060405180830381600087803b15801561139957600080fd5b505af11580156113ad573d6000803e3d6000fd5b5050505060003373ffffffffffffffffffffffffffffffffffffffff16826040516113d7906126d1565b60006040518083038185875af1925050503d8060008114611414576040519150601f19603f3d011682016040523d82523d6000602084013e611419565b606091505b505090508061145d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611454906129ce565b60405180910390fd5b7fe3829d5463fae0f748d927f86f762044188c9ce53d91a394eb93e98354cc3092838360405161148e929190612a29565b60405180910390a1505050565b6114c57fccc64574297998b6c3edf6078cc5e01268465ff116954e3af02ff3a70a730f4633610cae565b611504576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fb9061286e565b60405180910390fd5b61150c610a21565b1561154c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611543906128ce565b60405180910390fd5b6115568282610af3565b5050565b600080611565610ade565b141561157457600090506115a4565b61157c611150565b670de0b6b3a764000061158d610ade565b6115979190612b16565b6115a19190612ae5565b90505b90565b6000806115b2610ade565b14156115c15760009050611602565b6000826115cc610ade565b6115d69190612b70565b90506115e0611150565b670de0b6b3a7640000826115f49190612b16565b6115fe9190612ae5565b9150505b919050565b60045481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516116c0906126d1565b60006040518083038185875af1925050503d80600081146116fd576040519150601f19603f3d011682016040523d82523d6000602084013e611702565b606091505b5050905080611746576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173d906128ae565b60405180910390fd5b8091505090565b61175e81611759611841565b611b53565b50565b61176b8282610cae565b61183d57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117e2611841565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6118538282610cae565b1561192657600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118cb611841565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611932610a21565b611971576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119689061284e565b60405180910390fd5b6000600160146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6119b5611841565b6040516119c29190612720565b60405180910390a1565b6119d4610a21565b15611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0b906128ce565b60405180910390fd5b60018060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a57611841565b604051611a649190612720565b60405180910390a1565b600080829050611b49600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611ad39190612720565b60206040518083038186803b158015611aeb57600080fd5b505afa158015611aff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b2391906122ce565b8373ffffffffffffffffffffffffffffffffffffffff16611bf09092919063ffffffff16565b6001915050919050565b611b5d8282610cae565b611bec57611b828173ffffffffffffffffffffffffffffffffffffffff166014611c76565b611b908360001c6020611c76565b604051602001611ba19291906126e6565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be391906127ec565b60405180910390fd5b5050565b611c718363a9059cbb60e01b8484604051602401611c0f929190612756565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611eb2565b505050565b606060006002836002611c899190612b16565b611c939190612a8f565b67ffffffffffffffff811115611cac57611cab612d1e565b5b6040519080825280601f01601f191660200182016040528015611cde5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611d1657611d15612cef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611d7a57611d79612cef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611dba9190612b16565b611dc49190612a8f565b90505b6001811115611e64577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611e0657611e05612cef565b5b1a60f81b828281518110611e1d57611e1c612cef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611e5d90612c67565b9050611dc7565b5060008414611ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9f9061280e565b60405180910390fd5b8091505092915050565b6000611f14826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611f799092919063ffffffff16565b9050600081511115611f745780806020019051810190611f3491906121da565b611f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6a9061298e565b60405180910390fd5b5b505050565b6060611f888484600085611f91565b90509392505050565b606082471015611fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fcd9061288e565b60405180910390fd5b611fdf856120a5565b61201e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120159061296e565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161204791906126ba565b60006040518083038185875af1925050503d8060008114612084576040519150601f19603f3d011682016040523d82523d6000602084013e612089565b606091505b50915091506120998282866120c8565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606083156120d857829050612128565b6000835111156120eb5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211f91906127ec565b60405180910390fd5b9392505050565b60008135905061213e816130e0565b92915050565b600081519050612153816130f7565b92915050565b6000813590506121688161310e565b92915050565b60008135905061217d81613125565b92915050565b6000813590506121928161313c565b92915050565b6000815190506121a78161313c565b92915050565b6000602082840312156121c3576121c2612d4d565b5b60006121d18482850161212f565b91505092915050565b6000602082840312156121f0576121ef612d4d565b5b60006121fe84828501612144565b91505092915050565b60006020828403121561221d5761221c612d4d565b5b600061222b84828501612159565b91505092915050565b6000806040838503121561224b5761224a612d4d565b5b600061225985828601612159565b925050602061226a8582860161212f565b9150509250929050565b60006020828403121561228a57612289612d4d565b5b60006122988482850161216e565b91505092915050565b6000602082840312156122b7576122b6612d4d565b5b60006122c584828501612183565b91505092915050565b6000602082840312156122e4576122e3612d4d565b5b60006122f284828501612198565b91505092915050565b6000806040838503121561231257612311612d4d565b5b600061232085828601612183565b92505060206123318582860161212f565b9150509250929050565b61234481612bb6565b82525050565b61235381612ba4565b82525050565b61236281612bc8565b82525050565b61237181612bd4565b82525050565b600061238282612a52565b61238c8185612a68565b935061239c818560208601612c34565b80840191505092915050565b60006123b382612a5d565b6123bd8185612a73565b93506123cd818560208601612c34565b6123d681612d52565b840191505092915050565b60006123ec82612a5d565b6123f68185612a84565b9350612406818560208601612c34565b80840191505092915050565b600061241f602083612a73565b915061242a82612d63565b602082019050919050565b6000612442601883612a73565b915061244d82612d8c565b602082019050919050565b6000612465601483612a73565b915061247082612db5565b602082019050919050565b6000612488601d83612a73565b915061249382612dde565b602082019050919050565b60006124ab602683612a73565b91506124b682612e07565b604082019050919050565b60006124ce601a83612a73565b91506124d982612e56565b602082019050919050565b60006124f1601083612a73565b91506124fc82612e7f565b602082019050919050565b6000612514601983612a73565b915061251f82612ea8565b602082019050919050565b6000612537601b83612a73565b915061254282612ed1565b602082019050919050565b600061255a600083612a68565b915061256582612efa565b600082019050919050565b600061257d602283612a73565b915061258882612efd565b604082019050919050565b60006125a0602083612a73565b91506125ab82612f4c565b602082019050919050565b60006125c3601d83612a73565b91506125ce82612f75565b602082019050919050565b60006125e6601783612a84565b91506125f182612f9e565b601782019050919050565b6000612609602a83612a73565b915061261482612fc7565b604082019050919050565b600061262c601d83612a73565b915061263782613016565b602082019050919050565b600061264f601b83612a73565b915061265a8261303f565b602082019050919050565b6000612672601183612a84565b915061267d82613068565b601182019050919050565b6000612695602f83612a73565b91506126a082613091565b604082019050919050565b6126b481612c2a565b82525050565b60006126c68284612377565b915081905092915050565b60006126dc8261254d565b9150819050919050565b60006126f1826125d9565b91506126fd82856123e1565b915061270882612665565b915061271482846123e1565b91508190509392505050565b6000602082019050612735600083018461234a565b92915050565b6000602082019050612750600083018461233b565b92915050565b600060408201905061276b600083018561234a565b61277860208301846126ab565b9392505050565b6000606082019050612794600083018661234a565b6127a160208301856126ab565b6127ae60408301846126ab565b949350505050565b60006020820190506127cb6000830184612359565b92915050565b60006020820190506127e66000830184612368565b92915050565b6000602082019050818103600083015261280681846123a8565b905092915050565b6000602082019050818103600083015261282781612412565b9050919050565b6000602082019050818103600083015261284781612435565b9050919050565b6000602082019050818103600083015261286781612458565b9050919050565b600060208201905081810360008301526128878161247b565b9050919050565b600060208201905081810360008301526128a78161249e565b9050919050565b600060208201905081810360008301526128c7816124c1565b9050919050565b600060208201905081810360008301526128e7816124e4565b9050919050565b6000602082019050818103600083015261290781612507565b9050919050565b600060208201905081810360008301526129278161252a565b9050919050565b6000602082019050818103600083015261294781612570565b9050919050565b6000602082019050818103600083015261296781612593565b9050919050565b60006020820190508181036000830152612987816125b6565b9050919050565b600060208201905081810360008301526129a7816125fc565b9050919050565b600060208201905081810360008301526129c78161261f565b9050919050565b600060208201905081810360008301526129e781612642565b9050919050565b60006020820190508181036000830152612a0781612688565b9050919050565b6000602082019050612a2360008301846126ab565b92915050565b6000604082019050612a3e60008301856126ab565b612a4b60208301846126ab565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612a9a82612c2a565b9150612aa583612c2a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612ada57612ad9612c91565b5b828201905092915050565b6000612af082612c2a565b9150612afb83612c2a565b925082612b0b57612b0a612cc0565b5b828204905092915050565b6000612b2182612c2a565b9150612b2c83612c2a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612b6557612b64612c91565b5b828202905092915050565b6000612b7b82612c2a565b9150612b8683612c2a565b925082821015612b9957612b98612c91565b5b828203905092915050565b6000612baf82612c0a565b9050919050565b6000612bc182612c0a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015612c52578082015181840152602081019050612c37565b83811115612c61576000848401525b50505050565b6000612c7282612c2a565b91506000821415612c8657612c85612c91565b5b600182039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f5550436f6e74726f6c6c65723a204f4e4c595f41444d494e0000000000000000600082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5550436f6e74726f6c6c65723a204f4e4c595f524542414c414e434552000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f536166653a204661696c656420746f2073656e64204574686572000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f5550436f6e74726f6c6c65723a20414d4f554e545f45515f3000000000000000600082015250565b7f5550436f6e74726f6c6c65723a204f4e4c595f52454445454d45520000000000600082015250565b50565b7f5550436f6e74726f6c6c65723a20424f52524f575f4e41544956455f4641494c60008201527f4544000000000000000000000000000000000000000000000000000000000000602082015250565b7f5550436f6e74726f6c6c65723a204e4f545f454e4f5547485f42414c414e4345600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5550436f6e74726f6c6c65723a204e4f4e5f55505f434f4e5452414354000000600082015250565b7f5550436f6e74726f6c6c65723a2052454445454d5f4641494c45440000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6130e981612ba4565b81146130f457600080fd5b50565b61310081612bc8565b811461310b57600080fd5b50565b61311781612bd4565b811461312257600080fd5b50565b61312e81612bde565b811461313957600080fd5b50565b61314581612c2a565b811461315057600080fd5b5056fea2646970667358221220207acd2bda011eef285459c9e4f2f17f239c1f7dde16a041ac188d397913ae9864736f6c63430008070033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for
interesting conversations.