Skip to content

Commit 471c510

Browse files
committed
ensure we're after a certain block to get amo supply
1 parent 948ada6 commit 471c510

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/oeth/processors/oeth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const otokenProcessor = createOTokenProcessor({
5252
rebaseOptEvents: 18872285,
5353
},
5454
getAmoSupply: async (ctx, height) => {
55+
if (height < 17297479) return 0n
5556
const oethContract = new erc20.Contract(ctx, { height }, OETH_ADDRESS)
5657
const rewardPoolContract = new baseRewardPool.Contract(ctx, { height }, OETH_CURVE_REWARD_LP_ADDRESS)
5758
const [poolBalance, rewardBalance, rewardTotal] = await Promise.all([

0 commit comments

Comments
 (0)