Skip to content

Conversation

@MartinquaXD
Copy link
Contributor

@MartinquaXD MartinquaXD commented Nov 3, 2025

Description

Currently we store the cow amm's helper contract as its factory address. But when we load them from the DB to init the cache we search for them by the factory address.

This was not caught by tests because we don't have a test that:

  1. indexes new cow amms
  2. shuts down the autopilot
  3. restarts the autopilot
  4. inits the autopilot's cow amm cache from the DB

Changes

This PR fixes the issue by correctly using the factory address for storing and loading.

I fixed the incorrect DB entries and after restarting the autopilot pods all cow AMMs got loaded correctly.

@MartinquaXD MartinquaXD requested a review from a team as a code owner November 3, 2025 14:12
@MartinquaXD MartinquaXD added this pull request to the merge queue Nov 3, 2025
Merged via the queue into main with commit fbcec11 Nov 3, 2025
18 checks passed
@MartinquaXD MartinquaXD deleted the fix-writing-cow-amms-to-db branch November 3, 2025 15:38
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants