Balmy
DCA
DCA
  • Introduction to the protocol
  • FAQ
  • Concepts
    • Positions
      • Actions
      • NFT/Permissions
      • Swap Intervals
    • Fees
    • Swaps
    • Token Integration
    • Yield Sources
  • Architecture
    • Core
      • Hub
      • Permission Manager
      • NFT Descriptor
    • Periphery
      • Companion
      • Libraries
  • Tech Guides
    • Interacting with the protocol
    • Smart Contract Registry
    • Swaps
      • Next Swap
      • Executing a Flash Swap
    • Position Management
      • Creating a Position
      • Modifying a Position
      • Withdrawing from a Position
      • Terminating a Position
    • Permission Management
    • Subgraphs
      • Playground
      • Fetch all pairs
      • Fetch all tokens
      • Fetch all active intervals
      • Fetch positions by address
    • Github
  • Mean explained by friends
    • By Perpetual Protocol
    • By Ceazor's Snack Sandwich
  • Other
    • Bug Reports
Powered by GitBook
On this page
  • Protocol
  • What is the decentralized DCA?
  • How does it work?
  • Why should I use it?
  • How is the price calculated for each swap?
  • Is it audited?
  • End User
  • When do I need to pay gas fees?
  • Why hasn't my new position been swapped yet?
  • Do I need to pay any fees?
  • What does it mean for a pair to be stale?
  • Why is my position stale?
  • When will my position be swapped?

Was this helpful?

FAQ

Frequently Asked Questions about the decentralized DCA

PreviousIntroduction to the protocolNextPositions

Last updated 1 year ago

Was this helpful?

Protocol

What is the decentralized DCA?

Mean Finance is the state-of-the-art DCA protocol. It enables you to set up actions like “Swap 10 USDC for WBTC every day, for 30 days”. You can create these actions between almost all ERC20 tokens, in the frequency of your choosing. These token swaps will then occur regardless of the asset's price and at regular intervals, reducing the impact of volatility on your investment.

How does it work?

When you set up a position, you are creating an intention to swap one token for the other. Then, some external user can come and execute the swap for you, honoring the desired frequency of course. When they execute your swap, you are charged a 0.6% fee on the amount that was swapped. This fee is then split between Mean Finance and the swapper. Since you don’t have to execute the swap by yourself, you don’t need to pay any gas.

Why should I use it?

Timing the market can be extremely difficult. The goal of performing DCA is to reduce the overall impact of volatility on the price of the target asset; as the price will likely vary each time one of the periodic swaps is executed, the investment is not subject to high volatility. DCA aims to avoid the mistake of making one lump-sum investment that is poorly timed with regard to asset pricing.

This Mean Finance product will allow you to perform DCA, in a gas-less and decentralized fashion. This means:

  • No account required

  • No trading limits

  • No deposit or withdrawal fees

How is the price calculated for each swap?

Mean Finance relies on on-chain oracles to determine the price at the moment of the swap. Right now Mean Finance uses their own infrastructure.

Is it audited?

End User

When do I need to pay gas fees?

Users need to pay gas only when they interact with the positions. This includes:

  • Creating their position

  • Modifying their position

  • Withdrawing balance from their position

  • Terminating their position

  • Setting or revoking permissions

End users don’t have to pay gas fees when the swaps are executed.

Why hasn't my new position been swapped yet?

Since swaps are executed by external users, they can decide when to execute them. There is no predefined time for execution, so that's why you might be in this situation.

Let's assume that you created a position in the USDC/ETH pair at 9 AM UTC. It could happen that the daily swap for that pair was executed a few minutes before that, at 8.30 AM UTC. So there can't be any more daily swaps until the next day.

Do I need to pay any fees?

Users need to pay gas fees when interacting with their positions. At the same time, there is a protocol fee that is charged in each swap. That fee is currently 0.6%.

For example, let’s assume that you’ve created a position that swaps 2000 USDC for ETH each day. Let’s also assume that, when the swap is executed, 2000 USDC = 1 ETH. Instead of getting 1 ETH, you would be getting 1 ETH - 0.6% = 0.994 ETH. That 0.6% will be split between Mean Finance and the user who actually executed the swap.

What does it mean for a pair to be stale?

  • The general sentiment of the crypto market

  • The popularity/demand of the tokens involved in the swap

  • The volume of the tokens involved in the swap

When a specific pair has some swaps that haven’t been executed in quite some time, the pair is signaled as stale.

Why is my position stale?

  • The general sentiment of the crypto market

  • The popularity/demand of the tokens involved in the swap

  • The volume of the tokens involved in the swap

So it could happen that your swap is not executed within your specified frequency. If this were to happen to your position, remember that fees are only charged on swaps, so your balance will remain unaffected.

When will my position be swapped?

Since swaps are executed by external users, they can decide when to execute them. For example, let’s assume that you had created a position with daily swaps. This means that from 00 AM UTC to 11.59 PM UTC, your position can only be executed once. Once it is executed, it can't be executed again until 00 AM of the following day. The same happens with other frequencies, such as weekly or monthly.

The DCA smart contracts have been audited by Pessimistic and PeckShield. You can read the reports .

For more information, feel free to check our .

For more information, feel free to check our .

Mean Finance other users to execute swaps, for a profit. Now, these incentives can be affected by different factors:

You don’t need to execute your swaps by yourself since Mean Finance other users to execute swaps, for a profit. Now, these incentives can be affected by different factors:

here
fees section
fees section
incentivizes
incentivizes
oracle