-
Notifications
You must be signed in to change notification settings - Fork 0
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: dummy pricing provider #58
Conversation
|
||
import { Address } from "@zkchainhub/shared"; | ||
|
||
import { DummyPricingProvider } from "../../../src/providers/dummy.provider"; |
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.
Might want to add a .js
?
*/ | ||
export class DummyPricingProvider implements IPricingProvider { | ||
async getTokenPrices(addresses: Address[]): Promise<PriceResponse> { | ||
return Promise.resolve(Object.fromEntries(addresses.map((address) => [address, 1]))); |
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 was wondering if we should return undefined here, lets leave it as it is, and if we need a refactor it wouldn't take to much time
🤖 Linear
Closes ZKS-212
Description
Implement DummyPricingProvider