Skip to content

Commit

Permalink
Adds on-chain tag scraping from Settler calldata. (Affiliate tagging)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrés Elizondo committed Aug 8, 2024
1 parent 563cb6d commit fd683e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers/web3/parse_web3_objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function parseTransaction(rawTx: EVMTransaction): Transaction {

transaction.quoteTimestamp = null;
transaction.quoteId = '0x' + trackingArgument.slice(0, 24);
transaction.affiliateAddress = null;
transaction.affiliateAddress = trackingArgument.slice(24, 30);
} else if (transaction.input.includes(ZEROEX_API_AFFILIATE_SELECTOR)) {
// 0x Exchange Proxy
const bytesPos = rawTx.input.indexOf(ZEROEX_API_AFFILIATE_SELECTOR);
Expand Down

0 comments on commit fd683e4

Please sign in to comment.