Xave Finance
Xave Finance Socials
  • Introduction
  • General FAQs
  • Guides
    • How to Connect Your Wallet
    • How to Supply Liquidity
      • How to Add Liquidity to FXPools
      • How to Remove Liquidity from Xave Liquidity Pools
    • How to Use Xave Strategies
      • How to Deposit to xSGD Thetanuts Strategy
      • How to Withdraw from xSGD Thetanuts Strategy
    • How to Swap
    • How to Lend
    • How to Borrow
    • How to Repay
    • How to Withdraw
    • How to Vote for Xave's Gauges in Balancer using veBAL
      • How to get B-80BAL-20WETH
      • How to Lock veBAL
      • How to Vote for a Liquidity Gauge for Xave's Pool
    • How to Earn BAL Rewards
      • How to Stake into a Liquidity Pool's Gauge
      • How to Unstake from a Liquidity Pool's Gauge
      • How to Claim BAL Rewards
    • How to Claim XSGD Rewards
    • How to Test PHPT:USDC on Sepolia Testnet
  • Product Overview
    • FXPools
      • Pool Operator FAQs
      • Invariant FAQs
    • Lending Market
    • Xave Strategies
      • Strategy # 1: Thetanuts
      • Strategy # 2: USDC Lending
  • Tokenomics
    • XAV
    • XAV Tokenomics
      • XAV MultiSigs
      • Claim Portal for Prior Community Supporters
    • Governance
  • Contract Addresses
  • TOKEN LAUNCH
    • XAV Launches and Exchange Listing
  • Future
    • Roadmap
    • FXMetaPool
  • Contract Audits
    • Overview
    • Price Oracles Final Audit
    • FXPool Final Audit
    • Lending Market
    • Standard Operating Procedure for Security
  • Liquidity Provider and Protocol Fees
    • Avalanche Pools
    • Ethereum Pools
    • Polygon (POS) Pools
  • List of supported Stablecoins
    • 🇸🇬XSGD
    • 🇺🇸USDC
    • 🇪🇺EUROC
    • 🇪🇺EURS
    • 🇬🇧GBPT
  • Socials
    • Twitter
    • Medium
    • Discord
    • Github
  • Branding Assets
    • Xave Finance Brand Assets
Powered by GitBook
On this page
  • Prerequisites
  • Add Liquidity and Swap
  1. Guides

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.

Last updated 1 year ago

Token Addresses

Token Name
Address

USDC

PHPT

XSGD

Prerequisites

First, be sure to install

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. Open Metamask from your browser

  2. Click the network dropdown

  3. On the "Select a network" modal, make sure that "Show test networks" is switched on

  4. Select Sepolia from the network list.

  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()

  1. Click "Connect Wallet" to connect your Metamask wallet

  2. Input your wallet address

  3. Make sure that "0.1 Test ETH" box is checked

  4. You may be asked to login to "Twitter" (for verification purposes), input your Twitter username and password

  5. Check "I am human" to verify the captcha

  6. Click "Send request"

  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. Click "Connect wallet" to connect your Metamask wallet

  2. Click "Issue" from the main menu to go to issue page

  3. Switch to "Sepolia" network

  4. Select a token to issue (PHPT, USDC)

  5. On the "Issue" section, input the amount to mint

  6. Click "Issue" button

  7. Confirm the transaction from your Metamask

On some occasions, you may want to transfer or redeem mock tokens.

Transfer mock tokens

  1. Click "Connect wallet" to connect your Metamask wallet

  2. Click "Issue" from the main menu to go to issue page

  3. Switch to "Sepolia" network

  4. Select a token to transfer (PHPT, USDC)

  5. On the "Transfer" section, input the amount to transfer and the address of the recipient

  6. Click "Transfer" button

  7. Confirm the transaction from your Metamask

Redeem mock tokens

  1. Click "Connect wallet" to connect your Metamask wallet

  2. Click "Issue" from the main menu to go to issue page

  3. Switch to "Sepolia" network

  4. Select a token to mint (PHPT, USDC)

  5. On the "Redeem" section, input the amount to redeem

  6. Click "Redeem" button

  7. 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. Use the network switcher on the upper right portion of the site to connect to "Sepolia"

  2. Select PHPT/USDC pool and click Manage

  3. Select the Add Liquidity tab

  4. 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.

  5. Enter the amount of liquidity you’d like to provide and choose the amount of slippage tolerance

  6. Click "Supply" button

  7. Add Liquidity Details window will pop up, click "Confirm Supply"

  8. Confirm the transactions from Metamask

Swap

Swap PHPT to XSGD.

  1. Use the network switcher on the upper right portion of the site to connect to "Sepolia"

  2. Select "PHPT" from the "from" token

  3. Select "XSGD" from the "to" token

  4. Input the swap amount

  5. Click "swap" button

  6. 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

Name
Address
Remarks

USDC/USD

Official Chainlink Oracle

PHP/USD

Mock Oracle deployed by Xave

SGD/USD

Mock Oracle deployed by Xave

Go to

Go to

Go to

Go to the

Go to the

https://dev.app.xave.co
https://dev.app.xave.co
https://dev.app.xave.co
pool page
swap page
https://sepolia.etherscan.io/address/0xb9f4e777491bb848578b6fba5c8a744a40d11128
https://sepolia.etherscan.io/address/0x395c430e7aec9216a5CAa2620b164DF381f53D8F
https://sepolia.etherscan.io/address/0x29388a985C5904BFa13524f8c3Cb8bC10A02864C
https://sepolia.etherscan.io/address/0xA2F78ab2355fe2f984D808B5CeE7FD0A93D5270E
https://sepolia.etherscan.io/address/0xc33745c6cd00c4097fae924cb7e2594fff4b7d7e
https://sepolia.etherscan.io/address/0xd9239bb559b8f16dcd67f6186166d218b7514397
https://metamask.io/
https://faucets.chain.link/sepolia