Getting Started

TL;DR: This guide walks you through connecting to XCCY, depositing margin, and opening your first position. You'll be trading Fixed Yield vs Variable Yield in under 10 minutes.

Prerequisites

Before you begin:

Step 1: Connect Your Wallet

Supported Wallets

Wallet
Status

MetaMask

✓ Supported

WalletConnect

✓ Supported

Coinbase Wallet

✓ Supported

Rabby

✓ Supported

Network Configuration

Network: Polygon Mainnet
Chain ID: 137
RPC: https://polygon-rpc.com

Step 2: Approve Tokens

Before depositing, approve XCCY to use your tokens:

Note: You only need to approve once per token.

Step 3: Deposit Margin

Deposit collateral to your account:

Step 4: Check Available Pools

Query available pools and their current Fixed Yield rates:

Step 5: Open Your First Position

Option A: Lock Fixed Yield (FY Position)

If you want guaranteed, predictable yield:

Option B: Trade Variable Yield (VY Position)

If you expect Variable Yield to rise:

Step 6: Monitor Your Position

Check Margin Balance

Check Position Health

Step 7: At Maturity — Settle

When the pool reaches maturity, settle your position:

Quick Reference

Contract Addresses (Polygon)

Contract
Address

VAMMManager

0xe8FE9b71355B1701036671AD3c8F6dF585eb7eBd

CollateralEngine

0x23E2DD3bB6e35162eB48d473d540764d5902BAe5

OracleHub

0x7a5084DEc5Fd89Ee1079005cE9cEa094c2A66E8E

AprOracle

0xA192144F89edC9fBB3D225856FaF284d9287EDb8

USDC

0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359

aUSDC

0xA4D94019934D8333Ef880ABFFbF2FDd611C762BD

Key Constants

Troubleshooting

"Insufficient margin"

You need more collateral. Deposit additional margin:

"Pool expired"

The pool has reached maturity. You can only settle, not open new positions.

"Unauthorized"

Make sure you're calling from the account owner's wallet.

Next Steps

  • Lock Fixed Yield — Detailed FY guide

  • Trade Variable Yield — Detailed VY guide

  • Provide Liquidity — Become an LP

Last updated