Skip to content

Commit

Permalink
fix: fix the auction creation in every end block (#2536)
Browse files Browse the repository at this point in the history
* fix: fix the auction creation in every block

* ++

* set auction id 0 on query
  • Loading branch information
gsk967 authored Jun 4, 2024
1 parent 7cac8b2 commit 4e7a578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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):
Expand Down
3 changes: 2 additions & 1 deletion x/auction/keeper/rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4e7a578

Please sign in to comment.