Douglas Lima beat Rory MacDonald by unanimous decision to win the Bellator welterweight grand prix and become welterweight champion.