Skip to content

Commit

Permalink
Rebasing on main
Browse files Browse the repository at this point in the history
  • Loading branch information
batconjurer committed Nov 5, 2024
1 parent be79dcd commit 4c756bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/shielded_token/src/masp/shielded_wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ pub trait ShieldedApi<U: ShieldedUtils + MaybeSend + MaybeSync>:
Conversions::new(),
)
.await?
.2;
.1;

// re-date the all the latest conversions up one epoch
let mut estimated_conversions = Conversions::new();
Expand All @@ -743,7 +743,7 @@ pub trait ShieldedApi<U: ShieldedUtils + MaybeSend + MaybeSync>:
asset.redate_to_next_epoch();
let decoded_conv = self
.decode_sum(context.client(), conv.clone().into())
.await;
.await.0;
let mut est_conv = I128Sum::zero();
for ((_, asset_data), val) in decoded_conv.components() {
let mut new_asset = asset_data.clone();
Expand Down Expand Up @@ -775,6 +775,7 @@ pub trait ShieldedApi<U: ShieldedUtils + MaybeSend + MaybeSync>:
Ok(self
.decode_sum(context.client(), rewards)
.await
.0
.components()
.filter(|((_, data), _)| {
// this should always be true, but we check it anyway
Expand Down

0 comments on commit 4c756bd

Please sign in to comment.