min_coin working