Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FxPool rounding errors fixes #393

Merged
merged 57 commits into from
Jul 4, 2023

Commits on May 25, 2023

  1. WIP fxPool rounding error

    andreiashu committed May 25, 2023
    Configuration menu
    Copy the full SHA
    bf44477 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2023

  1. Configuration menu
    Copy the full SHA
    37b6ef3 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2023

  1. 🍜 minor amends; removed obsolete bnum conversions; rearranged checks …

    …to match the contreact exactly
    andreiashu committed May 29, 2023
    Configuration menu
    Copy the full SHA
    e9f50e1 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. 🎐 wip

    andreiashu committed May 31, 2023
    Configuration menu
    Copy the full SHA
    c1f880b View commit details
    Browse the repository at this point in the history
  2. wip; broken branch for now

    andreiashu committed May 31, 2023
    Configuration menu
    Copy the full SHA
    1ab80f6 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2023

  1. Configuration menu
    Copy the full SHA
    a44635b View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. breaking polygon test

    0xAplki committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    f0b3516 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Configuration menu
    Copy the full SHA
    519d418 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29f16c1 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2023

  1. 🏈 code formatting

    andreiashu committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    7b753bd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fdeb41b View commit details
    Browse the repository at this point in the history
  3. 🦄 added documentation

    andreiashu committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    7a79166 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2023

  1. Configuration menu
    Copy the full SHA
    c1f4c35 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Configuration menu
    Copy the full SHA
    91a3076 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    b9d6c90 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e35042 View commit details
    Browse the repository at this point in the history
  3. 🎤 minor changes

    andreiashu committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    4e736d8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ba76227 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    559e0bd View commit details
    Browse the repository at this point in the history
  6. 🏈 lint fixes

    andreiashu committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    820bf11 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    adc7836 View commit details
    Browse the repository at this point in the history
  8. 🌳 removed debug module

    andreiashu committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    c33c58c View commit details
    Browse the repository at this point in the history
  9. 🌳 removed debug module

    andreiashu committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    e464e24 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    19ad8be View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    49094af View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. 🍳 enabled FX pool type

    andreiashu committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    09253c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a965343 View commit details
    Browse the repository at this point in the history
  3. 🐟 fixed bug where OldBigNumber.config.DECIMAL_PLACES was left as 36 i…

    …n case of an exception in FXPool functions
    andreiashu committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    c578d17 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4d98aa8 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. test cases + bug

    0xAplki committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    2576c4d View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. 🦩 new fxpool test cases

    0xAplki committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    c2590b0 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. 🍎 removed rounding of values in xaveFxPool.spec.ts; the values for `e…

    …xpectedSpotPriceBeforeSwap` value are not precisely equal to the excel spreadsheet; all the tests that fail now, fail because of `expectedSpotPriceAfterSwap` - will need to check with Khidir about this;
    andreiashu committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    af3eb5c View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. 🐨 fixed bug whereby the way we calculated our derivative would have p…

    …ut us as last of the pools in terms of normalized liquidity; fixed tests;
    andreiashu committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    61a9774 View commit details
    Browse the repository at this point in the history
  2. 🐨 lint fixes

    andreiashu committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    f62a047 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9c82d4b View commit details
    Browse the repository at this point in the history
  4. 💾 do not use floats in calculations; found a place where we were roun…

    …ding down to 15 decimals (I must have forgotten that code there);
    andreiashu committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    60071d9 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Configuration menu
    Copy the full SHA
    090466f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e537cc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2f8f87b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    94b2616 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    71ab58b View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. Configuration menu
    Copy the full SHA
    ac20365 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3d7557 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2673734 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    83cc506 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b90f725 View commit details
    Browse the repository at this point in the history
  6. 🚣 params to param_64

    andreiashu committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    4635ed9 View commit details
    Browse the repository at this point in the history
  7. _derivativeSpotPriceAfterSwapTokenInForExactTokenOut and _derivativeS…

    …potPriceAfterSwapExactTokenInForTokenOut used BigNumber now
    andreiashu committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    e5b7a8d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3471d7d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    edc0b95 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2350377 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Configuration menu
    Copy the full SHA
    1e0d545 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2cf04c2 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. Configuration menu
    Copy the full SHA
    1bbc298 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Configuration menu
    Copy the full SHA
    3d347f5 View commit details
    Browse the repository at this point in the history
  2. ⛲ formatting

    andreiashu committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    7191c7b View commit details
    Browse the repository at this point in the history
  3. 🍎 reverted the changes in `_derivativeSpotPriceAfterSwapExactTokenInF…

    …orTokenOut`; universalNormalizedLiquidity should return higher values for more advantageous pools;
    andreiashu committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    6a15ae4 View commit details
    Browse the repository at this point in the history