Skip to content

Commit

Permalink
refactor: join only non undefined strings (#249)
Browse files Browse the repository at this point in the history
* refactor: join only non undefined strings

* test: codegen open handle jest fix

* test: jest timeout removed
  • Loading branch information
CalicoNino authored Nov 16, 2023
1 parent 623b857 commit 6ab8616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nibijs/docs/classes/StableSwap.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ y()
Calculate x[j] if one makes x[i] = x

Done by solving quadratic equation iteratively.
x*1**2 + x1 * (sum' - (A*n**n - 1) * D / (A _ n**n)) = D ** (n+1)/(n \*\* (2 _ n) \_ prod' \* A)
x*1\*\*2 + x1 * (sum' - (A*n\*\*n - 1) * D / (A _ n**n)) = D ** (n+1)/(n \*\* (2 _ n) \_ prod' \* A)
x_1\*\*2 + b\*x_1 = c

x_1 = (x_1\**2 + c) / (2*x_1 + b)
Expand Down
2 changes: 1 addition & 1 deletion packages/nibijs/src/chain/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class CustomChain implements Chain {

private initChainId = () => {
const { prefix, shortName, number } = this.chainIdParts
return [prefix, shortName, number].join("-")
return [prefix, shortName, number].filter(Boolean).join("-")
}
}

Expand Down

0 comments on commit 6ab8616

Please sign in to comment.