diff --git a/dexs/rabbitx/index.ts b/dexs/rabbitx/index.ts index c2992063b1..b1f65a3921 100644 --- a/dexs/rabbitx/index.ts +++ b/dexs/rabbitx/index.ts @@ -5,7 +5,7 @@ import { getTimestampAtStartOfDay, getTimestampAtStartOfDayUTC, getTimestampAtSt const historicalVolumeEndpoint = "https://api.prod.rabbitx.io/markets" const candles = (market: string, timestampFrom: number, timestampTo: number) => { - const url = `https://api.prod.rabbitx.io/candles?market_id=${market}×tamp_from=${timestampFrom}×tamp_to=${timestampTo}&period=1440`; +const url = `https://api.prod.rabbitx.io/candles?market_id=${market}×tamp_from=${timestampFrom}×tamp_to=${timestampTo}&period=1440`; return url; } diff --git a/fees/arbitrum/index.ts b/fees/arbitrum/index.ts index 368d44e73f..bd0be1e7fe 100644 --- a/fees/arbitrum/index.ts +++ b/fees/arbitrum/index.ts @@ -25,7 +25,7 @@ const adapter: Adapter = { ` // const seqGas: number = sequencerGas[0].sum const seqGas: any = await queryIndexer(sequencerGas, options) - const feeQuery = await queryFlipside(`SELECT SUM(TX_FEE) from arbitrum.core.fact_transactions where BLOCK_NUMBER > ${startblock} AND BLOCK_NUMBER < ${endblock}`) + const feeQuery = await queryFlipside(`SELECT SUM(TX_FEE) from arbitrum.core.fact_transactions where BLOCK_NUMBER > ${startblock} AND BLOCK_NUMBER < ${endblock}`, 560) const fees = Number(feeQuery[0][0]) dailyFees.addGasToken(fees * 1e18) diff --git a/fees/chainlink-requests.ts b/fees/chainlink-requests.ts index 4888862b0c..ba62cb0f5d 100644 --- a/fees/chainlink-requests.ts +++ b/fees/chainlink-requests.ts @@ -65,7 +65,7 @@ const fetchRequests = (chain: Chain) => { const query_paid = build_link_query(timestamp) const gas_query = build_gas_query(timestamp) - const linkPaid_logs: ILog[] = (await queryFlipside(query_paid, 360)) + const linkPaid_logs: ILog[] = (await queryFlipside(query_paid, 560)) .map(([data, topics, transactionHash, chain]: [string, string[], string, string]) => { return { data, @@ -80,7 +80,7 @@ const fetchRequests = (chain: Chain) => { const payments = Number('0x'+data.slice(128, 192)) / 10 ** 18; return payments; }).reduce((a: number, b: number) => a + b, 0); - const ethGas = await queryFlipside(gas_query, 360) + const ethGas = await queryFlipside(gas_query, 560) const gas_fees = ethGas.map(([fee, chain]: [string, string]) => { return { diff --git a/fees/op-bnb.ts b/fees/op-bnb.ts index 511f69d9cc..40816a76dd 100644 --- a/fees/op-bnb.ts +++ b/fees/op-bnb.ts @@ -36,7 +36,7 @@ const fetch = async (timestamp: number, _chainBlocks: ChainBlocks, options: Fetc and BLOCK_NUMBER > ${await getFromBlock()} AND BLOCK_NUMBER < ${await getToBlock()} ` - const cost_to_l1: number[] = (await queryFlipside(query, 260)).flat(); + const cost_to_l1: number[] = (await queryFlipside(query, 560)).flat(); const dailyFees = await getFees(options) const dailyRevenue = dailyFees.clone(); dailyRevenue.addGasToken((cost_to_l1[0] ?? 0) * 1e18 * -1) diff --git a/fees/polygon.ts b/fees/polygon.ts index 6a61ba186f..6a11164ca5 100644 --- a/fees/polygon.ts +++ b/fees/polygon.ts @@ -46,7 +46,7 @@ const adapter: Adapter = { LEFT JOIN BlockTotals bt ON tt.BLOCK_NUMBER = bt.BLOCK_NUMBER;` - const [tx_fee, burn_fee]: number[] = (await queryFlipside(query_tx_fee, 260)).flat(); + const [tx_fee, burn_fee]: number[] = (await queryFlipside(query_tx_fee, 560)).flat(); const maticAddress = "ethereum:" + ADDRESSES.ethereum.MATIC; dailyFees.addTokenVannila(maticAddress, tx_fee * 1e18);