UNPKG

@cowprotocol/cow-sdk

Version:

## 📚 [Docs website](https://docs.cow.fi/)

27 lines (26 loc) • 767 B
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; });