Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Dec 10, 2024
1 parent a2c464d commit e356560
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/app/utils/account-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
TokenContract,
Transaction,
} from "../lib/fastnear";
import { runLLMInference } from "../lib/open-ai";
import {
analyzeInteractionPatterns,
analyzeNftHoldings,
Expand Down Expand Up @@ -198,30 +197,27 @@ Notable Interactions:
${interactionSummary}
🥩 STAKING BEHAVIOR:
${
data.staking.pools.length === 0
? "Not staking anything, certified paper hands"
: `Staking in ${data.staking.pools.length} pools: ${data.staking.pools.join(", ")}`
}
${data.staking.pools.length === 0
? "Not staking anything, certified paper hands"
: `Staking in ${data.staking.pools.length} pools: ${data.staking.pools.join(", ")}`
}
🎯 ANALYSIS SUMMARY:
This account shows all the classic signs of ${
txCount > 1000
This account shows all the classic signs of ${txCount > 1000
? "a terminally online degen"
: txCount > 500
? "someone who needs to touch grass"
: txCount > 100
? "your average NEAR user"
: "a blockchain tourist"
}
}
Their portfolio clearly indicates ${
data.assets.totalTokens > 10
Their portfolio clearly indicates ${data.assets.totalTokens > 10
? "a severe addiction to shitcoins"
: data.assets.totalTokens > 5
? "an aspiring shitcoin collector"
: "someone who hasn't discovered meme tokens yet"
}`;
}`;
}

export async function getAccountSummary(accountId: string): Promise<string> {
Expand All @@ -237,7 +233,11 @@ export async function getAccountSummary(accountId: string): Promise<string> {
const processedData = processAccountData(details, allActivity);

// Create the summary from processed data
return createSummary(processedData);
const summary = createSummary(processedData);

console.log("summary: ", summary);

return summary;
} catch (error) {
console.error("Error generating account summary:", error);
throw error;
Expand Down

0 comments on commit e356560

Please sign in to comment.