Rob Kardashian and Blac Chyna have settled their custody war, and Rob paid a heavy price to get her to drop her domestic violence allegations.

TMZ learnt Rob and Chyna have agreed to joint custody of 10-month-old Dream. Rob drew the line during negotiations at $10k a month for child support, but she wanted north of $50k.

There was some disagreement, and Rob agreed to double his offer and pay Chyna $20k a month, and she agreed in return to drop her domestic violence allegations.

hyna got a restraining order against Rob after claiming he allegedly beat her up and threatened to kill himself, TMZ reports.