Merge branch 'new-CounterFire' of http://git.kingsome.cn/huangjinming/CounterFireGames into new-CounterFire

This commit is contained in:
yuyongdong 2024-07-03 18:57:11 +08:00
commit 8d532cc92e

View File

@ -95,16 +95,13 @@ export class ImtblMarket {
orderSignature, orderSignature,
currencyAmount currencyAmount
){ ){
const amount = (BigInt(currencyAmount) * 2n / 100n).toString() // const amount = (BigInt(currencyAmount) * 2n / 100n).toString()
const order = await this.client.createListing({ const order = await this.client.createListing({
orderComponents: preparedListing.orderComponents, orderComponents: preparedListing.orderComponents,
orderHash: preparedListing.orderHash, orderHash: preparedListing.orderHash,
orderSignature, orderSignature,
// Optional maker marketplace fee // Optional maker marketplace fee
makerFees: [{ makerFees: [],
amount,
recipientAddress: makeFeeAddress, // Replace address with your own marketplace address
}],
}); });
console.log('order:', order); console.log('order:', order);
return order return order