Skip to content

feat: Close PDAs for fills from our relayer#2381

Merged
dijanin-brat merged 43 commits intomasterfrom
dijanin-brat/close-pda-for-fills
Aug 14, 2025
Merged

feat: Close PDAs for fills from our relayer#2381
dijanin-brat merged 43 commits intomasterfrom
dijanin-brat/close-pda-for-fills

Conversation

@dijanin-brat
Copy link
Copy Markdown
Contributor

Close PDAs for Fills made by our relayers.

@dijanin-brat dijanin-brat self-assigned this Jul 17, 2025
Copy link
Copy Markdown
Contributor

@grasphoper grasphoper left a comment

Choose a reason for hiding this comment

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

Looks good! Left a couple of minor comments. I very much like @bmzig's idea.

arch/svm/getRelayDataHash accepts message, but then takes a hash from it in its impl. to arrive at the final relaydatahash. As long as messageHash we have in a fill is just a simple keccak, it should work

Upd.: indeed, here's the svm SC impl of message hashing

@dijanin-brat dijanin-brat marked this pull request as ready for review August 13, 2025 14:42
nicholaspai
nicholaspai previously approved these changes Aug 13, 2025
Copy link
Copy Markdown
Member

@nicholaspai nicholaspai left a comment

Choose a reason for hiding this comment

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

Looks good to me just on question on iterating through the main monitor loop

fusmanii
fusmanii previously approved these changes Aug 13, 2025
@dijanin-brat dijanin-brat dismissed stale reviews from nicholaspai and fusmanii via e03ad3c August 14, 2025 07:44
bmzig
bmzig previously approved these changes Aug 14, 2025
@dijanin-brat dijanin-brat merged commit dd49256 into master Aug 14, 2025
4 checks passed
@dijanin-brat dijanin-brat deleted the dijanin-brat/close-pda-for-fills branch August 14, 2025 15:07
sameersubudhi pushed a commit to LiskHQ/across-relayer that referenced this pull request Aug 18, 2025
* feat: Close PDAs for fills from our relayer

* Log invalidFills without deposit

* Check if PDA is already closed and enable SVM addresses to be monitored

* lint fix

* Use one array of Addresses for both EVM and SVM Addresses for monitored relayers

* Fix MonitorClientHelper

* Remove unused interface

* Add simulate flag to closePDAs bot

* Lint fix

* Bump SDK

* Lint fix

* Exit early if monitoredAddress is not EVM

* Log invalidFills only if there are any

* Remove unnecessary if statement

* Remove unused invalidFills reporting for closing PDAs

* Remove unnecessary comment

* Lint fix

* reportRelayerBalances fix
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.

6 participants