Skip to content

feat: supra pull oracle#8

Open
jasm1n33 wants to merge 2 commits intomainfrom
feat/supra-pull-oracle
Open

feat: supra pull oracle#8
jasm1n33 wants to merge 2 commits intomainfrom
feat/supra-pull-oracle

Conversation

@jasm1n33
Copy link
Contributor

@jasm1n33 jasm1n33 commented Apr 13, 2025

  • update supra oracle before any operations

@jasm1n33 jasm1n33 requested a review from RayHuang880301 April 13, 2025 19:50
Copy link
Collaborator

@StillFantastic StillFantastic left a comment

Choose a reason for hiding this comment

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

The Supra integration part looks good to me.
Only a small suggestion.

Comment on lines +300 to +302
_beforeRepayDebt(_debtAmount);

IBorrowerOperationsFacet(xApp).repayDebt(troveManager, msg.sender, _debtAmount, _upperHint, _lowerHint);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider refactoring a bit to reuse existing code by callingrepayDebt here for example?

Copy link
Collaborator

@StillFantastic StillFantastic left a comment

Choose a reason for hiding this comment

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

Sorry I didn't make that very clear, the refactor can be applied to all the new functions, I think. But functionality-wise it should be the same so you can decide.

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