Skip to content

Commit

Permalink
Update InventoryClient.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Oct 10, 2023
1 parent 8729c46 commit 3d0678f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/clients/InventoryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,11 @@ export class InventoryClient {
}

async wrapL2EthIfAboveThreshold(): Promise<void> {
// If inventoryConfig is defined, there will be a default wrapEtherTarget and wrapEtherThreshold
// set by RelayerConfig.ts
if (!this?.inventoryConfig) {
return;
}
this.log("Checking ETH->WETH Wrap status");
await this.adapterManager.wrapEthIfAboveThreshold(this.inventoryConfig, this.simMode);
}
Expand Down

0 comments on commit 3d0678f

Please sign in to comment.