@swaps:price
Spot price of 1 whole tokenA, expressed in base units of tokenB (the venue quote for selling 1 tokenA). Compare it against @token.amount(tokenB ...) values.
Returns: number
Syntax
Section titled “Syntax”@swaps:price(tokenA tokenB venue?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
tokenA | address | Token being priced |
tokenB | address | Token the price is denominated in |
[venue] | swap-venue | Venue to quote (default: the best venue on the chain) |
Examples
Section titled “Examples”# TODO: add examples