diff --git a/dockernet/scripts/1.sh b/dockernet/scripts/1.sh index 14b088d32..2cb1e47a9 100644 --- a/dockernet/scripts/1.sh +++ b/dockernet/scripts/1.sh @@ -3,6 +3,6 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) source ${SCRIPT_DIR}/../config.sh ## IBC ATOM from GAIA to STRIDE -$GAIA_MAIN_CMD tx ibc-transfer transfer transfer channel-0 $(STRIDE_ADDRESS) 1000000uatom --from ${GAIA_VAL_PREFIX}1 -y +$GAIA_MAIN_CMD tx ibc-transfer transfer transfer channel-0 $(STRIDE_ADDRESS) 1000000uatom --from ${GAIA_VAL_PREFIX}1 -y --fees 1000000ufee sleep 10 $STRIDE_MAIN_CMD q bank balances $(STRIDE_ADDRESS) \ No newline at end of file diff --git a/x/stakeibc/keeper/icacallbacks_undelegate.go b/x/stakeibc/keeper/icacallbacks_undelegate.go index d25e59adf..3a2cd6a02 100644 --- a/x/stakeibc/keeper/icacallbacks_undelegate.go +++ b/x/stakeibc/keeper/icacallbacks_undelegate.go @@ -247,6 +247,10 @@ func (k Keeper) UpdateHostZoneUnbondingsAfterUndelegation( stTokensToBurn = sdk.NewDecFromInt(nativeTokensUnbonded).Quo(impliedRedemptionRate).TruncateInt() } + k.Logger(ctx).Info(utils.LogICACallbackWithHostZone(chainId, ICACallbackID_Undelegate, + "Epoch Unbonding Record: %d - Native Unbonded: %v, StTokens Burned: %v", + epochNumber, nativeTokensUnbonded, stTokensToBurn)) + // Decrement st amount on the record and increment the total hostZoneUnbonding.StTokensToBurn = hostZoneUnbonding.StTokensToBurn.Sub(stTokensToBurn) totalStTokensToBurn = totalStTokensToBurn.Add(stTokensToBurn) @@ -259,15 +263,15 @@ func (k Keeper) UpdateHostZoneUnbondingsAfterUndelegation( // Update the unbonding time if the time from this batch is later than what's on the record if unbondingTime > hostZoneUnbonding.UnbondingTime { hostZoneUnbonding.UnbondingTime = unbondingTime + + k.Logger(ctx).Info(utils.LogICACallbackWithHostZone(chainId, ICACallbackID_Undelegate, + "Epoch Unbonding Record: %d - Setting unbonding time to %d", epochNumber, unbondingTime)) } // Persist the record changes if err := k.RecordsKeeper.SetHostZoneUnbondingRecord(ctx, epochNumber, chainId, *hostZoneUnbonding); err != nil { return totalStTokensToBurn, err } - - k.Logger(ctx).Info(utils.LogICACallbackWithHostZone(chainId, ICACallbackID_Undelegate, - "Epoch Unbonding Record: %d - Setting unbonding time to %d", epochNumber, unbondingTime)) } return totalStTokensToBurn, nil } @@ -293,6 +297,7 @@ func (k Keeper) BurnStTokensAfterUndelegation(ctx sdk.Context, hostZone types.Ho if err != nil { return errorsmod.Wrapf(err, "unable to burn %v%s tokens", stTokenBurnAmount, stCoinDenom) } - k.Logger(ctx).Info(utils.LogICACallbackWithHostZone(hostZone.ChainId, ICACallbackID_Undelegate, "Burned %v", stCoin)) + k.Logger(ctx).Info(utils.LogICACallbackWithHostZone(hostZone.ChainId, ICACallbackID_Undelegate, + "Total Burned from Batch %v", stCoin)) return nil }