Borrow feature in a smart contract project I'm building

I’m a smart contract developer and rn I’m working for a client to build a arbitrage bot.
So there is feature that need to be built which involves borrowing and I’m not gonna do that, but because this is a feature in this project, would that be haram for me to even get involved in building this bot?

  1. let’s take an example: ETH goes up in CEX
    and there’s an opportunity to get ETH at better rate from WBTC->WETH
    but we don’t have any WBTC
    we deposit WETH as collateral, borrow WBTC
    take the opportunity , and now you could say we’re ‘leveraged up’
    at a later point we ‘unwind’ (sell the WETH back to WBTC and repay the debt)