code-423n4 / 2021-04-maple-findings

0 stars 0 forks source link

Using precalculated value in the Pool & Loan contracts #75

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

a_delamo

Vulnerability details

Impact

Low, just gas optimizations

Proof of Concept

Here you have a gist: https://gist.github.com/alexon1234/60973d61b49ff1f5ec83b121b33b30b1

Tools Used

Remix

Recommended Mitigation Steps

Use constant for unchanging values

lucas-manuel commented 3 years ago

Gas optimization, will address