Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sg deployment #933

Merged
merged 3 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading