Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit ae3c1fc

Browse files
JasonMHasperhovencronokirby
authored andcommitted
Undo reserves
1 parent 651ce9f commit ae3c1fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/shared/math/position.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ export const planToPosition = (plan: PositionPlan): Position => {
9090
plan.baseAsset.exponent,
9191
plan.quoteAsset.exponent,
9292
);
93-
const raw_r1 = pnum(plan.baseReserves, plan.baseAsset.exponent).toAmount();
94-
const raw_r2 = pnum(plan.quoteReserves, plan.quoteAsset.exponent).toAmount();
93+
94+
const raw_r1 = pnum(plan.baseReserves).toAmount();
95+
const raw_r2 = pnum(plan.quoteReserves).toAmount();
9596

9697
const correctOrder = compareAssetId(plan.baseAsset.id, plan.quoteAsset.id) <= 0;
9798
const [[p, q], [r1, r2]] = correctOrder

0 commit comments

Comments
 (0)