Skip to content

Commit ee3b4b1

Browse files
authored
Merge pull request #49 from OriginProtocol/more-erc20
Track more Origin ERC20 tokens
2 parents 7391972 + 58a27c3 commit ee3b4b1

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

src/mainnet/processors/erc20s.ts

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ const simpleTracks: Record<string, Parameters<typeof createERC20SimpleTracker>[0
3333
from: 14439231,
3434
address: tokens.OGV,
3535
},
36+
veOGV: {
37+
from: 15089596,
38+
address: tokens.veOGV,
39+
},
40+
primeETH: {
41+
from: 19138973,
42+
address: tokens.primeETH,
43+
},
3644
}
3745
const tracks: Record<string, Parameters<typeof createERC20Tracker>[0]> = {
3846
// Origin Specific

src/ousd/processors/erc20s.ts

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1+
import * as otoken from '@abi/otoken'
12
import { createERC20Tracker } from '@templates/erc20'
2-
import { OUSD_VAULT_ADDRESS, ousdStrategyArray, tokens } from '@utils/addresses'
3+
import { OUSD_ADDRESS, OUSD_VAULT_ADDRESS, ousdStrategyArray, tokens } from '@utils/addresses'
4+
import { logFilter } from '@utils/logFilter'
35

46
const tracks: Record<string, Parameters<typeof createERC20Tracker>[0]> = {
7+
OUSD: {
8+
from: 10884563, // From Reset:
9+
address: tokens.OUSD,
10+
rebaseFilters: [
11+
logFilter({
12+
address: [OUSD_ADDRESS],
13+
topic0: [otoken.events.TotalSupplyUpdatedHighres.topic],
14+
transaction: true,
15+
range: { from: 10884563 },
16+
}),
17+
],
18+
},
519
// OUSD Related
620
USDT: {
721
// from: 11362821,

src/utils/addresses.ts

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const OETH_ZAPPER_ADDRESS = '0x9858e47bcbbe6fbac040519b02d7cd4b2c470c66'
2323
export const OETH_DRIPPER_ADDRESS = '0xc0f42f73b8f01849a2dd99753524d4ba14317eb3'
2424
export const WOETH_ADDRESS = '0xdcee70654261af21c44c093c300ed3bb97b78192'
2525
export const WOETH_ARBITRUM_ADDRESS = '0xd8724322f44e5c58d7a815f542036fb17dbbf839'
26+
export const PRIME_ETH_ADDRESS = '0x6ef3d766dfe02dc4bf04aae9122eb9a0ded25615'
2627

2728
export const WETH_ADDRESS = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
2829
export const STETH_ADDRESS = '0xae7ab96520de3a18e5e111b5eaab095312d7fe84'
@@ -92,6 +93,7 @@ export const tokens = {
9293
rETH: RETH_ADDRESS,
9394
frxETH: FRXETH_ADDRESS,
9495
sfrxETH: SFRXETH_ADDRESS,
96+
primeETH: PRIME_ETH_ADDRESS,
9597

9698
// Non-stable
9799
BAL: BAL_ADDRESS,

0 commit comments

Comments
 (0)