Why doesn’t my swap bring expected profit?

Whether your swap brings profit depends on the current situation on the margin trading market, as described in this article. If the interest rate you ask for a swap is too high, investors will use cheaper liquidity and your contract will not generate profit. Because of a dynamic nature of cryptocurrency markets, both the depth of the swaps market and the amount of liquidity used by investors may quickly change. For this reason, it is a good idea to systematically monitor the market to regularly check what the maximum level of profitability of swap contracts is at a given moment.