Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generated/apis/SwapApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
export interface QuoteGetRequest {
inputMint: string;
outputMint: string;
amount: number;
amount: string;
slippageBps?: number;
swapMode?: QuoteGetSwapModeEnum;
dexes?: Array<string>;
Expand Down
8 changes: 6 additions & 2 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,15 @@ components:
- Raw amount to swap (before decimals)
- Input Amount if `SwapMode=ExactIn`
- Output Amount if `SwapMode=ExactOut`
- This is a u64 in atomic units. It is typed as `string` to preserve full
precision: a JS `number` is an IEEE-754 double and silently loses
precision above 2^53-1, while a u64 can be up to ~1.84e19. Response-side
amounts (`inAmount`, `outAmount`, ...) are already strings for the same
reason.
in: query
required: true
schema:
type: integer
format: uint64
type: string
SlippageParameter:
name: slippageBps
description: |
Expand Down