SubstrateChess / pallet-chess

The Unlicense
11 stars 6 forks source link

clear abandoned match unit tests #16

Closed bernardoaraujor closed 1 year ago

bernardoaraujor commented 1 year ago

adds unit tests to clear_abandoned_match

I had to refine the implementation of Match::clear_abandoned_bet() because I found an edge case where if the bets were too small, the janitor incentive was smaller than the minimum_balance. In that case, janitor gets the full prize now.