mirror of
https://github.com/ZigZagExchange/zksync-lite-market-maker.git
synced 2025-12-18 23:54:22 +01:00
bug fix string quantity
This commit is contained in:
@@ -24,6 +24,8 @@ const openOrders = {};
|
|||||||
|
|
||||||
const CHAIN_ID = parseInt(process.env.CHAIN_ID);
|
const CHAIN_ID = parseInt(process.env.CHAIN_ID);
|
||||||
const MARKET_PAIRS = process.env.PAIR_WHITELIST.split(",")
|
const MARKET_PAIRS = process.env.PAIR_WHITELIST.split(",")
|
||||||
|
console.log("PAIR WHITELIST: ", process.env.PAIR_WHITELIST);
|
||||||
|
|
||||||
const CURRENCY_INFO = {
|
const CURRENCY_INFO = {
|
||||||
"ETH": {
|
"ETH": {
|
||||||
decimals: 18,
|
decimals: 18,
|
||||||
@@ -221,7 +223,7 @@ async function sendfillrequest(orderreceipt) {
|
|||||||
tokenBuy,
|
tokenBuy,
|
||||||
amount: syncProvider.tokenSet.parseToken(
|
amount: syncProvider.tokenSet.parseToken(
|
||||||
tokenSell,
|
tokenSell,
|
||||||
sellQuantity
|
sellQuantity.toString()
|
||||||
),
|
),
|
||||||
ratio: zksync.utils.tokenRatio(tokenRatio),
|
ratio: zksync.utils.tokenRatio(tokenRatio),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user