We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeae70c commit c0b61b5Copy full SHA for c0b61b5
sdk/src/math/amm.ts
@@ -922,7 +922,7 @@ export function calculateSpreadReserves(
922
quoteAssetReserve: amm.quoteAssetReserve,
923
};
924
}
925
- let spreadFraction = new BN(spread / 2);
+ let spreadFraction = new BN(spread).div(new BN(2));
926
927
// make non-zero
928
if (spreadFraction.eq(ZERO)) {
0 commit comments