Omniscia SaucerSwap Labs Audit

Router Implementation Security Audit

Audit Report Revisions

Commit HashDateAudit Report Hash
3bcac28ac5May 18th 2023547ef8efa5
a2c5a0b913June 4th 202334b18eef78
fd26dbdf6dJune 7th 2023b99e9fa33c

Audit Overview

We were tasked with performing an audit of the SaucerSwap Labs codebase and in particular their Uniswap-integrating router implementation meant to be deployed in the Hedera Network ecosystem.

Over the course of the audit, we identified a major vulnerability in the router's exchange flow when the output is in ETH as the wHBAR unwrapping mechanism is improperly integrated with.

We advise the SaucerSwap Labs team to closely evaluate all minor-and-above findings identified in the report and promptly remediate them as well as consider all optimizational exhibits identified in the report.

Post-Audit Conclusion

The SaucerSwap Labs team iterated through all findings within the report and provided us with a revised commit hash to evaluate all exhibits on.

We evaluated all alleviations performed by SaucerSwap Labs and have identified that certain exhibits have not been adequately dealt with. We advise the SaucerSwap Labs team to revisit the following exhibit: UVR-01M

Additionally, the following informational exhibit was partially alleviated and requires further action: HTS-01S

Post-Audit Conclusion (fd26dbdf6d)

The SaucerSwap team revisited the two remaining exhibits and carried out the correct remediation action for each of them.

As a result, all exhibits of the report have been adequately dealt with and the outputs of the report have been properly consumed by the SaucerSwap team.

Contracts Assessed

Files in ScopeRepositoryCommit(s)
Bits.sol (BST)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
HederaTokenService.sol (HTS)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
HederaResponseCodes.sol (HRC)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
Math.sol (MHT)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
SafeCast.sol (SCT)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
SafeMath.sol (SMH)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
SafeHederaTokenService.sol (SHT)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
TransferHelper.sol (THR)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
UQ112x112.sol (UQ2)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
UniswapV2Library.sol (UVL)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d
UniswapV2Router02.sol (UVR)saucerswap-core3bcac28ac5,
a2c5a0b913,
fd26dbdf6d

Audit Synopsis

SeverityIdentifiedAlleviatedPartially AlleviatedAcknowledged
0000
8800
1100
2200
1100

During the audit, we filtered and validated a total of 1 findings utilizing static analysis tools as well as identified a total of 11 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 can 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: