update js lib, add method for fiat list

This commit is contained in:
zhl 2023-05-30 14:53:51 +08:00
parent fa4363c2fc
commit 5312ffd5f6
2 changed files with 9 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -519,6 +519,14 @@ function tokenList(funId) {
function tokenPrice(funId, tokenName, amount) {
promiseCb(funId, jc.wallet.calcTokenPrice(tokenName, amount));
}
/**
* fiat list
*/
function fiatList(funId) {
promiseCb(funId, jc.wallet.paySvr.fetchFiatList());
}
/**
* format price
*/