As you're aware, the latest version of substrate removed the need for manual memory management, hence when creating the new SC - tokens are automatically reserved from caller's balance.
To my understanding one has to adjust the following function in order to change the maths related to all runtime modules.
Currently, it costs around 13k native tokens to be reserved to deploy 100kb codehash. However, when comparing the constants file, Polkadot defines the deposit function to use 60 times less tokens.
- Is my understanding of relation between deposit function and contract creation cost (reserve amount) correct?
- If yes, what are the risks of adjusting the function?
- If there are no risks, what is the best way to derive the sounding constants (CENTS, MILLICENTS) and formula for deposit function?