OrderPrice
What getOrderPrice returns. Every amount is a decimal
string.
declare const : OrderPrice
. // what to approve and spend
.
.
.
.
. // who collects it, and the fraction it came from| Field | Meaning |
|---|---|
total | The base-token spend — what the exchange takes. |
baseTokenAmount | The same amount, named for what it is. |
opcFee | Ocean Protocol Community fee. |
publishMarketFee | The publishing market's cut, in its own token. |
consumeMarketFee | What your market collects — the amount the exchange derived. |
consumeMarket | The { address, fee } this quote was priced with, if any. |
total is what the exchange wants in, so the OPC cut, its own market fee and the
consume-market fee are all already inside it. Do not sum the fields yourself.
consumeMarket travels on the quote so that
order charges the fee that was
priced, to the address it was priced with.
Replaces v1's OrderPriceAndFees. See pricing.