ampleforth / token-geyser-v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UVT-04: Dynamically Computed Static Value

thegostep opened this issue · comments

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

Description:

The linked lines compute the keccak256 value of string literals.

Recommendation:

We advise that the full evaluations are instead stored as constant contract-level variables. Constant variables are hot-swapped during compilation and are as such safe to utilize in proxied contracts.