Skip to content

Revert "Use correct sinkVault"#72

Merged
nialexsan merged 3 commits intomainfrom
revert-67-kan/address-over-collateralized-scenario
Dec 6, 2025
Merged

Revert "Use correct sinkVault"#72
nialexsan merged 3 commits intomainfrom
revert-67-kan/address-over-collateralized-scenario

Conversation

@nialexsan
Copy link
Copy Markdown
Contributor

Reverts #67
reverting back to minting on rebalancing for overcollateralized positions

@nialexsan nialexsan requested a review from a team as a code owner December 5, 2025 21:38
Comment thread cadence/contracts/FlowCreditMarket.cdc Outdated
Comment thread cadence/contracts/FlowCreditMarket.cdc Outdated
let reserveRef = (&self.reserves[sinkType] as auth(FungibleToken.Withdraw) &{FungibleToken.Vault}?)!
let sinkVault <- reserveRef.withdraw(amount: actualSinkAmount)

if sinkAmount > 0.0 && sinkType == self.defaultToken {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we just check for default token here, we should either comment that this has to be moet, or just change this to check for MOET, since that's what we mint in this branch

@nialexsan nialexsan merged commit 5da5a4f into main Dec 6, 2025
1 check passed
@nialexsan nialexsan deleted the revert-67-kan/address-over-collateralized-scenario branch December 6, 2025 01:38
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