Skip to content

Commit 6d669f4

Browse files
committed
restore comment
1 parent 6eb10b6 commit 6d669f4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cadence/contracts/TidalProtocol.cdc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,9 @@ access(all) contract TidalProtocol {
861861
log(" [CONTRACT] effectiveCollateralAfterDeposit: \(effectiveCollateralAfterDeposit)")
862862
log(" [CONTRACT] effectiveDebtAfterDeposit: \(effectiveDebtAfterDeposit)")
863863

864+
// We now have new effective collateral and debt values that reflect the proposed deposit (if any!)
865+
// Now we can figure out how many of the withdrawal token are available while keeping the position
866+
// at or above the target health value.
864867
return AdjustedBalances(collateral: effectiveCollateralAfterDeposit, debt: effectiveDebtAfterDeposit)
865868
}
866869

0 commit comments

Comments
 (0)