Links

How to Test PHPT:USDC on Sepolia Testnet

This page illustrates how to test the PHPT-USDC FX pool in Sepolia testnet, using mock tokens.

Token Addresses

Prerequisites

First, be sure to install https://metamask.io/​
These are the steps required before you can test the PHPT-USDC or XSGD-USDC FX pools. Optionally, you can reach out to our team to send the tokens needed to your address.
Add Sepolia to your Metamask
By default, testnets are not shown in Metamask.
  1. 1.
    Open Metamask from your browser
  2. 2.
    Click the network dropdown
  3. 3.
    On the "Select a network" modal, make sure that "Show test networks" is switched on
  4. 4.
    Select Sepolia from the network list.
  5. 5.
    You will be connected to the Sepolia network.
​
​
Test ETH tokens
You'll need test ETH tokens to cover for gas fees. You can acquire test ETH from any Sepolia faucet, and for this tutorial we'll use Chainlink's Sepolia faucet(https://faucets.chain.link/sepolia)
  1. 1.
    Click "Connect Wallet" to connect your Metamask wallet
  2. 2.
    Input your wallet address
  3. 3.
    Make sure that "0.1 Test ETH" box is checked
  4. 4.
    You may be asked to login to "Twitter" (for verification purposes), input your Twitter username and password
  5. 5.
    Check "I am human" to verify the captcha
  6. 6.
    Click "Send request"
  7. 7.
    Check the ETH balance in your wallet.
Issue some FX Pool mock tokens
You'll need to issue PHPT and USDC in order to add liquidity:
  1. 2.
    Click "Connect wallet" to connect your Metamask wallet
  2. 3.
    Click "Issue" from the main menu to go to issue page
  3. 4.
    Switch to "Sepolia" network
  4. 5.
    Select a token to issue (PHPT, USDC)
  5. 6.
    On the "Issue" section, input the amount to mint
  6. 7.
    Click "Issue" button
  7. 8.
    Confirm the transaction from your Metamask
On some occasions, you may want to transfer or redeem mock tokens.
Transfer mock tokens
  1. 2.
    Click "Connect wallet" to connect your Metamask wallet
  2. 3.
    Click "Issue" from the main menu to go to issue page
  3. 4.
    Switch to "Sepolia" network
  4. 5.
    Select a token to transfer (PHPT, USDC)
  5. 6.
    On the "Transfer" section, input the amount to transfer and the address of the recipient
  6. 7.
    Click "Transfer" button
  7. 8.
    Confirm the transaction from your Metamask
Redeem mock tokens
  1. 2.
    Click "Connect wallet" to connect your Metamask wallet
  2. 3.
    Click "Issue" from the main menu to go to issue page
  3. 4.
    Switch to "Sepolia" network
  4. 5.
    Select a token to mint (PHPT, USDC)
  5. 6.
    On the "Redeem" section, input the amount to redeem
  6. 7.
    Click "Redeem" button
  7. 8.
    Confirm the transaction from your Metamask

Add Liquidity and Swap

Now you are ready to test any of the FXPools by adding liquidity and swapping tokens. On this tutorial, we will test adding liquidity to the PHPT-USDC pool and swapping PHPT to XSGD.
Add Liquidity
Add liquidity to the PHPT-USDC pool using "two-sided" deposit.
  1. 1.
    Go to the pool page​
  2. 2.
    Use the network switcher on the upper right portion of the site to connect to "Sepolia"
  3. 3.
    Select PHPT/USDC pool and click Manage
  4. 4.
    Select the Add Liquidity tab
  5. 5.
    Take note - this screenshot illustrates adding liquidity at the 50:50 LP ratio (that looks like the FX rate), however please note that this ratio may change.
  6. 6.
    Enter the amount of liquidity you’d like to provide and choose the amount of slippage tolerance
  7. 7.
    Click "Supply" button
  8. 8.
    Add Liquidity Details window will pop up, click "Confirm Supply"
  9. 9.
    Confirm the transactions from Metamask
Swap
Swap PHPT to XSGD.
  1. 1.
    Go to the swap page​
  2. 2.
    Use the network switcher on the upper right portion of the site to connect to "Sepolia"
  3. 3.
    Select "PHPT" from the "from" token
  4. 4.
    Select "XSGD" from the "to" token
  5. 5.
    Input the swap amount
  6. 6.
    Click "swap" button
  7. 7.
    Confirm the transaction from Metamask.
You can click on the cog icon to open the "Transaction Settings" window to set Slippage Tolerance and Transaction Deadline settings.
Slippage tolerance - the transaction will not go through if the price changes more than the value selected.
Transaction deadline - the transaction will not go through if the transaction has been pending for more than the period specified (in minutes).

Oracle Addresses

​
Last modified 4mo ago