-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
fix: multichainToken rate for non evm #5175
base: main
Are you sure you want to change the base?
Conversation
51c3893
to
ac5d0e4
Compare
* @param includeMarketData - Whether to include market data in the response. | ||
* @returns A promise that resolves to the rate of the token in USD. | ||
*/ | ||
export function fetchMultiChainRates( |
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.
this function will be removed and replaced with the one from snap API , but for now we work with mocked data
): Promise<MarketDataDetailsFromPriceAPi> { | ||
const url = `http://localhost:3000/v3/spot-prices?assetIds=${assetIds.join( | ||
',', | ||
)}${includeMarketData && `&includeMarketData=true`}${`vsCurrency=usd`}`; |
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.
Does vsCurrency=usd
need an &
? &vsCurrency=usd
?
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.
Also, I don't think we need the ${}
for vsCurrency=usd
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.
the api call will be replaced by the snap call below once this one will be ready
for now i'm just using a call to a local fake server, but we will not have api call anymore
Explanation
References
Changelog
@metamask/package-a
@metamask/package-b
Checklist