Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions contracts/split/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,17 @@ pub fn group_rollback_triggered(env: &Env, group_id: u64, member_count: u32) {
);
}

/// Issue #489: Emitted when a contribution qualifies for the early-bird discounted
/// platform fee.
/// Topics: (split, ebird_pay, invoice_id)
/// Data: (payer, discount_amount)
pub fn early_bird_payment(env: &Env, invoice_id: u64, payer: &Address, discount_amount: i128) {
env.events().publish(
(symbol_short!("split"), symbol_short!("ebird_pay"), invoice_id),
(payer.clone(), discount_amount),
);
}

/// Issue #439: Emitted when a creator's cancellation cooldown is set.
/// Topics: (split, cr_cool, creator)
/// Data: (until_ledger, cooldown_ledgers)
Expand Down
Loading
Loading