HAPI - Audit - by Hacken
HAPI - Audit - by Hacken
Customer: HAPI
Date: June 8th, 2021
This document may contain con den al informa on about IT systems and
the intellectual property of the Customer as well as informa on about
poten al vulnerabili es and methods of their exploita on.
The report containing con den al informa on can be used internally by the
Customer, or it can be disclosed publicly a er all vulnerabili es xed - upon a
decision of the Customer.
Document
Name Smart Contract Code Review and Security Analysis Report for HAPI(31 pages).
Methods Architecture Review, Func onal Tes ng, Computer-Aided Veri ca on, Manual
Review.
Repository h ps://github.com/HAPIprotocol/HAPI
Commit cde466d6b4738dabf63abc9584e0d5debd0498db
Deployed 0xd9c2d319cd7e6177336b0a9c93c21cb48d84fb54
contract
Timeline 07 JUN 2021 – 08 JUN 2021
Scope
The scope of the project is smart contracts in the repository:
Contract deployment address:
Repository: https://github.com/HAPIprotocol/HAPI
Commit: cde466d6b4738dabf63abc9584e0d5debd0498db
Files:
Airdrop.sol
FixedAmountVesting.sol
HAPI.sol
HAPIBSC.sol
We have scanned this smart contract for commonly known and more speci c
vulnerabili es. Here are some of the commonly known vulnerabili es that are
considered:
Executive Summary
According to the assessment, the Customer's smart contracts are well-secured
and has good tests coverage.
Imports
Usages
Enums
Events
Modi ers
Func ons
FixedAmountVes ng.sol
Descrip on
Ves ng management.
Imports
Inheritance
Usages
Structs
Enums
Events
Modi ers
FixedAmountVes ng has the following modi ers:
• vestedAmountOf
• token
• ves ngData
• lockupAmountOf
Fields
Func ons
HAPI.sol
Descrip on
Imports
Inheritance
HAPI contract is IHAPI, ERC20PresetMinterPauser.
Usages
None
Structs
None
Enums
Events
Modi ers
fi
ti
HAPI has the no custom modi ers.
Fields
Func ons
HAPIBSC.sol
Descrip on
Imports
HAPIBSC contract has the following imports:
• @openzeppelin/contracts/token/ERC20/ERC20.sol
ti
ti
ti
fi
ti
fi
• @openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol
• ./interfaces/IBEP20Ownable.sol
• ./interfaces/IHAPI.sol
Inheritance
Usages
None
Structs
None
Enums
Events
Modi ers
Fields
Func ons
Medium
Low
1. Mul ple code style issues found by the sta c code analyzer.
ti
ti
ti
Conclusion
Smart contracts within the scope were manually reviewed and analyzed with
sta c analysis tools. For the contract, high-level descrip on of func onality was
presented in As-Is overview sec on of the report.
Audit report contains all found security vulnerabili es and other issues in the
reviewed code.
The smart contracts given for audit have been analyzed in accordance with the
best industry prac ces at the date of this report, in rela on to cybersecurity
vulnerabili es and issues in smart contract source code, the details of which
are disclosed in this report (Source Code); the Source Code compila on,
deployment, and func onality (performing the intended func ons).
Technical Disclaimer
Smart contracts are deployed and executed on blockchain pla orm. The
pla orm, its programming language, and other so ware related to the smart
contract can have its vulnerabili es that can lead to hacks. Thus, the audit can't
guarantee the explicit security of the audited smart contracts.
tf
ti
ti
ti
ffi
ti
ti
ti
ft
ti
ti
ti
tf
ti