Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -28,7 +29,6 @@ export const handleFailedRetryablesFound = async (
const childChainProvider = new providers.JsonRpcProvider(
String(childChain.orbitRpcUrl)
)

const parentChainProvider = new providers.JsonRpcProvider(
String(childChain.parentRpcUrl)
)
Expand All @@ -38,7 +38,6 @@ export const handleFailedRetryablesFound = async (
childChain,
parentChainProvider
)

const l2CallValueFormatted = formattedCallValueFull
.replace('\n\t *Child chain callvalue:* ', '')
.trim()
Expand All @@ -58,6 +57,7 @@ export const handleFailedRetryablesFound = async (
6
)} ${symbol} ($${usdValue.toFixed(2)}) (${address})`
}

const { l2GasPrice, l2GasPriceAtCreation } = await getGasInfo(
childChainRetryableReport.createdAtBlockNumber,
childChainRetryableReport.id,
Expand Down