Uh oh!
There was an error while loading. Please reload this page.
[CLI] Support multiple Stable Coins - #453
Conversation
VictorVicente
left a comment
There was a problem hiding this comment.
Some little changes requested.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| }); | ||
| if (addresses.usdToken == "") addresses.usdToken = usdToken.options.address; | ||
| if (addresses.usdToken == "") { | ||
| listOfAddress = [usdToken.options.address] |
There was a problem hiding this comment.
Why do you have two list of addresses? You can use 'addresses.usdToken' everywhere
There was a problem hiding this comment.
nop, I need to keep both vars. If I remove listOfAddress, processArray brokes.
| @@ -583,28 +645,52 @@ async function usdTieredSTO_status(currentSTO) { | |||
| let balance = await getBalance(displayWallet, gbl.constants.FUND_RAISE_TYPES[type]); | |||
| let walletBalance = web3.utils.fromWei(balance); | |||
| let walletBalanceUSD = web3.utils.fromWei(await currentSTO.methods.convertToUSD(gbl.constants.FUND_RAISE_TYPES[type], balance).call()); | |||
There was a problem hiding this comment.
You should check the balance for each stable coin. For example if POLY, ETH, DAI and USDT are accepted, you should show
Balance ETH: xx ETH
Balance POLY: xx POLY
Balance DAI: xx DAI
Balance USDT: xx USDT
No description provided.