Open kingster-will opened 2 months ago
TODO: Add EIP reference link
A good reference for gas cost of precompile.
Some feedback after talking with auditors scoping, we should have different pricing strategies for read / write. Reads could also be a DDOS vector, but they should be cheaper.
Description and context
We propose to implement a dynamic gas cost calculation mechanism for different IP Graph function calls, based on memory usage, storage access, and CPU consumption. This enhancement aims to optimize the gas efficiency of our smart contracts by accurately reflecting the computational resources required for each function call.
Details
The current implementation of the IP Graph functions does not dynamically calculate gas costs based on the actual computational resources used. This can lead to inefficiencies, where some operations may consume more gas than necessary.
Implementation Steps:
Acceptance Criteria