-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(quote): add more validations #213
Conversation
src/mock-data/quote.ts
Outdated
cryptoType: CryptoType.cUSD, | ||
fiatType: FiatType.NGN, | ||
cryptoAmount: '10', | ||
fiatAmount: '7560', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some providers, 10 is at or near the minimum quote offered. Given that Naira can fluctuate in value, we might want to increase cryptoAmount too so there's more of a buffer. Otherwise if Naira decreased in value, this could drop below the minimum quote amount offered by the provider, assuming that minimum amount is denominated in dollars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same with the other mock quotes for 10 cUSD that now have a fiat amount
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated all quotes to be 20 cUSD, and also dropped the in / out in the field names since some objects were just duplicates
Add tests for requests missing required fields, checking if quote can be fetched with either amount