Skip to content

Commit

Permalink
test: add more test coverage, to helpers and bonding
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x committed May 16, 2024
1 parent 71587f0 commit 31bb6df
Show file tree
Hide file tree
Showing 8 changed files with 186 additions and 423 deletions.
2 changes: 1 addition & 1 deletion contracts/liquidity_hub/bonding-manager/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pub fn handle_lp_tokens_rewards(
/// Extracts the pool identifier from an LP token denom.
/// LP tokens have the format "{pair_label}.pool.{identifier}.{LP_SYMBOL}", get the
/// identifier and not the LP SYMBOL. The identifier can contain dots, slashes, etc.
fn extract_pool_identifier(lp_token_denom: &str) -> Option<&str> {
pub(crate) fn extract_pool_identifier(lp_token_denom: &str) -> Option<&str> {
// Split the string at ".pool." to isolate the part after ".pool."
let parts: Vec<&str> = lp_token_denom.splitn(2, ".pool.").collect();
if parts.len() < 2 {
Expand Down
Loading

0 comments on commit 31bb6df

Please sign in to comment.