Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion ops/mainnet/prod/config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ locals {

CHAIN_167000_PROVIDERS = "https://lb.drpc.org/ogrpc?network=taiko&dkey=${var.drpc_key}"

CHAIN_534352_PROVIDERS = "https://scroll-mainnet.blastapi.io/${var.blast_key}, https://scroll-mainnet.g.alchemy.com/v2/${var.alchemy_key}"
CHAIN_534352_PROVIDERS = "https://scroll-mainnet.g.alchemy.com/v2/${var.alchemy_key}"
}

web3signer_env_vars = [
Expand Down
2 changes: 1 addition & 1 deletion ops/mainnet/prod/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ variable "relayer_api_key" {
variable "supported_settlement_domains" {
description = "Comma-separated list of supported settlement domains"
type = string
default = "1,10,56,137,8453,33139,42161,43114,48900,59144,81457,167000,534352"
default = "42161,10,8453,56,137,1,43114,33139,48900,59144,81457,167000,534352"
}

variable "supported_asset_symbols" {
Expand Down
5 changes: 4 additions & 1 deletion packages/poller/src/invoice/processInvoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ interface ProcessInvoicesParams {
config: MarkConfiguration;
}

const MAX_DESTINATIONS = 7; // enforced onchain at 10, we only want first 7 in our config

export async function processInvoices({
invoices,
everclear,
Expand Down Expand Up @@ -234,7 +236,8 @@ export async function processInvoices({
origin: destination,
destinations: config.supportedSettlementDomains
.filter((domain) => domain.toString() !== destination)
.map((s) => s.toString()),
.map((s) => s.toString())
.slice(0, MAX_DESTINATIONS),
to: config.ownAddress,
inputAsset,
amount: convertHubAmountToLocalDecimals(BigInt(minAmount), inputAsset, destination, config).toString(),
Expand Down