Polyshield

219

2021.08.05

Disclaimer:

show more...

Conclusion:

In the POLYSHIELD Smart-Contract were found no vulnerabilities, no backdoors and no scam scripts.

The code was tested with compatible compilers and simulate manually reviewed for all commonly known and specific vulnerabilities.

So POLYSHIELD Smart-Contract is safe for use in the Polygon (Matic) main network.

CRITICAL ISSUES (critical, high severity): 0

Critical and harmful access for owners, user block ability, Bugs and vulnerabilities that enable theft of funds, lock access to funds without possibility to restore it, or lead to any other loss of funds to be transferred to any party.

 

HIGH ISSUES (high, medium severity): 0

The owner’s privileges, access and permission that cause changes in the contract results and parameters, enable/disable main modules and features, exclude/include specific users.

 

ERRORS, BUGS AND WARNINGS (medium, low severity): 0

Bugs can negatively affect the usability of a program, errors that can trigger a contract failure, Lack of necessary security precautions, other warnings for owners and users, warning codes that are valid code but the compiler thinks are suspicious.

 

OPTIMIZATION (low severity): 0

Methods to decrease the cost of transactions in Smart-Contract.

 

RECOMMENDATIONS (very low severity): 1

Hint and tips to improve contract functionality and trustworthiness.

 

RECOMMENDATIONS

  • Owner privileges (high, medium severity):

The owner has access to the functions:

  • Add and set (update) farms
  • setFeeAddress
  • updateEmissionParameters
  • updateEmissionRate
  • updateStartBlock
  • setNFTAddress
  • setUSDCAddress
  • setUsdcShieldLPAddress

the owner has the privilege to change some of the parameters but limits in the change range of critical variables make it safe.

 

 

INDEPENDENT DESCRIPTION OF THE SMART-CONTRACT FUNCTIONALITY

The POLYSHIELD is a token deployed in the Polygon blockchain and users can earn it in LP farms and vaults.

 

  • It is a standard ERC20 Token with a mint and burns feature. Only the Masterchef contract has the privilege of mint.
  • All libraries which were used for calculation and the token in the contract are standard and safe.

 

Token Info (all information based on audit date)

  • Total Supply: 1,000 SHI3LD
  • Holders: 6 addresses
  • Total Transactions: 19
  • Name: PolyShield
  • Symbol: SHI3LD
  • Decimals: 18
  • Contract: 0xf239e69ce434c7fb408b05a0da416b14917d934e

 

Owner/Deployer Tokens

In the first initial of the token, 1000 tokens will be transferred to the owner wallet.

 

Burn & Mint

The burning method is a public function that anyone can use and burn his tokens.

Mint can only call by the owner which is the Masterchef contract.

 

 

 

PolyshieldBurner

The contract has only one function that can be called by anyone and it burns the tokens in the contract.

 

Masterchef

It is a contract that controls the farms and vaults. It has the privilege of mint tokens.

  • Farms can be created and updated
  • Each token can only have one farm
  • Users can deposit in farms
    • There is a fee in each farm that transfers a specific amount of tokens to the owner wallet. The maximum fee amount is 4%
  • Users can harvest one or all farms and  receive their rewards any time
  • Users can increase their investment
  • Users can withdraw their investments.
  • On each new deposit, harvest and withdrawal, users will receive earned rewards.
  • Users can force withdraw their total investment without receiving the rewards.
  • Equal to 10% of all rewards will be used for NFT and burn system
    • If the NFT address set in the contract
      • Equal to 5% of rewards transfer to the NFT address (it will be set by the owner and they can use it for any reason)
      • Equal to 5% of rewards will be burnt
    • If the NFT is not set, all 10% will be burnt

 

 

Emission Rate

  • If the USDC LP token is set by the owner, the emission update system activated
  • The emission rate will be changed by the price of the token in the USDC
    • Less than $1, it is 100%
    • Greater than $50, it is 1%
  • The min and max price can be changed by the owner to moderate the emission rate
  • In the price between min and max, the emission rate will be calculated based on a curve formula