Skip to content

Commit 72812a4

Browse files
committed
v73 and withdrawals fix
1 parent 8cdd217 commit 72812a4

File tree

2 files changed

+461
-721
lines changed

2 files changed

+461
-721
lines changed

src/templates/withdrawals.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export const createOTokenWithdrawalsProcessor = ({
6060
log: Context['blocks'][number]['logs'][number],
6161
) => {
6262
const data = oethVault.events.WithdrawalRequested.decode(log)
63-
63+
const id = `${ctx.chain.id}:${oTokenAddress}:${data._withdrawer.toLowerCase()}:${data._requestId}`
6464
const withdrawalRequest = new OTokenWithdrawalRequest({
65-
id: `${data._withdrawer.toLowerCase()}:${data._requestId}`,
65+
id,
6666
chainId: ctx.chain.id,
6767
blockNumber: block.header.height,
6868
timestamp: new Date(block.header.timestamp),
@@ -84,7 +84,7 @@ export const createOTokenWithdrawalsProcessor = ({
8484
log: Context['blocks'][number]['logs'][number],
8585
) => {
8686
const data = oethVault.events.WithdrawalClaimed.decode(log)
87-
const id = `${data._withdrawer.toLowerCase()}:${data._requestId}`
87+
const id = `${ctx.chain.id}:${oTokenAddress}:${data._withdrawer.toLowerCase()}:${data._requestId}`
8888
let updated
8989
if (result.withdrawalRequests.has(id)) {
9090
updated = result.withdrawalRequests.get(id)

0 commit comments

Comments
 (0)