@@ -40,10 +40,10 @@ interface IPulse is PulseEvents {
4040 * @notice Requests price updates with a callback
4141 * @dev The msg.value must be equal to getFee(callbackGasLimit)
4242 * @param provider The provider to fulfill the request
43- * @param callbackGasLimit The amount of gas allocated for the callback execution
4443 * @param publishTime The minimum publish time for price updates, it should be less than or equal to block.timestamp + 60
4544 * @param priceIds The price feed IDs to update. Maximum 10 price feeds per request.
4645 * Requests requiring more feeds should be split into multiple calls.
46+ * @param callbackGasLimit The amount of gas allocated for the callback execution
4747 * @return sequenceNumber The sequence number assigned to this request
4848 * @dev Security note: The 60-second future limit on publishTime prevents a DoS vector where
4949 * attackers could submit many low-fee requests for far-future updates when gas prices
@@ -84,8 +84,7 @@ interface IPulse is PulseEvents {
8484
8585 /**
8686 * @notice Calculates the total fee required for a price update request
87- * FIXME: is this comment right?
88- * @dev Total fee = base Pyth protocol fee + gas costs for callback
87+ * @dev Total fee = base Pyth protocol fee + base provider fee + provider fee per feed + gas costs for callback
8988 * @param provider The provider to fulfill the request
9089 * @param callbackGasLimit The amount of gas allocated for callback execution
9190 * @param priceIds The price feed IDs to update.
@@ -97,7 +96,10 @@ interface IPulse is PulseEvents {
9796 bytes32 [] calldata priceIds
9897 ) external view returns (uint128 feeAmount );
9998
100- function getAccruedFees () external view returns (uint128 accruedFeesInWei );
99+ function getAccruedPythFees ()
100+ external
101+ view
102+ returns (uint128 accruedFeesInWei );
101103
102104 function getRequest (
103105 uint64 sequenceNumber
0 commit comments