Skip to content

Empty price_level in orderbook should be destoryed  #393

Description

@rm1138

Should check the the price_level is empty or not after removing item from it.
eg: https://github.com/Origin-Byte/nft-protocol/blob/testnet/sources/trading/orderbook.move#L1259

Otherwise this will break the assumption when match_buy_with_ask_
eg: https://github.com/Origin-Byte/nft-protocol/blob/testnet/sources/trading/orderbook.move#L845

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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