Skip to content

Commit b9fe70d

Browse files
authored
feat: release (#122)
* feat: Added rate model store from across v1 Signed-off-by: chrismaree <christopher.maree@gmail.com> * feat: release Signed-off-by: chrismaree <christopher.maree@gmail.com> * nit Signed-off-by: chrismaree <christopher.maree@gmail.com>
1 parent 8a1f1a7 commit b9fe70d

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@across-protocol/contracts-v2",
3-
"version": "0.0.28",
3+
"version": "0.0.32",
44
"author": "UMA Team",
55
"license": "AGPL-3.0",
66
"repository": {

test/fixtures/HubPool.Fixture.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { repaymentChainId, finalFeeUsdc } from "../constants";
77
import { umaEcosystemFixture } from "./UmaEcosystem.Fixture";
88

99
export const hubPoolFixture = hre.deployments.createFixture(async ({ ethers }) => {
10+
return await deployHubPool(ethers);
11+
});
12+
13+
export async function deployHubPool(ethers: any) {
1014
const [signer, crossChainAdmin] = await ethers.getSigners();
1115

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

6670
return { ...tokens, ...mockTokens, hubPool, mockAdapter, mockSpoke, crossChainAdmin, ...parentFixture };
67-
});
71+
}
6872

6973
export async function enableTokensForLP(owner: Signer, hubPool: Contract, weth: Contract, tokens: Contract[]) {
7074
const lpTokens = [];

test/fixtures/SpokePool.Fixture.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { TokenRolesEnum } from "@uma/common";
2-
import { getContractFactory, SignerWithAddress, Contract, hre, ethers, BigNumber, defaultAbiCoder } from "../utils";
2+
import { getContractFactory, SignerWithAddress, Contract, hre } from "../utils";
3+
import { ethers, BigNumber, defaultAbiCoder, toBN } from "../utils";
34
import * as consts from "../constants";
45

56
export const spokePoolFixture = hre.deployments.createFixture(async ({ ethers }) => {
@@ -116,12 +117,12 @@ export async function fillRelay(
116117
.fillRelay(
117118
...getFillRelayParams(
118119
getRelayHash(
119-
depositor.address,
120-
recipient.address,
120+
depositor.address ?? depositor,
121+
recipient.address ?? recipient,
121122
depositId,
122123
originChainId,
123124
consts.destinationChainId,
124-
destErc20.address,
125+
destErc20.address ?? destErc20,
125126
depositAmount.toString(),
126127
realizedLpFeePct.toString(),
127128
relayerFeePct.toString()

0 commit comments

Comments
 (0)