moltspay 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -922,8 +922,9 @@ var MoltsPayServer = class {
922
922
  this.useMainnet = process.env.USE_MAINNET?.toLowerCase() === "true";
923
923
  this.networkId = this.useMainnet ? "eip155:8453" : "eip155:84532";
924
924
  const facilitatorConfig = options.facilitators || {
925
- primary: "cdp",
926
- strategy: "failover",
925
+ primary: process.env.FACILITATOR_PRIMARY || "cdp",
926
+ fallback: process.env.FACILITATOR_FALLBACK?.split(",").filter(Boolean),
927
+ strategy: process.env.FACILITATOR_STRATEGY || "failover",
927
928
  config: {
928
929
  cdp: { useMainnet: this.useMainnet }
929
930
  }