if it's in the contract, and it can't be changed without bilateral agreement, the interest is fine, it's baked into the deal, it's essential to the economics
you defer future gains to give someone a chance to produce better gains than you estimate you can make
that's a halal contract, and that's not what any kind of fiat money finance is about