ampleforth / token-geyser-v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GEY-02: Bytecode Optimization

thegostep opened this issue · comments

type severity location
Gas Optimization Informational https://github.com/ampleforth/token-geyser-v2/blob/c970676aaecb08e942fe1088a4b1ddcb26655fe6/contracts/Geyser.sol%23L375-L398

Description:

The linked functions differ in the code they execute by a single variable which is passed as a literal in one implementation and as a variable in the other.

Recommendation:

We advise that the literal-using implementation invokes the variable-using implementation to reduce the bytecode of the contract significantly.