-
Notifications
You must be signed in to change notification settings - Fork 157
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
Conversation
@djeck1432 please review PR |
There was a problem hiding this 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
margin_app/app/models/liquidation.py
Outdated
) | ||
bonus_amount: Mapped[Decimal] = mapped_column(nullable=False) | ||
bonus_token: Mapped[str] = mapped_column(String, nullable=False) | ||
created_at: Mapped[datetime] = mapped_column( |
There was a problem hiding this comment.
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
@abdegenius ANy updates? |
There was a problem hiding this 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
There was a problem hiding this 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
To Close: #569
Added Liquidation Model to the margin app