Skip to content

Commit

Permalink
Update how amount is represented on RFQ quote response
Browse files Browse the repository at this point in the history
  • Loading branch information
corcillo committed Jul 11, 2023
1 parent fcc3dd4 commit 64e4e6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export enum PaymentMethodKind {
export interface Quote {
expiryTime: string
totalFeeCents: string
amountCents: string
targetAmountCents: string
targetAmountCurrency: string
paymentInstructions?: PaymentInstructions
}

Expand Down
3 changes: 2 additions & 1 deletion js/tests/builders.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ describe('messages builders', () => {
const quote: Quote = {
expiryTime : new Date().toISOString(),
totalFeeCents : '100',
amountCents : '1000',
targetAmountCents : '1000',
targetCurrency : 'BTC'
paymentInstructions : { payin: { link: 'fake.link.com' } },
}
Expand Down

0 comments on commit 64e4e6c

Please sign in to comment.