Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@across-protocol/contracts-v2",
"version": "0.0.28",
"version": "0.0.32",
"author": "UMA Team",
"license": "AGPL-3.0",
"repository": {
Expand Down
6 changes: 5 additions & 1 deletion test/fixtures/HubPool.Fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import { repaymentChainId, finalFeeUsdc } from "../constants";
import { umaEcosystemFixture } from "./UmaEcosystem.Fixture";

export const hubPoolFixture = hre.deployments.createFixture(async ({ ethers }) => {
return await deployHubPool(ethers);
});

export async function deployHubPool(ethers: any) {
const [signer, crossChainAdmin] = await ethers.getSigners();

// This fixture is dependent on the UMA ecosystem fixture. Run it first and grab the output. This is used in the
Expand Down Expand Up @@ -64,7 +68,7 @@ export const hubPoolFixture = hre.deployments.createFixture(async ({ ethers }) =
await hubPool.setPoolRebalanceRoute(repaymentChainId, usdc.address, mockTokens.l2Usdc);

return { ...tokens, ...mockTokens, hubPool, mockAdapter, mockSpoke, crossChainAdmin, ...parentFixture };
});
}

export async function enableTokensForLP(owner: Signer, hubPool: Contract, weth: Contract, tokens: Contract[]) {
const lpTokens = [];
Expand Down
9 changes: 5 additions & 4 deletions test/fixtures/SpokePool.Fixture.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { TokenRolesEnum } from "@uma/common";
import { getContractFactory, SignerWithAddress, Contract, hre, ethers, BigNumber, defaultAbiCoder } from "../utils";
import { getContractFactory, SignerWithAddress, Contract, hre } from "../utils";
import { ethers, BigNumber, defaultAbiCoder, toBN } from "../utils";
import * as consts from "../constants";

export const spokePoolFixture = hre.deployments.createFixture(async ({ ethers }) => {
Expand Down Expand Up @@ -116,12 +117,12 @@ export async function fillRelay(
.fillRelay(
...getFillRelayParams(
getRelayHash(
depositor.address,
recipient.address,
depositor.address ?? depositor,
recipient.address ?? recipient,
depositId,
originChainId,
consts.destinationChainId,
destErc20.address,
destErc20.address ?? destErc20,
depositAmount.toString(),
realizedLpFeePct.toString(),
relayerFeePct.toString()
Expand Down