Skip to content

Commit

Permalink
formaty
Browse files Browse the repository at this point in the history
  • Loading branch information
m1n999999 committed Sep 17, 2024
1 parent efd6c2b commit c7123dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/calculate.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import invariant from "@minswap/tiny-invariant";
import Big from "big.js";
import { zipWith } from "remeda";

import { OrderV2 } from "./types/order";
import { PoolV2 } from "./types/pool";
import { sqrt } from "./utils/sqrt.internal";
import invariant from "@minswap/tiny-invariant";

/**
* Options to calculate Amount Out & Price Impact while swapping exact in
Expand Down Expand Up @@ -737,7 +737,6 @@ export namespace StableswapCalculation {
);

let newDatumBalances: bigint[] = [];
let newValueBalances: bigint[] = [];
let lpAmount = 0n;
if (totalLiquidity === 0n) {
for (let i = 0; i < length; ++i) {
Expand Down
12 changes: 6 additions & 6 deletions src/stableswap.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import invariant from "@minswap/tiny-invariant";
import {
Address,
Assets,
Constr,
Data,
Lucid,
TxComplete,
UTxO,
Data,
Constr,
} from "lucid-cardano";
import { NetworkEnvironment, NetworkId } from "./types/network";

import { Asset } from "./types/asset";
import {
BlockfrostAdapter,
FIXED_DEPOSIT_ADA,
MetadataMessage,
StableOrder,
StableswapConstant,
} from ".";
import { calculateBatcherFee } from "./batcher-fee-reduction/calculate";
import { DexVersion } from "./batcher-fee-reduction/types.internal";
import { Asset } from "./types/asset";
import { NetworkEnvironment, NetworkId } from "./types/network";
import { lucidToNetworkEnv } from "./utils/network.internal";
import invariant from "@minswap/tiny-invariant";
import { calculateBatcherFee } from "./batcher-fee-reduction/calculate";

export type CommonOrderOptions = {
sender: Address;
Expand Down
4 changes: 2 additions & 2 deletions src/types/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import invariant from "@minswap/tiny-invariant";
import { Address, OutRef, Script } from "lucid-cardano";

import { NetworkId } from "./network";
import { Asset } from "..";
import invariant from "@minswap/tiny-invariant";
import { NetworkId } from "./network";

export namespace DexV1Constant {
export const ORDER_BASE_ADDRESS: Record<number, Address> = {
Expand Down

0 comments on commit c7123dc

Please sign in to comment.