Skip to content

Commit

Permalink
Merge branch 'master' into npai/inventory-client-protection
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai authored Oct 9, 2023
2 parents 526cb5f + df7e603 commit 51ffb60
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/relayer/RelayerClientHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,14 @@ export async function constructRelayerClients(

// The relayer will originate cross chain rebalances from both its own EOA address and the atomic depositor address
// so we should track both for accurate cross-chain inventory management.
const adapterManager = new AdapterManager(logger, spokePoolClients, commonClients.hubPoolClient, [
baseSigner.address,
CONTRACT_ADDRESSES[commonClients.hubPoolClient.chainId].atomicDepositor.address,
]);
const atomicDepositor = CONTRACT_ADDRESSES[commonClients.hubPoolClient.chainId]?.atomicDepositor;
const monitoredAddresses = [baseSigner.address, atomicDepositor?.address];
const adapterManager = new AdapterManager(
logger,
spokePoolClients,
commonClients.hubPoolClient,
monitoredAddresses.filter(() => sdkUtils.isDefined)
);

const bundleDataClient = new BundleDataClient(
logger,
Expand Down

0 comments on commit 51ffb60

Please sign in to comment.