From 1a575f62e3bc8a698ee78718fc11adedd1317bda Mon Sep 17 00:00:00 2001 From: C4 <81770958+code423n4@users.noreply.github.com> Date: Thu, 8 Sep 2022 19:56:44 +0200 Subject: [PATCH] 0x040 data for issue #136 --- data/0x040-Q.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 data/0x040-Q.md diff --git a/data/0x040-Q.md b/data/0x040-Q.md new file mode 100644 index 0000000..59e24b9 --- /dev/null +++ b/data/0x040-Q.md @@ -0,0 +1,10 @@ +# Low +- use a later solidity version +- Description +It's a better to use the latest compiler version. The actual compiled version is 0.8.11 (quite old) and the latest is 0.8.16. + +- Mitigation +Update the version of solidity to 0.8.16. + +https://github.com/code-423n4/2022-09-canto/blob/65fbb8b9de22cf8f8f3d742b38b4be41ee35c468/src/Swap/BaseV1-core.sol#L2 +https://github.com/code-423n4/2022-09-canto/blob/65fbb8b9de22cf8f8f3d742b38b4be41ee35c468/src/Swap/BaseV1-periphery.sol#L3