Skip to content

Conversation

@nialexsan
Copy link
Collaborator

@nialexsan nialexsan changed the title Nialexsan/extended interface Liquidator interface usage Aug 25, 2025
/// Returns the amount available for withdrawal via the inner Source
access(all) fun availableBalance(ofToken: Type): UFix64 {
return ofToken == self.source.getSourceType() ? self.source.minimumAvailable() : 0.0
return ofToken == self.source.getSourceType() ? self.source.liquidationAmount() : 0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

The usage here makes sense, but don't we also need to use self.source.liquidate() somewhere when closing out the Tide?

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