The Dutch actually lent firearms to rival states on the Gold Coast on the condition that their African clients would sell whatever prisoners they took captive to the Dutch as slaves,
Similar to how the US funds and arms other countries to fight wars that we then benefit from.