From 8e7197bb3ea42ff6e0ea4f44ab1e3cc3b08edab9 Mon Sep 17 00:00:00 2001 From: C4 <81770958+code423n4@users.noreply.github.com> Date: Mon, 10 Oct 2022 16:33:03 +0200 Subject: [PATCH] zeesaw data for issue #637 --- data/zeesaw-G.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 data/zeesaw-G.md diff --git a/data/zeesaw-G.md b/data/zeesaw-G.md new file mode 100644 index 0000000..00df99e --- /dev/null +++ b/data/zeesaw-G.md @@ -0,0 +1,17 @@ +### Don't Initialize Variables with Default Value + +``` +contracts/BlurExchange.sol::475 => uint256 totalFee = 0; +``` +### Use != 0 instead of > 0 for Unsigned Integer Comparison + +``` +contracts/BlurExchange.sol::557 => return size > 0; +``` +### Long Revert Strings + +``` +contracts/ExecutionDelegate.sol::22 => require(contracts[msg.sender], "Contract is not approved to make transfers"); +contracts/ExecutionDelegate.sol::22 => require(contracts[msg.sender], "Contract is not approved to make transfers"); +contracts/BlurExchange.sol::482 => require(totalFee <= price, "Total amount of fees are more than the price"); +```