Contract Overview
Latest 2 from a total of 2 transactions
Txn Hash |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|
d8922dcd25d74d9aeeb3cb56eee7ace687c83e7b814ce4233cd4e2c89028187b | 20430960 | one year ago | io17m73lae8a34x0z34hxf7shh722dw5aqrz5ylq3 | IN | Contract: UPMintDarbi | 0 IOTX | 0.013817 | |
dc6efe4526e991677b1574424c885a92d14f65ab6178a247ec4d3c4f009f8b1a | 20430662 | one year ago | io17m73lae8a34x0z34hxf7shh722dw5aqrz5ylq3 | IN | Contract: UPMintDarbi | 0 IOTX | 0.041486 |
Contract Name:
UPMintDarbi
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("UPiotx", "UPiotx") { _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); } } // File: contracts/Darbi/UPMintDarbi.sol pragma solidity ^0.8.4; /// @title UP Darbi Mint /// @author Daniel Blanco & A Fistful of Stray Cat Hair /// @notice This contract allows to DARBi to mint UP at virtual price. contract UPMintDarbi is AccessControl, Pausable, Safe { bytes32 public constant DARBI_ROLE = keccak256("DARBI_ROLE"); address payable public UP_TOKEN = payable(address(0)); address payable public UP_CONTROLLER = payable(address(0)); modifier onlyDarbi() { require(hasRole(DARBI_ROLE, msg.sender), "UPMintDarbi: ONLY_DARBI"); _; } modifier onlyAdmin() { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "UPMintDarbi: ONLY_ADMIN"); _; } event DarbiMint(address indexed _from, uint256 _amount, uint256 _price, uint256 _value); event UpdateController(address _upController); constructor( address _UP, address _UPController, address _fundsTarget ) Safe(_fundsTarget) { require(_UP != address(0), "UPMintDarbi: Invalid UP address"); UP_TOKEN = payable(_UP); UP_CONTROLLER = payable(_UPController); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } /// @notice Payable function that mints UP at the mint rate, deposits the native tokens to the UP Controller, Sends UP to the Msg.sender function mintUP() public payable whenNotPaused onlyDarbi { require(msg.value > 0, "UPMintDarbi: INVALID_PAYABLE_AMOUNT"); uint256 currentPrice = UPController(UP_CONTROLLER).getVirtualPrice(); if (currentPrice == 0) return; uint256 mintAmount = (msg.value * 1e18) / currentPrice; UP(UP_TOKEN).mint(msg.sender, mintAmount); (bool successTransfer, ) = UP_CONTROLLER.call{value: msg.value}(""); /// GO BACK require(successTransfer, "UPMintDarbi: FAIL_SENDING_NATIVE"); emit DarbiMint(msg.sender, mintAmount, currentPrice, msg.value); } ///@notice Permissioned function to update the address of the UP Controller ///@param _upController - the address of the new UP Controller function updateController(address _upController) public onlyAdmin { require(_upController != address(0), "UPMintDarbi: INVALID_ADDRESS"); UP_CONTROLLER = payable(_upController); emit UpdateController(_upController); } ///@notice Grant DARBi role ///@param _darbiAddr - a new DARBi address function grantDarbiRole(address _darbiAddr) public onlyAdmin { require(_darbiAddr != address(0), "UPMintDarbi: INVALID_ADDRESS"); grantRole(DARBI_ROLE, _darbiAddr); } ///@notice Revoke DARBi role ///@param _darbiAddr - DARBi address to revoke function revokeDarbiRole(address _darbiAddr) public onlyAdmin { require(_darbiAddr != address(0), "UPMintDarbi: INVALID_ADDRESS"); revokeRole(DARBI_ROLE, _darbiAddr); } ///@notice Permissioned function to withdraw any native coins accidentally deposited to the Darbi Mint contract. function withdrawFunds() public onlyAdmin returns (bool) { return _withdrawFunds(); } ///@notice Permissioned function to withdraw any tokens accidentally deposited to the Darbi Mint contract. function withdrawFundsERC20(address tokenAddress) public onlyAdmin returns (bool) { return _withdrawFundsERC20(tokenAddress); } /// @notice Permissioned function to pause UPaddress Controller function pause() public onlyAdmin { _pause(); } /// @notice Permissioned function to unpause UPaddress Controller function unpause() public onlyAdmin { _unpause(); } fallback() external payable {} receive() external payable {} }
[{"inputs":[{"internalType":"address","name":"_UP","type":"address"},{"internalType":"address","name":"_UPController","type":"address"},{"internalType":"address","name":"_fundsTarget","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"DarbiMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_upController","type":"address"}],"name":"UpdateController","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DARBI_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UP_CONTROLLER","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UP_TOKEN","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_darbiAddr","type":"address"}],"name":"grantDarbiRole","outputs":[],"stateMutability":"nonpayable","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":[],"name":"mintUP","outputs":[],"stateMutability":"payable","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_darbiAddr","type":"address"}],"name":"revokeDarbiRole","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"_upController","type":"address"}],"name":"updateController","outputs":[],"stateMutability":"nonpayable","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
6080604052600436106101185760003560e01c80635c975abb116100a0578063978e28a811610064578063978e28a81461037f578063a217fddf14610389578063a4125eb7146103b4578063d547741f146103f1578063dfc7ada41461041a5761011f565b80635c975abb146102aa5780635df39373146102d557806378093117146103005780638456cb591461032b57806391d14854146103425761011f565b8063248a9ca3116100e7578063248a9ca3146101db5780632f2ff15d1461021857806336568abe1461024157806336a64f571461026a5780633f4ba83a146102935761011f565b806301ffc9a71461012157806306cb5b661461015e57806308800ccb1461018757806324600fc3146101b05761011f565b3661011f57005b005b34801561012d57600080fd5b5061014860048036038101906101439190611af7565b610445565b6040516101559190611f2c565b60405180910390f35b34801561016a57600080fd5b5061018560048036038101906101809190611a30565b6104bf565b005b34801561019357600080fd5b506101ae60048036038101906101a99190611a30565b6105f6565b005b3480156101bc57600080fd5b506101c56106df565b6040516101d29190611f2c565b60405180910390f35b3480156101e757600080fd5b5061020260048036038101906101fd9190611a8a565b61073a565b60405161020f9190611f47565b60405180910390f35b34801561022457600080fd5b5061023f600480360381019061023a9190611ab7565b610759565b005b34801561024d57600080fd5b5061026860048036038101906102639190611ab7565b61077a565b005b34801561027657600080fd5b50610291600480360381019061028c9190611a30565b6107fd565b005b34801561029f57600080fd5b506102a86108e6565b005b3480156102b657600080fd5b506102bf61093c565b6040516102cc9190611f2c565b60405180910390f35b3480156102e157600080fd5b506102ea610953565b6040516102f79190611ee8565b60405180910390f35b34801561030c57600080fd5b50610315610979565b6040516103229190611ee8565b60405180910390f35b34801561033757600080fd5b5061034061099f565b005b34801561034e57600080fd5b5061036960048036038101906103649190611ab7565b6109f5565b6040516103769190611f2c565b60405180910390f35b610387610a5f565b005b34801561039557600080fd5b5061039e610dff565b6040516103ab9190611f47565b60405180910390f35b3480156103c057600080fd5b506103db60048036038101906103d69190611a30565b610e06565b6040516103e89190611f2c565b60405180910390f35b3480156103fd57600080fd5b5061041860048036038101906104139190611ab7565b610e64565b005b34801561042657600080fd5b5061042f610e85565b60405161043c9190611f47565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104b857506104b782610ea9565b5b9050919050565b6104cc6000801b336109f5565b61050b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050290612024565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561057b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057290611fc4565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ffce593255b7647c9b730cf207aed89b0761a9c7ff374009a869068dffa08fb2a816040516105eb9190611ecd565b60405180910390a150565b6106036000801b336109f5565b610642576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063990612024565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156106b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a990611fc4565b60405180910390fd5b6106dc7fcf1c5acacaabe9a0e5c78781cf3cf2bcd6ad29ba24226757b37992e46193262c82610759565b50565b60006106ee6000801b336109f5565b61072d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072490612024565b60405180910390fd5b610735610f13565b905090565b6000806000838152602001908152602001600020600101549050919050565b6107628261073a565b61076b81610fe7565b6107758383610ffb565b505050565b6107826110db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e690612104565b60405180910390fd5b6107f982826110e3565b5050565b61080a6000801b336109f5565b610849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084090612024565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156108b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b090611fc4565b60405180910390fd5b6108e37fcf1c5acacaabe9a0e5c78781cf3cf2bcd6ad29ba24226757b37992e46193262c82610e64565b50565b6108f36000801b336109f5565b610932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092990612024565b60405180910390fd5b61093a6111c4565b565b6000600160009054906101000a900460ff16905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109ac6000801b336109f5565b6109eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e290612024565b60405180910390fd5b6109f3611266565b565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610a6761093c565b15610aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9e90612064565b60405180910390fd5b610ad17fcf1c5acacaabe9a0e5c78781cf3cf2bcd6ad29ba24226757b37992e46193262c336109f5565b610b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b07906120a4565b60405180910390fd5b60003411610b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4a90612044565b60405180910390fd5b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e25aa5fa6040518163ffffffff1660e01b815260040160206040518083038186803b158015610bbd57600080fd5b505afa158015610bd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf59190611b24565b90506000811415610c065750610dfd565b600081670de0b6b3a764000034610c1d919061221f565b610c2791906121ee565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b8152600401610c86929190611f03565b602060405180830381600087803b158015610ca057600080fd5b505af1158015610cb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd89190611a5d565b506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1634604051610d2190611e7e565b60006040518083038185875af1925050503d8060008114610d5e576040519150601f19603f3d011682016040523d82523d6000602084013e610d63565b606091505b5050905080610da7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9e906120e4565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f36da7e05163d6a6a3b8881b2c24f056a9f6b39b75527404686feb3bc80396c52838534604051610df193929190612124565b60405180910390a25050505b565b6000801b81565b6000610e156000801b336109f5565b610e54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4b90612024565b60405180910390fd5b610e5d82611308565b9050919050565b610e6d8261073a565b610e7681610fe7565b610e8083836110e3565b505050565b7fcf1c5acacaabe9a0e5c78781cf3cf2bcd6ad29ba24226757b37992e46193262c81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610f5a90611e7e565b60006040518083038185875af1925050503d8060008114610f97576040519150601f19603f3d011682016040523d82523d6000602084013e610f9c565b606091505b5050905080610fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd790612004565b60405180910390fd5b8091505090565b610ff881610ff36110db565b6113eb565b50565b61100582826109f5565b6110d757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061107c6110db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6110ed82826109f5565b156111c057600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506111656110db565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6111cc61093c565b61120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120290611fa4565b60405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61124f6110db565b60405161125c9190611ecd565b60405180910390a1565b61126e61093c565b156112ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a590612064565b60405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112f16110db565b6040516112fe9190611ecd565b60405180910390a1565b6000808290506113e160018054906101000a900473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161136b9190611ecd565b60206040518083038186803b15801561138357600080fd5b505afa158015611397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bb9190611b24565b8373ffffffffffffffffffffffffffffffffffffffff166114889092919063ffffffff16565b6001915050919050565b6113f582826109f5565b6114845761141a8173ffffffffffffffffffffffffffffffffffffffff16601461150e565b6114288360001c602061150e565b604051602001611439929190611e93565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147b9190611f62565b60405180910390fd5b5050565b6115098363a9059cbb60e01b84846040516024016114a7929190611f03565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061174a565b505050565b606060006002836002611521919061221f565b61152b9190612198565b67ffffffffffffffff811115611544576115436123f3565b5b6040519080825280601f01601f1916602001820160405280156115765781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106115ae576115ad6123c4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611612576116116123c4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611652919061221f565b61165c9190612198565b90505b60018111156116fc577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061169e5761169d6123c4565b5b1a60f81b8282815181106116b5576116b46123c4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806116f59061233c565b905061165f565b5060008414611740576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173790611f84565b60405180910390fd5b8091505092915050565b60006117ac826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166118119092919063ffffffff16565b905060008151111561180c57808060200190518101906117cc9190611a5d565b61180b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611802906120c4565b60405180910390fd5b5b505050565b60606118208484600085611829565b90509392505050565b60608247101561186e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186590611fe4565b60405180910390fd5b6118778561193d565b6118b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ad90612084565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516118df9190611e67565b60006040518083038185875af1925050503d806000811461191c576040519150601f19603f3d011682016040523d82523d6000602084013e611921565b606091505b5091509150611931828286611960565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315611970578290506119c0565b6000835111156119835782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b79190611f62565b60405180910390fd5b9392505050565b6000813590506119d68161273a565b92915050565b6000815190506119eb81612751565b92915050565b600081359050611a0081612768565b92915050565b600081359050611a158161277f565b92915050565b600081519050611a2a81612796565b92915050565b600060208284031215611a4657611a45612422565b5b6000611a54848285016119c7565b91505092915050565b600060208284031215611a7357611a72612422565b5b6000611a81848285016119dc565b91505092915050565b600060208284031215611aa057611a9f612422565b5b6000611aae848285016119f1565b91505092915050565b60008060408385031215611ace57611acd612422565b5b6000611adc858286016119f1565b9250506020611aed858286016119c7565b9150509250929050565b600060208284031215611b0d57611b0c612422565b5b6000611b1b84828501611a06565b91505092915050565b600060208284031215611b3a57611b39612422565b5b6000611b4884828501611a1b565b91505092915050565b611b5a8161228b565b82525050565b611b6981612279565b82525050565b611b788161229d565b82525050565b611b87816122a9565b82525050565b6000611b988261215b565b611ba28185612171565b9350611bb2818560208601612309565b80840191505092915050565b6000611bc982612166565b611bd3818561217c565b9350611be3818560208601612309565b611bec81612427565b840191505092915050565b6000611c0282612166565b611c0c818561218d565b9350611c1c818560208601612309565b80840191505092915050565b6000611c3560208361217c565b9150611c4082612438565b602082019050919050565b6000611c5860148361217c565b9150611c6382612461565b602082019050919050565b6000611c7b601c8361217c565b9150611c868261248a565b602082019050919050565b6000611c9e60268361217c565b9150611ca9826124b3565b604082019050919050565b6000611cc1601a8361217c565b9150611ccc82612502565b602082019050919050565b6000611ce460178361217c565b9150611cef8261252b565b602082019050919050565b6000611d0760238361217c565b9150611d1282612554565b604082019050919050565b6000611d2a60108361217c565b9150611d35826125a3565b602082019050919050565b6000611d4d600083612171565b9150611d58826125cc565b600082019050919050565b6000611d70601d8361217c565b9150611d7b826125cf565b602082019050919050565b6000611d9360178361218d565b9150611d9e826125f8565b601782019050919050565b6000611db660178361217c565b9150611dc182612621565b602082019050919050565b6000611dd9602a8361217c565b9150611de48261264a565b604082019050919050565b6000611dfc60208361217c565b9150611e0782612699565b602082019050919050565b6000611e1f60118361218d565b9150611e2a826126c2565b601182019050919050565b6000611e42602f8361217c565b9150611e4d826126eb565b604082019050919050565b611e61816122ff565b82525050565b6000611e738284611b8d565b915081905092915050565b6000611e8982611d40565b9150819050919050565b6000611e9e82611d86565b9150611eaa8285611bf7565b9150611eb582611e12565b9150611ec18284611bf7565b91508190509392505050565b6000602082019050611ee26000830184611b60565b92915050565b6000602082019050611efd6000830184611b51565b92915050565b6000604082019050611f186000830185611b60565b611f256020830184611e58565b9392505050565b6000602082019050611f416000830184611b6f565b92915050565b6000602082019050611f5c6000830184611b7e565b92915050565b60006020820190508181036000830152611f7c8184611bbe565b905092915050565b60006020820190508181036000830152611f9d81611c28565b9050919050565b60006020820190508181036000830152611fbd81611c4b565b9050919050565b60006020820190508181036000830152611fdd81611c6e565b9050919050565b60006020820190508181036000830152611ffd81611c91565b9050919050565b6000602082019050818103600083015261201d81611cb4565b9050919050565b6000602082019050818103600083015261203d81611cd7565b9050919050565b6000602082019050818103600083015261205d81611cfa565b9050919050565b6000602082019050818103600083015261207d81611d1d565b9050919050565b6000602082019050818103600083015261209d81611d63565b9050919050565b600060208201905081810360008301526120bd81611da9565b9050919050565b600060208201905081810360008301526120dd81611dcc565b9050919050565b600060208201905081810360008301526120fd81611def565b9050919050565b6000602082019050818103600083015261211d81611e35565b9050919050565b60006060820190506121396000830186611e58565b6121466020830185611e58565b6121536040830184611e58565b949350505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006121a3826122ff565b91506121ae836122ff565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156121e3576121e2612366565b5b828201905092915050565b60006121f9826122ff565b9150612204836122ff565b92508261221457612213612395565b5b828204905092915050565b600061222a826122ff565b9150612235836122ff565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561226e5761226d612366565b5b828202905092915050565b6000612284826122df565b9050919050565b6000612296826122df565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101561232757808201518184015260208101905061230c565b83811115612336576000848401525b50505050565b6000612347826122ff565b9150600082141561235b5761235a612366565b5b600182039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f55504d696e7444617262693a20494e56414c49445f4144445245535300000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f536166653a204661696c656420746f2073656e64204574686572000000000000600082015250565b7f55504d696e7444617262693a204f4e4c595f41444d494e000000000000000000600082015250565b7f55504d696e7444617262693a20494e56414c49445f50415941424c455f414d4f60008201527f554e540000000000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f55504d696e7444617262693a204f4e4c595f4441524249000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f55504d696e7444617262693a204641494c5f53454e44494e475f4e4154495645600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61274381612279565b811461274e57600080fd5b50565b61275a8161229d565b811461276557600080fd5b50565b612771816122a9565b811461277c57600080fd5b50565b612788816122b3565b811461279357600080fd5b50565b61279f816122ff565b81146127aa57600080fd5b5056fea2646970667358221220a69468a2414772497301cd859c75c197ec4955bc2f6fcdcccee94f6d56481e6164736f6c63430008070033
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.