Skip to content

Conversation

petarvujovic98
Copy link
Collaborator

This PR implements the logic to fetch from registries in order to get a list of deployments from them.
In addition to this it also improves swap logic by checking if the liquidator account already has enough funds for that asset and adds a new should_liquidate method to be implemented by each liquidator as an additional heuristic.

@petarvujovic98 petarvujovic98 linked an issue Aug 10, 2025 that may be closed by this pull request
Copy link

github-actions bot commented Aug 10, 2025

Name Deployment
Registry gh-200.templar-in-training.testnet
Default market default-16876380747.gh-200.templar-in-training.testnet

Gas Report

harvest_yield

Iterations Gas
0 3.5 Tgas
391 11.1 Tgas

Estimated snapshot limit: 14422

apply_interest

Iterations Gas
0 3.4 Tgas
391 13.2 Tgas

Estimated snapshot limit: 11235

@petarvujovic98 petarvujovic98 force-pushed the 199-fetch-all-deployments-from-registry-list-in-liquidator-bot branch from d146a07 to b62241c Compare August 11, 2025 09:02
Copy link
Contributor

@joshuajbouw joshuajbouw 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!

Copy link
Collaborator

@peer2f00l peer2f00l left a comment

Choose a reason for hiding this comment

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

LGTM

@petarvujovic98 petarvujovic98 merged commit 22d7259 into dev Aug 12, 2025
5 checks passed
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.

Fetch all deployments from registry list in liquidator bot

3 participants