Add service provider auctions #59
@ -540,10 +540,12 @@ func (k Keeper) RevealBid(ctx sdk.Context, msg auctiontypes.MsgRevealBid) (*auct
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Lock bid amount.
|
// Lock bid amount.
|
||||||
|
if auction.Kind == auctiontypes.AuctionKindVickrey {
|
||||||
sdkErr := k.bankKeeper.SendCoinsFromAccountToModule(ctx, signerAddress, auctiontypes.ModuleName, sdk.NewCoins(bidAmount))
|
sdkErr := k.bankKeeper.SendCoinsFromAccountToModule(ctx, signerAddress, auctiontypes.ModuleName, sdk.NewCoins(bidAmount))
|
||||||
if sdkErr != nil {
|
if sdkErr != nil {
|
||||||
return nil, sdkErr
|
return nil, sdkErr
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Update bid.
|
// Update bid.
|
||||||
bid.BidAmount = bidAmount
|
bid.BidAmount = bidAmount
|
||||||
|
Loading…
Reference in New Issue
Block a user