Skip to content

Commit

Permalink
should not hard code
Browse files Browse the repository at this point in the history
  • Loading branch information
lehieuhust committed Aug 21, 2023
1 parent c0d9b46 commit e5e8c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/market-maker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export async function makeOrders(buyer: UserWallet, seller: UserWallet, usdtToke
throw new Error('Balance of seller/buyer must be greater than 1 ORAI');
}

const multiple_buy = await generateMatchOrders(oraiPrice, usdtTokenAddress, orderBookAddress, buyer, 0.01, assetInfos, "buy", 10, config);
const multiple_buy = await generateMatchOrders(oraiPrice, usdtTokenAddress, orderBookAddress, buyer, config.spreadMatch, assetInfos, "buy", 10, config);
for (const msg of multiple_buy) {
if ('submit_order' in msg) {
const submitOrderMsg = msg.submit_order;
Expand Down

0 comments on commit e5e8c55

Please sign in to comment.