Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add history entries for loan payback during dToken restart #3042

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

kuegi
Copy link
Contributor

@kuegi kuegi commented Sep 10, 2024

Summary

dToken restart is missing the vaulthistory entries.

Please review the resulting entries, I am not sure how vaultHistory should behave. From existing entries I assumed that a vaulthistory entry with the owner address references loan changes and without address (resulting in "vault collateral") references collateral changes.

I marked the payback during the restart as PaybackLoan and PaybackWithCollateral to have a better understanding of what actually happened.

Implications

  • Storage

    • Database reindex required
    • Database reindex optional
    • Database reindex not required
    • None
  • Consensus

    • Network upgrade required
    • Includes backward compatible changes
    • Includes consensus workarounds
    • Includes consensus refactors
    • None

@kuegi kuegi changed the title add vaulthistory entries for dToken restart add history entries for loan payback during dToken restart Sep 10, 2024
@Bushstar Bushstar merged commit 36123ce into DeFiCh:master Sep 16, 2024
17 of 26 checks passed
@Bushstar Bushstar deleted the fix/restart-vault-history branch September 16, 2024 06:26
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