@@ -158,6 +158,13 @@ pub fn history_depth_updated(env: &Env, depth: u32) {
158158 env. events ( ) . publish ( ( symbol_short ! ( "hd_upd" ) , ) , depth) ;
159159}
160160
161+ // ── Time-weighted exponential decay ────────────────────────────────────────
162+
163+ /// Emitted when the admin sets the exponential decay rate via `set_decay_rate`.
164+ pub fn decay_rate_updated ( env : & Env , numerator : u32 , denominator : u32 ) {
165+ env. events ( ) . publish ( ( symbol_short ! ( "decay_upd" ) , ) , ( numerator, denominator) ) ;
166+ }
167+
161168// ── Fee withdrawal ────────────────────────────────────────────────────────────
162169
163170/// Emitted when the admin configures or rotates the fee token via
@@ -174,12 +181,26 @@ pub fn fee_withdrawn(
174181 fee_token : & Address ,
175182 amount : i128 ,
176183) {
177- env. events ( )
178- . publish ( ( symbol_short ! ( "fee_out" ) , ) , ( admin. clone ( ) , recipient. clone ( ) , fee_token. clone ( ) , amount) ) ;
184+ env. events ( ) . publish (
185+ ( symbol_short ! ( "fee_out" ) , ) ,
186+ ( admin. clone ( ) , recipient. clone ( ) , fee_token. clone ( ) , amount) ,
187+ ) ;
179188}
180189
181190/// Emitted when `withdraw_fees` is rejected because the concurrency lock is
182191/// already held by an in-flight call.
183192pub fn withdrawal_locked ( env : & Env , admin : & Address ) {
184193 env. events ( ) . publish ( ( symbol_short ! ( "wdl_lck" ) , ) , admin. clone ( ) ) ;
185194}
195+
196+ // ── Wallet-score delegation ───────────────────────────────────────────────────
197+
198+ /// Emitted when `set_score_delegate` registers or updates a delegation.
199+ pub fn delegate_set ( env : & Env , sub_wallet : & Address , custodian : & Address ) {
200+ env. events ( ) . publish ( ( symbol_short ! ( "dlg_set" ) , ) , ( sub_wallet. clone ( ) , custodian. clone ( ) ) ) ;
201+ }
202+
203+ /// Emitted when `remove_score_delegate` removes a delegation.
204+ pub fn delegate_removed ( env : & Env , sub_wallet : & Address ) {
205+ env. events ( ) . publish ( ( symbol_short ! ( "dlg_rem" ) , ) , sub_wallet. clone ( ) ) ;
206+ }
0 commit comments