Coinsult

Request your audit at coinsult.net

Advanced Manual
Smart Contract Audit

April 26, 2022

Audit requested by

smart ocean

0x1472d3c58eD3Ea6BDBBE3517e1632299951ce2E1

smart ocean / Security Audit

Table of Contents

1. Audit Summary

1.1 Audit scope

1.2 Tokenomics

1.3 Source Code

2. Disclaimer

3. Global Overview

3.1 Informational issues

3.2 Low-risk issues

3.3 Medium-risk issues

3.4 High-risk issues

4. Vulnerabilities Findings

5. Contract Privileges

5.1 Maximum Fee Limit Check

5.2 Contract Pausability Check

5.3 Max Transaction Amount Check

5.4 Exclude From Fees Check

5.5 Ability to Mint Check

5.6 Ability to Blacklist Check

5.7 Owner Privileges Check

6. Notes

6.1 Notes by Coinsult

6.2 Notes by smart ocean

7. Contract Snapshot

8. Website Review

9. Certificate of Proof

smart ocean / Security Audit

Audit Summary

Audit Scope

Project Name

smart ocean

Website

Blockchain

Binance Smart Chain

Smart Contract Language

Solidity

Contract Address

0x1472d3c58eD3Ea6BDBBE3517e1632299951ce2E1

Audit Method

Static Analysis, Manual Review

Date of Audit

26 April 2022

This audit report has been prepared by Coinsult’s experts at the request of the client. In this audit, the results of the static analysis and the manual code review will be presented. The purpose of the audit is to see if the functions work as intended, and to identify potential security issues within the smart contract.

The information in this report should be used to understand the risks associated with the smart contract. This report can be used as a guide for the development team on how the contract could possibly be improved by remediating the issues that were identified.

smart ocean / Security Audit

Tokenomics

Rank Address Quantity (Token) Percentage
1 0xa4c652033ae6e03261e87a0584d7928ece6e53af 42,000,001 46.1538%
2  PancakeSwap V2: SOT 53 16,013,378.068411088628946266 17.5971%
3 0xc87ed85229a95817d7c4339abbf1845cb3936a86 6,909,046.73452256008477798 7.5924%
4 0x04f013114e066cf5932cf4ae310f9bd0db884f02 5,000,000 5.4945%
5 0xe3f9c02c2097c480cadf8d6f97d848bc6d5400d7 3,163,804.510149005845971663 3.4767%

Source Code

Coinsult was comissioned by smart ocean to perform an audit based on the following code:
https://bscscan.com/address/0x1472d3c58ed3ea6bdbbe3517e1632299951ce2e1#code

smart ocean / Security Audit

Disclaimer

This audit report has been prepared by Coinsult’s experts at the request of the client. In this audit, the results of the static analysis and the manual code review will be presented. The purpose of the audit is to see if the functions work as intended, and to identify potential security issues within the smart contract.

The information in this report should be used to understand the risks associated with the smart contract. This report can be used as a guide for the development team on how the contract could possibly be improved by remediating the issues that were identified.

Coinsult is not responsible if a project turns out to be a scam, rug-pull or honeypot. We only provide a detailed analysis for your own research.

Coinsult is not responsible for any financial losses. Nothing in this contract audit is financial advice, please do your own research.

The information provided in this audit is for informational purposes only and should not be considered investment advice. Coinsult does not endorse, recommend, support or suggest to invest in any project. 

Coinsult can not be held responsible for when a project turns out to be a rug-pull, honeypot or scam.

smart ocean / Security Audit

Global Overview

Manual Code Review

In this audit report we will highlight the following issues:

Vulnerability Level

Total

Pending

Acknowledged

Resolved

0

0

0

0

5

0

0

0

0

0

0

0

0

0

0

0

smart ocean / Security Audit

Avoid relying on block.timestamp

block.timestamp can be manipulated by miners.

				
					if(startTimeForSwap > block.timestamp && (to == address(uniswapV2Pair) || from == address(uniswapV2Pair))){ // not start
				
			

Recommendation

Do not use block.timestampnow or blockhash as a source of randomness

Exploit scenario

				
					contract Game {

    uint reward_determining_number;

    function guessing() external{
      reward_determining_number = uint256(block.blockhash(10000)) % 10;
    }
}
				
			

Eve is a miner. Eve calls guessing and re-orders the block containing the transaction. As a result, Eve wins the game.

smart ocean / Security Audit

Too many digits

Literals with many digits are difficult to read and review.

				
					_mint(msg.sender, 91000000 * 1e18);
				
			

Recommendation

Exploit scenario

				
					contract MyContract{
    uint 1_ether = 10000000000000000000; 
}
				
			

While 1_ether looks like 1 ether, it is 10 ether. As a result, it’s likely to be used incorrectly.

smart ocean / Security Audit

No zero address validation for some functions

Detect missing zero address validation.

				
					function setInvertDate(address b) public onlyOwner {
        _invertData = b;
    }
				
			

Recommendation

Check that the new address is not zero.

Exploit scenario

				
					contract C {

  modifier onlyAdmin {
    if (msg.sender != owner) throw;
    _;
  }

  function updateOwner(address newOwner) onlyAdmin external {
    owner = newOwner;
  }
}
				
			

Bob calls updateOwner without specifying the newOwner, soBob loses ownership of the contract.

smart ocean / Security Audit

Missing events arithmetic

Detect missing events for critical arithmetic parameters.

				
					function setThreshold(uint256 value) public onlyOwner {
        _threshold = value;
    }
				
			

Recommendation

Emit an event for critical parameter changes.

Exploit scenario

				
					contract C {

  modifier onlyAdmin {
    if (msg.sender != owner) throw;
    _;
  }

  function updateOwner(address newOwner) onlyAdmin external {
    owner = newOwner;
  }
}
				
			

updateOwner() has no event, so it is difficult to track off-chain changes in the buy price.

smart ocean / Security Audit

Conformance to Solidity naming conventions

Allow _ at the beginning of the mixed_case match for private variables and unused parameters.

				
					    uint256[] public _rate=[20,10,10,5,5];
				
			

Recommendation

Follow the Solidity naming convention.

Rule exceptions

  • Allow constant variable name/symbol/decimals to be lowercase (ERC20).
  • Allow _ at the beginning of the mixed_case match for private variables and unused parameters.

smart ocean / Security Audit

Other Owner Privileges Check

Coinsult lists all important contract methods which the owner can interact with.

✅ No other important owner privileges to mention.

smart ocean / Security Audit

Notes

Notes by smart ocean

No notes provided by the team.

Notes by Coinsult

✅ No notes provided by Coinsult

smart ocean / Security Audit

Contract Snapshot

This is how the constructor of the contract looked at the time of auditing the smart contract.

				
					contract SO is ERC20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    address public _router;
    IUniswapV2Router02 public uniswapV2Router;
    IUniswapV2Pair public uniswapV2Pair;
    uint256 public startTimeForSwap = 1650882660;

    address private burnWallet; 
    address private poolWallet;
    address private technologyWallet; 
    address private marketingWallet; 
    address private collectWallet; 
    address private shareholderWallet = 0x1462f536EDC09606883E1Ec38bDAb18044fD829B; 

    uint256 private shareholder;
    uint256 private burn;
    uint256 private pool;
    uint256 private technology;
    uint256 private marketing;
    uint256 private tax;
    uint256 private resLimit;
				
			

smart ocean / Security Audit

Website Review

Coinsult checks the website completely manually and looks for visual, technical and textual errors. We also look at the security, speed and accessibility of the website. In short, a complete check to see if the website meets the current standard of the web development industry. 

Type of check

Description

Mobile friendly?

Contains jQuery errors?

Is SSL secured?

Contains spelling errors?

smart ocean / Security Audit

Certificate of Proof

smart ocean

Audited by Coinsult.net

Date: 26 April 2022

Coinsult

coinsult.net

End of report
Smart Contract Audit

Request your smart contract audit / KYC

t.me/coinsult_tg