mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 23:54:26 -08:00
add deadline to auctions
This commit is contained in:
@@ -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) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user