Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Mar 26, 2024
1 parent 0d01965 commit 884e6ff
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions test/InventoryClient.RefundChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ import {
import { ConfigStoreClient, InventoryClient } from "../src/clients"; // Tested
import { CrossChainTransferClient } from "../src/clients/bridges";
import { V3Deposit, InventoryConfig } from "../src/interfaces";
import { ZERO_ADDRESS, bnZero, fixedPointAdjustment as fixedPoint, getNetworkName, TOKEN_SYMBOLS_MAP } from "../src/utils";
import {
ZERO_ADDRESS,
bnZero,
fixedPointAdjustment as fixedPoint,
getNetworkName,
TOKEN_SYMBOLS_MAP,
} from "../src/utils";
import { MockAdapterManager, MockBundleDataClient, MockHubPoolClient, MockTokenClient } from "./mocks";

describe("InventoryClient: Refund chain selection", async function () {
Expand All @@ -36,7 +42,6 @@ describe("InventoryClient: Refund chain selection", async function () {
let sampleDepositData: V3Deposit;
let crossChainTransferClient: CrossChainTransferClient;


// construct two mappings of chainId to token address. Set the l1 token address to the "real" token address.
const l2TokensForWeth = { 1: mainnetWeth };
const l2TokensForUsdc = { 1: mainnetUsdc };
Expand Down Expand Up @@ -86,9 +91,10 @@ describe("InventoryClient: Refund chain selection", async function () {
};

const computeOutputAmount = async (deposit: V3Deposit) => {
const { realizedLpFeePct } = await hubPoolClient.computeRealizedLpFeePct(
{ ...deposit, paymentChainId: deposit.destinationChainId }
);
const { realizedLpFeePct } = await hubPoolClient.computeRealizedLpFeePct({
...deposit,
paymentChainId: deposit.destinationChainId,
});
return deposit.inputAmount.mul(fixedPoint.sub(relayerFeePct.add(realizedLpFeePct))).div(fixedPoint);
};

Expand Down

0 comments on commit 884e6ff

Please sign in to comment.