Skip to content

nit: x/auction/keeper: Keeper.EndBlocker could succinctly use !sdk.Dec.IsPositive and not having to compare against a zero magnitude sdk.Dec #296

@odeke-em

Description

@odeke-em

Noticed here that we've got this comparison

if newUnitPriceInUsomm.LTE(sdk.NewDec(0)) {
but really that can be succinctly and cheaply be turned into !.IsPositive()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions