# Audit Report for a Random Reddit User

By [Tim](https://paragraph.com/@tim-11) · 2023-05-13

---

Link to the contract:

[https://github.com/iNovaDev87/MaxWalletTaxContract/blob/4dd2686f5c48d55b5126961a53d5225c8e982b5c/DEPLOYABLE.sol](https://github.com/iNovaDev87/MaxWalletTaxContract/blob/4dd2686f5c48d55b5126961a53d5225c8e982b5c/DEPLOYABLE.sol)

### #1

Description: Miscalculation of tax ([L124](https://github.com/iNovaDev87/MaxWalletTaxContract/blob/4dd2686f5c48d55b5126961a53d5225c8e982b5c/DEPLOYABLE.sol#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.

---

*Originally published on [Tim](https://paragraph.com/@tim-11/audit-report-for-a-random-reddit-user)*
