Skip to content

fix: enforce submit frequency in RocketNetworkPrices.submitPrices#344

Open
Sertug17 wants to merge 1 commit into
rocket-pool:masterfrom
Sertug17:fix/prices-frequency-gate
Open

fix: enforce submit frequency in RocketNetworkPrices.submitPrices#344
Sertug17 wants to merge 1 commit into
rocket-pool:masterfrom
Sertug17:fix/prices-frequency-gate

Conversation

@Sertug17

@Sertug17 Sertug17 commented Jun 19, 2026

Copy link
Copy Markdown

Adds the frequency gate that was missing from the price submission path. The frequency setting exists in RocketDAOProtocolSettingsNetwork (network.submit.prices.frequency) and is used by the settings interface, but submitPrices and executeUpdatePrices never checked it unlike RocketNetworkBalances which does enforce its equivalent setting.

Closes #342

RocketNetworkPrices has a configured submit frequency (default 1 day) via
RocketDAOProtocolSettingsNetwork.getSubmitPricesFrequency(), but submitPrices
never checked it. RocketNetworkBalances does check its equivalent frequency
setting using the same pattern.

Added a timestampKey storage slot, getPricesTimestamp() getter, and frequency
check in both submitPrices and executeUpdatePrices that mirrors the balances
contract's approach with the 95% tolerance window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RocketNetworkPrices.submitPrices doesn't enforce the configured frequency despite the setting existing

1 participant