Congratulations on finding this secret page! It has the stars aligned for you. It represents swapping 1,000 USDC for 2,685 crvUSD!
The stable swap algorithm, popularized by the Curve Finance protocol, is designed to facilitate efficient and low-slippage trading between assets that are pegged to a similar value, such as stablecoins or tokenized versions of the same asset. In this case USDC and crvUSD are 1:1 USD stable coins. The mathematics behind the stable swap algorithm is primarily based on a specialized invariant function that ensures liquidity and stable prices. Here’s an explanation of the math involved:
We Know
x1 = 2,446,490 USDC
x2 = 6,573,267 crvUSD
Change in x1 = 1,000 USDC we are adding to the protocol.
We want to find Change in x2 as the amount of the output token we would get.
This is a snapshot of the pool at a given point in time where USDC is rare and thus more expensive than crvUSD, we can use its purchasing power to get more crvUSD. Let us do the math. Note, this math is indeed a simplification.
? = 6,573,267 * 1,000 / 2,446,049 + 1,000
? = 6,573,267,000 / 2,447,049
Change in crvUSD = 2,686 crvUSD out for 1,000 USDC in!
Notice: If we take 6,573,267 crvUSD and Divide By 2,446,490 USDC we get 2.686 X 1,000 = 2,686.
What if we add in 1,000 crvUSD to our pool.
? = 2,466,049 * 1,000 / 6,573,267 + 1,000 = 2,466,049,000 / 6,574,267 = 375 USDC
You would put in 1,000 crvUSD but only get out 375 USDC because of the nature of the pool! There is no demand for crvUSD and thus selling it to the pool gives you less USDC.
What if we add in 1,000 crvUSD when we have a pool of 1,000,000 crvUSD and 1,000,000 USDC.
? = 1,000,000 * 1,000 / 1,001,000 = 999
So, one must look at the supply and demand of the pool and add in the rare coin to get the most value for it. Think of it as an antique. You can then deploy your crvUSD into ETH or another stable coin.
Let us look at the big picture, if there is a demand for a stable coin such as DAI, USDC, or Teather because they have more utility they will be removed from the pool. They will then gain more notoriety within the pool and thus by adding them back in they will be more effective, as time is money. Your rare coin will accrue value. One may argue who wants useless crvUSD that only works on the holy Curve platform. We do believe in the unicorn motif and yes indeed you can still swap crvUSD for anything on the Curve platform and you by using the link above you can swap crvUSD for ETH. Don’t keep this all to yourself, share it and get the money in circulation, calculating and exciting!
Happy hunting!