Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/dataworker/Dataworker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,7 @@ export class Dataworker {
// If the SpokePool supports withdrawing tokens to Hub via OFT, estimate msg.value needed to cover OFT fee
const oftMsgValuePortion = await this._getOftMsgValueForRelayerRefundLeaf(client, leaf);

// Currently, msg.value behavior in OFT-supporting Spokes is such that they can't hanlde msg.value being used for
// Currently, msg.value behavior in OFT-supporting Spokes is such that they can't handle msg.value being used for
// different cases. If both msg value contributions are above 0, we have a bug. Throw
if (lineaMsgValuePortion.gt(0) && oftMsgValuePortion.gt(0)) {
throw new Error("Invalid configuration: OFT messenger set on Linea chain for relayer refund leaf execution");
Expand Down Expand Up @@ -2783,7 +2783,7 @@ export class Dataworker {
}

// Construct a message that SpokePool will be using to withdraw via OFT to mainnet. Use `.quoteSend` to estimate
// required native fee, and send that X 2 as msg.value to cover the transfer fees even in the face of fee chainging
// required native fee, and send that X 2 as msg.value to cover the transfer fees even in the face of fee changing
// slightly. Excess fee will get refunded to executor
const IOFTContract = new Contract(associatedOftMessenger, IOFT_ABI_FULL, client.spokePool.provider);
const dstEid = OFT.getEndpointId(this.clients.hubPoolClient.chainId);
Expand Down