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
11 changes: 7 additions & 4 deletions src-gui/src/utils/multiAddrUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import { isTestnet } from "store/config";
// const MIN_ASB_VERSION = "2.0.0-beta.1"; // First version with support for tx_early_refund
// const MIN_ASB_VERSION = "3.2.0-rc.1";
// const VERSION_FLOOR = "4.0.0"; // First version with partial refund path - completely incompatible
// First version to support the "hermes" protocol, which improves reliability of swaps significantly
const VERSION_FLOOR_SOFT = "4.11.2";
const VERSION_FLOOR_HARD = "4.11.2";
// First version to use a Pedersen challenge point with an unknown discrete logarithm
// for the cross-curve proof
const VERSION_FLOOR_SOFT = "4.13.0";
const VERSION_FLOOR_HARD = "4.13.0";

export function isMakerOnCorrectNetwork(
provider: ExtendedMakerStatus,
Expand All @@ -27,7 +28,9 @@ export function isMakerVersionOld(version: string | null | undefined): boolean {
}

/** Check whether a maker version is too old and is known to be completely incompatile. */
export function isMakerVersionTooOld(version: string | null | undefined): boolean {
export function isMakerVersionTooOld(
version: string | null | undefined,
): boolean {
if (version == null) return false;
return semver.compare(version, VERSION_FLOOR_HARD) === -1;
}
Expand Down
Loading