Skip to content

Commit

Permalink
Prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kidambisrinivas committed Mar 25, 2024
1 parent 7d2986c commit 80670a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions contracts/src/v0.8/vrf/dev/VRFV2PlusWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ contract VRFV2PlusWrapper is ConfirmedOwner, TypeAndVersionInterface, VRFConsume

// coordinatorCostWithPremiumAndFlatFeeWei is the coordinator cost with the percentage premium and flat fee applied
// coordinator cost * premium multiplier + flat fee
uint256 coordinatorCostWithPremiumAndFlatFeeWei = ((coordinatorCostWei * (s_coordinatorNativePremiumPercentage + 100)) /
100) + (1e12 * uint256(s_fulfillmentFlatFeeNativePPM));
uint256 coordinatorCostWithPremiumAndFlatFeeWei = ((coordinatorCostWei *
(s_coordinatorNativePremiumPercentage + 100)) / 100) + (1e12 * uint256(s_fulfillmentFlatFeeNativePPM));

return wrapperCostWei + coordinatorCostWithPremiumAndFlatFeeWei;
}
Expand All @@ -415,8 +415,9 @@ contract VRFV2PlusWrapper is ConfirmedOwner, TypeAndVersionInterface, VRFConsume

// coordinatorCostWithPremiumAndFlatFeeWei is the coordinator cost with the percentage premium and flat fee applied
// coordinator cost * premium multiplier + flat fee
uint256 coordinatorCostWithPremiumAndFlatFeeWei = ((coordinatorCostWei * (s_coordinatorLinkPremiumPercentage + 100)) /
100) + (1e12 * uint256(s_fulfillmentFlatFeeNativePPM - s_fulfillmentFlatFeeLinkDiscountPPM));
uint256 coordinatorCostWithPremiumAndFlatFeeWei = ((coordinatorCostWei *
(s_coordinatorLinkPremiumPercentage + 100)) / 100) +
(1e12 * uint256(s_fulfillmentFlatFeeNativePPM - s_fulfillmentFlatFeeLinkDiscountPPM));

// requestPrice is denominated in juels (link)
// (1e18 juels/link) * wei / (wei/link) = juels
Expand Down

0 comments on commit 80670a7

Please sign in to comment.