mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-22 14:30:51 -04:00
rename getPricedAssetCodes()
This commit is contained in:
parent
1ca91888b9
commit
cf8b8132cf
2 changed files with 4 additions and 4 deletions
|
@ -754,13 +754,13 @@ export default class HavenoClient {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get all supported assets codes.
|
||||
* Get all asset codes with price information.
|
||||
*
|
||||
* TODO: replace this with getSupportedAssetCodes(): Promise<TradeCurrency[]>)
|
||||
*
|
||||
* @return {Promise<string[]>} all supported trade assets
|
||||
*/
|
||||
async getSupportedAssetCodes(): Promise<string[]> {
|
||||
async getPricedAssetCodes(): Promise<string[]> {
|
||||
const assetCodes: string[] = [];
|
||||
for (const price of await this.getPrices()) assetCodes.push(price.getCurrencyCode());
|
||||
return assetCodes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue