├── .env.sample ├── .github ├── ISSUE_TEMPLATE │ └── add_a_chain.yml └── workflows │ ├── black.yaml │ ├── codeql-analysis.yml │ ├── compile.yaml │ ├── deploy-docs.yml │ ├── mypy.yaml │ ├── pytest.yaml │ └── release.yaml ├── .gitignore ├── .pre-commit-config.yaml ├── CONTRIBUTING.md ├── FUNDING.json ├── LICENSE.txt ├── Makefile ├── README.md ├── brownie-config.yaml ├── docs ├── Makefile ├── _build │ └── html │ │ └── _static │ │ ├── alabaster.css │ │ ├── basic.css │ │ ├── custom.css │ │ ├── doctools.js │ │ ├── documentation_options.js │ │ ├── file.png │ │ ├── language_data.js │ │ ├── minus.png │ │ ├── plus.png │ │ ├── pygments.css │ │ ├── searchtools.js │ │ └── sphinx_highlight.js ├── caching.rst ├── cli.rst ├── conf.py ├── environment.rst ├── index.rst └── make.bat ├── pyproject.toml ├── renovate.json ├── requirements-dev.txt ├── requirements.txt ├── scripts ├── debug-curve.py └── debug-price.py ├── setup.cfg ├── setup.py ├── tests ├── __init__.py ├── classes │ ├── test_erc20.py │ └── test_singleton.py ├── conftest.py ├── fixtures.py ├── prices │ ├── __init__.py │ ├── dex │ │ ├── __init__.py │ │ ├── test_balancer.py │ │ ├── test_uniswap.py │ │ └── test_velodrome.py │ ├── lending │ │ ├── __init__.py │ │ ├── test_aave.py │ │ └── test_compound.py │ ├── stable_swap │ │ └── test_curve.py │ ├── test_chainlink.py │ ├── test_gearbox.py │ ├── test_magic.py │ ├── test_popsicle.py │ ├── test_synthetix.py │ ├── test_yearn.py │ ├── tokenized_fund │ │ └── test_piedao.py │ └── utils │ │ └── test_buckets.py └── test_constants.py └── y ├── ENVIRONMENT_VARIABLES.py ├── __init__.py ├── _db ├── __init__.py ├── brownie.py ├── common.py ├── config.py ├── decorators.py ├── entities.py ├── exceptions.py ├── log.py ├── structs.py └── utils │ ├── __init__.py │ ├── _ep.py │ ├── asyncpg.py │ ├── bulk.py │ ├── contract.py │ ├── logs.py │ ├── price.py │ ├── stringify.py │ ├── token.py │ ├── traces.py │ └── utils.py ├── _decorators.py ├── classes ├── __init__.py ├── _abc.py ├── common.py └── singleton.py ├── cli.py ├── constants.py ├── contracts.py ├── convert.py ├── datatypes.py ├── exceptions.py ├── interfaces ├── ERC20.py ├── __init__.py ├── balancer │ ├── WeightedPool.py │ └── __init__.py ├── compound │ ├── __init__.py │ └── unitroller.py ├── curve │ ├── CurveRegistry.py │ └── __init__.py ├── multicall2.py └── uniswap │ ├── __init__.py │ ├── factoryv2.py │ ├── quoterv3.py │ └── velov2.py ├── monkey_patches.py ├── networks.py ├── prices ├── __init__.py ├── band.py ├── chainlink.py ├── convex.py ├── dex │ ├── __init__.py │ ├── balancer │ │ ├── __init__.py │ │ ├── _abc.py │ │ ├── balancer.py │ │ ├── v1.py │ │ └── v2.py │ ├── genericamm.py │ ├── mooniswap.py │ ├── solidly.py │ ├── uniswap │ │ ├── __init__.py │ │ ├── uniswap.py │ │ ├── v1.py │ │ ├── v2.py │ │ ├── v2_forks.py │ │ └── v3.py │ └── velodrome.py ├── eth_derivs │ ├── __init__.py │ ├── creth.py │ └── wsteth.py ├── gearbox.py ├── lending │ ├── __init__.py │ ├── aave.py │ ├── compound.py │ └── ib.py ├── magic.py ├── one_to_one.py ├── pendle.py ├── popsicle.py ├── rkp3r.py ├── solidex.py ├── stable_swap │ ├── __init__.py │ ├── belt.py │ ├── curve.py │ ├── ellipsis.py │ ├── froyo.py │ ├── mstablefeederpool.py │ └── saddle.py ├── synthetix.py ├── tokenized_fund │ ├── __init__.py │ ├── basketdao.py │ ├── gelato.py │ ├── piedao.py │ ├── reserve.py │ └── tokensets.py ├── utils │ ├── __init__.py │ ├── buckets.py │ ├── debug.py │ ├── sense_check.py │ └── ypriceapi.py └── yearn.py ├── py.typed ├── time.py └── utils ├── __init__.py ├── _erc20.py ├── cache.py ├── checks.py ├── client.py ├── dank_mids.py ├── events.py ├── fakes.py ├── gather.py ├── logging.py ├── middleware.py ├── multicall.py └── raw_calls.py /.env.sample: -------------------------------------------------------------------------------- 1 | 2 | # Degree of parallelism 3 | DOP= 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/add_a_chain.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.github/ISSUE_TEMPLATE/add_a_chain.yml -------------------------------------------------------------------------------- /.github/workflows/black.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.github/workflows/black.yaml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/compile.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.github/workflows/compile.yaml -------------------------------------------------------------------------------- /.github/workflows/deploy-docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.github/workflows/deploy-docs.yml -------------------------------------------------------------------------------- /.github/workflows/mypy.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.github/workflows/mypy.yaml -------------------------------------------------------------------------------- /.github/workflows/pytest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.github/workflows/pytest.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /FUNDING.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/FUNDING.json -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/README.md -------------------------------------------------------------------------------- /brownie-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/brownie-config.yaml -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/_build/html/_static/alabaster.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/alabaster.css -------------------------------------------------------------------------------- /docs/_build/html/_static/basic.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/basic.css -------------------------------------------------------------------------------- /docs/_build/html/_static/custom.css: -------------------------------------------------------------------------------- 1 | /* This file intentionally left blank. */ 2 | -------------------------------------------------------------------------------- /docs/_build/html/_static/doctools.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/doctools.js -------------------------------------------------------------------------------- /docs/_build/html/_static/documentation_options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/documentation_options.js -------------------------------------------------------------------------------- /docs/_build/html/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/file.png -------------------------------------------------------------------------------- /docs/_build/html/_static/language_data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/language_data.js -------------------------------------------------------------------------------- /docs/_build/html/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/minus.png -------------------------------------------------------------------------------- /docs/_build/html/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/plus.png -------------------------------------------------------------------------------- /docs/_build/html/_static/pygments.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/pygments.css -------------------------------------------------------------------------------- /docs/_build/html/_static/searchtools.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/searchtools.js -------------------------------------------------------------------------------- /docs/_build/html/_static/sphinx_highlight.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/_build/html/_static/sphinx_highlight.js -------------------------------------------------------------------------------- /docs/caching.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/caching.rst -------------------------------------------------------------------------------- /docs/cli.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/cli.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/environment.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/environment.rst -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/docs/make.bat -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/pyproject.toml -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/renovate.json -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/requirements-dev.txt -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/debug-curve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/scripts/debug-curve.py -------------------------------------------------------------------------------- /scripts/debug-price.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/scripts/debug-price.py -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [metadata] 2 | description_file = README.md 3 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/setup.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/classes/test_erc20.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/classes/test_erc20.py -------------------------------------------------------------------------------- /tests/classes/test_singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/classes/test_singleton.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/fixtures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/fixtures.py -------------------------------------------------------------------------------- /tests/prices/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/prices/dex/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/prices/dex/test_balancer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/dex/test_balancer.py -------------------------------------------------------------------------------- /tests/prices/dex/test_uniswap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/dex/test_uniswap.py -------------------------------------------------------------------------------- /tests/prices/dex/test_velodrome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/dex/test_velodrome.py -------------------------------------------------------------------------------- /tests/prices/lending/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/prices/lending/test_aave.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/lending/test_aave.py -------------------------------------------------------------------------------- /tests/prices/lending/test_compound.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/lending/test_compound.py -------------------------------------------------------------------------------- /tests/prices/stable_swap/test_curve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/stable_swap/test_curve.py -------------------------------------------------------------------------------- /tests/prices/test_chainlink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/test_chainlink.py -------------------------------------------------------------------------------- /tests/prices/test_gearbox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/test_gearbox.py -------------------------------------------------------------------------------- /tests/prices/test_magic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/test_magic.py -------------------------------------------------------------------------------- /tests/prices/test_popsicle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/test_popsicle.py -------------------------------------------------------------------------------- /tests/prices/test_synthetix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/test_synthetix.py -------------------------------------------------------------------------------- /tests/prices/test_yearn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/test_yearn.py -------------------------------------------------------------------------------- /tests/prices/tokenized_fund/test_piedao.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/tokenized_fund/test_piedao.py -------------------------------------------------------------------------------- /tests/prices/utils/test_buckets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/prices/utils/test_buckets.py -------------------------------------------------------------------------------- /tests/test_constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/tests/test_constants.py -------------------------------------------------------------------------------- /y/ENVIRONMENT_VARIABLES.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/ENVIRONMENT_VARIABLES.py -------------------------------------------------------------------------------- /y/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/__init__.py -------------------------------------------------------------------------------- /y/_db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/__init__.py -------------------------------------------------------------------------------- /y/_db/brownie.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/brownie.py -------------------------------------------------------------------------------- /y/_db/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/common.py -------------------------------------------------------------------------------- /y/_db/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/config.py -------------------------------------------------------------------------------- /y/_db/decorators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/decorators.py -------------------------------------------------------------------------------- /y/_db/entities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/entities.py -------------------------------------------------------------------------------- /y/_db/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/exceptions.py -------------------------------------------------------------------------------- /y/_db/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/log.py -------------------------------------------------------------------------------- /y/_db/structs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/structs.py -------------------------------------------------------------------------------- /y/_db/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/__init__.py -------------------------------------------------------------------------------- /y/_db/utils/_ep.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/_ep.py -------------------------------------------------------------------------------- /y/_db/utils/asyncpg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/asyncpg.py -------------------------------------------------------------------------------- /y/_db/utils/bulk.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/bulk.py -------------------------------------------------------------------------------- /y/_db/utils/contract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/contract.py -------------------------------------------------------------------------------- /y/_db/utils/logs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/logs.py -------------------------------------------------------------------------------- /y/_db/utils/price.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/price.py -------------------------------------------------------------------------------- /y/_db/utils/stringify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/stringify.py -------------------------------------------------------------------------------- /y/_db/utils/token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/token.py -------------------------------------------------------------------------------- /y/_db/utils/traces.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/traces.py -------------------------------------------------------------------------------- /y/_db/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_db/utils/utils.py -------------------------------------------------------------------------------- /y/_decorators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/_decorators.py -------------------------------------------------------------------------------- /y/classes/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/classes/__init__.py -------------------------------------------------------------------------------- /y/classes/_abc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/classes/_abc.py -------------------------------------------------------------------------------- /y/classes/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/classes/common.py -------------------------------------------------------------------------------- /y/classes/singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/classes/singleton.py -------------------------------------------------------------------------------- /y/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/cli.py -------------------------------------------------------------------------------- /y/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/constants.py -------------------------------------------------------------------------------- /y/contracts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/contracts.py -------------------------------------------------------------------------------- /y/convert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/convert.py -------------------------------------------------------------------------------- /y/datatypes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/datatypes.py -------------------------------------------------------------------------------- /y/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/exceptions.py -------------------------------------------------------------------------------- /y/interfaces/ERC20.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/interfaces/ERC20.py -------------------------------------------------------------------------------- /y/interfaces/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /y/interfaces/balancer/WeightedPool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/interfaces/balancer/WeightedPool.py -------------------------------------------------------------------------------- /y/interfaces/balancer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /y/interfaces/compound/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /y/interfaces/compound/unitroller.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/interfaces/compound/unitroller.py -------------------------------------------------------------------------------- /y/interfaces/curve/CurveRegistry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/interfaces/curve/CurveRegistry.py -------------------------------------------------------------------------------- /y/interfaces/curve/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /y/interfaces/multicall2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/interfaces/multicall2.py -------------------------------------------------------------------------------- /y/interfaces/uniswap/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /y/interfaces/uniswap/factoryv2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/interfaces/uniswap/factoryv2.py -------------------------------------------------------------------------------- /y/interfaces/uniswap/quoterv3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/interfaces/uniswap/quoterv3.py -------------------------------------------------------------------------------- /y/interfaces/uniswap/velov2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/interfaces/uniswap/velov2.py -------------------------------------------------------------------------------- /y/monkey_patches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/monkey_patches.py -------------------------------------------------------------------------------- /y/networks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/networks.py -------------------------------------------------------------------------------- /y/prices/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/__init__.py -------------------------------------------------------------------------------- /y/prices/band.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/band.py -------------------------------------------------------------------------------- /y/prices/chainlink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/chainlink.py -------------------------------------------------------------------------------- /y/prices/convex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/convex.py -------------------------------------------------------------------------------- /y/prices/dex/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/__init__.py -------------------------------------------------------------------------------- /y/prices/dex/balancer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/balancer/__init__.py -------------------------------------------------------------------------------- /y/prices/dex/balancer/_abc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/balancer/_abc.py -------------------------------------------------------------------------------- /y/prices/dex/balancer/balancer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/balancer/balancer.py -------------------------------------------------------------------------------- /y/prices/dex/balancer/v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/balancer/v1.py -------------------------------------------------------------------------------- /y/prices/dex/balancer/v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/balancer/v2.py -------------------------------------------------------------------------------- /y/prices/dex/genericamm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/genericamm.py -------------------------------------------------------------------------------- /y/prices/dex/mooniswap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/mooniswap.py -------------------------------------------------------------------------------- /y/prices/dex/solidly.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/solidly.py -------------------------------------------------------------------------------- /y/prices/dex/uniswap/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/uniswap/__init__.py -------------------------------------------------------------------------------- /y/prices/dex/uniswap/uniswap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/uniswap/uniswap.py -------------------------------------------------------------------------------- /y/prices/dex/uniswap/v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/uniswap/v1.py -------------------------------------------------------------------------------- /y/prices/dex/uniswap/v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/uniswap/v2.py -------------------------------------------------------------------------------- /y/prices/dex/uniswap/v2_forks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/uniswap/v2_forks.py -------------------------------------------------------------------------------- /y/prices/dex/uniswap/v3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/uniswap/v3.py -------------------------------------------------------------------------------- /y/prices/dex/velodrome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/dex/velodrome.py -------------------------------------------------------------------------------- /y/prices/eth_derivs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/eth_derivs/__init__.py -------------------------------------------------------------------------------- /y/prices/eth_derivs/creth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/eth_derivs/creth.py -------------------------------------------------------------------------------- /y/prices/eth_derivs/wsteth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/eth_derivs/wsteth.py -------------------------------------------------------------------------------- /y/prices/gearbox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/gearbox.py -------------------------------------------------------------------------------- /y/prices/lending/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/lending/__init__.py -------------------------------------------------------------------------------- /y/prices/lending/aave.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/lending/aave.py -------------------------------------------------------------------------------- /y/prices/lending/compound.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/lending/compound.py -------------------------------------------------------------------------------- /y/prices/lending/ib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/lending/ib.py -------------------------------------------------------------------------------- /y/prices/magic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/magic.py -------------------------------------------------------------------------------- /y/prices/one_to_one.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/one_to_one.py -------------------------------------------------------------------------------- /y/prices/pendle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/pendle.py -------------------------------------------------------------------------------- /y/prices/popsicle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/popsicle.py -------------------------------------------------------------------------------- /y/prices/rkp3r.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/rkp3r.py -------------------------------------------------------------------------------- /y/prices/solidex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/solidex.py -------------------------------------------------------------------------------- /y/prices/stable_swap/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/stable_swap/__init__.py -------------------------------------------------------------------------------- /y/prices/stable_swap/belt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/stable_swap/belt.py -------------------------------------------------------------------------------- /y/prices/stable_swap/curve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/stable_swap/curve.py -------------------------------------------------------------------------------- /y/prices/stable_swap/ellipsis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/stable_swap/ellipsis.py -------------------------------------------------------------------------------- /y/prices/stable_swap/froyo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/stable_swap/froyo.py -------------------------------------------------------------------------------- /y/prices/stable_swap/mstablefeederpool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/stable_swap/mstablefeederpool.py -------------------------------------------------------------------------------- /y/prices/stable_swap/saddle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/stable_swap/saddle.py -------------------------------------------------------------------------------- /y/prices/synthetix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/synthetix.py -------------------------------------------------------------------------------- /y/prices/tokenized_fund/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/tokenized_fund/__init__.py -------------------------------------------------------------------------------- /y/prices/tokenized_fund/basketdao.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/tokenized_fund/basketdao.py -------------------------------------------------------------------------------- /y/prices/tokenized_fund/gelato.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/tokenized_fund/gelato.py -------------------------------------------------------------------------------- /y/prices/tokenized_fund/piedao.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/tokenized_fund/piedao.py -------------------------------------------------------------------------------- /y/prices/tokenized_fund/reserve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/tokenized_fund/reserve.py -------------------------------------------------------------------------------- /y/prices/tokenized_fund/tokensets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/tokenized_fund/tokensets.py -------------------------------------------------------------------------------- /y/prices/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/utils/__init__.py -------------------------------------------------------------------------------- /y/prices/utils/buckets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/utils/buckets.py -------------------------------------------------------------------------------- /y/prices/utils/debug.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/utils/debug.py -------------------------------------------------------------------------------- /y/prices/utils/sense_check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/utils/sense_check.py -------------------------------------------------------------------------------- /y/prices/utils/ypriceapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/utils/ypriceapi.py -------------------------------------------------------------------------------- /y/prices/yearn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/prices/yearn.py -------------------------------------------------------------------------------- /y/py.typed: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /y/time.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/time.py -------------------------------------------------------------------------------- /y/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/__init__.py -------------------------------------------------------------------------------- /y/utils/_erc20.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/_erc20.py -------------------------------------------------------------------------------- /y/utils/cache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/cache.py -------------------------------------------------------------------------------- /y/utils/checks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/checks.py -------------------------------------------------------------------------------- /y/utils/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/client.py -------------------------------------------------------------------------------- /y/utils/dank_mids.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/dank_mids.py -------------------------------------------------------------------------------- /y/utils/events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/events.py -------------------------------------------------------------------------------- /y/utils/fakes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/fakes.py -------------------------------------------------------------------------------- /y/utils/gather.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/gather.py -------------------------------------------------------------------------------- /y/utils/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/logging.py -------------------------------------------------------------------------------- /y/utils/middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/middleware.py -------------------------------------------------------------------------------- /y/utils/multicall.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/multicall.py -------------------------------------------------------------------------------- /y/utils/raw_calls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BobTheBuidler/ypricemagic/HEAD/y/utils/raw_calls.py --------------------------------------------------------------------------------