Skip to content

Conversation

shuffledex
Copy link
Contributor

No description provided.

@shuffledex shuffledex changed the base branch from dev-2.1.0 to multiple-stable-coins December 6, 2018 21:56
Copy link
Contributor

@VictorVicente VictorVicente left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some little changes requested.

});
if (addresses.usdToken == "") addresses.usdToken = usdToken.options.address;
if (addresses.usdToken == "") {
listOfAddress = [usdToken.options.address]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you have two list of addresses? You can use 'addresses.usdToken' everywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nop, I need to keep both vars. If I remove listOfAddress, processArray brokes.

for (const type of raiseTypes) {
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());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting SC update

@VictorVicente VictorVicente changed the title [CLI] [WIP] Support multiple Stable Coins [CLI] Support multiple Stable Coins Dec 10, 2018
@VictorVicente VictorVicente merged commit bc93fdd into multiple-stable-coins Dec 10, 2018
@VictorVicente VictorVicente deleted the private/fede/cli/stableCoin branch December 10, 2018 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants