Address Details
contract
0xE62A1303EB36E7A9Cf3c5f6eFB988BAbC15d8CBF
- Contract Name
- Lending
- Creator
- 0x5dada9–882da4 at 0x7fc1ef–915fe6
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- Fetching transactions...
- Transfers
- Fetching transfers...
- Gas Used
- Fetching gas used...
- Last Balance Update
- 10677794
Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- Lending
- Optimization enabled
- true
- Compiler version
- v0.8.10+commit.fc410830
- Optimization runs
- 200
- EVM Version
- london
- Verified at
- 2022-08-19T06:11:31.011518Z
project:/contracts/Lending.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.8.7 <0.9.0; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC721Receiver.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./AssetToken.sol"; import "./Utils.sol"; contract Lending is Ownable, IERC721Receiver, Utils { address[] secureAddresses; uint256 public maxAmountPerBorrower; uint256 public minAmountPerBorrower; uint256 public maxDueDays; address public agentAddress; address public stableCoinAddress; address public assetTokenAddress; mapping(string => uint256) loanAmountPerBorrower; mapping(uint256 => uint256) loanAmountPerId; uint256[] public pendingIds; uint256[] public paidIds; uint256 public blockedValue; constructor( uint256 _minAmountPerBorrower, uint256 _maxAmountPerBorrower, uint256 _maxDueDays, address _agentAddress, address _stableCoinAddress, address _assetTokenAddress ) { minAmountPerBorrower = _minAmountPerBorrower; maxAmountPerBorrower = _maxAmountPerBorrower; maxDueDays = _maxDueDays; agentAddress = _agentAddress; stableCoinAddress = _stableCoinAddress; assetTokenAddress = _assetTokenAddress; } function blockValue(uint256 _amount) public addressInAddresses(msg.sender, secureAddresses) { blockedValue = blockedValue + _amount; } function unblockValue(uint256 _amount) public addressInAddresses(msg.sender, secureAddresses) { blockedValue = blockedValue - _amount; } function transfer(address recipient, uint256 amount) public addressInAddresses(msg.sender, secureAddresses) { IERC20(stableCoinAddress).transfer(recipient, amount); } function addSecureAddress(address _secureAddress) public onlyOwner { secureAddresses.push(_secureAddress); } function paybackLoan(uint256 _tokenId, uint256 _amountToPay) public { AssetToken tokenContract = token(); ( uint256 assetAmount, ,,,,, ) = tokenContract.tokenInfo(_tokenId); require(_amountToPay >= assetAmount); IERC20(stableCoinAddress).transferFrom(msg.sender, address(this), _amountToPay); tokenContract.markTokenAsPaid(_tokenId); removeTokenIdFromPending(_tokenId); } function removeTokenIdFromPending(uint256 _tokenId) internal { uint256 index = 0; for (uint256 i = 0; i < pendingIds.length; i++) { if (pendingIds[i] == _tokenId) { index = i; } } pendingIds[index] = pendingIds[pendingIds.length - 1]; pendingIds.pop(); paidIds.push(_tokenId); } function token() public view returns(AssetToken) { return AssetToken(assetTokenAddress); } function minimumDueDate() public view returns(uint256) { return block.timestamp + 86400; } function currentTimestamp() public view returns(uint256) { } function submitLoan(uint256 _tokenId, uint256 loanValue) public onlyAddress(agentAddress) { AssetToken tokenContract = token(); ( ,uint256 dueDate, address borrowerAddress,,, string memory documentNumber, AssetToken.States state ) = tokenContract.tokenInfo(_tokenId); require(tokenContract.ownerOf(_tokenId) == msg.sender, "Owner of token is invalid."); require(loanValue <= availableAmountToLoanForBorrower(documentNumber), "Maximum amount reached"); require(loanValue >= minAmountPerBorrower, "Minimum amount not reached"); require(loanValue <= availableAmountToWithdrawal(), "Not enough funds."); require(dueDate <= (block.timestamp + maxDueDays), "Due day is higher than allowed"); require(dueDate >= (block.timestamp + 86400), "Due day is lower than allowed"); // at least one day require(state == AssetToken.States.pending, "State must be pending."); tokenContract.sendToLending(_tokenId); IERC20(stableCoinAddress).transfer(borrowerAddress, loanValue); loanAmountPerBorrower[documentNumber] = loanAmountPerBorrower[documentNumber] + loanValue; pendingIds.push(_tokenId); loanAmountPerId[_tokenId] = loanValue; } function availableAmountToLoanForBorrower(string memory _documentNumber) internal view returns(uint256) { return maxAmountPerBorrower - loanAmountPerBorrower[_documentNumber]; } function availableAmountToWithdrawal() public view returns(uint256) { return stableCoinBalance() - blockedValue; } function nonOverdueTotalValue() public view returns (uint256) { AssetToken tokenContract = token(); uint256 nonOverdueAmount = 0; for (uint256 p = 0; p < pendingIds.length; p++) { (,uint256 dueDate,,,,,) = tokenContract.tokenInfo(pendingIds[p]); if(dueDate >= block.timestamp) { nonOverdueAmount += loanAmountPerId[pendingIds[p]]; } } return nonOverdueAmount; } function monetaryWorth() public view returns (uint256) { return nonOverdueTotalValue() + stableCoinBalance() - blockedValue; } function stableCoinBalance() internal view returns(uint256) { return IERC20(stableCoinAddress).balanceOf(address(this)); } function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
/_openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
/_openzeppelin/contracts/interfaces/IERC20.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
/_openzeppelin/contracts/interfaces/IERC721Receiver.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Receiver.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721Receiver.sol";
/_openzeppelin/contracts/security/Pausable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev 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()); } }
/_openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @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); }
/_openzeppelin/contracts/token/ERC721/ERC721.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` 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 tokenId ) 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. * - `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 tokenId ) internal virtual {} }
/_openzeppelin/contracts/token/ERC721/IERC721.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
/_openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
/_openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
/_openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
/_openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT // 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); } } } }
/_openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
/_openzeppelin/contracts/utils/Counters.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
/_openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT // 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); } }
/_openzeppelin/contracts/utils/introspection/ERC165.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @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; } }
/_openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT // 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); }
/project_/contracts/AssetToken.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.8.7 <0.9.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./BaseNft.sol"; import "./Utils.sol"; contract AssetToken is BaseNft, Utils, Ownable { enum States {pending, paid} struct Asset { uint256 amount; uint256 dueDate; address borrowerAddress; address emitter; address lendingAddress; string documentNumber; States state; } mapping(uint256 => Asset) public tokenInfo; address[] public allowed; address public agentAddress; constructor(string memory tokenName, string memory tokenSymbol) BaseNft(tokenName, tokenSymbol) {} function addAllowedAddress(address _allowedAddress) public onlyOwner { allowed.push(_allowedAddress); } function markTokenAsPaid(uint256 _tokenId) public { require(tokenInfo[_tokenId].state == States.pending, "Token must be pending."); tokenInfo[_tokenId].state = States.paid; } function sendToLending(uint256 _tokenId) public { transferFrom(ownerOf(_tokenId), msg.sender, _tokenId); tokenInfo[_tokenId].lendingAddress = msg.sender; } function tokenizeAsset(uint256 _amount, uint256 _dueDate, address _borrowerAddress, string memory _documentNumber) public addressInAddresses(msg.sender, allowed) returns (uint256) { uint256 id = _safeMintFor(msg.sender); tokenInfo[id] = Asset(_amount, _dueDate, _borrowerAddress, msg.sender, address(0), _documentNumber, States.pending); return id; } }
/project_/contracts/BaseNft.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.8.7 <0.9.0; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; contract BaseNft is ERC721Pausable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; constructor(string memory tokenName, string memory tokenSymbol) ERC721(tokenName, tokenSymbol) {} function _safeMintFor(address ownerAddress) public returns (uint256) { _tokenIds.increment(); uint256 currentId = _tokenIds.current(); _safeMint(ownerAddress, currentId); return currentId; } }
/project_/contracts/Utils.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.8.7 <0.9.0; contract Utils { function inDec(uint256 value, uint8 decimals) internal pure returns(uint256) { return value * 10**decimals; } modifier onlyAddress(address agentAddress) { require(msg.sender == agentAddress, "Only the agent can call this function."); _; } modifier addressInAddresses(address _address, address[] memory _addresses) { bool isInArray = false; for (uint256 i = 0; i < _addresses.length; i++) { if(_addresses[i] == _address) { isInArray = true; } } require(isInArray, "Only the agent can call this function."); _; } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"uint256","name":"_minAmountPerBorrower","internalType":"uint256"},{"type":"uint256","name":"_maxAmountPerBorrower","internalType":"uint256"},{"type":"uint256","name":"_maxDueDays","internalType":"uint256"},{"type":"address","name":"_agentAddress","internalType":"address"},{"type":"address","name":"_stableCoinAddress","internalType":"address"},{"type":"address","name":"_assetTokenAddress","internalType":"address"}]},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addSecureAddress","inputs":[{"type":"address","name":"_secureAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"agentAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"assetTokenAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"availableAmountToWithdrawal","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"blockValue","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"blockedValue","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"currentTimestamp","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxAmountPerBorrower","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxDueDays","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minAmountPerBorrower","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minimumDueDate","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"monetaryWorth","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonOverdueTotalValue","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bytes4","name":"","internalType":"bytes4"}],"name":"onERC721Received","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"bytes","name":"","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"paidIds","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"paybackLoan","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"},{"type":"uint256","name":"_amountToPay","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingIds","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"stableCoinAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"submitLoan","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"},{"type":"uint256","name":"loanValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract AssetToken"}],"name":"token","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unblockValue","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b50604051620017b1380380620017b1833981016040819052620000349162000101565b6200003f3362000094565b600395909555600293909355600491909155600580546001600160a01b039283166001600160a01b03199182161790915560068054938316938216939093179092556007805491909316911617905562000167565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000fc57600080fd5b919050565b60008060008060008060c087890312156200011b57600080fd5b8651955060208701519450604087015193506200013b60608801620000e4565b92506200014b60808801620000e4565b91506200015b60a08801620000e4565b90509295509295509295565b61163a80620001776000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c8063982aae46116100de578063b765536611610097578063f2fde38b11610071578063f2fde38b146102f6578063f918605a14610309578063fc0c546a14610311578063ff57527f1461032257600080fd5b8063b7655366146102c8578063cdda7ab6146102d0578063e6c83689146102e357600080fd5b8063982aae461461026a5780639a64d3621461027d5780639bd0d7a714610290578063a9059cbb14610299578063ac31aaf4146102ac578063b6b97225146102b557600080fd5b80635d9c6a24116101305780635d9c6a241461021a578063715018a6146102235780637c4706881461022b5780638da5cb5b146102335780638ecdd3cd1461024457806397bc007f1461025757600080fd5b80630e60e25814610178578063150b7a02146101945780631e2ff94f146101cb57806338613690146101d257806345b3b98d146101fd5780634af6df1414610205575b600080fd5b610181600c5481565b6040519081526020015b60405180910390f35b6101b26101a2366004611222565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161018b565b6000610181565b6005546101e5906001600160a01b031681565b6040516001600160a01b03909116815260200161018b565b610181610335565b6102186102133660046112d1565b610349565b005b61018160035481565b61021861084f565b610181610885565b6000546001600160a01b03166101e5565b6101816102523660046112f3565b6109a4565b61021861026536600461130c565b6109c5565b6006546101e5906001600160a01b031681565b61021861028b3660046112f3565b610a40565b61018160045481565b6102186102a7366004611330565b610b28565b61018160025481565b6007546101e5906001600160a01b031681565b610181610c78565b6102186102de3660046112f3565b610c8f565b6102186102f13660046112d1565b610d6e565b61021861030436600461130c565b610eef565b610181610f8a565b6007546001600160a01b03166101e5565b6101816103303660046112f3565b610fa9565b60006103444262015180611372565b905090565b6005546001600160a01b031633811461037d5760405162461bcd60e51b81526004016103749061138a565b60405180910390fd5b60006103916007546001600160a01b031690565b9050600080600080846001600160a01b031663cc33c875896040518263ffffffff1660e01b81526004016103c791815260200190565b600060405180830381865afa1580156103e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261040c9190810190611410565b9650965050509450945050336001600160a01b0316856001600160a01b0316636352211e8a6040518263ffffffff1660e01b815260040161044f91815260200190565b602060405180830381865afa15801561046c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049091906114e7565b6001600160a01b0316146104e65760405162461bcd60e51b815260206004820152601a60248201527f4f776e6572206f6620746f6b656e20697320696e76616c69642e0000000000006044820152606401610374565b6104ef82610fb9565b8711156105375760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b48185b5bdd5b9d081c995858da195960521b6044820152606401610374565b6003548710156105895760405162461bcd60e51b815260206004820152601a60248201527f4d696e696d756d20616d6f756e74206e6f7420726561636865640000000000006044820152606401610374565b610591610c78565b8711156105d45760405162461bcd60e51b81526020600482015260116024820152702737ba1032b737bab3b410333ab732399760791b6044820152606401610374565b6004546105e19042611372565b8411156106305760405162461bcd60e51b815260206004820152601e60248201527f4475652064617920697320686967686572207468616e20616c6c6f77656400006044820152606401610374565b61063d4262015180611372565b84101561068c5760405162461bcd60e51b815260206004820152601d60248201527f44756520646179206973206c6f776572207468616e20616c6c6f7765640000006044820152606401610374565b60008160018111156106a0576106a0611504565b146106e65760405162461bcd60e51b815260206004820152601660248201527529ba30ba329036bab9ba103132903832b73234b7339760511b6044820152606401610374565b6040516312dddd6360e31b8152600481018990526001600160a01b038616906396eeeb1890602401600060405180830381600087803b15801561072857600080fd5b505af115801561073c573d6000803e3d6000fd5b505060065460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018c9052909116925063a9059cbb91506044016020604051808303816000875af1158015610793573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b7919061151a565b50866008836040516107c9919061153c565b9081526020016040518091039020546107e29190611372565b6008836040516107f2919061153c565b908152604080516020928190038301902092909255600a8054600181019091557fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8018a90556000998a526009905290972095909555505050505050565b6000546001600160a01b031633146108795760405162461bcd60e51b815260040161037490611558565b6108836000610fed565b565b60008061089a6007546001600160a01b031690565b90506000805b600a5481101561099d576000836001600160a01b031663cc33c875600a84815481106108ce576108ce61158d565b90600052602060002001546040518263ffffffff1660e01b81526004016108f791815260200190565b600060405180830381865afa158015610914573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261093c9190810190611410565b505050505091505042811061098a5760096000600a84815481106109625761096261158d565b9060005260206000200154815260200190815260200160002054836109879190611372565b92505b5080610995816115a3565b9150506108a0565b5092915050565b600b81815481106109b457600080fd5b600091825260209091200154905081565b6000546001600160a01b031633146109ef5760405162461bcd60e51b815260040161037490611558565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0392909216919091179055565b336001805480602002602001604051908101604052809291908181526020018280548015610a9757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610a79575b50505050506000805b8251811015610af357836001600160a01b0316838281518110610ac557610ac561158d565b60200260200101516001600160a01b03161415610ae157600191505b80610aeb816115a3565b915050610aa0565b5080610b115760405162461bcd60e51b81526004016103749061138a565b83600c54610b1f9190611372565b600c5550505050565b336001805480602002602001604051908101604052809291908181526020018280548015610b7f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610b61575b50505050506000805b8251811015610bdb57836001600160a01b0316838281518110610bad57610bad61158d565b60200260200101516001600160a01b03161415610bc957600191505b80610bd3816115a3565b915050610b88565b5080610bf95760405162461bcd60e51b81526004016103749061138a565b60065460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529091169063a9059cbb906044016020604051808303816000875af1158015610c4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c70919061151a565b505050505050565b6000600c54610c8561103d565b61034491906115be565b336001805480602002602001604051908101604052809291908181526020018280548015610ce657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610cc8575b50505050506000805b8251811015610d4257836001600160a01b0316838281518110610d1457610d1461158d565b60200260200101516001600160a01b03161415610d3057600191505b80610d3a816115a3565b915050610cef565b5080610d605760405162461bcd60e51b81526004016103749061138a565b83600c54610b1f91906115be565b6000610d826007546001600160a01b031690565b60405163cc33c87560e01b8152600481018590529091506000906001600160a01b0383169063cc33c87590602401600060405180830381865afa158015610dcd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610df59190810190611410565b505050505050905080831015610e0a57600080fd5b6006546040516323b872dd60e01b8152336004820152306024820152604481018590526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610e61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e85919061151a565b50604051631fd9380b60e11b8152600481018590526001600160a01b03831690633fb2701690602401600060405180830381600087803b158015610ec857600080fd5b505af1158015610edc573d6000803e3d6000fd5b50505050610ee9846110aa565b50505050565b6000546001600160a01b03163314610f195760405162461bcd60e51b815260040161037490611558565b6001600160a01b038116610f7e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610374565b610f8781610fed565b50565b6000600c54610f9761103d565b610f9f610885565b610c859190611372565b600a81815481106109b457600080fd5b6000600882604051610fcb919061153c565b908152602001604051809103902054600254610fe791906115be565b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611086573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034491906115d5565b6000805b600a548110156110f35782600a82815481106110cc576110cc61158d565b906000526020600020015414156110e1578091505b806110eb816115a3565b9150506110ae565b50600a8054611104906001906115be565b815481106111145761111461158d565b9060005260206000200154600a82815481106111325761113261158d565b600091825260209091200155600a80548061114f5761114f6115ee565b6000828152602081208201600019908101829055909101909155600b805460018101825591527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9019190915550565b6001600160a01b0381168114610f8757600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156111f2576111f26111b3565b604052919050565b600067ffffffffffffffff821115611214576112146111b3565b50601f01601f191660200190565b6000806000806080858703121561123857600080fd5b84356112438161119e565b935060208501356112538161119e565b925060408501359150606085013567ffffffffffffffff81111561127657600080fd5b8501601f8101871361128757600080fd5b803561129a611295826111fa565b6111c9565b8181528860208385010111156112af57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156112e457600080fd5b50508035926020909101359150565b60006020828403121561130557600080fd5b5035919050565b60006020828403121561131e57600080fd5b81356113298161119e565b9392505050565b6000806040838503121561134357600080fd5b823561134e8161119e565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156113855761138561135c565b500190565b60208082526026908201527f4f6e6c7920746865206167656e742063616e2063616c6c20746869732066756e60408201526531ba34b7b71760d11b606082015260800190565b60005b838110156113eb5781810151838201526020016113d3565b83811115610ee95750506000910152565b80516002811061140b57600080fd5b919050565b600080600080600080600060e0888a03121561142b57600080fd5b875196506020880151955060408801516114448161119e565b60608901519095506114558161119e565b60808901519094506114668161119e565b60a089015190935067ffffffffffffffff81111561148357600080fd5b8801601f81018a1361149457600080fd5b80516114a2611295826111fa565b8181528b60208385010111156114b757600080fd5b6114c88260208301602086016113d0565b93506114d991505060c089016113fc565b905092959891949750929550565b6000602082840312156114f957600080fd5b81516113298161119e565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561152c57600080fd5b8151801515811461132957600080fd5b6000825161154e8184602087016113d0565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156115b7576115b761135c565b5060010190565b6000828210156115d0576115d061135c565b500390565b6000602082840312156115e757600080fd5b5051919050565b634e487b7160e01b600052603160045260246000fdfea264697066735822122094c0aa817c6a0eb4fe659af309f1bc96cf3a20217352334c0abf4852b08d13e864736f6c634300080a003300000000000000000000000000000000000000000000000ad78ebc5ac6200000000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000096f7c46e6e337143828a46e2a46766af488cf60c0000000000000000000000007efcac01e01bb1d68805cdab04910d50036eb3fe00000000000000000000000060dd4b0c83ca597d1ee51311bd0ab86bd8e9ccc3
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c8063982aae46116100de578063b765536611610097578063f2fde38b11610071578063f2fde38b146102f6578063f918605a14610309578063fc0c546a14610311578063ff57527f1461032257600080fd5b8063b7655366146102c8578063cdda7ab6146102d0578063e6c83689146102e357600080fd5b8063982aae461461026a5780639a64d3621461027d5780639bd0d7a714610290578063a9059cbb14610299578063ac31aaf4146102ac578063b6b97225146102b557600080fd5b80635d9c6a24116101305780635d9c6a241461021a578063715018a6146102235780637c4706881461022b5780638da5cb5b146102335780638ecdd3cd1461024457806397bc007f1461025757600080fd5b80630e60e25814610178578063150b7a02146101945780631e2ff94f146101cb57806338613690146101d257806345b3b98d146101fd5780634af6df1414610205575b600080fd5b610181600c5481565b6040519081526020015b60405180910390f35b6101b26101a2366004611222565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161018b565b6000610181565b6005546101e5906001600160a01b031681565b6040516001600160a01b03909116815260200161018b565b610181610335565b6102186102133660046112d1565b610349565b005b61018160035481565b61021861084f565b610181610885565b6000546001600160a01b03166101e5565b6101816102523660046112f3565b6109a4565b61021861026536600461130c565b6109c5565b6006546101e5906001600160a01b031681565b61021861028b3660046112f3565b610a40565b61018160045481565b6102186102a7366004611330565b610b28565b61018160025481565b6007546101e5906001600160a01b031681565b610181610c78565b6102186102de3660046112f3565b610c8f565b6102186102f13660046112d1565b610d6e565b61021861030436600461130c565b610eef565b610181610f8a565b6007546001600160a01b03166101e5565b6101816103303660046112f3565b610fa9565b60006103444262015180611372565b905090565b6005546001600160a01b031633811461037d5760405162461bcd60e51b81526004016103749061138a565b60405180910390fd5b60006103916007546001600160a01b031690565b9050600080600080846001600160a01b031663cc33c875896040518263ffffffff1660e01b81526004016103c791815260200190565b600060405180830381865afa1580156103e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261040c9190810190611410565b9650965050509450945050336001600160a01b0316856001600160a01b0316636352211e8a6040518263ffffffff1660e01b815260040161044f91815260200190565b602060405180830381865afa15801561046c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049091906114e7565b6001600160a01b0316146104e65760405162461bcd60e51b815260206004820152601a60248201527f4f776e6572206f6620746f6b656e20697320696e76616c69642e0000000000006044820152606401610374565b6104ef82610fb9565b8711156105375760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b48185b5bdd5b9d081c995858da195960521b6044820152606401610374565b6003548710156105895760405162461bcd60e51b815260206004820152601a60248201527f4d696e696d756d20616d6f756e74206e6f7420726561636865640000000000006044820152606401610374565b610591610c78565b8711156105d45760405162461bcd60e51b81526020600482015260116024820152702737ba1032b737bab3b410333ab732399760791b6044820152606401610374565b6004546105e19042611372565b8411156106305760405162461bcd60e51b815260206004820152601e60248201527f4475652064617920697320686967686572207468616e20616c6c6f77656400006044820152606401610374565b61063d4262015180611372565b84101561068c5760405162461bcd60e51b815260206004820152601d60248201527f44756520646179206973206c6f776572207468616e20616c6c6f7765640000006044820152606401610374565b60008160018111156106a0576106a0611504565b146106e65760405162461bcd60e51b815260206004820152601660248201527529ba30ba329036bab9ba103132903832b73234b7339760511b6044820152606401610374565b6040516312dddd6360e31b8152600481018990526001600160a01b038616906396eeeb1890602401600060405180830381600087803b15801561072857600080fd5b505af115801561073c573d6000803e3d6000fd5b505060065460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018c9052909116925063a9059cbb91506044016020604051808303816000875af1158015610793573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b7919061151a565b50866008836040516107c9919061153c565b9081526020016040518091039020546107e29190611372565b6008836040516107f2919061153c565b908152604080516020928190038301902092909255600a8054600181019091557fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8018a90556000998a526009905290972095909555505050505050565b6000546001600160a01b031633146108795760405162461bcd60e51b815260040161037490611558565b6108836000610fed565b565b60008061089a6007546001600160a01b031690565b90506000805b600a5481101561099d576000836001600160a01b031663cc33c875600a84815481106108ce576108ce61158d565b90600052602060002001546040518263ffffffff1660e01b81526004016108f791815260200190565b600060405180830381865afa158015610914573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261093c9190810190611410565b505050505091505042811061098a5760096000600a84815481106109625761096261158d565b9060005260206000200154815260200190815260200160002054836109879190611372565b92505b5080610995816115a3565b9150506108a0565b5092915050565b600b81815481106109b457600080fd5b600091825260209091200154905081565b6000546001600160a01b031633146109ef5760405162461bcd60e51b815260040161037490611558565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0392909216919091179055565b336001805480602002602001604051908101604052809291908181526020018280548015610a9757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610a79575b50505050506000805b8251811015610af357836001600160a01b0316838281518110610ac557610ac561158d565b60200260200101516001600160a01b03161415610ae157600191505b80610aeb816115a3565b915050610aa0565b5080610b115760405162461bcd60e51b81526004016103749061138a565b83600c54610b1f9190611372565b600c5550505050565b336001805480602002602001604051908101604052809291908181526020018280548015610b7f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610b61575b50505050506000805b8251811015610bdb57836001600160a01b0316838281518110610bad57610bad61158d565b60200260200101516001600160a01b03161415610bc957600191505b80610bd3816115a3565b915050610b88565b5080610bf95760405162461bcd60e51b81526004016103749061138a565b60065460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529091169063a9059cbb906044016020604051808303816000875af1158015610c4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c70919061151a565b505050505050565b6000600c54610c8561103d565b61034491906115be565b336001805480602002602001604051908101604052809291908181526020018280548015610ce657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610cc8575b50505050506000805b8251811015610d4257836001600160a01b0316838281518110610d1457610d1461158d565b60200260200101516001600160a01b03161415610d3057600191505b80610d3a816115a3565b915050610cef565b5080610d605760405162461bcd60e51b81526004016103749061138a565b83600c54610b1f91906115be565b6000610d826007546001600160a01b031690565b60405163cc33c87560e01b8152600481018590529091506000906001600160a01b0383169063cc33c87590602401600060405180830381865afa158015610dcd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610df59190810190611410565b505050505050905080831015610e0a57600080fd5b6006546040516323b872dd60e01b8152336004820152306024820152604481018590526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610e61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e85919061151a565b50604051631fd9380b60e11b8152600481018590526001600160a01b03831690633fb2701690602401600060405180830381600087803b158015610ec857600080fd5b505af1158015610edc573d6000803e3d6000fd5b50505050610ee9846110aa565b50505050565b6000546001600160a01b03163314610f195760405162461bcd60e51b815260040161037490611558565b6001600160a01b038116610f7e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610374565b610f8781610fed565b50565b6000600c54610f9761103d565b610f9f610885565b610c859190611372565b600a81815481106109b457600080fd5b6000600882604051610fcb919061153c565b908152602001604051809103902054600254610fe791906115be565b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611086573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034491906115d5565b6000805b600a548110156110f35782600a82815481106110cc576110cc61158d565b906000526020600020015414156110e1578091505b806110eb816115a3565b9150506110ae565b50600a8054611104906001906115be565b815481106111145761111461158d565b9060005260206000200154600a82815481106111325761113261158d565b600091825260209091200155600a80548061114f5761114f6115ee565b6000828152602081208201600019908101829055909101909155600b805460018101825591527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9019190915550565b6001600160a01b0381168114610f8757600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156111f2576111f26111b3565b604052919050565b600067ffffffffffffffff821115611214576112146111b3565b50601f01601f191660200190565b6000806000806080858703121561123857600080fd5b84356112438161119e565b935060208501356112538161119e565b925060408501359150606085013567ffffffffffffffff81111561127657600080fd5b8501601f8101871361128757600080fd5b803561129a611295826111fa565b6111c9565b8181528860208385010111156112af57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156112e457600080fd5b50508035926020909101359150565b60006020828403121561130557600080fd5b5035919050565b60006020828403121561131e57600080fd5b81356113298161119e565b9392505050565b6000806040838503121561134357600080fd5b823561134e8161119e565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156113855761138561135c565b500190565b60208082526026908201527f4f6e6c7920746865206167656e742063616e2063616c6c20746869732066756e60408201526531ba34b7b71760d11b606082015260800190565b60005b838110156113eb5781810151838201526020016113d3565b83811115610ee95750506000910152565b80516002811061140b57600080fd5b919050565b600080600080600080600060e0888a03121561142b57600080fd5b875196506020880151955060408801516114448161119e565b60608901519095506114558161119e565b60808901519094506114668161119e565b60a089015190935067ffffffffffffffff81111561148357600080fd5b8801601f81018a1361149457600080fd5b80516114a2611295826111fa565b8181528b60208385010111156114b757600080fd5b6114c88260208301602086016113d0565b93506114d991505060c089016113fc565b905092959891949750929550565b6000602082840312156114f957600080fd5b81516113298161119e565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561152c57600080fd5b8151801515811461132957600080fd5b6000825161154e8184602087016113d0565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156115b7576115b761135c565b5060010190565b6000828210156115d0576115d061135c565b500390565b6000602082840312156115e757600080fd5b5051919050565b634e487b7160e01b600052603160045260246000fdfea264697066735822122094c0aa817c6a0eb4fe659af309f1bc96cf3a20217352334c0abf4852b08d13e864736f6c634300080a0033