-
Notifications
You must be signed in to change notification settings - Fork 160
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
[CLI] Support multiple Stable Coins #453
Conversation
There was a problem hiding this 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
}, | ||
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] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting SC update
No description provided.