Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions apps/fallback/src/app/dashboard/borrow-subpage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export function BorrowSubPage() {
address: morpho?.address,
fromBlock: morpho?.fromBlock,
reverseChronologicalOrder: true,
// This event is explictly whitelisted for our private RPC log service
eventName: "SupplyCollateral",
args: { onBehalf: userAddress },
strict: true,
Expand Down
1 change: 1 addition & 0 deletions apps/fallback/src/app/dashboard/earn-subpage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export function EarnSubPage() {
address: factoryV1_1 ? [factoryV1_1.address].concat(factory ? [factory.address] : []) : [],
fromBlock: factory?.fromBlock ?? factoryV1_1?.fromBlock,
reverseChronologicalOrder: true,
// This event is explictly whitelisted for our private RPC log service
eventName: "CreateMetaMorpho",
strict: true,
query: { enabled: chainId !== undefined },
Expand Down
26 changes: 13 additions & 13 deletions apps/fallback/src/lib/wagmi-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ function createFallbackTransport(rpcs: ({ url: string } & HttpTransportConfig)[]
);
}

function createPonderHttp(chainId: number) {
function createFallbackRpcHttp(chainId: number) {
return [
{
url: `https://v1-indexer.marble.live/rpc/${chainId}`,
url: `https://fallback-rpc.vercel.app/${chainId}`,
batch: false,
methods: { include: ["eth_getLogs"] },
},
Expand Down Expand Up @@ -99,44 +99,44 @@ const chains = [
const transports: Record<(typeof chains)[number]["id"], Transport> = {
// full support
[mainnet.id]: createFallbackTransport([
...createPonderHttp(mainnet.id),
...createFallbackRpcHttp(mainnet.id),
{ url: "https://rpc.mevblocker.io", batch: { batchSize: 10 } },
{ url: "https://rpc.ankr.com/eth", batch: { batchSize: 10 } },
{ url: "https://eth-pokt.nodies.app", batch: false },
{ url: "https://eth.drpc.org", batch: false },
{ url: "https://eth.merkle.io", batch: false },
]),
[base.id]: createFallbackTransport([
...createPonderHttp(base.id),
...createFallbackRpcHttp(base.id),
{ url: "https://base.gateway.tenderly.co", batch: { batchSize: 10 } },
{ url: "https://base.drpc.org", batch: false },
{ url: "https://mainnet.base.org", batch: { batchSize: 10 } },
{ url: "https://base.lava.build", batch: false },
]),
[polygon.id]: createFallbackTransport([
...createPonderHttp(polygon.id),
...createFallbackRpcHttp(polygon.id),
{ url: "https://polygon.gateway.tenderly.co", batch: { batchSize: 10 } },
{ url: "https://polygon.drpc.org", batch: false },
]),
[unichain.id]: createFallbackTransport([
...createPonderHttp(unichain.id),
...createFallbackRpcHttp(unichain.id),
{ url: "https://unichain.gateway.tenderly.co", batch: { batchSize: 10 } },
{ url: "https://mainnet.unichain.org", batch: false },
{ url: "https://unichain.drpc.org", batch: false },
]),
[customChains.katana.id]: createFallbackTransport([
...createPonderHttp(customChains.katana.id),
...createFallbackRpcHttp(customChains.katana.id),
{ url: "https://katana.gateway.tenderly.co", batch: { batchSize: 10 } },
...customChains.katana.rpcUrls.default.http.map((url) => ({ url, batch: false })),
]),
[arbitrum.id]: createFallbackTransport([
...createPonderHttp(arbitrum.id),
...createFallbackRpcHttp(arbitrum.id),
{ url: "https://arbitrum.gateway.tenderly.co", batch: { batchSize: 10 } },
{ url: "https://rpc.ankr.com/arbitrum", batch: { batchSize: 10 } },
{ url: "https://arbitrum.drpc.org", batch: false },
]),
[customChains.hyperevm.id]: createFallbackTransport([
...createPonderHttp(customChains.hyperevm.id),
...createFallbackRpcHttp(customChains.hyperevm.id),
...customChains.hyperevm.rpcUrls.default.http.map((url) => ({ url, batch: false })),
]),
// fallback support
Expand Down Expand Up @@ -196,7 +196,7 @@ const transports: Record<(typeof chains)[number]["id"], Transport> = {
{ url: "https://mainnet.mode.network", batch: false },
{ url: "https://mode.drpc.org", batch: false },
]),
[customChains.monad.id]: createFallbackTransport([...createPonderHttp(customChains.monad.id)]),
[customChains.monad.id]: createFallbackTransport([...createFallbackRpcHttp(customChains.monad.id)]),
[hemi.id]: createFallbackTransport([{ url: "https://rpc.hemi.network/rpc", batch: false }]),
[lisk.id]: createFallbackTransport([
{ url: "https://lisk.gateway.tenderly.co", batch: { batchSize: 10 } },
Expand All @@ -207,17 +207,17 @@ const transports: Record<(typeof chains)[number]["id"], Transport> = {
...soneium.rpcUrls.default.http.map((url) => ({ url, batch: false })),
]),
[sei.id]: createFallbackTransport([
...createPonderHttp(sei.id),
...createFallbackRpcHttp(sei.id),
{ url: "https://sei-public.nodies.app", batch: false, key: "sei-nodies-maxNum-2000" },
{ url: "https://sei.therpc.io", batch: false, key: "sei-therpc-maxNum-2000" },
{ url: "https://sei.drpc.org", batch: false, key: "sei-drpc-maxNum-2000" },
]),
[customChains.tac.id]: createFallbackTransport([
...createPonderHttp(customChains.tac.id),
...createFallbackRpcHttp(customChains.tac.id),
...customChains.tac.rpcUrls.default.http.map((url) => ({ url, batch: false })),
]),
[customChains.stable.id]: createFallbackTransport([
...createPonderHttp(customChains.stable.id),
...createFallbackRpcHttp(customChains.stable.id),
...customChains.stable.rpcUrls.default.http.map((url) => ({ url, batch: false })),
]),
// [customChains.basecamp.id]: createFallbackTransport(
Expand Down
Loading