Skip to content

refactor(monitor): Use discrete CrossChainTransferClients#3039

Open
pxrl wants to merge 3 commits intopxrl/monitorSimplifyfrom
pxrl/monitorDuplicate
Open

refactor(monitor): Use discrete CrossChainTransferClients#3039
pxrl wants to merge 3 commits intopxrl/monitorSimplifyfrom
pxrl/monitorDuplicate

Conversation

@pxrl
Copy link
Collaborator

@pxrl pxrl commented Mar 11, 2026

The Monitor has two use cases related to tracking crosschain transfers:
protocol rebalances and relayer rebalances. Relayer rebalances are EOA
-> EOA where the src and dst addresses are the same; protocol rebalances
have assymetric addresses because the transfers happen from HubPool and
SpokePool. This complexity is unfortunately unhandled by the Monitor and
is instead pushed deep down into the bridge adapter interfaces, causing
unhelpful complexity. This should instead be handled up at the Monitor
level, where there's more flexibility.

There are subsequent changes to follow, where the bridge adapter
implementations will be unburdened of the need to infer from & to
addresses on crosschain transfers based on voodoo incantations about
whether the addresses are EOAs or contracts.

The Monitor has two use cases related to tracking crosschain transfers:
protocol rebalances and relayer rebalances. Relayer rebalances are EOA
-> EOA where the src and dst addresses are the same; protocol rebalances
have assymetric addresses because the transfers happen from HubPool and
SpokePool. This complexity is unfortunately unhandled by the Monitor and
is instead pushed deep down into the bridge adapter interfaces, causing
unhelpful complexity. This should instead be handled up at the Monitor
level, where there's more flexibility.

There are subsequent changes to follow, where the bridge adapter
implementations will be unburdened of the need to infer from & to
addresses on crosschain transfers based on voodoo incantations about
whether the addresses are EOAs or contracts.
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.

1 participant