bitshares / beet-js

BeetJS is the client library for interaction with Beet
MIT License
8 stars 14 forks source link

Bitshares references 'sats' in buy field #41

Closed grctest closed 2 years ago

grctest commented 2 years ago

image

let transfer_op = tr.get_type_operation("limit_order_create", {
    fee: {
        amount: 0,
        asset_id: "1.3.0"
    },
    seller: account.id,
    amount_to_sell: {
      amount: ${100000/bids[0].price},
      asset_id: "${approvedMarketID}"
    },
    min_to_receive: {
      amount: 1,
      asset_id: "${symbolID}"
    },
    fill_or_kill: true,
    expiration: 100000
});

I'm trying to buy a single NFT, not a fraction yet the UI states I'm buying 1 'sat' (satoshi?) rather than a whole unit of NFT.