# Audit Report for a Random Reddit User **Published by:** [Tim](https://paragraph.com/@tim-11/) **Published on:** 2023-05-13 **URL:** https://paragraph.com/@tim-11/audit-report-for-a-random-reddit-user ## Content Link to the contract: https://github.com/iNovaDev87/MaxWalletTaxContract/blob/4dd2686f5c48d55b5126961a53d5225c8e982b5c/DEPLOYABLE.sol #1 Description: Miscalculation of tax (L124). Risk: High - Breaks the transfer function because amount + (amount * tax%) is transferred in total. Recommendation: Change to amount * thetax() / 10000 . #2 Description: SafeMath not needed. Risk: Low - Since 0.8.0, Solidity checks for over/underflows. Recommendation: Remove SafeMath. #3 Description: Redundant code in _transfer() . Risk: Low - Results in an increase of gas. Recommendation: Refactor redundant code to minimize gas costs and readability. #4 Description: Long revert error strings. Risk: Low - Results in an increase of gas. Recommendation: Revert with custom Error codes. ## Publication Information - [Tim](https://paragraph.com/@tim-11/): Publication homepage - [All Posts](https://paragraph.com/@tim-11/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@tim-11): Subscribe to updates