Skip to content

Commit

Permalink
restore some metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 15, 2024
1 parent 40cd80a commit 48ba72d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/bin/sys-lend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1499,21 +1499,23 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Transaction confirmed: {signature}");

if let Some((deposit_pool, deposit_amount)) = operation_info.deposit_pool_and_amount {
dp::principal_balance_change(
metrics::push(dp::principal_balance_change(
&deposit_pool,
&address,
maybe_token,
token.ui_amount(deposit_amount),
);
))
.await;
}
if let Some((withdraw_pool, withdraw_amount)) = operation_info.withdraw_pool_and_amount
{
dp::principal_balance_change(
metrics::push(dp::principal_balance_change(
&withdraw_pool,
&address,
maybe_token,
-token.ui_amount(withdraw_amount),
);
))
.await;
}
notifier
.send(&format!("{} via via {signature}", operation_info.op_msg))
Expand Down

0 comments on commit 48ba72d

Please sign in to comment.