I'm trying to understand exactly how much it costs(in LINK) to fund the gas fee for a chainlink VRF V2 random value request on Ethereum mainnet.
There's a formula here about it but i'm not sure im getting it right.
Any help would be appreciated.
As per the docs link you listed, the cost for a VRF V2 request is split into two parts:
Adding those two values together gives you the total cost in LINK for a VRF node to fulfill a VRF request.
Example:
Using the following parameters:
500 x (200000 + 100000) = 150000000 gwei total gas cost
150000000 gwei = 0.15 ETH convert to LINK using the LINK/ETH feed (at the time of this answer, the feed currently shows Ξ0.0035616455 ETH per 1 LINK)
0.15 ETH / 0.0035616455 = 42.115364934550617 total LINK for gas costs
0.25 LINK + 42.115364934550617 = 42.365364934550617 LINK cost for a request.
Take note that this is just the maximum amount that could be charged; the gas price of 500 won't necessarily be used; this is just the max that a transaction would be bumped to. Also, the limits for callback and verification won't necessarily all be used either, which would also affect the final amount. The only figure guaranteed to be used in the final calculation is the LINK premium, as the VRF node sets that.