Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Oct 11, 2024
1 parent d415201 commit 559f9c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions subgraph/networks.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"flare": {
"OrderBook": {
"address": "0xb06202aA3Fe7d85171fB7aA5f17011d17E63f382",
"startBlock": 22109423
"address": "0xcee8cd002f151a536394e564b84076c41bbbcd4d",
"startBlock": 29307299
}
}
}
8 changes: 4 additions & 4 deletions subgraph/src/clear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ function createTrade(
event.address,
inputVaultId,
inputToken,
input.neg(),
input,
owner
);
let oldOutputVaultBalance = handleVaultBalanceChange(
event.address,
outputVaultId,
outputToken,
output,
output.neg(),
owner
);

Expand All @@ -125,14 +125,14 @@ function createTrade(
orderHash,
vaultEntityId(event.address, owner, inputVaultId, inputToken),
oldInputVaultBalance,
input.neg()
input
);
let outputVaultBalanceChange = createTradeVaultBalanceChangeEntity(
event,
orderHash,
vaultEntityId(event.address, owner, outputVaultId, outputToken),
oldOutputVaultBalance,
output
output.neg()
);

createTradeEntity(
Expand Down

0 comments on commit 559f9c0

Please sign in to comment.