The iḍāfah عَبْدُ الدِّينَارِ identifies the object to which a person has become attached. The phrase is a forceful criticism of allowing wealth to govern one's decisions and loyalties.
A useful self-check is simple: when honest dealing conflicts with extra profit, which one takes priority? This is where the moral danger of attachment becomes visible.
The conjunction وَ in وَلُعِنَ links the two clauses. Repeating the passive verb لُعِنَ strengthens the warning.