Skip to content

Commit acdb688

Browse files
committed
Revert "Update SpokePool.SlowRelay.ts"
This reverts commit 59a9225.
1 parent c457f31 commit acdb688

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

test/SpokePool.SlowRelay.ts

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,36 @@ describe("SpokePool Slow Relay Logic", async function () {
8080

8181
// ERC20
8282
slowFills.push({
83-
relayData: erc20LeafRelayData,
84-
payoutAdjustmentPct: ethers.utils.parseEther("9"), // 10x payout.
85-
});
86-
slowFills.push({
87-
relayData: { ...erc20LeafRelayData, message: "0x" },
88-
payoutAdjustmentPct: ethers.utils.parseEther("9"), // 10x payout.
83+
relayData: {
84+
depositor: depositor.address,
85+
recipient: recipient.address,
86+
destinationToken: destErc20.address,
87+
amount: consts.amountToRelay,
88+
originChainId: consts.originChainId.toString(),
89+
destinationChainId: consts.destinationChainId.toString(),
90+
realizedLpFeePct: consts.realizedLpFeePct,
91+
relayerFeePct: consts.depositRelayerFeePct,
92+
depositId: consts.firstDepositId.toString(),
93+
message: erc20Message,
94+
},
95+
payoutAdjustmentPct: ethers.utils.parseEther("9").toString(), // 10x payout.
8996
});
9097

9198
// WETH
9299
slowFills.push({
93-
relayData: wethLeafRelayData,
94-
payoutAdjustmentPct: ethers.utils.parseEther("-0.5"), // 50% payout.
95-
});
96-
slowFills.push({
97-
relayData: { ...wethLeafRelayData, message: "0x" },
98-
payoutAdjustmentPct: ethers.utils.parseEther("-0.5"), // 50% payout.
100+
relayData: {
101+
depositor: depositor.address,
102+
recipient: recipient.address,
103+
destinationToken: weth.address,
104+
amount: consts.amountToRelay,
105+
originChainId: consts.originChainId.toString(),
106+
destinationChainId: consts.destinationChainId.toString(),
107+
realizedLpFeePct: consts.realizedLpFeePct,
108+
relayerFeePct: consts.depositRelayerFeePct,
109+
depositId: consts.firstDepositId.toString(),
110+
message: wethMessage,
111+
},
112+
payoutAdjustmentPct: ethers.utils.parseEther("-0.5").toString(), // 50% payout.
99113
});
100114

101115
// Broken payout adjustment, too small.

0 commit comments

Comments
 (0)