code-423n4 / 2021-12-amun-findings

0 stars 0 forks source link

Division by `10 ** 18` #272

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

Czar102

Vulnerability details

Impact

It is recommended to divide by constant variables instead of a number -- 10 ** 18 should be replaced with HUNDRED_PERCENT in relevant contexts in BasketFacet.

The change would improve code readability and flexibility.

Proof of Concept