Skip to content

Commit

Permalink
daimo api: disable landline
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewliu08 committed Oct 21, 2024
1 parent e5e66bf commit f4089c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/daimo-api/src/api/getAccountHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,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 f4089c0

Please sign in to comment.