The original Ethereum integration and ckETH cycles calculation logic used a linear approximation of the HTTP outcall cycles cost calculation. This PR uses the exact formula, which includes a quadratic term:
I also added a link to the (somewhat difficult-to-find) documentation page knowing that some community members are using this code as reference for calculating HTTP outcall costs.
The original Ethereum integration and ckETH cycles calculation logic used a linear approximation of the HTTP outcall cycles cost calculation. This PR uses the exact formula, which includes a quadratic term:
((3M + 60K * nodes_in_subnet) + 400 * request_size + 800 * max_response) * nodes_in_subnet
I also added a link to the (somewhat difficult-to-find) documentation page knowing that some community members are using this code as reference for calculating HTTP outcall costs.