fix: remove balancer factory from components' contracts

This commit is contained in:
Florian Pellissier
2024-03-11 17:46:52 +01:00
parent 66a048fbe2
commit 51275f0ccf
2 changed files with 17 additions and 16 deletions

View File

@@ -47,7 +47,7 @@ pub fn map_pools_created(
.logs_with_calls()
.filter(|(_, call)| !call.call.state_reverted)
.filter_map(|(log, call)| {
Some(pool_factories::address_map(
pool_factories::address_map(
call.call.address.as_slice(),
log,
call.call,
@@ -57,7 +57,7 @@ pub fn map_pools_created(
to: tx.to.clone(),
index: tx.index.into(),
},
)?)
)
})
.collect::<Vec<_>>();
@@ -204,6 +204,7 @@ pub fn map_changes(
.map(|(store_delta, balance_delta)| {
let pool_id = key::segment_at(&store_delta.key, 1);
let token_id = key::segment_at(&store_delta.key, 3);
(
balance_delta.tx.unwrap(),
tycho::BalanceChange {