Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
1.0 kB
4
Indexable
Never
const _order = {
        maker: order.maker,
        kind: 1,
        assets: [
            {
                erc: 1,
                addr: order.assets[0].address,
                id: order.assets[0].id,
                quantity: order.assets[0].quantity
            }
        ],
        expiredAt: order.expiredAt,
        paymentToken: wethAddress,
        startedAt: order.startedAt,
        baseUnitPrice: order.basePrice + "",
        endedAt: order.endedAt,
        endedUnitPrice: order.endedPrice + "",
        expectedState: 0,
        nonce: order.nonce,
        hash: order.hash,
        verified: true
    };

    const _signature = order.signature;
    const _settlePrice = order.currentPrice + "";
    const _referralAddr = '0x....';
    const _expectedState = 0;

const settleOrderData = iface.encodeFunctionData('settleOrder', [[
    ???,
    _signature,
    _referralAddr,
    _expectedState,
    _referralAddr,
    _referralAddr
], _settlePrice]);  
Leave a Comment