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

2
substreams/Cargo.lock generated
View File

@@ -210,7 +210,7 @@ dependencies = [
[[package]]
name = "ethereum-balancer"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"anyhow",
"bytes",

View File

@@ -1,6 +1,6 @@
[package]
name = "ethereum-balancer"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
[lib]

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(&[

View File

@@ -1,7 +1,7 @@
specVersion: v0.1.0
package:
name: "ethereum_balancer"
version: v0.2.0
version: v0.2.1
protobuf:
files: