Skip to content

Conversation

@bmzig
Copy link
Contributor

@bmzig bmzig commented Nov 11, 2025

Taking some logic from #2716. Implements a basic finalizer (but incorrectly derives limitOrderOut currently).

abi: SPONSORED_CCTP_DST_PERIPHERY_ABI,
},
coreReader: {
address: "0x0000000000000000000000000000000000000801",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the right name for this contract, as its the spot-balance precompile address. It can only be used to query spot balances

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed here: f12fcea

@nicholaspai
Copy link
Member

Also I merged in this PR so you can rebase and get accesss to finalizeLimitOrders #2716

});
}

private async getOutstandingOrdersOnPair(pair: Pair): Promise<SwapFlowInitialized[]> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so I think we are currently constrained to get the latest spot balances of base and finalToken as of some Hypercore block. We can get that Hypercore block by querying an "L1_PRECOMPILE" contract at 0x0000000000000000000000000000000000000809

But we're still missing a link between this Hypercore block and some equivalent HyperEVM block we can set as the last block to which we should fetch SwapFlowInitialized events

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.

3 participants