diff --git a/packages/retryable-monitor/handlers/handleFailedRetryablesFound.ts b/packages/retryable-monitor/handlers/handleFailedRetryablesFound.ts index b255f0d..94c7c37 100644 --- a/packages/retryable-monitor/handlers/handleFailedRetryablesFound.ts +++ b/packages/retryable-monitor/handlers/handleFailedRetryablesFound.ts @@ -13,10 +13,11 @@ export const handleFailedRetryablesFound = async ( ticket: OnFailedRetryableFoundParams, writeToNotion: boolean ) => { - // report the Retryable in Slack - await reportFailedRetryables(ticket) + //old slack alert: only when not writing to Notion + if (!writeToNotion) { + await reportFailedRetryables(ticket) + } - // sync the Retryable to Notion if (writeToNotion) { const { tokenDepositData, @@ -28,7 +29,6 @@ export const handleFailedRetryablesFound = async ( const childChainProvider = new providers.JsonRpcProvider( String(childChain.orbitRpcUrl) ) - const parentChainProvider = new providers.JsonRpcProvider( String(childChain.parentRpcUrl) ) @@ -38,7 +38,6 @@ export const handleFailedRetryablesFound = async ( childChain, parentChainProvider ) - const l2CallValueFormatted = formattedCallValueFull .replace('\n\t *Child chain callvalue:* ', '') .trim() @@ -58,6 +57,7 @@ export const handleFailedRetryablesFound = async ( 6 )} ${symbol} ($${usdValue.toFixed(2)}) (${address})` } + const { l2GasPrice, l2GasPriceAtCreation } = await getGasInfo( childChainRetryableReport.createdAtBlockNumber, childChainRetryableReport.id,