# What is Affine?

Affine is the easiest way to invest and save in cross-chain assets in Crypto

## Overview

Affine is the world's first cross-chain investment and savings app. We make it simple for users to onboard funds in an efficient and affordable manner using Polygon while gaining access to investment opportunities on multiple chains. Today, this includes Ethereum and Polygon but and we plan to expand to other chains and protocols in the future.&#x20;

We are currently in our Mainnet where we invite the community to invest with Affine and give [feedback](https://discord.com/invite/RvSFFfUdvX). There are a few components of what we collectively call "Affine" that are worth noting:&#x20;

**The Affine Protocol**

The Affine Protocol is everything that enables the trustless and decentralized execution of our cross-chain investment and savings solutions. Specifically, today this includes the smart contracts that power our investment baskets and in the long run, may include elements related to governance and upgradability.&#x20;

**The Affine App or Interface**&#x20;

The Affine App is how most users will interact with the Affine Protocol. Users may still interact with the Smart Contracts directly but the vast majority will leverage the App to buy and sell underlying Affine assets. The Affine app is a dedicated interface that is designed to help users more easily view, manage, and transact with their self-custodied Affine baskets. &#x20;

## **How it Works**

Affine works by providing an easy-to-use entry point for investing in multi-chain assets. We call these abstractions "baskets" and they are made up of underlying "strategies". We describe  more below:&#x20;

### Strategies

Strategies are the atomic unit on Affine. You can think of this as a specific transaction that you can make today by buying Bitcoin, Ethereum, Lending USDC on Compound, etc. These are a relatively simple but there are innumerable strategies that can be implemented. You can read more about the various strategies we support [here](#baskets).&#x20;

### Baskets

Baskets are diversified and dynamically rebalancing vaults that provide exposure to one or more strategies. They provide users the benefits of a diversified portfolio by interacting with numerous assets or protocols with the ease that comes with holding a single asset. In particular, assets can contain one or more underlying strategies. A strategy is simply a given asset allocation. For instance, a strategy might be holding Bitcoin, Ethereum, lending USDC out on Compound, etc. When combined in some proportion, these would be considered a basket. This is analogous to a pre-constructed portfolio.&#x20;

#### Yield Bearing Baskets

Yield-bearing baskets are those that have strategies that provide yield to users. The most common examples are baskets containing strategies like lending USDC on Compound or Aave. Alp Save is our Testnet version of a yield-bearing basket.&#x20;

#### Token Baskets

Token baskets contain strategies that provide direct price exposure to a given asset such as Bitcoin or Ethereum. Alp Large is our Testnet version of a token basket. Mechanically, the vault purchases wBTC and wETH on Polygon so that your holdings in the Polygon vault are backed by holdings of wrapped assets.&#x20;

## Protocol Mechanism

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FB8xi6Qo62KbiewXlMw73%2FAlpine%20Diagram%20-%20Page%201%20(1).png?alt=media&amp;token=2b4c649d-89d0-430f-907c-7f660f2136fb" alt=""><figcaption></figcaption></figure>

When a user buys tokens in an underlying basket vault, the following occurs. This process varies slightly based on the type of basket so the illustration explains the most complex scenario where cross-chain activity occurs.&#x20;

1. On Polygon, users buy basket tokens with USDC.&#x20;
2. These tokens are a claim to the vault's underlying assets. When new tokens are minted and the USDC is transferred to the contract, the smart contract dynamically allocates these assets into the necessary protocols.&#x20;
3. For example, part of the USDC will be lent out on Aave on Polygon while the remainder will be bridged to L1 where they are then lent out on Compound. A user's tokens grow in value proportional to their vault TVL and total amount minted.&#x20;
4. When a user sells these tokens the process occurs in reverse.&#x20;


# Understanding Risk

None of the following are meant to be investment advice. The risk measures here are meant to provide illustrative and directional estimates of possible risk. Ultimately, you are responsible for conduc

### **Risk Levels**

**Safer:** Generally, the maximum drawdown seen for the underlying strategies is less than 10%.&#x20;

**Steady:** Maximum drawdown can be expected to be up to 10%. Smart contract mechanisms will cap the losses at no more than 10%

**Riskier:** A maximum drawdown of over 10% is not uncommon.

**General Risks:** All cryptoassets come with some form of risk, namely smart contract risk. In addition, other general forms of risk may impact some or all baskets created on the Alpine protocol including de-pegging risk and [impermanent loss](https://cointelegraph.com/explained/what-is-impermanent-loss-and-how-to-avoid-it). De-pegging typically refers to when a crypto asset that aims to maintain a fixed ratio to a given asset -- say 1:1 with the US Dollar -- loses that peg. Tokens that aim to maintain these pegs are often called [stablecoins](https://www.investopedia.com/terms/s/stablecoin.asp) and there have been instances where these [de-pegging events](https://jumpcrypto.com/the-depegging-of-ust/) have resulted in extremely large loses.&#x20;


# Diversify like a Pro

Diversification is a key concept in investing. Allocating investments across multiple assets is called diversification and helps minimize idiosyncratic risk. For example, a portfolio consisting of one asset is more likely to face a volatile return over time than a diversified portfolio. You can imagine purchasing a single stock that may move up and down based on the company’s specific performance. However, if you buy another stock in your portfolio (or 500) you will see less volatility related to any specific asset (company in this case) and instead observe a performance that is more reflective of the market overall.

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FZhJS5fY6KMcBtQYP0Yl6%2Fnot%20sure%20eita%20ki%20(1).png?alt=media&amp;token=08500f2a-d68d-4ae7-a7f4-751dc50af1f5" alt=""><figcaption><p>Diversification helps stable returns</p></figcaption></figure>

Unlike the traditional financial markets, diversifying ones crypto investments in the current ecosystem is too complex for most. Managing multiple wallets, different chains, bridging assets, yield strategies, etc., require a steep learning curve and is simply a non-starter for most users.&#x20;

Affine aims to remove these barriers through its innovation - Affine Baskets. They enable users to invest and get price exposure to multiple crypto tokens (ETH, BTC, etc.) and cash-yield strategies (AAVE, Compound, Market Making, etc.). With this, users can diversify their portfolio without doing the legwork of managing that complexity, all while paying lower gas fees. Affine enables them to focus on building a sustainable investment strategy instead of managing a highly complex strategy.

However, the scope of crypto investment diversification today is currently more narrow than in traditional finance. While DeFi is blossoming to include financial primitives that match and in some cases expand beyond our current financial system’s capabilities, the crypto market overall is still much smaller and more immature. In short, this means that crypto-specific portfolio’s are still exposed to the overall crypto industry’s market volatility.


# Save up to 1000x on Gas Fees

<figure><img src="https://lh4.googleusercontent.com/7eaw0-1AzuNe39VmOjcIlis2V8bNSnnQzqtUlo9Ba4Dh9Gj31YPjbyJ3VohZs5vREzH3XTswRt4rExZPfHulrE7Sv3uoTgkS3pwNwCFEx6Yy9Xu84qwiG77Is3mLqjdGdoAJXilS3namNVf_hDbql_kqiGudqxGZaVarr055DVZgCpL_OmIQidtaOw" alt=""><figcaption><p>Even Thanos would hate it</p></figcaption></figure>

Transactions on the Ethereum blockchain are expensive. If you have been a part of the ecosystem for the last few years, you have undoubtedly seen the exorbitant fees that Ethereum charges you, even for the simplest transactions.

When faced with the blockchain trilemma, layer 1 solutions (Ethereum in our case) prioritized Decentralization and Security over Scalability, making it expensive for retail users to use layer 1 for day-to-day transactions. This meant an inherent gatekeeping mechanism for the smaller investors. And as users, we look forward to Ethereum 2.0 (Sharding) for increased scalability as the most recent shift to Proof of Stake (merge) failed to reduce the gas fees.

<figure><img src="https://lh4.googleusercontent.com/mBFnw8r2BEtf636TvGe1eEK3QhPbhl6V_w9WQPrtFMG5YZY2plBLMufh9BiKmp7dtvuzbah0WHbPbC87Ba4VoCPmoLBfPnHVsFni9MGip-ylPrG_fIG7wN1AqzBAXeTNNVRggO4NFhoig7Kc0DRFa2Jgqvek1JwwVS2RQaDCBJw1Uz_R6bab5DNqOw" alt=""><figcaption><p><strong>The Merge did not reduce ETH gas fees</strong></p></figcaption></figure>

Affine aims to solve it through the Affine Baskets which allow users to gain exposure to both token prices and more complex yield-generating strategies. The smart contracts utilize wrapped tokens on the sidechain to provide users direct price exposure to a given asset (Ethereum and BTC, for example). For yield strategies, it socializes the fees of protocols (AAVE, Curve, etc.) to provide the users best returns at the lowest costs. Affine utilizes the Polygon chain, a layer2 blockchain, to make the whole process as cost-effective as possible, effectively lowering the gas fees for the end users.

And all this technical jargon can be summed up as one significant advantage for the users: That is near-zero transaction fees. With Affine, you can save up to 100% on gas fees. This opens opportunities for investors who want to invest smaller amounts into multiple assets.


# Beat Inflation

Inflation continues to be a growing concern globally. In the United States in particular, inflation hit [8.2% in September 2022](https://www.nbcnews.com/business/economy/inflation-rate-september-2022-cost-of-food-gas-rent-consumer-prices-rcna51958). Other countries are also not immune from inflation and, moreover, are experiencing a relative decline compared to the U.S. Dollar, making any inflation they are experiencing even more pernicious. This devaluation results in significant losses for those holding assets denominated in the devalued currency.

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FdRopmXIZbjUSJP5Ne7XR%2Fimage.png?alt=media&amp;token=98889a2a-051b-4758-b876-2f359c5310e2" alt=""><figcaption></figcaption></figure>

Cryptocurrency may be a solution that can offer individuals a way to beat inflation or broader currency debasement. Simply holding onto US Dollar denominated stablecoins, like USDC can provide protection to local currencies against US Dollars. In addition, the crypto industry provides some options to minimize the effects of inflation.

For instance, Ethereum and Bitcoin are popular options that many take as a way to try to hedge their risk. Another option, Investing in DeFi protocols to get cash yields on stablecoins, can be difficult. While much cheaper now due to the lack of congestion and lower gas fees on Ethereum, depositing money in multiple DeFi protocols still may cost between $10-$50. This makes it impossible for users to gain real yield from smaller investments.

That's where Affine comes in - it makes it easy for individuals to earn and grow their crypto through diversified basket tokens and low gas fees. The goal is to provide an accessible way for users to protect their assets against inflation. Plus, it's simple to convert fiat currency into crypto with available fiat on-ramp option on Affine – Coinbase pay. Investing in cryptocurrency may not guarantee complete immunity from inflation and contains risks, like any investment, but it can certainly help mitigate its effects.

*The above is not intended to serve as investment advice. Please see our* [*Terms of Service*](https://affinedefi.com/legal/terms) *for more information about the risks contained with cryptocurrency and Affine.*


# Strategies

Strategies are the most atomic unit of investment activity on the Affine protocol. Strategies can be broken into three general categories:&#x20;

### Token Strategies

Token strategies are the most obvious and straightforward stategies. These stategies simply let users buy and hold crypto-assets directly or through [wrapped versions](https://cointelegraph.com/altcoins-for-beginners/a-beginners-guide-to-understanding-wrapped-tokens-and-wrapped-bitcoin#:~:text=Wrapped%20crypto%20tokens%20are%20cryptocurrencies,to%20transact%20on%20other%20platforms.) of these assets. For instance, users could buy Bitcoin, Ethereum, MATIC -- or their wrapped versions -- and more. Taken together, baskets that contain token strategies allow users to hold (long position) and gain price exposure to the underlying assets. There can also be short positions as well.

### Lending Strategies

Lending strategies are slightly more complex and allow users to participate in some of the true innovations in the DeFi ecosystem. These stategies allow users to provide funds like USDC to protocols such as Aave and Compound which are then lent out via said protocols. You can learn more about DeFi lending protocols [here](https://defiprime.com/decentralized-lending).&#x20;

### **Liquidity Providing Strategies**

While related to lending strategies, liquidity pool strategies are slightly distinct in that you are providing liquidity to support a market. Typically, you do this by providing 2-sided liquidity so that market participants can exchange two tokens. Take, for instance a pool of MATIC and USDC: In this example, you would provide both MATIC and USDC into the pool. By providing this capital in the form of those two assets, you earn a portion of the fees that are earned when swapping those two assets. You can learn more about how liquidity pools work in detail [here](https://www.coindesk.com/learn/what-are-liquidity-pools/) and [here](https://appinventiv.com/blog/how-defi-lending-works/).


# Sushiswap - Single-Sided Liquidity

## Overview&#x20;

The Sushishwap - Single-Sided Liquidity Proving strategy involves using a single asset, in this case, USDC, and using a variety of protocols to provide liquidity on a Sushiswap's decentralized Liquidity pool to earn yield. There are several steps:&#x20;

1. USDC is provided as collateral on Aave and borrows out a corresponding asset like wrapped Ethereum (WETH)
2. Then the USDC and the borrowed WETH are deposited within a predefined range on Sushiswap to provide liquidity.&#x20;
3. Due to the risks of impermanent loss based on the inherent price movement of WETH, bots automatically readjust positions over time (or exit altogether in times of high market volatility) to minimize losses. &#x20;
4. At the end of the period, the position is closed out on Sushiswap and then on Aave.&#x20;
5. We also sell our reward SUSHI tokens for USDC.
6. This process is called an iteration strategy. And at the end of each, we are left with USDC and ready for another iteration. This repeats over time to earn cumulative rewards.&#x20;

## Summary&#x20;

* **Network**: Ethereum, Polygon
* **Protocol(s)**: Sushiswap, Aave
* **Strategy Type**: Liquidity Providing

## Resources&#x20;

* [Sushiswap USDC-WETH Pool](https://app.sushi.com/analytics/pools/0x397ff1542f962076d0bfe58ea045ffa2d347aca0?chainId=1)


# Aave - Lending

## Overview

The Aave - Lending Strategy takes USDC and lends it out via Aave on Polygon. This strategy earns a variable yield and is based on Aave market conditions. The APY has recently ranged between 0-3% but may vary. See [more on Aave](https://app.aave.com/reserve-overview/?underlyingAsset=0x2791bca1f2de4661ed88a30c99a7a9449aa84174\&marketName=proto_polygon_v3).&#x20;

## Summary

* **Network**: Polygon
* **Protocol(s)**: Aave
* **Strategy Type**: Lending

## Resources

* [Aave USD Coin (PoS) Dashboard](https://app.aave.com/reserve-overview/?underlyingAsset=0x2791bca1f2de4661ed88a30c99a7a9449aa84174\&marketName=proto_polygon_v3)
* [DeFi Llama Dashboard](https://defillama.com/yields/pool/37b04faa-95bb-4ccb-9c4e-c70fa167342b)


# Compound - Lending

## Overview

The Comound - Lending strategy takes USDC and lends it out Compound on the Ethereum Network. This strategy earns a variable yield and is based on Compound market conditions. The APY has recently ranged between 0-3% but may vary. See [more on Compound](https://compound.finance/markets/USDC).&#x20;

## Summary

* **Network**: Ethereum
* **Protocol(s)**: Compound
* **Strategy Type**: Lending

## Resources

* [Compound USDC Dashboard](https://defillama.com/yields/pool/cefa9bb8-c230-459a-a855-3b94e96acd8c)
* [DeFi Llama Dashboard](https://defillama.com/yields/pool/cefa9bb8-c230-459a-a855-3b94e96acd8c)


# Curve - Single-Sided Liquidity Providing (SSLP)

## Overview

The Curve - Single-Sided Liquidity Proving strategy involves using a single asset, in this case USDC, and using a variety of protocols to provide liquidity on a decentralized exchange in order to earn yeild. There are two key:&#x20;

1. USDC is provided as collateral on Aave and borrows out a corresponding asset like MIM, FRAX, etc.&#x20;
2. The remaining portion of USDC and the other Asset are then provided as liquidity on Curve where they generate yield from transaction fees and token rewards.&#x20;

## Summary

* **Network**: Ethereum, Polygon
* **Protocol(s)**: Curve, Aave
* **Strategy Type**: Liquidity Providing

## Resources

* Curve Dashboards:&#x20;
  * [Ethereum](https://curve.fi/#/ethereum/pools)
  * [Polygon](https://curve.fi/#/polygon/pools)


# Uniswap v3 - Single-Sided Liquidity

## Overview

The Uniswap v3 - Single-Sided Liquidity Proving strategy involves using a single asset, in this case USDC, and using a variety of protocols to provide liquidity on a decentralized exchange in order to earn yeild. There are a number of steps:&#x20;

1. USDC is provided as collateral on Aave and borrows out a corresponding asset like Ethereum&#x20;
2. The USDC and Ethereum is then deposited within a predefined range on Uniswap V3 to provide liquidity.&#x20;
3. Due to the risks of impermament loss based on the inherent price movement of Ethereum, bots automatically readjust positions over time (or exit altogether in times of high market volatility) to minimize losses. &#x20;
4. At the end of the period, the position is closed out on Uniswap and then on Aave.&#x20;
5. This process repeats over time to earn cumulative rewards.&#x20;

## Summary

* **Network**: Ethereum, Polygon
* **Protocol(s)**: Uniswap v3, Aave
* **Strategy Type**: Liquidity Providing

## Resources

* [Uniswap v3 USDC-ETH Pool](https://info.uniswap.org/#/pools/0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640)


# Getting Started

You can access the Affine Mainnet Beta app today by navigating to [app.affinedefi.com](https://app.affinedefi.com)

## Connect to Affine

With Affine, you can currently connect to the App using Metamask or via Magic. Metamask is the most common approach in the DeFi space but [Magic](https://magic.link/auth) provides a passwordless authentication experience for the Web3 space. You can read more about the specific approach for connecting to the app in the following pages:&#x20;

{% content-ref url="/pages/rpAatsFsH5a58MQyQXOj" %}
[Connect via MetaMask](/getting-started/connect-via-metamask)
{% endcontent-ref %}

{% content-ref url="/pages/rCfCaL0UdHFIHGgXsru4" %}
[Connect via Magic](/getting-started/connect-via-magic)
{% endcontent-ref %}

## Using the App

With the Affine App, you can buy and sell Affine baskets and view your performance over time. You can read more about how to navigate and use the Mainnet Beta App below:&#x20;

{% content-ref url="/pages/etZwMb6V9q1ntT2BtBor" %}
[Using the App](/getting-started/using-the-app)
{% endcontent-ref %}


# Connect via MetaMask

Instructions for how to get started on the Affine Mainnet Beta App

*In this article, we will focus on how to connect your MetaMask wallet to Affine Mainnet Beta App and enable the Polygon. After successfully completing these steps, you will be able to interact with the Affine Mainnet Beta App, buy tokens (USDC and MATIC using coinbase pay) and buy or sell baskets (USDC Earn and Affine Large)*

You can skip to [Getting Started: Using the App](/getting-started/using-the-app) if you have already connected to the Affine Mainnet Beta Ap&#x70;*.*&#x20;

### Requirements&#x20;

You need a browser with the MetaMask wallet extension installed to access the Affine Mainnet Beta App. You can install MetaMask on any of the supported browsers from the [MetaMask Download page](https://metamask.io/download/).&#x20;

### How to connect your wallet to the Affine Mainnet Beta App

**Step 1:** Navigate to [https://app.affinedefi.com/connect](https://app.affinedefi.com). You will see the following page:

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FUcIPJ1CpnVI4214RdA4S%2Fimage.png?alt=media&amp;token=9ec15735-17ca-4adb-9ab7-218f64462f23" alt=""><figcaption><p>Connect to Wallet Page</p></figcaption></figure>

**Step 2.** Click on **“Connect to MetaMask”,** and a new popup window should appear. Approve all the necessary signatures to connect the wallet to the app.&#x20;

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FUpb4ZELOPltfPPNvNc94%2Fimage.png?alt=media&amp;token=6d541e6c-4740-4b97-aadb-4d3147933023" alt=""><figcaption><p>Metamask will require multiple signatures through pop-ups to connect to the app</p></figcaption></figure>

**Step 4:** After signing, you will be taken to the home page of the **Affine Mainnet Beta App.** If you are not currently on *Polygon network*, you will see a warning indicating that you are on the wrong network. Please click **"Switch to Polygon"** to initiate a network change on MetaMask. You will need to approve this change in MetaMask to proceed.&#x20;

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2F2E1t3eKc87Xfp3bKvAZl%2FScreen%20Shot%202022-09-26%20at%2011.14.29%20AM.png?alt=media&amp;token=2f16f243-ee9a-4591-9e54-7e73d929568f" alt=""><figcaption><p>Add Polygon to use the Mainnet App</p></figcaption></figure>

**Congratulations!** you have successfully logged into the *Affine Mainnet App*! You are now ready to experience the smoothest DeFi experience available in the market! Try investing in our diversified asset baskets with just a few clicks!


# Connect via Magic

Instructions for how to get started on the Affine Mainnet Beta App

*In this article, we will focus on how to connect to Affine **Mainnet Beta App** using Magic Link & Magic Wallet. After successfully completing these steps, you will be able to interact with **Affine Mainnet Beta App,** buy tokens (USDC and MATIC using Coinbase pay), and buy or sell baskets (USDC Earn and Affine Large).*&#x20;

You can skip to [Getting Started: Using the App](/getting-started/using-the-app) if you have already connected to the Affine Mainnet Beta Ap&#x70;*.*&#x20;

### What are Magic Links?

Magic Links are a form of password-less login. Instead of entering your credentials (username & password), you are sent a unique token embedded URL to your email address. And you can click on that link to securely log in to your account. You can learn more here: &#x20;

### What are Magic Wallets?&#x20;

Magic provides web3 wallet management (auth & key management) through its Magic Links. Unlike MetaMask and other wallet services, you don't have to protect and manage your private keys with Magic Wallet actively. Magic automatically maintains it in the backend. And you can have the whole wallet experience (send and receive crypto, connect and interact with web3 dApps, etc.) without actively managing the wallet.

### Requirements

You need an active email address to use Magic links to connect with **Affine Mainnet Beta App**.

### How to connect using email (Magic Link)&#x20;

**Step 1:** Navigate to [https://app.affinedefi.com/connect](https://app.affinedefi.com). You will see the following page:

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FNQYdbjlt13UJ1acFOiS1%2Fimage.png?alt=media&amp;token=7c48c5f2-b0e5-4ade-bd1d-cb4561b56a1e" alt=""><figcaption></figcaption></figure>

**Step 2:** Click on **"Connect with Email,"** and a new window should appear. Type in your email address in the box and press "**Connect with Magic Link."**

**Step 3:** After this, you will be taken back to a new page. **Do not close the window**. Log in to your email on a different window.&#x20;

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2F7rTWdLfYHaDMmstQNnS3%2FScreen%20Shot%202022-09-26%20at%2011.41.03%20AM.png?alt=media&amp;token=d46d31e2-3453-47c1-a9bf-f28bdc693685" alt=""><figcaption><p>Enter your email to log in using Magic</p></figcaption></figure>

**Step 4:** Open the email and click on **"Log in to Affine."**

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2F9l3t9QXQ36KksXLjZiUL%2FScreen%20Shot%202022-09-26%20at%2011.48.02%20AM.png?alt=media&amp;token=69ded978-210f-4f7e-941a-9ec54a8dad82" alt=""><figcaption><p><strong>Click on "log in to Affine" to log in to Affine App</strong></p></figcaption></figure>

**Step 5:** Go back to the previous window, and you will be logged into your account on **Affine Testnet App.**&#x20;

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FztyOxhYraofHZNs5sThJ%2Fimage.png?alt=media&amp;token=cad61c70-4720-44fa-bc4e-75c4594389f8" alt=""><figcaption><p><strong>Affine App homepage</strong></p></figcaption></figure>

**Congratulations!** You have successfully logged into the **Affine Testnet App**! You are now ready to experience the smoothest DeFi experience available in the market! Try investing in our diversified asset baskets with just a few clicks!


# Connect via WalletConnect

Instructions for how to get started on the Affine Mainnet App

*In this article, we will focus on how to connect your wallet to Affine Mainnet App via WalletConnet. After successfully completing these steps, you will be able to interact with the Affine Mainnet App, buy tokens (USDC and MATIC using coinbase pay), and buy or sell baskets (USDC Earn and Affine Large).*

You can skip to [Getting Started: Using the App](/getting-started/using-the-app) if you have already connected to the Affine Mainnet Beta Ap&#x70;*.*&#x20;

### Requirements&#x20;

You will need a browser, and a WalletConnect supported installed in your phone to access the Affine Mainnet App. You can see the list of supported wallets [here](https://walletconnect.com/).

### How to connect your wallet to the Affine Mainnet App

**Step 1:** Navigate to [https://app.affinedefi.com/connect](https://app.affinedefi.com). You will see the following page:

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FilDkEqm0OFfoM7AK4waR%2Fimage.png?alt=media&amp;token=e7fd967f-a301-4218-b636-8915503257d2" alt=""><figcaption></figcaption></figure>

**Step 2:** Click on WalletConnect, and you will find the following page:

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FFohczO7qcK9xQPA6xnCC%2Fimage.png?alt=media&amp;token=5b285657-d6c0-4e97-9b88-ff87b13194d0" alt=""><figcaption></figcaption></figure>

**Step 3:** Scan the QR code with any WalletConnect-compatible wallet app on your phone to connect to Affine DApp. and you will be logged into Affine DApp.&#x20;

**Congratulations!** you have successfully logged into the *Affine Mainnet App*! You can learn more about WalletConnect-compatible wallets here.&#x20;


# Using the App

*In this article, we will explore how to use the* [***Affine Mainnet Beta App***](https://app.affinedefi.com)*. It will include a short description of the homepage, how to buy tokens (MATIC and USDC using coinbase pay), and how to buy/sell asset baskets.*

### Description of Homepage

After logging in, you will be taken to the homepage. This home page will act as a dashboard for the user's investment in Affine!

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FJ9Px4td4F1OfgCCIuzc7%2FWallet%20Address%20(1).png?alt=media&amp;token=2dd08d0a-a663-400d-9292-0f3ba4909678" alt=""><figcaption><p>Affine Testnet App homepage</p></figcaption></figure>

### How to get USDC and MATIC to Your Wallet \[Mainnet Beta]

Follow the instruction in the following page -&#x20;

### [Adding assets to your wallet](/adding-assets-to-your-wallet)&#x20;

### How to Buy/Sell Baskets

There are two types of asset baskets currently available on Affine Testnet. They are -

1. ***USD Earn —*** consisting of Cash yields from Convex, Uniswap, AAVE, and Compound
2. ***Affine Large —*** consisting of Bitcoin (50%) and Ethereum (50%)

\
Follow the instructions to buy any of the baskets -&#x20;

1\. On your homepage, click on the **“Buy”** button.

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2F8CDKuchq3jVEke27eF1n%2Fimage.png?alt=media&amp;token=051dabaf-3259-4992-811f-a101c2b8596a" alt=""><figcaption></figcaption></figure>

2\. Select your preferred basket (USD Earn/Affine Large) and add the USDC amount you want to invest in that basket. Press **"Buy"** to initiate the purchase.

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2F9ArhVrpxU6Z63hCxnGbp%2Fimage.png?alt=media&amp;token=8d721e7a-44a3-469f-a470-ee9dd0fbc3b1" alt=""><figcaption></figcaption></figure>

3\. You will get a pop-up from MetaMask; click on **"Confirm"** to approve the transaction.

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FfZXomSf135RO1IdaMDCb%2Fimage.png?alt=media&amp;token=69b21350-d2cc-41b8-acb5-b39311a9c743" alt=""><figcaption></figcaption></figure>

4\. Press the **"Confirm Buy"** button to confirm! You might get another approval pop-up from Metamask. Sign that to proceed. It will take a few seconds to complete the transaction.

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2F9XxsBk2H9J3rEzndeWcW%2Fimage.png?alt=media&amp;token=114e3750-7a3b-4ead-a1a6-b56982809809" alt=""><figcaption></figcaption></figure>

5\. **Congratulations!** You should get a confirmation page stating the name of the basket and the amount.&#x20;

<figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2Fb1a8kiWjjUdhfd3gyFsx%2Fimage.png?alt=media&amp;token=f94fa77d-3ce9-48bf-aa39-5ede6db04a91" alt=""><figcaption></figcaption></figure>

You can also sell your baskets by clicking on the **"Sell"** button, followed by similar steps.


# Adding assets to your wallet

In order to interact with Affine Protocol, you need to have both MATIC and USDC on the Polygon POS network. The following articles explain three ways to add funds to your wallet:&#x20;

* [Coinbase Pay](/adding-assets-to-your-wallet/coinbase-pay)
* [Deposit with Credit or Debit Card](/adding-assets-to-your-wallet/deposit-with-credit-or-debit-cards)
* [Transfer from another wallet](/adding-assets-to-your-wallet/transfer-assets-from-another-network)


# Coinbase Pay

Affine can be accessed only using non-custodial wallets, that is, wallets that you own and control. If you have a Coinbase Account, you can log in using Coinbase Pay and deposit funds to your connected wallet. The steps are as follows:&#x20;

1. Navigate to the **Deposit** page on the Affine dApp
   1. ![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FjziFNZRdpkWkTvrrclgY%2Fimage.png?alt=media\&token=382d4f37-664a-45ed-9991-04f7df3e32d9)
2. Select **Coinbase Pay.** You will need to log in for your first time.&#x20;
3. Once you have logged in, you can select if you want to deposit USDC or MATIC, both on the Polygon Network. The dApp integration specifically makes sure these funds are on Polygon, and not another chain like Ethereum.&#x20;
   1. ![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FvHd1p6Fdt98miEbGl0yE%2Fimage.png?alt=media\&token=d4cdebe3-0e19-461d-ad5f-0318da0970a6)
4. You then need to select the amount you wish to purchase.&#x20;
   1. If you have assets in your Coinbase account you can transfer then, but if not, you will need to purchase the assets using whatever payment methods you have configured in Coinbase.
      1. ![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FnMj5XoXTtmMJICzFRpu7%2Fimage.png?alt=media\&token=68a51498-f5df-4834-9763-241f10e558e5)
5. When you preview the send, be sure to review that the asset type, network, and address are correct, and proceed.&#x20;
   1. ![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FKbejmb5b1tu7FMyPvuMz%2Fimage.png?alt=media\&token=fcc373f6-1b34-4bd1-ba3a-af0bc14da171)

You can read more about [Coinbase Pay](https://help.coinbase.com/en/coinbase/trading-and-funding/coinbase-pay/using-coinbase-pay) here.&#x20;


# Deposit with Credit or Debit Cards

The easiest way to deposit funds is by using [Moonpay](https://www.moonpay.com/home). Moonpay makes it easy to create an account which will require you to verify your identity. Once doing so, you can navigate through as instructed below in order to add funds to your wallet.&#x20;

**Buying Cryptoassets with Moonpay**

1. Go to Moonpay.com/buy to start the transaction. You will first need to login or create your account. Once you have you will see a screen like below:&#x20;
2. Next, select the amount of **USDC (Polygon)** and/or **MATIC (Polygon)** that you wish to deposit.&#x20;
   1. <img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FHbKAnLl4H7Q3bZCNPV7a%2Fimage.png?alt=media&amp;token=93e6434f-2f5f-43e7-8166-2a29391457d1" alt="" data-size="original">
3. Once you do so, you need to add the correct wallet address. If you are connected to Affine with the desired wallet, you can get find your wallet address on the **Account** page or the **Deposit** page.&#x20;
   1. &#x20;![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2Fb8zmvoe3hjFpi8j7DQSa%2Fimage.png?alt=media\&token=8fe89f02-bcf0-4276-83d0-999e8720a589)
4. Confirm the transaction and wait to receive funds in your wallet.&#x20;
   1. ![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2F1mSszd4eGrjB3AfxbpF3%2Fimage.png?alt=media\&token=105e47c0-bfa0-43a0-9a6d-5bf730b35fa3)


# Transfer assets from another network

## Transferring from another Polygon Wallet

Transferring assets to the wallet you connected to Affine is from another Polygon address is easy. You can simply do so by finding the Affine-connected wallet in your account or deposit page. From there, be sure to send your assets using that address.&#x20;

Alternatively, if you have another wallet that currently holds you assets, you can connect that wallet to Affine instead.&#x20;

## Transferring from another Network

Transferring assets from another network (eg. Ethereum) is more complex, requiring you to bridge your assets. [DeFi Pulse](https://www.defipulse.com/blog/bridge-your-assets-to-polygon-a-guide) provides a very helpful document explaining how to do so depending on which network your wallet is on.&#x20;


# Withdrawal Window

Certain baskets have withdrawals that are grouped into **withdrawal windows,** which are periods of up to a certain length (such as every 48 hours). By grouping withdrawals into windows, the protocol ensures that users get a prorated distribution of their deposits after a strategy has run properly.&#x20;

Withdrawal windows exist for a few reasons. First, some of the underlying strategies that can be executed on the protocol require fixed durations of time to run properly. If, for instance, these strategies were made for instant liquidity (eg. withdrawal at any time), the protocol would necessarily need to liquidate many user funds and thereby impair the performance of users who remain in the pool.&#x20;

By capturing these requests during a withdrawal window, the protocol can ensure that users who chose to remain in the strategy are not negatively impacted (eg. closing some positions prematurely can result in a loss) while ensuring a user who does wish to exit the position can do so in a predictable manner.&#x20;

**Timing**: The design of the withdrawal windows means that user funds are inaccessible until, at most, the duration of the window has run out. Based on broader strategy designs, there are numerous safety conditions (eg. high volatility) that may close a position sooner meaning that user funds will be returned faster than the window.&#x20;

### Buying Baskets  with Withdrawal Windows

Baskets with withdrawal windows can be purchased just like normal. You will simply notice a lock icon on the buy page and a notice which will be your indication that this is a different type of basket.&#x20;

![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FIKnvtLPyET9XeDESANkM%2Fimage.png?alt=media\&token=07f9e050-546a-4967-b15f-5d9a6f2cdc93)

### Executing a Withdrawal

Withdrawals occur in 3 key steps.&#x20;

1. **Initiate a Withdrawal**: A user can initiate a withdrawal for a basket that contains a withdrawal window like they would sell any other basket. At the time of a sale in the dApp -- users are notified prior to buying of this behavior as well -- the user will be shown the details of the current withdrawal window. Upon initiating the request, the user is issued an NFT that provides a claim to their underlying assets.&#x20;
   1. ![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FrwYwooYNTRpMPbcLxEcW%2Fimage.png?alt=media\&token=b5b6cc06-ba9a-4865-8fc1-344fd21db484)
2. **Window**: Users must wait at most the length of the withdrawal window for their request to be processed. This may happen faster based on various factors but never longer. Once the window closes, the user's request will settle at the latest market price. ![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FJGX7EhVqlcGCTrrrbGkj%2Fimage.png?alt=media\&token=3d38383a-ba46-4495-8828-ea903c91299c)
3. **Claim Assets:** User claims their assets, essentially exchanging their NFT for the value of the underlying assets. Users will see a notification on the top of the given basket page that they will need to interact with, and ultimately approve. Once the window has closed, a user will click claim and be able to

![](https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FZzi8JODw6mIp0xsF51o1%2Fimage.png?alt=media\&token=c106beb7-77ad-49d2-bc25-f8449b094418)


# Quantitative Research

The Core Team is publishing additional research on various baskets. Each document provides an analysis of the strategy, including the sources of yield, APY, fee analysis, backtesting overview, and associated risks.&#x20;

This research is designed to provide more information to users with valuable insights to make informed decisions and understand the potential risks involved with a given vault. Explore the documents to gain a deeper understanding of each strategy's performance&#x20;

<table><thead><tr><th width="245">Basket Name</th><th width="117.33333333333331">Network(s)</th><th>Link</th></tr></thead><tbody><tr><td><p>Leveraged ETH </p><p>(LIDO-Curve-Compound) </p></td><td>Ethereum</td><td><a href="https://alpine-camp.notion.site/Leveraged-ETH-LIDO-Curve-Compound-30bdfed2adba441d8bf6e69dd33c4613?pvs=4">https://alpine-camp.notion.site/Leveraged-ETH-LIDO-Curve-Compound-30bdfed2adba441d8bf6e69dd33c4613?pvs=4</a></td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>


# Security

#### **On October 7, 2022,  Halborn Security completed a smart contract security audit of Affine Protocol. The Security Assessment Report can be viewed below:**

{% file src="/files/xZWNmQLeejlDH1uzURBj" %}
Halborn Security Audit
{% endfile %}

#### Read the Medium blog post regarding this Audit:&#x20;

{% embed url="<https://medium.com/@affinedefi/halborn-security-completes-security-audit-of-affine-f68afcfd19c4>" %}


# Affine Pass and Accolades

As a first step towards decentralization, Affine Pass NFTs were introduced to the community. If you are here at a later point in time, this guide aims to bridge the gap in your knowledge.

## Affine Pass NFTs

### **What Are Affine Pass NFTs?**

Affine Pass was announced[ to the community](https://discord.com/channels/900189436904636426/1080030939167604836/1138836129735507989) on 9th August, 2023. These unique NFTs provide users with a ticket to an array of exclusive utilities and benefits.&#x20;

Affine Pass smart-contract link: <https://polygonscan.com/address/0x962e765a68c12e5c890589ba66bfd848d0ee52c5>

#### **Utility and Benefits**

These NFTs are designed to unlock a range of benefits within the Affine Protocol. From discounted protocol fees to priority access to exclusive baskets and a unique multiplier factor in the points program, Affine Pass NFTs empower you to maximize your DeFi experience.

#### **Affine Pass NFT Minting and Supply**

Affine Pass was a free to mint NFT and its whitelisting was provided to *a number of communities* and partners over a marketing campaign throughout the Month of August and September 2023. The passes [were minted](https://discord.com/channels/900189436904636426/1080030939167604836/1158957751402233896) on 4th October, 2023.

**Supply:** 3000

**Minted:** 2015

**Community Reserve\*:** 988

*(As of 25th October, 2023)*

*\*Community Reserve will be used later to attract more users and whales to the community. Some of the community reserve Affine Passes have been minted already.*&#x20;

##

## Accolades NFTs

Accolades NFTs are closely tied to the Affine Point System, designed to recognize and reward our community members loyalty to the protocol. This program ran throughout the September, 2023 to find out the top 100 users of the protocol and they were airdropped with the Soul-bound Accolades NFTs.

### **Tiers of Accolades NFTs**

Accolades Soul-bounds were airdropped to the top 100 users of the protocol by TVL. Three types of Accolades were issued -

**51st to 100th Position:** Green Affine Accolades Soul-bound

**21st to 50th Position:** Black Affine Accolades Soul-bound

**1st to 20th Position:** Diamond Affine Accolades Soul-bound

### **Utility and Benefits of Accolades NFTs**

All the Accolades holders had multiple Affine Pass NFTs aidropped to their wallet. And the accolades holders are also eligible for special roles and access to gated channels in the [Affine Discord](https://discord.com/invite/RvSFFfUdvX).


# Affine Points Airdrop Program

This program rewards and recognizes the community members' participation and loyalty within the Affine ecosystem. This guide will explain the Point System and Point Multiplier mechanisms.

### The Affine Points Airdrop Program

The Affine Points Airdrop Program was reintroduced (previously Accolades Points) [to the community](https://discord.com/channels/900189436904636426/1080030939167604836/1159585176351944794) on 6th October, 2023. It aims to incentivize and recognize users who contribute to the growth and success of the platform by putting assets into the Protocol.

**Earning Points & Leaderboard**

Users can earn points within the system by holding any available baskets in the Affine Protocol. For every $1 equivalent in the Protocol, users receive 1 point. These points accumulate over time and serve as a measure of a user's activity and commitment to the Protocol. There is also a live leaderboard that updates every day at \~01:00 UTC.

<div><img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/6f2a3693-f981-44e6-a56d-75bf6f34d529/15a50a8f-6ba0-40f9-b051-0421fa09b703/Untitled.png" alt="Untitled"> <figure><img src="https://4157962721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0H7xsNPkDmE5subwF7Pf%2Fuploads%2FrHvTfLEoLwKAomFEHc9W%2FUntitled%20(22).png?alt=media&amp;token=45c9ac24-e498-457e-84d6-8eafa31c5756" alt=""><figcaption><p>Affine Points Airdrop Program Leaderboard</p></figcaption></figure></div>

**Benefits of Accruing Points**

Accruing points within the Affine Point System comes with its benefits. Points can grant you access to exclusive benefits, rewards, and opportunities within the Affine ecosystem. The more points you earn, the greater your standing within the community. It is important to note that the points are non-transferrable.

### The Point Multiplier

**Introduction to the Point Multiplier**

The Point Multiplier is a feature that enhances the Affine Point System for holders of the Affine Pass NFT. This feature aims to reward and recognize the commitment of Affine Pass holders so that the Pass can function as more than a simple utility.

**How the Multiplier Works**

The multiplier is calculated based on the number of Affine Pass NFTs a user holds. The more Affine Passes you hold, the higher your multiplier. The formula for the multiplier will be -

$$
1 + log\_{100}(1+ N)
$$

*N =* Number of Affine Pass NFTs held in the wallet

**Limited-Time Boost**&#x20;

To celebrate the launch of the Point Multiplier, users can earn a limited-time boost formula:

$$
1 + log\_{4}(1+ N)
$$

*N =* Number of Affine Pass NFTs held in the wallet

This boost effectively increases your point earnings during this period. The limited-time boost will be in effect until the next announcement (timing TBD).


