Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI] Support multiple Stable Coins #453

Merged
merged 6 commits into from
Dec 10, 2018

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.

CLI/commands/sto_manager.js Outdated Show resolved Hide resolved
CLI/commands/sto_manager.js Outdated Show resolved Hide resolved
CLI/commands/sto_manager.js Outdated Show resolved Hide resolved
},
limitMessage: "Must be a valid address",
defaultInput: usdToken.options.address
});
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.

@@ -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());
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