rDEX on StaFiHub Chain
Last updated
Last updated
This guide takes rATOM/ATOM pair as an example to demonstrate how to add liquidity, remove liquidity and swap between rToken and original token (StaFiHub chain). The rTokens should be on the StaFiHub chain.
Before testing, please make sure that you have installed Keplr wallet. If not, please download/install and follow the instructions to import your StaFi account.
Enter StaFiHub App portal: https://app.stafihub.io, then follow this guide to stake ATOM and mint rATOM.
Before trading on rDEX V2, please make sure that your tokens are on StaFiHub chain. If not, please swap your tokens from CosmosHub to StaFiHub. For now, there are 2 ways for it: rBridge Swap(IBC) on StaFiHub rToken App and IBC transfer on Kelpr wallet:
Similarly, if you want to swap tokens from StaFiHub to CosmosHub, these two ways are also applicable.
Note: the receiving address added in the progress must be StaFiHub address, and it should be the same one as rATOM address for the convenience of adding liquidity on rDEX.
rBridge Swap(IBC) on StaFiHub rToken App
1)Enter rBridge page: https://app.stafihub.io/rBridge
Select CosmosHub and StaFiHub and the token that you will swap, add swap amount and receiving address, then click "Swap". You will get the token on StaFiHub.
IBC Transfer on Kelpr Wallet:
1) Click “Transfer” and "Select Chain".
2) Destination Chain: stafihub ChannelID: channel-369, Click "Save" .
Then add your StaFiHub address.
Please note: Transferring small amounts is recommended on Keplr.
3) Add the amount that will be transferred and click “Submit”.
Click “Approve”, then the ATOM on CosmosHub is sent to your StaFiHub address.
1) Enter the rDEX App: https://app.rdex.finance/stafihub/liquidity, click "Keplr" to connect rDEX on StaFiHub.
2) Select rATOM/ATOM trading pair to add liquidity.
3) Enter the amount of rATOM and ATOM, and then click “Supply”.
4) After confirming the transaction, the total liquidity that you have provided is shown below.
1) Slide the progress bar to select the liquidity ratio and the ratio of rATOM and ATOM to be removed. The amount of rATOM and ATOM is displayed below.
Click “Remove”.
2) After confirming the transaction information, the corresponding amount of rATOM and ATOM is sent to the current StaFiHub address. You can view the transaction in the notification bar.
1) Select the token to be swapped in the “Swap” page. rDEX supports mutual swapping between rATOM and ATOM. Here we select rATOM to demonstrate the operation process of Swap in this guide.
Enter the amount of rATOM to be swapped, and rDEX will calculate the amount of ATOM based on the real time exchange rate of rATOM and ATOM.
Click the setting to modify the slippage tolerance.
2) After confirming the transaction information, the corresponding amount of ATOM is sent to the current StaFiHub address. You can view the transaction in the notification bar.