Skip to content

liquidator interface#40

Closed
nialexsan wants to merge 5 commits intomainfrom
nialexsan/liquidator-interface
Closed

liquidator interface#40
nialexsan wants to merge 5 commits intomainfrom
nialexsan/liquidator-interface

Conversation

@nialexsan
Copy link
Collaborator

@nialexsan nialexsan commented Aug 22, 2025

connected PR:
onflow/FlowActions#28

@codecov
Copy link

codecov bot commented Aug 25, 2025

Codecov Report

❌ Patch coverage is 53.06122% with 23 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cadence/contracts/TidalProtocol.cdc 53.06% 23 Missing ⚠️

📢 Thoughts on this report? Let us know!

@nialexsan nialexsan marked this pull request as ready for review August 25, 2025 19:48
@sisyphusSmiling sisyphusSmiling mentioned this pull request Sep 6, 2025

/// Simulates the withdrawable amount of `type` if the position were fully rebalanced (liquidation scenario).
/// Returns the amount in units of `type`.
access(all) fun simulateCloseoutWithdrawalAmount(pid: UInt64, type: Type): UFix64 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be integrated into the pool's withdrawal path? It's not clear to me how the checks within the withdrawAndPull method pass without also risking withdrawals exceed their health limits on standard withdrawals

@sisyphusSmiling
Copy link
Contributor

@nialexsan does this still need review?

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.

2 participants