Skip to content

chore: use strongly typed events and improve auction events #15

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

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

mootz12
Copy link
Contributor

@mootz12 mootz12 commented Dec 17, 2024

No description provided.

Copy link
Contributor

@markuspluna markuspluna left a comment

Choose a reason for hiding this comment

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

one potential addition commented

/// * user - The auction user
/// * auction_type - The type of auction
/// * auction_data - The auction data
pub fn new_auction(e: &Env, user: Address, auction_type: u32, auction_data: AuctionData) {
Copy link
Contributor

Choose a reason for hiding this comment

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

do we want to emit the percent liquidated as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Liquidation percent is not auction agnostic, so it is currently left out.

While the data is potentially useful, it is also indexable via transactions, given liquidation percent is an argument, and auction data is the return value.

@mootz12 mootz12 merged commit 5e436be into main Dec 17, 2024
3 checks passed
@mootz12 mootz12 deleted the better-events branch December 17, 2024 18:37
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