@cowprotocol/cow-sdk
Version:
<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>
27 lines (26 loc) • 793 B
TypeScript
import type { OrderQuoteSideKindBuy } from './OrderQuoteSideKindBuy';
import type { OrderQuoteSideKindSell } from './OrderQuoteSideKindSell';
import type { TokenAmount } from './TokenAmount';
/**
* The buy or sell side when quoting an order.
*/
export type OrderQuoteSide = ({
kind: OrderQuoteSideKindSell;
/**
* The total amount that is available for the order. From this value, the fee is deducted and the buy amount is calculated.
*
*/
sellAmountBeforeFee: TokenAmount;
} | {
kind: OrderQuoteSideKindSell;
/**
* The `sellAmount` for the order.
*/
sellAmountAfterFee: TokenAmount;
} | {
kind: OrderQuoteSideKindBuy;
/**
* The `buyAmount` for the order.
*/
buyAmountAfterFee: TokenAmount;
});