I am forking the Sushiswap Exchange code for educational purposes, and I have come across a variable in the code called
INIT_CODE_HASH. I am struggling to understand exactly how this variable works, and how it is used in the various DeFi platforms.
My limited understanding is that
INIT_CODE_HASH is used to verify which function of a contract a caller is calling, by using the hash of the init code (Not really sure what the init code is). For some reason I don't quite understand, this is both for security and efficiency purposes.
INIT_CODE_HASH, and how is it calculated / used?