Skip to content

Commit

Permalink
fix: friendTech detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ponyjackal committed Jul 26, 2024
1 parent 29d8ac1 commit 668f10c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/contextualizers/protocol/friendTech/detect.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { grabLogsFromTransaction } from '../../../helpers/utils';
import { Transaction } from '../../../types';
import { FRIEND_TECH_ADDRESSES } from './constants';

export const detect = (transaction: Transaction): boolean => {
const logs = grabLogsFromTransaction(transaction);
/** implement your detection logic */
if (transaction.to !== FRIEND_TECH_ADDRESSES || logs.length === 0) {
if (transaction.to !== FRIEND_TECH_ADDRESSES) {
return false;
}
// buyShares(address sharesSubject, uint256 amount)
Expand Down

0 comments on commit 668f10c

Please sign in to comment.