Skip to content
Merged
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
6 changes: 3 additions & 3 deletions packages/common/src/api/tan-query/jupiter/executors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class DirectSwapExecutor extends BaseSwapExecutor {
tokenInfo: inputTokenConfig,
userPublicKey,
ethAddress: ethAddress!,
amountLamports: BigInt(quote.inputAmount.amount),
amountLamports: BigInt(quote.inputAmount.amountString),
sdk,
feePayer,
instructions
Expand Down Expand Up @@ -382,7 +382,7 @@ export class IndirectSwapExecutor extends BaseSwapExecutor {
tokenInfo: inputTokenConfig,
userPublicKey,
ethAddress: ethAddress!,
amountLamports: BigInt(firstQuote.inputAmount.amount),
amountLamports: BigInt(firstQuote.inputAmount.amountString),
sdk,
feePayer,
instructions
Expand Down Expand Up @@ -543,7 +543,7 @@ export class IndirectSwapExecutor extends BaseSwapExecutor {
tokenInfo: audioTokenInfo,
userPublicKey,
ethAddress: ethAddress!,
amountLamports: BigInt(secondQuote.inputAmount.amount),
amountLamports: BigInt(secondQuote.inputAmount.amountString),
sdk,
feePayer,
instructions
Expand Down
3 changes: 2 additions & 1 deletion packages/web/src/store/application/ui/buy-audio/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,8 @@ function* recoverPurchaseIfNecessary() {
// Use proportion to guesstimate an $AUDIO quote for the exchangeable balance
const estimatedAudio =
existingBalance > 0
? (BigInt(exchangableBalance) * BigInt(quote.outputAmount.amount)) /
? (BigInt(exchangableBalance) *
BigInt(quote.outputAmount.amountString)) /
BigInt(existingBalance)
: BigInt(0)

Expand Down