mirror of
https://github.com/ZigZagExchange/zksync-lite-market-maker.git
synced 2025-12-24 02:24:28 +01:00
@@ -15,10 +15,6 @@ try {
|
|||||||
throw new Error("Could not connect to zksync API");
|
throw new Error("Could not connect to zksync API");
|
||||||
}
|
}
|
||||||
|
|
||||||
const accountState = await syncWallet.getAccountState();
|
|
||||||
console.log(accountState);
|
|
||||||
let currentNonce = accountState.committed.nonce;
|
|
||||||
|
|
||||||
const spotPrices = {};
|
const spotPrices = {};
|
||||||
const openOrders = {};
|
const openOrders = {};
|
||||||
|
|
||||||
@@ -172,9 +168,7 @@ async function sendfillrequest(orderreceipt) {
|
|||||||
sellQuantity
|
sellQuantity
|
||||||
),
|
),
|
||||||
ratio: zksync.utils.tokenRatio(tokenRatio),
|
ratio: zksync.utils.tokenRatio(tokenRatio),
|
||||||
nonce: ++currentNonce
|
|
||||||
});
|
});
|
||||||
console.log(currentNonce);
|
|
||||||
const resp = { op: "fillrequest", args: [chainId, orderId, fillOrder] };
|
const resp = { op: "fillrequest", args: [chainId, orderId, fillOrder] };
|
||||||
zigzagws.send(JSON.stringify(resp));
|
zigzagws.send(JSON.stringify(resp));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user