@@ -246,7 +246,6 @@ pub mod shrine {
246
246
pub enum Event {
247
247
AccessControlEvent : access_control_component :: Event ,
248
248
YangAdded : YangAdded ,
249
- YangTotalUpdated : YangTotalUpdated ,
250
249
TotalTrovesDebtUpdated : TotalTrovesDebtUpdated ,
251
250
ProtocolOwnedTrovesDebtUpdated : ProtocolOwnedTrovesDebtUpdated ,
252
251
BudgetAdjusted : BudgetAdjusted ,
@@ -260,7 +259,6 @@ pub mod shrine {
260
259
Melt : Melt ,
261
260
Charge : Charge ,
262
261
TroveRedistributed : TroveRedistributed ,
263
- DepositUpdated : DepositUpdated ,
264
262
YangPriceUpdated : YangPriceUpdated ,
265
263
YinPriceUpdated : YinPriceUpdated ,
266
264
MinimumTroveValueUpdated : MinimumTroveValueUpdated ,
@@ -281,13 +279,6 @@ pub mod shrine {
281
279
pub initial_rate : Ray
282
280
}
283
281
284
- #[derive(Copy , Drop , starknet:: Event , PartialEq )]
285
- pub struct YangTotalUpdated {
286
- #[key]
287
- pub yang : ContractAddress ,
288
- pub total : Wad
289
- }
290
-
291
282
#[derive(Copy , Drop , starknet:: Event , PartialEq )]
292
283
pub struct TotalTrovesDebtUpdated {
293
284
pub total : Wad
@@ -375,15 +366,6 @@ pub mod shrine {
375
366
pub debt : Wad
376
367
}
377
368
378
- #[derive(Copy , Drop , starknet:: Event , PartialEq )]
379
- pub struct DepositUpdated {
380
- #[key]
381
- pub yang : ContractAddress ,
382
- #[key]
383
- pub trove_id : u64 ,
384
- pub amount : Wad
385
- }
386
-
387
369
#[derive(Copy , Drop , starknet:: Event , PartialEq )]
388
370
pub struct YangPriceUpdated {
389
371
#[key]
@@ -724,7 +706,6 @@ pub mod shrine {
724
706
725
707
// Event emissions
726
708
self . emit (YangAdded { yang , yang_id , start_price , initial_rate });
727
- self . emit (YangTotalUpdated { yang , total : initial_yang_amt });
728
709
}
729
710
730
711
fn set_threshold (ref self : ContractState , yang : ContractAddress , new_threshold : Ray ) {
@@ -974,10 +955,6 @@ pub mod shrine {
974
955
// Update trove balance
975
956
let new_trove_balance : Wad = self . deposits. read ((yang_id , trove_id )) + amount ;
976
957
self . deposits. write ((yang_id , trove_id ), new_trove_balance );
977
-
978
- // Events
979
- self . emit (YangTotalUpdated { yang , total : new_total });
980
- self . emit (DepositUpdated { yang , trove_id , amount : new_trove_balance });
981
958
}
982
959
983
960
// Withdraw a specified amount of a Yang from a Trove with trove safety check
@@ -1567,10 +1544,6 @@ pub mod shrine {
1567
1544
1568
1545
self . yang_total. write (yang_id , new_total );
1569
1546
self . deposits. write ((yang_id , trove_id ), new_trove_balance );
1570
-
1571
- // Emit events
1572
- self . emit (YangTotalUpdated { yang , total : new_total });
1573
- self . emit (DepositUpdated { yang , trove_id , amount : new_trove_balance });
1574
1547
}
1575
1548
1576
1549
// Adds the accumulated interest as debt to the trove
0 commit comments