Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: added liquidation model #572

Merged
merged 10 commits into from
Feb 20, 2025

Conversation

abdegenius
Copy link
Contributor

To Close: #569
Added Liquidation Model to the margin app

@abdegenius
Copy link
Contributor Author

@djeck1432 please review PR

@djeck1432 djeck1432 self-requested a review February 20, 2025 16:17
Copy link
Owner

@djeck1432 djeck1432 left a comment

Choose a reason for hiding this comment

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

Also don't forget to generate migration file

)
bonus_amount: Mapped[Decimal] = mapped_column(nullable=False)
bonus_token: Mapped[str] = mapped_column(String, nullable=False)
created_at: Mapped[datetime] = mapped_column(
Copy link
Owner

Choose a reason for hiding this comment

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

remove created_at -> it's not needed as fat as it's in BaseModel already

@djeck1432
Copy link
Owner

@abdegenius ANy updates?

Copy link
Owner

@djeck1432 djeck1432 left a comment

Choose a reason for hiding this comment

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

Add this class Liquidation to alembic/env.py to import

Copy link
Owner

@djeck1432 djeck1432 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@djeck1432 djeck1432 merged commit c2e70f9 into djeck1432:main Feb 20, 2025
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MarginApp] Add Liquidation model
2 participants