code-423n4 / 2022-01-trader-joe-findings

2 stars 0 forks source link

Mark constant variables constant #275

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

Czar102

Vulnerability details

Impact

Constant variables are substituted in code during compilation and since don't need storage reads

Proof of Concept

uint256 private PRECISION;

Tools Used

Manual analysis

cryptofish7 commented 2 years ago

Duplicate of #239

dmvt commented 2 years ago

Per sponsor, this is invalid because the contract in question is proxied.