You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If either of the currencies has the Base App referrer address,
156
+
// the coin is coming from the Base App
157
+
if ([currency0PlatformReferrer, currency1PlatformReferrer].includes(BASE_PLATFORM_REFERRER)) {
158
+
return"TBA"
159
+
}
160
+
161
+
return"ZORA"
162
+
}
135
163
```
136
164
137
-
Since the coins are created via Zora, filtering down to which ones are from Base App is a matter of looking at what token the pool is paired with. Tokens created via the Base App are paired with `WETH`. In the future, `USDC` pairing will also be used. Tokens created directly via the Zora app do not pair with `WETH` or `USDC` - so we use this as a way of identifying and tagging if the coin came from Zora or Base App.
165
+
Since the coins are created via Zora, filtering down to which ones are from Base App is a matter of looking at what the platform referrer address is on the Zora coin. We don't know if the Zora coin is necessarily `currency0` or `currency1` in the pool - so we attempt to fetch the platform referrer address for both. For tokens like WETH which don't have that view function available, it will just fall back to the zero address. If either of the currencies return a valid platform referrer address that also matches the referrer address used by the Base App, we classify the coin as having come from the Base App.
138
166
139
167
140
168
#### 4. Liquidity Calculations
@@ -268,9 +296,6 @@ const metadata = {
268
296
### Block Range
269
297
Modify `START_BLOCK_NUMBER` and `END_BLOCK_NUMBER` in `index.ts` to scan different ranges or implement continuous monitoring.
270
298
271
-
### Token Pairing Rules
272
-
Update `TBA_PAIRINGS` array to modify which base tokens indicate Base App classification.
273
-
274
299
### Hook Addresses
275
300
Add new hook addresses to the classification logic as new Zora contracts are deployed.
0 commit comments