Skip to content

Commit

Permalink
daimo api: disable landline (#1361)
Browse files Browse the repository at this point in the history
* daimo api: disable landline

* lint
  • Loading branch information
andrewliu08 authored Oct 28, 2024
1 parent e5e66bf commit cffce76
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/daimo-api/src/api/getAccountHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ import { chainConfig, getEnvApi } from "../env";
import { i18n } from "../i18n";
import {
getLandlineAccounts,
getLandlineSession,
getLandlineTransfers,
getLandlineURL,
} from "../landline/connector";
import { addLandlineTransfers } from "../landline/landlineClogMatcher";
import { ViemClient } from "../network/viemClient";
Expand Down Expand Up @@ -200,20 +198,20 @@ export async function getAccountHistory(
const exchangeRates = await getExchangeRates(extApiCache);

// Get landline session key and accounts
let landlineSessionURL = "";
let landlineSessionKey: string | undefined;
const landlineSessionURL = "";
let landlineAccounts: LandlineAccount[] = [];

// Landline supported starting in 1.9.11
let landlineSessionKey: string | undefined;
if (
getEnvApi().LANDLINE_API_URL &&
appVersion &&
semver.gte(appVersion, "1.9.11")
) {
const daimoAddress = address;
const llSession = await getLandlineSession({ daimoAddress }, ctx);
landlineSessionKey = llSession.key;
landlineSessionURL = getLandlineURL(address, landlineSessionKey);
// const llSession = await getLandlineSession({ daimoAddress }, ctx);
// landlineSessionKey = llSession.key;
// landlineSessionURL = getLandlineURL(address, landlineSessionKey);
landlineAccounts = await getLandlineAccounts({ daimoAddress }, ctx);

const landlineTransfers = await getLandlineTransfers({ daimoAddress }, ctx);
Expand Down

0 comments on commit cffce76

Please sign in to comment.