Cross-Chain Farming
Deposit ETH on Ethereum and start farming rewards on Polygon in a single click!!
Last updated
Deposit ETH on Ethereum and start farming rewards on Polygon in a single click!!
Last updated
1.Go to app.polydex.org/farms and select the Network as Ethereum Mainnet.
2. Now click on "Deposit ETH" on the farm you wish to deposit to.
Ether is converted into the LP token and so some slippage may apply.
3. Enter the amount of Ether you wish to enter into the farm. and click confirm on metamask.
4. There are 3 things that need to happen to for the cross chain farming to be complete and as each step happens the bubble will get filled up.
Initiated - The transaction has been submitted to the Ethereum Mainnet but has not been confirmed.
Deposited on Ethereum - Your ETH has been deposited on the Ethereum Blockchain and will be sent to Polygon shortly.
Staked on Polygon - Your ETH has now been staked on PolyDEX and you are now farming!!
It takes about 10-12 mins for the bridge to move your ETH to Polygon Mainnet.
5. Change your Network provider to Polygon Mainnet, and you will be able to see your LP tokens. You will also be earning farming rewards.
So now that we have got our basics sorted, lets look into exactly how cross chain farming works:
User deposits ETH on the Ethereum main-net in a contract by specifying the details of the farm that user wants to enrol into.
Smart contract processes the provided information and prepares the cross chain farming metadata.
Triggers the POS token bridge to port ETH over to Polygon to be received on CrossChainFarming Intermediator contract.
Triggers FxPortals to move the metadata from Ethereum to Polygon, again to be received on CrossChainFarming Intermediator contract.
After the State Sync event has been processed by the Polygon validators, ETH and metadata both are transferred from Ethereum and received on Polygon.
Intermediator contract decodes the metadata, triggers another smart contract on Polygon which converts ETH to tokens required to add liquidity in corresponding pair and get LP tokens.
After the LP tokens are received, triggers PolyDEX’s core farming contract to deposit LP tokens for the user.
On PolyDEX Farms, the farm will reflect the non zero stake for users immediately once this process is completed and users will start earning farming rewards.