Skip to content

Commit

Permalink
Update apy.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Oct 20, 2024
1 parent e5cae7d commit 931bf38
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions crates/subgraph/src/apy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,21 +432,9 @@ fn get_pairs_ratio(order_apy: &OrderAPY, trades: &[Trade]) -> HashMap<TokenPair,
});

// io
pair_ratio_map.insert(
TokenPair {
input: input.token.clone(),
output: output.token.clone(),
},
ratio.map(|v| v[0]),
);
pair_ratio_map.insert(pair_as_key, ratio.map(|v| v[0]));
// oi
pair_ratio_map.insert(
TokenPair {
input: output.token.clone(),
output: input.token.clone(),
},
ratio.map(|v| v[1]),
);
pair_ratio_map.insert(reverse_pair_as_key, ratio.map(|v| v[1]));
}
}
}
Expand Down

0 comments on commit 931bf38

Please sign in to comment.