add deadline to auctions

This commit is contained in:
2022-09-01 19:13:17 +00:00
parent 5d71effb7f
commit 338b7d075a
8 changed files with 144 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ func (k *Keeper) AuctionIsExpired(ctx types.Context, auctionId string) (bool, er
return uint64(ctx.BlockHeight()) >= auction.Deadline, nil
}
func (k *Keeper) EndExpiredAuctions(ctx types.Context) {
func (k *Keeper) FinalizeExpiredAuctions(ctx types.Context) {
memdb.BidDB.ForEachAuction(func(auctionId string) error {
auction, found := k.GetAuction(ctx, auctionId)
// make sure the auction exists on-chain
@@ -61,3 +61,7 @@ func (k *Keeper) EndExpiredAuctions(ctx types.Context) {
return nil
})
}
func (k *Keeper) VestAuctionPayments(ctx types.Context) {
}