### Avantis Onboarding Guide Source: https://docs.avantisfi.com/tutorials This section guides new users through accessing and starting to trade on Avantis. It covers connecting an Externally Owned Account (EOA) wallet like MetaMask, the necessary assets (USDC and ETH on Base), and how to connect to the Base network. ```English Website : Navigate to avantisfi.com/trade to start trading! Login using your EOA (e.g MetaMask, Coinbase Wallet, WalletConnect, Rabby). This is the most common way to connect to decentralized dApps and this is the first step for new users to Avantis. If you do not have an EVM wallet, you can set one up at https://metamask.io/ or any other of your choice. You will also need USDC and ETH on Base to trade, USDC being trading collateral, and the ETH being used as gas to deposit your USDC. Base: Ensure your wallet is connected to the Base network. If it's not automatically connected, you'll need to switch manually. Here's a guide on how to add the Base network to your wallet: Using Base | Base. ``` -------------------------------- ### Avantis Referral System Introduction Source: https://docs.avantisfi.com/tutorials/referrals An introduction to the Avantis referral system, explaining how users can earn rewards and get fee discounts through a tiered rebate and discount system. ```English Earn rewards and get fee discounts Introduction to the Referral System: Avantis' referral system is designed to reward both referrers and traders through a tiered system of rebates and discounts. For complete details on the referral system, check out an in depth explanation here. ``` -------------------------------- ### Avantis SDK Overview Source: https://docs.avantisfi.com/liquidity-providers This section provides an overview of the Avantis SDK, which allows developers to integrate with the Avantis platform. It serves as a starting point for building applications that leverage Avantis's functionalities. ```English Avantis SDK ``` -------------------------------- ### Avantis One-click Trading (1CT): Setup and Security Source: https://docs.avantisfi.com/tutorials/trading Guides through the 3-step setup process for enabling one-click trading (1CT), including setting a PIN for wallet signature and emphasizing the importance of remembering the PIN for fund recovery. ```English Enabling one-click trading This should lead you to a simple 3 step setup process, where you have to set a pin that ties uniquely to your wallet's signature to unlock a one-click wallet for you. SECURITY NOTE: Please remember your 1CT login PIN. Without it, you will not be able to recover your funds. The team cannot recover your account for you without your PIN, similar to how we cannot access your EOA without knowing the private key. ``` -------------------------------- ### Avantis SDK Use Cases Source: https://docs.avantisfi.com/avantis-sdk/avantis-sdk Examples of applications currently being developed using the Avantis SDK, showcasing its versatility for automated trading and financial strategies. ```text 1. Loss protection arbitrage bot. 2. Automated trading strategies on Avantis (using zero-fee perpetuals). 3. RWA AI agent for trading macro assets like Dollar Yen and Gold. 4. Text / Voice to perp (e.g Bankrbot). ``` -------------------------------- ### Avantis SDK Usage Source: https://docs.avantisfi.com/rewards/avantis-xp/season-2 This section details the Avantis SDK, likely providing code examples for interacting with the Avantis platform. It may cover functionalities related to trading, rewards, or liquidity provision. ```bash cd /websites/avantisfi ./avantis_sdk --help ``` -------------------------------- ### Avantis Vaults: Withdraw USDC Source: https://docs.avantisfi.com/tutorials/vaults Guide on withdrawing USDC from Avantis vaults by exchanging jvUSDC or svUSDC back to USDC. Mentions potential withdrawal fees based on the vault's buffer ratio. ```text Withdraw jvUSDC (junior tranche) or svUSDC (senior tranche) for USDC: Exchange your vault USDC tokens back to USDC. Withdrawal fees may apply based on the vault's current buffer ratio. ``` -------------------------------- ### Periodic Revenue Distribution - Avantis Source: https://docs.avantisfi.com/rewards/periodic-revenue-distribution Explains the periodic revenue distribution mechanism for Avantis protocol LPs, ensuring fair earning of fees based on capital provision time. It details the distribution frequency (hourly) and the rolling 7-day period for new fee accumulation and distribution, using an example of fee generation from liquidations. ```text Ensuring fairness for all protocol LPs **Why Periodic Revenue Distribution ?** Using periodic revenue distribution, LPs will fairly earn a portion of fees based on the time they provided capital. This is much more effective than distributing returns all at once since it avoids situations where late LPs earn a higher return for the amount of time they were staked. The current period of distribution is set to be every hour, with new fees projected to return over a period of 7 days. This is on a rolling basis, so any accumulation of fees will continuously be distributed. For example, consider a scenario where a total of $1,000 in fees is generated from liquidations. In this case, $1,000 will be distributed to the LP vault. Let's assume that the vault has $10,000 in TVL. This means that over 7 days (or 7 * 24 = 168 hours), every hour, 1 / 168 of the new fees, or $5.95 will be distributed. ``` -------------------------------- ### Understanding Price Gaps and Leverage Impact Source: https://docs.avantisfi.com/trading/market-hours/price-gaps This section details the concept of price gaps in financial markets, explaining how they occur due to economic data releases, major news events, or trading resumption after breaks. It provides a practical example of how a price gap can affect a leveraged trading position, illustrating the amplified PnL impact and the potential for stop-loss orders to be skipped. ```text An important risk associated with the real-world assets is the potential for price gaps. A price gap occurs when the market opens at a significantly different price level than where it closed. This can happen due to various factors, such as: * When economic data is released – particularly if it contains data that the market isn’t expecting * As major news events are announced, particularly global and/or unexpected news * When trading resumes after a weekend or holiday—especially if major news is announced in that period As a practical example, our team found that on average, EUR-USD had an absolute price gap of 0.40% over the last year. This means that as a trader if you were using 10x leverage on a long EUR-USD position, and the price moved down 0.40% the next day, the effective PnL impact would be -4.00%! If your stop loss was set at -3.00%, it would not execute there, it would instead execute at -4.00% Price gaps can cause significant losses or gains for traders who have open positions. Exact stop losses and take-profits cannot be guaranteed because of these price gaps (as a certain stop loss or take profit might be "skipped" because of the gap, effectively filling at a different price than expected). We recommend exercising caution while keeping trades open after market hours (especially because leverage can amplify gains or losses). Read more about price gaps here Stop losses and take-profits cannot be guaranteed at the requested price, because of price gaps (as a certain stop loss or take profit might be "skipped" because of the gap in opening versus closing price, effectively filling at a worse price). We recommend exercising caution while keeping trades open after market hours to prevent unexpected gains or losses ``` -------------------------------- ### Avantis SDK Documentation Source: https://docs.avantisfi.com/rewards/avantis-xp This section provides access to the Avantis SDK, allowing developers to integrate with the Avantis protocol. Further details on usage and capabilities are available within the SDK documentation. ```N/A Avantis SDK ``` -------------------------------- ### Avantis SDK Source: https://docs.avantisfi.com/voice-and-tone-toolkit Provides access to the Avantis SDK for developers. This section details how to integrate and utilize the SDK within your projects. ```N/A Avantis SDK ``` -------------------------------- ### Avantis SDK Documentation Source: https://docs.avantisfi.com/trading/zero-fee-perpetuals-zfp/disclaimer-beta This section details the Avantis SDK, which allows developers to integrate with the Avantis platform. It provides tools and resources for building applications on Avantis. ```Markdown ## Avantis SDK * **Avantis SDK** ``` -------------------------------- ### Avantis SDK Overview Source: https://docs.avantisfi.com/index This section introduces the Avantis SDK, a tool for developers to interact with the Avantis protocol. It likely provides functionalities for building applications or integrating Avantis features into existing platforms. ```English Avantis SDK ``` -------------------------------- ### Avantis SDK Documentation Source: https://docs.avantisfi.com/tutorials/referrals Documentation for the Avantis SDK, providing tools and interfaces for developers to integrate with the Avantis platform. ```English Avantis SDK ``` -------------------------------- ### Avantis Trading: Collateral, Leverage, and Fees Source: https://docs.avantisfi.com/tutorials/trading Details on specifying collateral, adjusting leverage based on USDC collateral, and understanding opening fees, hourly margin fees, and execution prices for trades on Avantis. ```English Collateral and Leverage : Specify the amount of collateral you want to put up for the trade. Adjust your leverage based on the amount of USDC collateral you are willing to commit. Fees and Execution Price : Be aware of the opening fees, hourly margin fees, and the execution price of your trade. For more information on fees check out this link ``` -------------------------------- ### Avantis SDK Documentation Source: https://docs.avantisfi.com/rewards/avantis-xp/season-1-ended This section provides documentation for the Avantis SDK, which allows developers to integrate with the Avantis platform. It covers the core SDK functionalities and usage. ```English Avantis SDK ``` -------------------------------- ### Avantis SDK Source: https://docs.avantisfi.com/trading/overview Documentation for the Avantis SDK, enabling developers to integrate with the Avantis platform. ```English Avantis SDK ``` -------------------------------- ### Avantis SDK for Loss Rebate Strategies Source: https://docs.avantisfi.com/rewards/loss-rebates The Avantis SDK provides an automated method for integrating loss rebate strategies, simplifying the implementation for users and market makers. ```text Our SDK also provides an automated way of integrating loss rebate strategies. ``` -------------------------------- ### Avantis SDK Integration Source: https://docs.avantisfi.com/avantis-sdk Developers can integrate the Avantis SDK to build applications on top of Avantis' leverage engine. The SDK facilitates the creation of various trading bots and strategies. ```text Developers can integrate the Avantis SDK here: https://sdk.avantisfi.com/ Here's what developers are currently building using the SDK: 1. Loss protection arbitrage bot. 2. Automated trading strategies on Avantis (using zero-fee perpetuals). 3. RWA AI agent for trading macro assets like Dollar Yen and Gold. 4. Text / Voice to perp (e.g Bankrbot). ``` -------------------------------- ### Avantis SDK Source: https://docs.avantisfi.com/trading Documentation for the Avantis SDK, enabling developers to integrate with the Avantis platform. ```English Avantis SDK ``` -------------------------------- ### Avantis XP Boosts - Season 1 Details Source: https://docs.avantisfi.com/rewards/avantis-xp/season-1-ended/xp-boosts-season-1 This section outlines various XP Boosts for Avantis Season 1, including their application (Volume XP, Referral XP, Liquidity XP), acquisition criteria, and multiplier values. It also lists non-acquirable boosts for specific Discord roles or past events. ```Markdown Table | Name | Applies to | Criteria | Multiplier | |---|---|---|---| | Degen Streak Lv.1 | Volume XP | Trade daily on Avantis for 7 days. Retain the boost by maintaining the streak. | 1.25x | | Degen Streak Lv.2 | Volume XP | Trade daily on Avantis for 30 days. Retain the boost by maintaining the streak. | 2x | | High Roller | Volume XP | Maintain $5M+ in monthly traded volume. | 2x | | RWA Sensei | Volume XP | Reached $5M cumulative volume traded across real world markets (forex / metals). | 1.25x on forex/metals trades only | | Social Butterfly Lv.1 | Referral XP | Achieved $1M of cumulative traded volume across referred users | 1.25x | | Social Butterfly Lv.2 | Referral XP | Achieved $5M of cumulative traded volume across referred users | 1.5x | | Chad Trader | Volume XP | Users with access to the Avantis Trading Lounge, a private trading community within our server. This role is open periodically through application or by being a top trader in our trading competitions. Learn more. | 2x | | Locked Liquidity | Liquidity XP | Lock your deposited USDC for boosts on your base liquidity XP. Lock for longer to earn the highest multiplier. Note: Locking XP boosts are only granted after completion of the lock, and do not stack with other LP badge boosts. | 1.2-4x additional boost (up to 5x total) depending on lock duration | #### Non-Acquirable Boosts The following boosts are for acquired Discord roles (based on early participation and campaigns) that can not be acquired again in Season 1. | Type | Name | Criteria | Multiplier | |---|---|---|---| | Volume and Liquidity XP | Testnet OG | Early adopter of Avantis testnet. | 2x | | Volume and Liquidity XP | Testnet Champion | Top 10 winners of the Avantis testnet trading contest. | 2x | | Volume and Liquidity XP | Testnet Hero | Owners of our Galxe commemorative NFT. | 2x | | Liquidity XP | Early LP | Met the requirements for our Early LP program. | 2x | | Liquidity XP | Avant-garde LP | Met the LP requirements for the Avant-garde LP role in Avantis Discord. | 1.5x | | Liquidity XP | Chief Warden | Met the LP requirements for the Chief Warden role in Avantis Discord. | 2x | | Liquidity XP | Stakeholder Sentinel | Met the LP requirements for the Stakeholder Sentinel role in Avantis Discord. | 3x | ``` -------------------------------- ### Avantis SDK Integration Source: https://docs.avantisfi.com/avantis-sdk/avantis-sdk Developers can integrate the Avantis SDK to build applications on top of Avantis' leverage engine. The SDK facilitates the creation of various trading strategies and bots. ```text Developers can integrate the Avantis SDK here: https://sdk.avantisfi.com/ ``` -------------------------------- ### Avantis SDK Usage Source: https://docs.avantisfi.com/roadmap This section details the Avantis SDK, a tool for developers to interact with the Avantis platform. It covers integration and usage for building decentralized applications. ```bash Avantis SDK ``` -------------------------------- ### Avantis Trading: Advanced Features - Charts and News Source: https://docs.avantisfi.com/tutorials/trading Explains the use of TradingView integrated charts for technical analysis and saving custom layouts, as well as accessing real-time news feeds for crypto and forex pairs. ```English Charts Technical Analysis: Utilize TradingView integrated charts for comprehensive technical analysis and informed trading decisions. Save your custom layouts on the chart. Real-Time News Stay Informed: Access real-time news feeds for crypto and forex pairs, providing valuable insights into market trends and events. ``` -------------------------------- ### Borrowing USDC with Morpho Integration Source: https://docs.avantisfi.com/morpho-integration/getting-started This section explains how to borrow USDC on Avantis using the Morpho integration. It covers depositing collateral, borrowing USDC, and managing active loans, including options to borrow more, repay, withdraw collateral, or close the loan. It emphasizes monitoring the Loan-to-Value (LTV) ratio to avoid liquidation. ```English Navigate to avantisfi.com/borrow to get started. Here, you'll see two things 1. Your current USDC loans 2. A list of all available assets you can use as collateral, to borrow USDC. Borrowing USDC is very simple. You simply click on the borrow button for the collateral type you want to borrow from, choose the collateral you want to deposit, the amount of USDC you want to borrow. Then, our integration will create one single transaction to deposit the collateral and borrow the required USDC. You should then see this loan under your active loans. Managing your loan There are four things you can do to manage your current loan: 1. Borrow USDC: You can always borrow more USDC from your existing collateral. Just make sure to keep an eye out on your current and liquidation "LTV" (loan to value ratio). This is important to ensure you do not get liquidated. 2. Repay USDC: Simply paying back your debt (or a portion of it) to reduce interest expense! 3. Withdraw collateral: Borrowers withdraw collateral when they are confident that they can pay back their debt (USDC), without getting liquidated. This is either because they have acquired the necessary USDC for repayment, or the value of their collateral is rising. Please exercise caution and carefully read about "LTV" before withdrawing collateral. 4. Close loan: Closing is a bundled transaction that entirely repays all USDC, and withdraws all collateral, net of interest expense. Use this option to seamlessly repay your entire loan in one go. ``` -------------------------------- ### Avantis Trading: Market Selection and Order Types Source: https://docs.avantisfi.com/tutorials/trading This section explains how to select markets (crypto, forex, commodities), choose to go Long or Short, and utilize different order types like Market and Limit orders for trading on Avantis. ```English Market Selection : Choose from various markets including crypto, forex, and commodities. You can view our current offered trading pairs here. Market View: Decide whether to go Long (if you expect the price to rise) or Short (if you expect the price to fall). Order Types : Market orders (executed immediately at current market prices) and Limit orders (executed at a predetermined price). ``` -------------------------------- ### Avantis SDK: Available Assets and Features Source: https://docs.avantisfi.com/trading/zero-fee-perpetuals-zfp/available-assets-features Details the assets and features currently available in Avantis's Zero-fee perpetuals. It lists supported cryptocurrencies like BTC, ETH, SOL, XRP, DOGE, FARTCOIN, PEPE, WIF, SHIB, and their respective leverage limits. It also outlines supported order types (Market orders) and features like collateral addition, with limitations on withdrawal. ```text Assets ZFP is currently available for crypto majors and memes * Majors: BTC, ETH, SOL, XRP, HYPE with 75x-500x leverage. * Memes: DOGE, FARTCOIN, PEPE, WIF, SHIB with up to 250x leverage. Features 1. Currently only Market orders are supported; Limit orders coming soon. 2. You can add collateral to your positions, although withdrawing collateral is disabled (to prevent economic abuse). 3. No Loss protection rebates (since fees are already zero). 4. Referral discounts only apply on fixed-fee trades, not zero-fee trades. However $AVNT staking will enable reduced profit sharing in the future! ``` -------------------------------- ### Avantis Vaults: Unlock USDC and Claim Rewards Source: https://docs.avantisfi.com/tutorials/vaults Details the process for unlocking previously locked vault USDC (represented by NFTs) and claiming accumulated boosted fee rewards. Mentions potential unlock fees. ```text Unlocking Process: Allows unlocking of the vault USDC locked in the form of NFTs. Claim Rewards: Claim boosted fee rewards accumulated from your locked NFT. Unlock Fee: Fees may apply based on the original lock duration and remaining time. Instructions: Steps to unlock include choosing the locked vault USDC amount to unlock and completing the transaction. ``` -------------------------------- ### Avantis Zero-Fee Perpetuals Explained Source: https://docs.avantisfi.com/trading/zero-fee-perpetuals-zfp/introduction This section introduces Avantis's zero-fee perpetuals, highlighting their design for high leverage and loss-averse traders. It explains the core concept of paying fees only on profitable trades, contrasting it with traditional perpetuals. ```English Introducing “Zero-fee perps”, a new type of perpetual purpose-built for high leverage, loss averse traders. What if there was a perpetual you could truly hold on to, one that you only pay fees on if you win. A perp that aligns all counterparties: the protocol, protocol LPs and the traders. Here’s how it works: * Say bob wants to open a ETH long trade and chooses zero-fee perps. * This would allow Bob to open a position size of $1M ($10K collateral, times 100x leverage) for free! This means: * No opening fees or fixed closing fees. * No borrow fees (”holding costs”). * As the trade goes on, one of two things can happen 1. Bob is right, and his gross PNL is positive. Say the price moves 1% in his favor, meaning on 100x leverage he is now up 2x on his collateral. * _Bob will now pay a fraction of his profits as fees._ 2. Bob is wrong, and his gross PNL is negative * Bob doesn’t pay any close fees, or borrow fees while closing the trade. In option A, Bob made pure profits without putting up any fees upfront, and also earned Avantis XP. In option B, Bob only lost on gross PNL (market moves), however did not give up any portion of his collateral to fees, and also potentially earned some Avantis XP! This is how zero-fee perps work! It allows you to hold onto a perp position for much longer than a traditional perp, and also focuses on fee sharing only after traders are profitable. **This closely aligns the protocol to LPs and traders.** ``` -------------------------------- ### Avantis SDK: Morpho Integration for Multi-Collateral USDC Borrowing Source: https://docs.avantisfi.com/morpho-integration This section details the integration of Avantis with Morpho, a lending and borrowing protocol, enabling multi-collateral trading and boosted yields. It outlines how users can borrow USDC on Base using various crypto assets, increasing leverage and potential earnings. ```English Avantis has integrated Morpho, a leading onchain lending / borrowing protocol. Here's what this integration enables for our liquidity providers and traders: 1. **Multi-collateral trading** Borrow USDC on Base using your existing crypto portfolio (BTC, ETH and alts) to simply continue doing what you do best: perps trading! Pay back seamlessly in one bundled transaction after your trade is complete. Increased USDC gives traders access to increased leverage and exposure, without ever selling your crypto assets. 1. **Boosted Avantis XP + yields** Avantis' vault deposits sometimes offer a higher APY (for locked deposits) than Morpho's borrowing APY. Depending on lock duration / yields, you can earn net positive yields (+ boosted Avantis XP), without ever selling your Bitcoin or ETH 🤯. 1. **Supported Markets** Avantis has integrated several markets that support USDC loans on Base. This includes: - cbETH (yield bearing) - wstETH (yield bearing) - cbBTC - ETH However, we'll launch several new markets soon, giving our users the ability to leverage their entire crypto portfolio on Base to borrow USDC and maximize their potential. ``` -------------------------------- ### Avantis Trading: Position and Risk Management Source: https://docs.avantisfi.com/tutorials/trading Covers managing current and limit orders in the Positions tab, and utilizing risk management tools such as Stop Loss/Take Profits and Leverage Management. ```English Positions Tab Order Management: View and manage your current and limit orders, adjusting your trading strategy as needed. Risk Management Tools Stop Loss/Take Profits: Set automated thresholds for executing trades to lock in profits or minimize losses. Leverage Management: Actively manage your risk by depositing or withdrawing collateral, which directly impacts your effective leverage. Close Position: Explore options for partially or fully closing your open positions. ``` -------------------------------- ### Avantis 1CT: Fund Management and UX Enhancement Source: https://docs.avantisfi.com/tutorials/trading Explains how to deposit or withdraw ETH (for gas) and USDC (for collateral) using the '+ / -' buttons within the enabled 1CT wallet, and options to skip open/close modals for enhanced trading UX. ```English Depositing / Withdrawing funds With your 1CT wallet enabled, you can always add or withdraw ETH (for gas) and USDC (for collateral) by clicking the "+ / -" buttons as shown in the screenshot below. Level up your trading UX, by skipping all trading confirmations and approvals. Enable 1CT by going to the top right section of the screen, and clicking the "create 1CT" button. Add and withdraw funds from 1CT If you want to further enhance your trading UX, you can always choose to skip open / close modals in the settings menu in the top right hand side. ``` -------------------------------- ### Avantis Portfolio Analytics for Traders Source: https://docs.avantisfi.com/tutorials/portfolio-traders The Avantis portfolio analytics page offers advanced DeFi insights for traders. It displays PnL, volumes, asset-level performance, portfolio statistics, and allows users to manage positions and share trade activity. ```text Visit the page: Go to avantisfi.com/portfolio to access our portfolio analytics dashboard PnL and Volumes : View your cumulative and daily gross PnL, total return, as well total volumes on the platform. Asset Analytics : Go deeper into asset level performance, including win rates (“what % of your trades are profitable”), cumulative PnL and volumes by pair and asset class. Portfolio Stats : Average PnL per trade, overall win rate, total trades, total fees paid, and loss protection rebates received. Positions and Activity : See and manage your active positions, and track your historical activity. Share : Share your historical and top trades directly from the portfolio page to Twitter and other social channels. ``` -------------------------------- ### Avantis Vaults: Deposit USDC Source: https://docs.avantisfi.com/tutorials/vaults Instructions for depositing USDC into Avantis vaults to receive jvUSDC or svUSDC. Details deposit fees and transaction confirmation steps. ```text Deposit USDC for jvUSDC (junior tranche) or svUSDC (senior tranche). Deposit fees may apply based on the vault's balance relative to total TVL. Instructions: Steps to deposit include confirming the USDC amount, reviewing deposit information and fees, and completing the transaction to receive jvUSDC/svUSDC in your wallet. ``` -------------------------------- ### Avantis Fee Comparison: Fixed vs. Zero-Fee Perps Source: https://docs.avantisfi.com/trading/zero-fee-perpetuals-zfp/fee-structure-and-comparison This section outlines the fee structures for both fixed-fee and zero-fee perpetuals on Avantis. It details the open/close fees, borrow fees, and profit-sharing mechanisms, providing a clear comparison for traders to understand the cost implications of each model. ```text 1. Zero-fee perps 1. Zero fees for losing trades. 2. Variable profit-sharing (win-fees) as low as 2.5% of gross PNL, based on ROI. As your ROI increases, you keep a larger percentage of your profits. 2. Fixed fees 1. 0.06% open / close fees for BTC (charged on position size). 2. Borrow Fees: 10% APR, charged on position size. 3. Spreads: The same dynamic spreads that apply to fixed-fee perps, also apply to Zero-fee perps. 4. Duration: In both cases, let’s assume the trade is open for 7 days. 5. Collateral / Leverage: Trader has $100 in collateral, with varying degrees of leverage (anywhere from 10x-100x). 6. Underlying price move (for the asset in question, eg BTC) has been shown to vary from 0.05% to 25%. ``` -------------------------------- ### Avantis Morpho Integration: Multi-Collateral USDC Borrowing Source: https://docs.avantisfi.com/morpho-integration/multi-collateral-usdc-borrowing This section details the integration of Avantis with Morpho, a lending and borrowing protocol. It explains how users can borrow USDC on the Base network using various crypto assets as collateral, enabling multi-collateral trading, boosted XP, and yields. It also lists currently supported markets and mentions upcoming additions. ```text Avantis has integrated Morpho, a leading onchain lending / borrowing protocol. Here's what this integration enables for our liquidity providers and traders: 1. **Multi-collateral trading** Borrow USDC on Base using your existing crypto portfolio (BTC, ETH and alts) to simply continue doing what you do best: perps trading! Pay back seamlessly in one bundled transaction after your trade is complete. Increased USDC gives traders access to increased leverage and exposure, without ever selling your crypto assets. 2. **Boosted Avantis XP + yields** Avantis' vault deposits sometimes offer a higher APY (for locked deposits) than Morpho's borrowing APY. Depending on lock duration / yields, you can earn net positive yields (+ boosted Avantis XP), without ever selling your Bitcoin or ETH 🤯. 3. **Supported Markets** Avantis has integrated several markets that support USDC loans on Base. This includes: - cbETH (yield bearing) - wstETH (yield bearing) - cbBTC - ETH However, we'll launch several new markets soon, giving our users the ability to leverage their entire crypto portfolio on Base to borrow USDC and maximize their potential. ``` -------------------------------- ### Avantis Market Hours by Asset Class Source: https://docs.avantisfi.com/trading/market-hours This table outlines the trading hours for various asset classes on Avantis, referencing Pyth price oracles. It specifies opening and closing times, along with any exceptions or holiday considerations for each asset type. ```Markdown Asset Class | Opening Hours | Exceptions ---|---|--- Crypto | 24/7 | No market close Forex | From Sunday 5PM ET to Friday 5PM ET | Trading continues during most US holidays Metals | From Sunday 5PM ET to Friday 5PM ET | Spot gold and silver trading also follow CME holiday closures Commodities | WTI: From Sunday 6PM ET to Friday 5PM ET | Daily maintenance window applies from 5PM ET to 6PM ET and follow CME holiday closures U.S Indices (SPY , QQQ) | Every weekday from 9.30AM ET to 4PM ET | Markets are closed on weekends, and follow NYSE Holidays & Trading Hours U.S equities | Every weekday from 9.30AM ET to 4PM ET | Markets are closed on weekends, and follow NYSE Holidays & Trading Hours ``` -------------------------------- ### Avantis Indices Trading Fees Explained Source: https://docs.avantisfi.com/trading/trading-fees-fixed-fee-perpetuals/indices Details the fee structure for trading Indices on Avantis, including opening fees, closing fees, loss protection incentives, and dynamic margin fees. It explains how leverage, collateral, and market conditions affect these fees. ```text Opening Fee: 0.06% * Position Size Opening fee applies on the total position size of a leveraged trade. An an example, if a trader puts up $100 of collateral at a 30x leverage, then the total position size would be $3,000. The opening fee would be deducted from the position size, i.e $1.8 (0.06% of $3,000). $98.2 is now the collateral value of the trade. Fixed Spread: 0.01% Avg spread To account for volatility, we charge a 0.02% spread (one way only) to account for any unfavorable price movements that occur right between a trade order being sent, and it being executed onchain. This spread is only charged upon opening an order, not while closing. Dynamic Margin fee A margin fee applies to the collateral value of a position each block (and is displayed in a hourly format on the website). This is to make sure traders do not borrow most of the vault's capacity, and also leave room for other traders to take part in trading against the vault. It is also dependent on how skewed the positioning is in a particular asset, with a higher fee for traders on the skewed side (eg if skew is 90-10 long-short, longs will pay a higher margin fee). Hence, it is both a risk management measure, as well as a fair parameter that allows for several traders to utilize the platform. The formula for determining the fee at any moment will be based on several factors. It can be summed up as: Hourly Margin Fee = Base Fee* [(1/(1- Utilization ratio * Skew Ratio))-1] 1. Base Fee: A fixed fee that varies per pair based on each pair's volatility. E.g, Base fee for Gold is 0.0025%/hour and Silver is is 0.005% / hour 2. Utilization Ratio= Asset Utilization 1. Asset Utilization= USDC Borrowed / USDC Limit for the Specific Asset. 3. Skew Ratio= Long Open Interest for the specific asset /( Long Open Interest + Short Open Interest for the specific asset) ``` -------------------------------- ### Avantis Vaults: Lock USDC for Rewards Source: https://docs.avantisfi.com/tutorials/vaults Explains how to lock jvUSDC or svUSDC on Avantis for up to 6 months to receive a reward boost. Details the creation of an NFT representing the locked amount and duration, and associated unlock fees. ```text Amount to Lock: Specify the amount of jvUSDC (junior tranche) or svUSDC (senior tranche) to lock. Lock Duration and Reward Boost: Choose the lock duration (up to 6 months) for a reward boost. Locking your vault USDC will issue an NFT representing the locked amount and duration. Unlock Fee: Fees apply for unlocking based on the original lock duration and remaining time. Instructions - Create Lock: Select vault USDC amount and lock duration, confirm the lock, and find the lock details in the locks section. ``` -------------------------------- ### Avantis UNI-V3 Moment: Time and Risk for LPs Source: https://docs.avantisfi.com/liquidity-providers/uni-v3-moment-time-and-risk Avantis enhances oracle-based trading protocols by offering granular time and risk management for liquidity providers. This allows LPs to express market views by adjusting parameters, moving beyond the passive profit/loss distribution of traditional protocols. It draws parallels with Uniswap V3's flexibility for spot AMM LPs. ```markdown # 💡UNI-V3 Moment: Time and Risk Avantis unlocks a new design space for oracle-based trading protocols via granular time and risk management for liquidity providers Traditionally, LPs of oracle-based perpetual trading protocols (like GMX or Synthetix) have all been very passive. This means that during good times, every LP profits equally, and during bad times, every LP loses equally. For oracle-based trading to reach the volumes of spot trading protocols, there needs to be a robust set of parameters that LPs can fine-tune to express their individual view on the market. Much like Uniswap's V3 architecture unlocked flexibility for LPs of spot AMMs (by allowing LPs to choose a range of prices for liquidity provision), Avantis unlocks flexibility for its LPs by adding time and risk parameters. This effectively means that as an LP, you can choose to be on the lowest or highest end of the risk-spectrum, based on your view of the market. See the sections on Risk Management and Time Management for more details PreviousUSDC VaultNextRisk Management: Tranches Last updated 7 months ago ``` -------------------------------- ### Avantis Forex Trading Fees Explained Source: https://docs.avantisfi.com/trading/trading-fees-fixed-fee-perpetuals/forex Details the fee structure for Forex trading on Avantis, including dynamic opening fees, closing fees, loss protection, and spreads. It explains how the dynamic opening fee is adjusted based on market skew to incentivize balanced trading. ```English Fee / Incentive Value Dynamic Opening Fee 1 bp - 5 bps, based on long-short skew Closing Fee No closing fees ! Loss Protection Incentive 10% on USD-JPY, 0% for others. Dynamic Margin fee Based on skew and utilization Fixed Spread Zero Spreads for EUR-USD, USD-JPY, and GBP-USD. 1bp spread (across opening and closing) for other pairs. ``` ```English Dynamic Opening Fee: [0.01% - 0.05%] * Position Size Opening fee applies on the total position size of a leveraged trade. An example, if a trader puts up $100 of collateral at a 30x leverage, then the total position size would be $3,000. The opening fee would be deducted from the position size, e.g $0.3 (0.01% of $3,000). $99.7 is now the collateral value of the trade. ``` ```English _Dynamic Opening Fee: A Skew-Adjusted Mechanism_ In an effort to optimize the fee structure for market participants, we have introduced a skew-adjusted dynamic opening fee. This fee is designed to incentivize balanced trading and mitigate systemic skew. Specifically, traders on the less skewed side of the market will benefit from discounted fees. The fee is determined according to skew: Long Skew Short Skew Long Opening Fee (bps) Short Opening Fee (bps) 1 0 5 1 0.9 0.1 4.5 1.5 0.8 0.2 4 2 0.7 0.3 3.5 2.5 0.6 0.4 3 3 0.5 0.5 3 3 0.4 0.6 3 3 0.3 0.7 2.5 3.5 0.2 0.8 2 4 0.1 0.9 1.5 4.5 0 1 1 5 ``` ```English Fixed Spread: 0.01% Forex markets, especially for major pairs are generally very liquid, while being less volatile than the crypto market. Hence, unlike cryptocurrencies (where the spread is dynamic), we only charge a fixed spread of 0.01% on certain forex assets, to account for any minor (and unfavorable) price movements that occur right between a trade order being sent, and it being executed onchain. This spread is only charged upon opening an order, not closing. **Zero Spreads** Pay absolutely no spreads on top 3 FX Pairs (EUR-USD, USD-JPY and GBP-USD). ``` -------------------------------- ### Avantis Oracle Execution Logic (Conceptual) Source: https://docs.avantisfi.com/trading/accurate-oracle-execution This snippet illustrates the conceptual logic for executing trades on Avantis, comparing on-demand prices with Chainlink feeds and failing transactions if the deviation exceeds a threshold. ```Pseudocode function executeTrade(asset, userAction) { const onDemandPrice = fetchOnDemandPrice(asset); const chainlinkPrice = fetchChainlinkPrice(asset); if (onDemandPrice === null || chainlinkPrice === null) { // Handle cases where feeds are not available failTransaction("Oracle feed unavailable"); return; } const priceDifference = Math.abs(onDemandPrice - chainlinkPrice); const deviationPercentage = (priceDifference / chainlinkPrice) * 100; const threshold = getThreshold(asset); // e.g., 5% if (deviationPercentage > threshold) { failTransaction(`Price deviation (${deviationPercentage.toFixed(2)}%) exceeds threshold (${threshold}%). Please try again.`); } else { // Proceed with trade execution using onDemandPrice processUserAction(userAction, onDemandPrice); } } ``` -------------------------------- ### Calculate Hourly Margin Fee Source: https://docs.avantisfi.com/trading/trading-fees-fixed-fee-perpetuals/forex This snippet outlines the formula for calculating the hourly margin fee based on base fee, blended utilization ratio, and blended skew ratio. It includes the definitions for each component of the formula. ```mathematics Hourly Margin Fee = Base Fee * [(1 / (1 - Blended Utilization ratio * Blended Skew Ratio)) - 1] 1. Base Fee: 0.0015% / hour 2. Blended Utilization = 0.75 * Category Utilization + 0.25 * Asset Utilization 3. Asset Utilization = USDC Borrowed / USDC Limit for the Specific Asset 4. Category Utilization = USDC Borrowed / USDC Limit for the Defined Category 5. Blended Skew = 0.75 * Category Skew + 0.25 * Asset Skew 6. Long Asset Skew Ratio = Long Open Interest for the specific asset / (Long Open Interest + Short Open Interest for the specific asset) 7. Long Category Skew Ratio = Long Open Interest for the whole category / (Long Open Interest + Short Open Interest for the whole category) ``` -------------------------------- ### Loss Rebate Calculation Logic Source: https://docs.avantisfi.com/rewards/loss-rebates This snippet illustrates the tiered loss rebate percentages based on market skew. The rebate is 0% for a skew between 0 and 55, and ranges from 0% to 20% for a skew between 55 and 100. ```mathematical-notation {0%if 0≤skew<550−20%if 55≤skew<100\begin{cases} 0\% & \text{if } 0 \leq skew < 55 \\ 0-20\% & \text{if } 55 \leq skew< 100 \end{cases} ```