code-423n4 / 2021-11-fei-findings

0 stars 0 forks source link

An unchanging variable not declared constant #117

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

Czar102

Vulnerability details

Impact

The variable preMergeCirculatingTribe is not marked constant, thus every read is very gas-inefficient. The deployment costs 16,014 gas more.

Proof of Concept

code

Tools Used

slither, truffle, ganache

Recommended Mitigation Steps

Mark the variable constant.

elee1766 commented 2 years ago

147

pauliax commented 2 years ago

A duplicate of #147