Skip to content

Commit

Permalink
Merge pull request #422 from jplomas/master
Browse files Browse the repository at this point in the history
fix: MS address page rounding
  • Loading branch information
jplomas committed May 24, 2023
2 parents b93d43c + 25a0ff3 commit 1e9a0b1
Show file tree
Hide file tree
Showing 6 changed files with 746 additions and 4,582 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,6 +3,8 @@ node_modules/
.deploy/
.DS_Store
/public/img/offline.png
.vscode/launch.json
jsconfig.json

\.idea/
/production.json
Expand Down
8 changes: 4 additions & 4 deletions development.json
Expand Up @@ -3,8 +3,8 @@
"webhook": "INSERT GLIP WEBHOOK HTTPS:// ADDRESS HERE"
},
"api": {
"primaryNode": "devnet-1.automated.theqrl.org:19009",
"secondaryNode": "devnet-1.automated.theqrl.org:19009",
"tertiaryNode": "devnet-1.automated.theqrl.org:19009"
"primaryNode": "testnet-1.automated.theqrl.org:19009",
"secondaryNode": "testnet-1.automated.theqrl.org:19009",
"tertiaryNode": "testnet-1.automated.theqrl.org:19009"
}
}
}
1 change: 0 additions & 1 deletion imports/startup/server/cron.js
Expand Up @@ -236,7 +236,6 @@ function refreshStats() {
const refreshQuantaUsd = async () => {
const apiUrl = 'https://market-data.automated.theqrl.org/'
const response = await axios.get(apiUrl)
console.log(response.data)
const { price } = response.data
quantausd.remove({})
quantausd.insert({ price })
Expand Down
4 changes: 3 additions & 1 deletion imports/ui/components/address/address.js
Expand Up @@ -268,7 +268,9 @@ const renderAddressBlock = () => {
if (!(res.state.address)) {
res.state.address = aId
}
res.state.balance = (parseInt(res.state.balance, 10) / SHOR_PER_QUANTA).toFixed(8)
let bal = new BigNumber(res.state.balance)
bal = bal.div(SHOR_PER_QUANTA)
res.state.balance = bal.toString()
Session.set('address', addressResultsRefactor(res))
}
})
Expand Down

0 comments on commit 1e9a0b1

Please sign in to comment.