Skip to content

Commit

Permalink
price update
Browse files Browse the repository at this point in the history
  • Loading branch information
vic-en committed May 8, 2024
1 parent 59f0d03 commit 07bd1cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connectors/balancer/balancer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export interface BalancerTrade {
);
}
const marketSp = math.fraction(info.marketSp) as math.Fraction;
const executionPrice = new Fraction(marketSp.n.toString(), marketSp.d.toString())
const executionPrice = new Fraction(marketSp.d.toString(), marketSp.n.toString())
return {
trade: {
swap: {
Expand Down Expand Up @@ -241,7 +241,7 @@ export interface BalancerTrade {
);
}
const marketSp = math.fraction(info.marketSp) as math.Fraction;
const executionPrice = new Fraction(marketSp.n.toString(), marketSp.d.toString());
const executionPrice = new Fraction(marketSp.d.toString(), marketSp.n.toString());
return {
trade: {
swap: {
Expand Down

0 comments on commit 07bd1cb

Please sign in to comment.