Last active
March 10, 2021 14:07
-
-
Save danoctavian/18cac26cb3a8c4ac7441aeb83a92418c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
q = C * MCReth ^ 3 | |
adjustedTokens = - q / (3 * (V0+Vbuy) ^ 3)+ q /(3 * V0 ^ 3) | |
adjustedPrice = Vbuy / adjustedTokens | |
finalPrice = adjustedPrice + A | |
tokensOut = deltaETH / finalPrice |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment