Netvrk Staking and Rental

Smart Contract Audit Report

Audit Summary

Netvrk-Staking Audit Report Netvrk is building a new platform for their virtual reality space that allows users to list and rent NFTs.

For this audit, we reviewed the following contracts:

Audit Findings

Please ensure trust in the team prior to investing as they have substantial control in the ecosystem.
Date: May 31st, 2022.
Updated: July 1st, 2022 to reflect six of the contract's newly deployed mainnet addresses.

Finding #1 - AirdropNFT - Low

Description: The transferBatchAirdrop() function passes _msgSender() into ERC721._transfer().
Risk/Impact: The Minters can only transfer their own NFTs.
Recommendation: The function should use ERC721.transferFrom() to enforce the owner or approved requirement, and pass the token's owner to ERC721.transferFrom() instead of the _msgSender().
Resolution: The team has not yet addressed this issue.

Contracts Overview

  • The contracts utilize ReentrancyGuard to prevent reentrancy attacks in applicable functions.
  • As the contracts are implemented with Solidity v0.8.0, they are safe from any possible overflows/underflows.
RolesNFT and ERC4907 Contracts:
  • This contract is used to mint and burn NFTs.
  • NFTs minted by this contract may have associated user and expiry info.
  • NFT owners can set any address as a "user" for their NFT and any UNIX timestamp for the "expiry".
  • Assigning a user to an NFT does not transfer ownership of that NFT.
  • Transferring ownership of an NFT removes its user and expiry info; that info can be set again by the new owner.
  • This contract complies with the ERC721 standard.
  • The Owner can mint any number of NFTs to any address at any time.
  • The Owner can burn NFTs with approval at any time.
  • The Owner can update the baseURI to any value at any time.
UpgradeableNFT, and NFT Contracts:
  • These contracts are used to mint and burn NFTs.
  • These contracts comply with the ERC721 standard.
  • The Owner can mint any number of NFTs to any address at any time.
  • The Owner can burn NFTs with approval at any time.
  • The Owner can update the baseURI to any value at any time.
AirdropNFT Contract:
  • This contract is used to mint and transfer batches of NFTs.
  • The Owner can add any address as a Minter at any time.
  • The Owner can lock minting at any time; this action cannot be undone.
  • The Owner can update the baseURI to any value at any time.
  • The Minters can mint any number of NFTs to any number of addresses before minting is locked.
VRK Contract:
  • One million $VRK tokens are minted to the deployer upon construction.
  • This contract complies with the ERC20 standard.
NtvrkRental Contract:
  • This contract facilitates the lending and renting of ERC721 and ERC1155 tokens.
  • Users can transfer their NFTs to this contract, referred to as a "lend"; those NFTs can then be transferred to other users for a set period of time, referred to as a "rent".
  • Users who rent NFTs from this contract pay a rental fee relative to the amount of time they will own the NFT.
  • Users who rent NFTs must pay a collateral at the time of renting equal to the price of the NFT plus one day's rent.
  • Both the rental fee and the collateral are paid in an ERC20 token determined by the lender.
  • The tokens that can be used for payment are SENTINEL, WETH, DAI, USDC, USDT, TUSD, and RENT.
  • An additional fee is taken on the rent payment; that fee is determined on construction and sent to a wallet controlled by the team.
  • On the return of an NFT, the collateral is returned to the renter and the rent payment is sent to the lender.
  • Once the rental period has passed the NFT cannot be returned.
  • If the renter does not return the NFT by the end of the rental period, the lender can claim the collateral and the NFT is removed from the platform.
  • The Admin can update the fee collected on rental payments to any value up to 100% at any time.
  • The Admin can update the team wallet to any address at any time.
  • The Admin can pause and unpause the contract at any time; this prevents lending, renting, returning, delisting, and collateral claiming.
StakedNetvrkLand, StakedNetvrkTransport, and StakedNetvrkBonus Contracts:
  • This contract is used to list an owner-specified collection of NFTs for renting.
  • This rental platform is separate from the NtvrkRental platform.
  • Users can transfer their NFTs to this contract to be listed in the StakedNetvrkLand contract.
  • Users who transfer their NFTs to this contract must specify a deposit amount, a daily rental rate, a minimum number of days their NFT can be rented for, an end date for their listing, and a flag that indicates if the NFT is rentable or not.
  • Users must also provide an address that will control the listing and to which a $STK NFT will be minted to at the time of their listing creation.
  • In the event that the address receiving the $STK NFT is a contract, the contract must have implemented the onERC721Received() function in order to successfully receive the NFT.
  • Users should take care when providing the address that will control their listing, as they are giving up control of their listed NFT to that address.
  • Users that control a listing can update the information they provided given the NFT is not currently being rented.
  • Users that control a listing can remove their listing if 30 days have passed since they created the listing and the NFT is not currently being rented.
  • When a user removes a listing, they must specify the address that the NFT is returned to.
  • When a listing is removed, the $STK NFT that was minted at the time of listing is burned.
  • The Owner can update the rental contract address at any time.
  • The Owner can update the NFT collection's contract address at any time.
  • The Owner can update the baseURI to any value at any time.
  • The contracts are upgradeable, meaning the team can swap the contracts out for new ones at any time.
NFTRental Contract:
  • This contract is used to buy $RNTL NFTs that represent listings made in the StakedNetvrkLand contract.
  • Rental rates, deposit amount, and the minimum and maximum rental period are determined by the lister in the StakedNetvrkLand contract.
  • When a user "rents" an NFT, the NFT is not transferred to them; instead, they are minted a $RNTL NFT.
  • Users must pay a deposit plus one day of rent at the time of minting their $RNTL NFT.
  • Renters must pay to own their $RNTL NFT in advance; their rental period can be extended as long as their rent is prepaid.
  • Rental periods can only be extended up to the deadline set by the lister.
  • Deposits and rental payments are sent directly to the lister.
  • If a renter fails to pay their rent, the lister can terminate their rent, in which case their $RNTL NFT is burned.
  • The Owner can withdraw any ERC20 tokens stored in the contract.
RootLand, RootBonusPack, and RootTransport Contracts:
  • These contracts are used to mint and transfer NFTs.
  • The owner can assign any addresses to the contract's Predicate role.
  • The Predicate role can mint NFTs to users by specifying the user's address and a TokenID that does not already exist.
  • The Predicate role can also choose to supply Metadata associated with the NFT that is used to set the token URI.
  • The start time of the contract is set to the time the contract was deployed.
  • NFTs cannot be transferred from any address besides the Auction address until 14 days have passed since the contract start time.
  • The contract implements ERC-2981 functionality that supports the use of Royalties that can be used with NFT marketplaces.
  • The owner can update the Auction address at any time.
  • The owner can update the Royalty address at any time.
  • The owner can update the Royalty percentage to any value at any time.
  • The owner can pause the contract at any time which disables all minting and ownership-restricted functionality.

Audit Results

Vulnerability CategoryNotesResult
Arbitrary Jump/Storage WriteN/APASS
Centralization of ControlThe StakedNetvrkLand, StakedNetvrkTransport, and StakedNetvrkBonus Contracts are upgradeable.PASS
Compiler IssuesN/APASS
Delegate Call to Untrusted ContractN/APASS
Dependence on Predictable VariablesN/APASS
Ether/Token TheftN/APASS
Flash LoansN/APASS
Front RunningN/APASS
Improper EventsN/APASS
Improper Authorization SchemeThe Minters can only transfer their own NFTs using the AirdropNFT contract.PASS
Integer Over/UnderflowN/APASS
Logical IssuesN/APASS
Oracle IssuesN/APASS
Outdated Compiler VersionN/APASS
Race ConditionsN/APASS
ReentrancyN/APASS
Signature IssuesN/APASS
Unbounded LoopsN/APASS
Unused CodeN/APASS
Overall Contract Safety PASS

Contract Source Summary and Visualizations

About SourceHat

SourceHat has quickly grown to have one of the most experienced and well-equipped smart contract auditing teams in the industry. Our team has conducted 1000+ solidity smart contract audits covering all major project types and protocols, securing a total of over $50 billion U.S. dollars in on-chain value across 1500 projects!.
Our firm is well-reputed in the community and is trusted as a top smart contract auditing company for the review of solidity code, no matter how complex. Our team of experienced solidity smart contract auditors performs audits for tokens, NFTs, crowdsales, marketplaces, gambling games, financial protocols, and more!

Contact us today to get a free quote for a smart contract audit of your project!

What is a SourceHat Audit?

Typically, a smart contract audit is a comprehensive review process designed to discover logical errors, security vulnerabilities, and optimization opportunities within code. A SourceHat Audit takes this a step further by verifying economic logic to ensure the stability of smart contracts and highlighting privileged functionality to create a report that is easy to understand for developers and community members alike.

How Do I Interpret the Findings?

Each of our Findings will be labeled with a Severity level. We always recommend the team resolve High, Medium, and Low severity findings prior to deploying the code to the mainnet. Here is a breakdown on what each Severity level means for the project:

  • High severity indicates that the issue puts a large number of users' funds at risk and has a high probability of exploitation, or the smart contract contains serious logical issues which can prevent the code from operating as intended.
  • Medium severity issues are those which place at least some users' funds at risk and has a medium to high probability of exploitation.
  • Low severity issues have a relatively minor risk association; these issues have a low probability of occurring or may have a minimal impact.
  • Informational issues pose no immediate risk, but inform the project team of opportunities for gas optimizations and following smart contract security best practices.