MCDEX Arbitrager Bounty II

Based on the proposal 26, We are glad to extend our bounty with hummingbot to widen the participants of the arbitrager bounty.


The bounty program is established for the development of arbitrage strategy between MCDEX and other exchanges.

MCDEX is calling for developers to produce arbitrage strategies based on MCDEX perpetual swaps. This arbitrage strategy is designed based on elements including but not limited to the funding rate, cash and carry trade, and spread.


Please notify that:

Reward Distribution

The reward is disturbed to the arbitragers according to the date he passes the integration test. The earlier the arbitrage passes the test, the more reward he will be distributed.


Before V3 mainnet is public. (Please contact us first to make sure)


MCDEX is a decentralized perpetual exchange that allows anyone to create any perpetual market. Like most perpetual swap exchanges, funding rate is applied to make the trading price anchor. index price, thus creating arbitrage opportunities.

However, the calculation of funding rate of each exchange is not exactly the same. The user case below is to explain the funding mechanism on MCDEX, so that the arbitrager can have a clear picture of it and generate their own arbitrage strategies.

Funding rate mechanism on MCDEX:

1.When AMM holds a net short position (which means more traders long than short), AMM price will be higher than the index price. In this case, Longs will pay the funding payment. to shorts.

2.When AMM holds a net long position (which means more traders short than long), AMM price is lower than the index price. In this case, shorts will pay the funding to longs.

3.The funding rate mechanism on MCDEX is unique in a way that it is charged on a rolling basis rather than in every few hours.

User story (ETH-USD):

When the AMM is in net short, the ETH-USD price on MCDEX is higher than the index price of ETH.

Assuming index price of ETH =100u , ETH-USD price on MCDEX =120u

In this case we can open a short position of 1 ETH (short position entry price=120) while buying 1 ETH in a spot market.

If the index price stays at 100u, when the price deviation on MCDEX is buffered by the decrement of long traders, we can then close our 1 ETH short position at 100u and sell our 1 ETH in the spot market.

So we profit 20u from closing the short position.

Before closing the short position, we get funding payment as profit as long as the AMM is in a net short position.

Our profit=20+funding rate.

More Info

Website, White paper, AMM design

Building MCDEX V3 (Decentralized Perpetual) | Trade #PerpetualContracts - #Permissionless #1000x Uni’s capital efficiency #Anyone can create any market