// ZeroRewardBalanceOfAddresses zeroes the balance of the specified addresses
ZeroRewardBalanceOfAddresses zeroes the balance of the specified addresses
// ZeroRewardBalanceOfAddresses zeroes the balance of the specified addresses
func ZeroRewardBalanceOfAddresses(node sqalx.Node, addresses []string) error {
	tx, err := node.Beginx()
	if err != nil {
		return stacktrace.Propagate(err, "")
	}
	defer tx.Rollback()
	_, err = sdb.Update("reward_balance").
		Set("balance", decimal.Zero).
		Set("updated_at", time.Now()).
		Where(sq.Eq{"rewards_address": addresses}).
		RunWith(tx).Exec()
	if err != nil {
		return stacktrace.Propagate(err, "")
	}
	return stacktrace.Propagate(tx.Commit(), "")
}
func ZeroRewardBalanceOfAddresses ( node sqalx . Node , addresses [ ] string ) error { tx , err := node . Beginx ( ) if err != nil { return stacktrace . Propagate ( err , " " ) } defer tx . Rollback ( ) _ , err = sdb . Update ( " " ) . Set ( " " , decimal . Zero ) . Set ( " " , time . Now ( ) ) . Where ( sq . Eq { " " : addresses } ) . RunWith ( tx ) . Exec ( ) if err != nil { return stacktrace . Propagate ( err , " " ) } return stacktrace . Propagate ( tx . Commit ( ) , " " ) }
ZeroRewardBalanceOfAddresses zeroes the balance of the specified addresses
ZeroRewardBalanceOfAddresses zeroes the balance of the specified addresses