fix(balancer-susbtreams): fix a bug with pool id in case of Swap event. Also bump the Substreams version.

This commit is contained in:
zizou
2024-09-06 11:04:29 +02:00
parent f181688090
commit 065c162c5a
4 changed files with 5 additions and 5 deletions

View File

@@ -90,10 +90,10 @@ pub fn map_relative_balances(
}
}
} else if let Some(ev) = abi::vault::events::Swap::match_and_decode(vault_log.log) {
let component_id = format!("0x{}", hex::encode(&ev.pool_id[..20]));
let component_id = format!("0x{}", hex::encode(ev.pool_id));
if store
.get_last(format!("pool:{}", component_id))
.get_last(format!("pool:{}", &component_id[..42]))
.is_some()
{
deltas.extend_from_slice(&[