Skip to content

Latest commit

 

History

History
111 lines (62 loc) · 5.08 KB

curve-finance.md

File metadata and controls

111 lines (62 loc) · 5.08 KB
description
High APR stablecoin pools on xDai

Curve Finance

Curve gives users & protocols the ability to exchange stablecoins with low fees and low slippage. Users can also provide liquidity and receive high-APR rewards for providing liquidity to the protocol. Curve is a major protocol in the DeFi space, and we are excited to welcome them to the xDai stable ecosystem!

Curve Basics

{% hint style="info" %} See the Curve docs for basics on exchanging stable coins and depositing / withdrawing liquidity from the protocol. {% endhint %}

Connect with MetaMask (MM)

1) If you haven't added the xDai chain to MetaMask, follow these instructions to setup and switch to the xDai Network.

2) You will need a little xDai to pay for transactions. You can get some automatically by bridging assets to xDai, from the xDai faucet, purchase with fiat or in other ways.

3) Go to the Curve site at https://xdai.curve.fi. Click Connect Wallet and confirm the xDai address in MM you want to use with Curve.

Connect your xDai address to Curve

Swap using Curve Pools

From the homepage, you will see the option to swap using existing pools.

1) Select the following:

  1. The coin you want to swap from.
  2. The amount to swap.
  3. The asset you wish to receive. The amount will autopopulate, along with the exchange rate/fees and pool the trade will be routed through.

{% hint style="info" %} Note, for DAI you will need to use wrapped xDai, not standard xDai. The easiest way to convert Dai to wxDai is with wrapeth.
Additional info about wrapped xDai. {% endhint %}

2) Click Sell to process. You will sign 2 transactions in MetaMask. The first to approve the contract, and the second to pay for the transaction. You can adjust the gas price based on the BlockScout Gas Tracker.

Transaction 1 Click Sell | Confirm Contract

Transaction 2 Adjust Gas Price | Confirm Transaction

3) Find the transaction in MetaMask under the Activity Tab. Click arrow icon in details to View the tx in BlockScout.

Funding a Pool

Basic instructions below. For more information see the Curve docs.

1) Click on the pool you want to deposit to.

2) Select Deposit from the menu.

3) Input funding amounts.

  1. You can fund with a single token or multiples. If there is a lower amount of a certain token relative to others in the pool, providing additional amounts of that token will increase your rewards.
  2. Check or uncheck the gas price boxes to add a balanced proportion of tokens or to add the max amount in your connected wallet.
  3. Click to either deposit and receive x3CRV tokens (for this pool example) to your wallet, or Deposit and stake in gauge to stake and earn additional rewards on your CRV tokens.

4) Click Deposit or Deposit & stake in gauge and confirm in MM & approve the Curve contract.

5) Confirm the second transaction to process the deposit. Adjust gas price if desired (typically 1 Gwei, in times of high usage check prices on BlockScout).

6) If you chose to Deposit and stake in gauge, you will sign a second contract approval to allow Curve to send x3CRV to the staking contract.

7) Confirm the 2nd transaction to start staking in gauge.

8) Once confirmed you can see the amount staked. Click on a transaction to view in BlockScout.

Add the x3CRV token to MetaMask with BlockScout.

Find a transaction or go to the token for the pool you have funded. In the example above the token address is 0x1337BedC9D22ecbe766dF105c9623922A27963EC

  1. Click on the fox icon next to the address.
  2. Add to your MetaMask wallet.