Omniscia LimeChain Audit

Hashport Security Audit

We were tasked with auditing the cross-chain bridge implementation of LimeChain called Hashport, implementing the Diamond standard to achieve a high degree of dynamicity in the code's purpose.

Over the course of the audit, we identified certain discrepancies and potential misbehaviours arising from non-restrictive value definitions and falsely assumed secure mathematical operations.

Additionally, we were able to pinpoint several optimizations that can be applied that we believe would significantly affect the total gas consumption of the Hedera system.

Overall, the codebase of the Hedera bridge is of high quality with extensive in-line documentation and good use of EIP standards.

Files in ScopeRepositoryCommit(s)
DiamondCutFacet.sol (DCF)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
DiamondLoupeFacet.sol (DLF)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
ERC20Permit.sol (ERC)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
FeeCalculatorFacet.sol (FCF)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
GovernanceFacet.sol (GFT)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
IERC173.sol (IER)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
IRouter.sol (IRR)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
IPausable.sol (IPE)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
IDiamondCut.sol (IDC)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
IGovernance.sol (IGE)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
IDiamondLoupe.sol (IDL)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
IERC2612Permit.sol (IEC)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
IFeeCalculator.sol (IFC)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
IRouterDiamond.sol (IRD)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
LibRouter.sol (LRR)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
LibDiamond.sol (LDD)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
LibGovernance.sol (LGE)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
LibFeeCalculator.sol (LFC)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
OwnershipFacet.sol (OFT)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
PausableFacet.sol (PFT)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
Router.sol (ROU)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
RouterFacet.sol (RFT)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8
WrappedToken.sol (WTN)hedera-eth-bridge-contractsc8feae7368,
30da6e4ff8

During the audit, we filtered and validated a total of 2 findings utilizing static analysis tools as well as identified a total of 13 findings during the manual review of the codebase. We strongly recommend that any minor severity or higher findings are dealt with promptly prior to the project's launch as they introduce potential misbehaviours of the system as well as exploits.

The list below covers each segment of the audit in depth and links to the respective chapter of the report: