Skip to content

Commit

Permalink
Remove the decimal from costADA to get lovelace instead of multiplying (
Browse files Browse the repository at this point in the history
#1638)

Remove the decimal from costADA to get lovelace instead of multiplaying
  • Loading branch information
TrevorBenson committed Apr 30, 2023
1 parent 31764e6 commit 5c6cb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cnode-helper-scripts/cntools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2709,7 +2709,7 @@ function main {
if [[ ${CNTOOLS_MODE} = "OFFLINE" && -f "${pool_config}" ]]; then
conf_pledge=$(( $(jq -r '.pledgeADA //0' "${pool_config}") * 1000000 ))
conf_margin=$(jq -r '.margin //0' "${pool_config}")
conf_cost=$(( $(jq -r '.costADA //0' "${pool_config}") * 1000000 ))
conf_cost=$(jq -r '.costADA //0' "${pool_config}" | tr -d '.')
conf_owner=$(jq -r '.pledgeWallet //"unknown"' "${pool_config}")
conf_reward=$(jq -r '.rewardWallet //"unknown"' "${pool_config}")
println "$(printf "%-21s : ${FG_LBLUE}%s${NC} Ada" "Pledge" "$(formatAsset "${conf_pledge::-6}")")"
Expand Down

0 comments on commit 5c6cb26

Please sign in to comment.