Skip to content

Commit

Permalink
fix: stableswap unbound function
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinWoetzel committed Jan 24, 2024
1 parent 61cda23 commit 51ff8cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/short-worms-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shadeprotocol/shadejs": patch
---

fix unbound function in stableswap math
2 changes: 1 addition & 1 deletion src/lib/swap/stableswapCurve/stable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ export class StableConfig {
initialGuessNewton: tvl,
upperBoundBisect: tvl,
ignoreNegativeResult: true,
lazyLowerBoundBisect: this.geometricMeanDoubled,
lazyLowerBoundBisect: this.geometricMeanDoubled.bind(this),
lowerBoundBisect: undefined,
});
}
Expand Down

0 comments on commit 51ff8cf

Please sign in to comment.