From 19ce5ee37f54e6b3449d6464d985b9b1513a4cda Mon Sep 17 00:00:00 2001 From: Sai Kumar <17549398+gsk967@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:31:12 +0530 Subject: [PATCH] fix: fix the auction creation in every end block (#2536) * fix: fix the auction creation in every block * ++ * set auction id 0 on query --- Makefile | 4 ++-- x/auction/keeper/rewards.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 273afdb68b..8023d10965 100644 --- a/Makefile +++ b/Makefile @@ -152,7 +152,7 @@ go-mod-tidy: clean: @echo "--> Cleaning..." - @rm -rf $(BUILD_DIR)/** $(DIST_DIR)/** + @rm -rf $(BUILDDIR)/** $(DIST_DIR)/** .PHONY: build build-linux build-experimental build-no_cgo clean go-mod-tidy @@ -237,7 +237,7 @@ test-e2e-clean: docker rm umee0 umee1 umee2 umee-gaia-relayer gaiaval0 umee-price-feeder || true docker network prune -f -test-qa: +test-qa: @go test ./tests/qa/... -timeout 30m -v -tags='test_qa' $(MOCKS_DIR): diff --git a/x/auction/keeper/rewards.go b/x/auction/keeper/rewards.go index ad58713af1..1ce4914c1b 100644 --- a/x/auction/keeper/rewards.go +++ b/x/auction/keeper/rewards.go @@ -22,7 +22,8 @@ func (k Keeper) FinalizeRewardsAuction() error { if a == nil { return k.initNewAuction(id+1, []sdk.Coin{}) } - if !a.EndsAt.After(now) { + + if a.EndsAt.After(now) { return nil }