async function fetchLbpSupportFundraisingAssetsList(addr) {

  try {
    var res = await api.query.lbp.supportFundraisingAssets();
    var currencyIds = []
    res = res.toJSON()
    currencyIds = res.map(e => e[0])
    var tokenInfoList = await fetchTokenInfoList(currencyIds, addr)
    tokenInfoList = tokenInfoList.map((e, i) => {
      e.minFundraisingAmount = res[i][1];
      return e;
    });
    return tokenInfoList;
  } catch (error) {
    window.send("log", error.toString())
  }
  return null;
}
/** Fetch Fetch lbp support fundraising assets List */
Fetch Fetch lbp support fundraising assets List
Fetch Fetch lbp support fundraising assets List
async function fetchLbpSupportFundraisingAssetsList(addr) {
  try {
    var res = await api.query.lbp.supportFundraisingAssets();
    var currencyIds = []
    res = res.toJSON()
    currencyIds = res.map(e => e[0])
    var tokenInfoList = await fetchTokenInfoList(currencyIds, addr)
    tokenInfoList = tokenInfoList.map((e, i) => {
      e.minFundraisingAmount = res[i][1];
      return e;
    });
    return tokenInfoList;
  } catch (error) {
    window.send("log", error.toString())
  }
  return null;
}
async function fetchLbpSupportFundraisingAssetsList ( addr ) { try { var res = await api . query . lbp . supportFundraisingAssets ( ) ; var currencyIds = [ ] res = res . toJSON ( ) currencyIds = res . map ( e => e [ 0 ] ) var tokenInfoList = await fetchTokenInfoList ( currencyIds , addr ) tokenInfoList = tokenInfoList . map ( ( e , i ) => { e . minFundraisingAmount = res [ i ] [ 1 ] ; return e ; } ) ; return tokenInfoList ; } catch ( error ) { window . send ( "log" , error . toString ( ) ) } return null ; }
Fetch Fetch lbp support fundraising assets List
Fetch Fetch lbp support fundraising assets List