Skip to content

Commit

Permalink
Fix drep update min fee calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
cardadad committed Aug 1, 2024
1 parent 46bf25d commit 87cf463
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/cnode-helper-scripts/cntools.library
Original file line number Diff line number Diff line change
Expand Up @@ -3952,7 +3952,12 @@ registerDRep() {
)
fi

tmpNewBalance=$(( base_lovelace - DREP_DEPOSIT ))
if [[ ${is_update} = N ]]; then
tmpNewBalance=$(( base_lovelace - DREP_DEPOSIT ))
else
tmpNewBalance=$(( base_lovelace ))
fi

build_args=(
${tx_in}
--tx-out "${base_addr}+${tmpNewBalance}${assets_tx_out}"
Expand Down

0 comments on commit 87cf463

Please sign in to comment.