Safe Layer Token Info

SafeLayer Token is a layer farming protocol token with deflationary tokenomics. It allows farmers to deposit assets in SafeFarm (LP tokens) and SafePool (single asset tokens) pools to earn SafeLayer tokens.

Safe Layer Token Logo

Team and KYC Verification

The KYC verification for this project is currently in progress.

The team has submitted their information and verification is pending.

KYC Badge

TrustNet Score

The TrustNet Score evaluates crypto projects based on audit results, security, KYC verification, and social media presence. This score offers a quick, transparent view of a project's credibility, helping users make informed decisions in the Web3 space.

23.34
Poor Excellent

Real-Time Threat Detection

Real-time threat detection, powered by Cyvers.io, is currently not activated for this project.

This advanced feature provides continuous monitoring and instant alerts to safeguard your assets from potential security threats. Real-time detection enhances your project's security by proactively identifying and mitigating risks. For more information, click here.

Security Assessments

Select the audit
Static Analysis Dynamic Analysis Symbolic Execution SWC Check Manual Review
Contract address
0x0659...39E9
Network
BNB Smart Chain - Mainnet
License N/A
Compiler N/A
Type N/A
Language Solidity
Onboard date 2022/08/19
Revision date In progress

Summary and Final Words

No crucial issues found

The contract does not contain issues of high or medium criticality. This means that no known vulnerabilities were found in the source code.

Contract owner cannot mint

It is not possible to mint new tokens.

Contract owner cannot blacklist addresses.

It is not possible to lock user funds by blacklisting addresses.

Contract owner cannot set high fees

The fees, if applicable, can be a maximum of 25% or lower. The contract can therefore not be locked. Please take a look in the comment section for more details.

Contract cannot be locked

Owner cannot lock any user funds.

Token cannot be burned

There is no burning within the contract without any allowances

Ownership is not renounced

The owner retains significant control, which could potentially be used to modify key contract parameters.

Scope of Work

This audit encompasses the evaluation of the files listed below, each verified with a SHA-1 Hash. The team referenced above has provided the necessary files for assessment.

The auditing process consists of the following systematic steps:

  1. Specification Review: Analyze the provided specifications, source code, and instructions to fully understand the smart contract's size, scope, and functionality.
  2. Manual Code Examination: Conduct a thorough line-by-line review of the source code to identify potential vulnerabilities and areas for improvement.
  3. Specification Alignment: Ensure that the code accurately implements the provided specifications and intended functionalities.
  4. Test Coverage Assessment: Evaluate the extent and effectiveness of test cases in covering the codebase, identifying any gaps in testing.
  5. Symbolic Execution: Analyze the smart contract to determine how various inputs affect execution paths, identifying potential edge cases and vulnerabilities.
  6. Best Practices Evaluation: Assess the smart contracts against established industry and academic best practices to enhance efficiency, maintainability, and security.
  7. Actionable Recommendations: Provide detailed, specific, and actionable steps to secure and optimize the smart contracts.

A file with a different Hash has been intentionally or otherwise modified after the security review. A different Hash may indicate a changed condition or potential vulnerability that was not within the scope of this review.

Final Words

The following provides a concise summary of the audit report, accompanied by insightful comments from the auditor. This overview captures the key findings and observations, offering valuable context and clarity.


  • Owner can
    • add new PoolInfo's
    • set following state variables without any limitations
      • poolInfo[_pid].allocPoint
      • poolInfo[_pid].depositFeeBP
      • poolInfo[_pid].isWithdrawFee
    • transfer ownership of earningToken
  • Everybody can
    • call massUpdatePools
    • call updatePool
    • call deposit 
  • updatePool
    • function will mint tokens to the "devAddr" and the contract address
  • "multiplier" cannot be lower than zero because it is a uint256 typed value in L1427
  • Keep in mind that it is possible that an address can set a referrer as its own address. Condition must be new wallet address in L1455

Files and details

Functions
public

/

State variables
public

/

Total lines
of code

/

Capabilities
Hover on items

/

Findings and Audit result

low Issues | 3 findings

Pending

#1 low Issue
Local variables shadowing (shadowing-local)
SafeChef.sol
L849
L849
L913
L1085
Description

Rename the local variables that shadow another component.

Pending

#2 low Issue
Missing Events Arithmetic (events-maths)
SafeChef.sol
L1321-1347
L1350-1367
L1605-1608
Description

Emit an event for critical parameter changes.

Pending

#3 low Issue
Missing Zero Address Validation (missing-zero-check)
SafeChef.sol
L1301
L1302
L1305
L1589
L1594
Description

Check that the address is not zero.

optimization Issues | 1 findings

Pending

#1 optimization Issue
Public function that could be declared external (external-function)
SafeChef.sol
L534-537
L543-547
L865-867
L872-874
L879-881
L886-888
L893-895
L905-908
L913-915
L924-927
L941-953
L967-970
L986-993
L1003-1006
L1152-1154
L1183-1187
L1192-1194
L1200-1204
L1206-1209
L1211-1214
L1321-1347
L1350-1367
L1549-1569
L1581-1587
L1589-1592
L1594-1597
L1600-1602
L1605-1608
L1624-1627
L1643-1654
Description

Use the `external` attribute for functions never called from the contract.

informational Issues | 1 findings

Pending

#1 informational Issue
Functions that are not used (dead-code)
SafeChef.sol
L180-182
L205-207
L254-256
L264-270
L230-232
L240-246
L154-160
L1063-1069
L1102-1109
L475-478
L334-348
L359-369
L740-743
L702-705
L760-763
L574-578
L610-613
L620-623
L595-603
L585-588
Description

Remove unused functions.