fix: pass CI
This commit is contained in:
@@ -5,6 +5,6 @@ pub mod crypto_swap_ng_factory;
|
|||||||
pub mod meta_registry;
|
pub mod meta_registry;
|
||||||
pub mod tricrypto_factory;
|
pub mod tricrypto_factory;
|
||||||
pub mod main_registry;
|
pub mod main_registry;
|
||||||
pub mod erc20;
|
pub mod ERC20;
|
||||||
pub mod meta_pool_factory;
|
pub mod meta_pool_factory;
|
||||||
pub mod crypto_swap_registry;
|
pub mod crypto_swap_registry;
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ fn get_pool_tokens(pool_address: &Vec<u8>, tokens_store: &StoreGetString) -> Opt
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// TODO rewrite
|
/// Tracks `Transfers` in and out of tracked pools if it matches the specific tokens.
|
||||||
pub fn emit_deltas(log: LogView, tokens_store: &StoreGetString) -> Option<BalanceDelta> {
|
pub fn emit_deltas(log: LogView, tokens_store: &StoreGetString) -> Option<BalanceDelta> {
|
||||||
let transfer = abi::erc20::events::Transfer::match_and_decode(log)?;
|
let transfer = abi::ERC20::events::Transfer::match_and_decode(log)?;
|
||||||
|
|
||||||
let (component_id, pool_tokens, is_incoming) =
|
let (component_id, pool_tokens, is_incoming) =
|
||||||
if let Some(pool_tokens) = get_pool_tokens(&transfer.to, tokens_store) {
|
if let Some(pool_tokens) = get_pool_tokens(&transfer.to, tokens_store) {
|
||||||
|
|||||||
@@ -672,7 +672,7 @@ pub fn address_map(
|
|||||||
/// If all else fails, we force an `unwrap` to trigger a `panic` so that we can resolve this by
|
/// If all else fails, we force an `unwrap` to trigger a `panic` so that we can resolve this by
|
||||||
/// adding onto our map of `pool` -> `token` addresses.
|
/// adding onto our map of `pool` -> `token` addresses.
|
||||||
fn get_token_from_pool(pool: &Vec<u8>) -> Vec<u8> {
|
fn get_token_from_pool(pool: &Vec<u8>) -> Vec<u8> {
|
||||||
abi::erc20::functions::Name {}
|
abi::ERC20::functions::Name {}
|
||||||
.call(pool.clone())
|
.call(pool.clone())
|
||||||
.and(Some(pool.clone()))
|
.and(Some(pool.clone()))
|
||||||
.or_else(|| {
|
.or_else(|| {
|
||||||
|
|||||||
Reference in New Issue
Block a user