├── .env ├── .env.playground ├── .github └── workflows │ ├── forge-check-vendor.yaml │ ├── forge-coverage.yml │ ├── forge-deploy-goerli.yml │ ├── forge-deploy-mainnet.yml │ ├── forge-test.yml │ ├── web-build.yml │ ├── web-check-types.yml │ └── web-test.yml ├── .gitignore ├── .gitmodules ├── .prettierrc ├── .solhint.json ├── .solhintignore ├── README.md ├── SPEC.md ├── abis ├── Aave │ ├── AToken.ts │ ├── DebtToken.ts │ ├── LendingPool.ts │ ├── LendingPoolAddressesProvider.ts │ └── PriceOracle.ts ├── CToken.ts ├── Comet.ts ├── CometMigrator.ts ├── CometMigratorV2.ts ├── Comptroller.ts ├── ERC20.ts └── Oracle.ts ├── embedded.html ├── foundry.toml ├── index.html ├── package.json ├── script ├── PlaygroundV1.s.sol ├── PlaygroundV2.s.sol ├── check-vendor.sh ├── constants.sh ├── copy-abi.sh ├── goerli │ ├── deploy_migrator.sh │ └── deploy_migrator_v2.sh ├── ipfs.js ├── mainnet │ ├── deploy_migrator.sh │ └── deploy_migrator_v2.sh ├── playground.sh └── test.sh ├── src ├── CometMigrator.sol ├── CometMigratorV2.sol ├── interfaces │ ├── AaveInterface.sol │ ├── CTokenInterface.sol │ ├── CometInterface.sol │ ├── IERC20NonStandard.sol │ └── IWETH9.sol └── vendor │ ├── @openzeppelin │ └── contracts │ │ └── token │ │ └── ERC20 │ │ └── IERC20.sol │ ├── @uniswap │ ├── v3-core │ │ └── contracts │ │ │ └── interfaces │ │ │ ├── IUniswapV3Pool.sol │ │ │ ├── callback │ │ │ ├── IUniswapV3FlashCallback.sol │ │ │ └── IUniswapV3SwapCallback.sol │ │ │ └── pool │ │ │ ├── IUniswapV3PoolActions.sol │ │ │ ├── IUniswapV3PoolDerivedState.sol │ │ │ ├── IUniswapV3PoolEvents.sol │ │ │ ├── IUniswapV3PoolImmutables.sol │ │ │ ├── IUniswapV3PoolOwnerActions.sol │ │ │ └── IUniswapV3PoolState.sol │ └── v3-periphery │ │ └── contracts │ │ └── interfaces │ │ ├── ISwapRouter.sol │ │ └── external │ │ └── IWETH9.sol │ └── manifest.json ├── styles ├── abstracts │ ├── _mixins.scss │ └── _variables.scss ├── base │ ├── _reset.scss │ ├── _scaffolding.scss │ ├── _theme.scss │ └── _typography.scss ├── components │ ├── _asset.scss │ ├── _button.scss │ ├── _divider.scss │ ├── _dropdown.scss │ ├── _icon-pair.scss │ ├── _load-spinner.scss │ ├── _logo.scss │ ├── _masthead.scss │ ├── _meter.scss │ ├── _modal.scss │ ├── _page.scss │ ├── _panel.scss │ ├── _svg.scss │ ├── _swap-dropdown.scss │ ├── _theme-toggle.scss │ └── _tooltip.scss ├── main.scss └── pages │ ├── _extensions.scss │ ├── _markets.scss │ └── _migrator.scss ├── test ├── CometMigrator.t.sol ├── CometMigratorV2.t.sol ├── MainnetConstants.t.sol ├── MainnetConstantsV2.t.sol ├── Positor.t.sol ├── PositorV2.t.sol ├── Tokens.t.sol └── TokensV2.t.sol ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.js ├── web ├── AaveV2Migrator.tsx ├── App.tsx ├── CompoundV2Migrator.tsx ├── EmbeddedApp.tsx ├── Network.ts ├── StandaloneApp.tsx ├── components │ ├── AaveBorrowInputView.tsx │ ├── ApproveModal.tsx │ ├── Dropdown.tsx │ ├── ErrorViews.tsx │ ├── Icons │ │ ├── ArrowRight.tsx │ │ ├── ChevronDown.tsx │ │ ├── CircleCheckmark.tsx │ │ ├── CircleClose.tsx │ │ ├── CircleExclamation.tsx │ │ ├── Close.tsx │ │ └── index.ts │ ├── LoadSpinner.tsx │ ├── LoadingViews.tsx │ └── SwapDropdown.tsx ├── helpers │ ├── Aave │ │ └── config.ts │ ├── multicall.ts │ ├── numbers.ts │ └── utils.ts ├── init.ts ├── lib │ ├── useAsyncEffect.ts │ ├── usePoll.ts │ ├── useRPC.ts │ ├── useTransactionTracker.ts │ └── useWeb3.ts ├── types.ts └── vite-env.d.ts ├── web_public ├── favicon.ico └── images │ ├── assets │ ├── asset_AAVE.svg │ ├── asset_AVALANCHE.svg │ ├── asset_BAT.svg │ ├── asset_BTC.svg │ ├── asset_BUSD.svg │ ├── asset_COMP.svg │ ├── asset_DAI.svg │ ├── asset_ETH.svg │ ├── asset_ETHEREUM.svg │ ├── asset_FEI.svg │ ├── asset_GUSD.svg │ ├── asset_LINK.svg │ ├── asset_MKR.svg │ ├── asset_RAI.svg │ ├── asset_REP.svg │ ├── asset_SAI.svg │ ├── asset_SUSD.svg │ ├── asset_SUSHI.svg │ ├── asset_TUSD.svg │ ├── asset_UNI.svg │ ├── asset_USDC.svg │ ├── asset_USDP.svg │ ├── asset_USDT.svg │ ├── asset_V2.svg │ ├── asset_YFI.svg │ └── asset_ZRX.svg │ ├── browser-wallets-symbol.png │ ├── coinbase-symbol.png │ ├── compound-192.png │ ├── compound-512.png │ ├── icn-desktop.svg │ ├── icn-metamask.svg │ ├── icn-wallet.svg │ ├── ledger-symbol.png │ ├── line-graph-hover-icn-borrow.svg │ ├── line-graph-hover-icn-supply.svg │ ├── meta-tag.jpg │ ├── metamask-symbol.png │ └── walletconnect-symbol.png └── yarn.lock /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.env -------------------------------------------------------------------------------- /.env.playground: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.env.playground -------------------------------------------------------------------------------- /.github/workflows/forge-check-vendor.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.github/workflows/forge-check-vendor.yaml -------------------------------------------------------------------------------- /.github/workflows/forge-coverage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.github/workflows/forge-coverage.yml -------------------------------------------------------------------------------- /.github/workflows/forge-deploy-goerli.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.github/workflows/forge-deploy-goerli.yml -------------------------------------------------------------------------------- /.github/workflows/forge-deploy-mainnet.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.github/workflows/forge-deploy-mainnet.yml -------------------------------------------------------------------------------- /.github/workflows/forge-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.github/workflows/forge-test.yml -------------------------------------------------------------------------------- /.github/workflows/web-build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.github/workflows/web-build.yml -------------------------------------------------------------------------------- /.github/workflows/web-check-types.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.github/workflows/web-check-types.yml -------------------------------------------------------------------------------- /.github/workflows/web-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.github/workflows/web-test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.gitmodules -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.prettierrc -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/.solhint.json -------------------------------------------------------------------------------- /.solhintignore: -------------------------------------------------------------------------------- 1 | src/vendor/* 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/README.md -------------------------------------------------------------------------------- /SPEC.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/SPEC.md -------------------------------------------------------------------------------- /abis/Aave/AToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/Aave/AToken.ts -------------------------------------------------------------------------------- /abis/Aave/DebtToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/Aave/DebtToken.ts -------------------------------------------------------------------------------- /abis/Aave/LendingPool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/Aave/LendingPool.ts -------------------------------------------------------------------------------- /abis/Aave/LendingPoolAddressesProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/Aave/LendingPoolAddressesProvider.ts -------------------------------------------------------------------------------- /abis/Aave/PriceOracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/Aave/PriceOracle.ts -------------------------------------------------------------------------------- /abis/CToken.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/CToken.ts -------------------------------------------------------------------------------- /abis/Comet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/Comet.ts -------------------------------------------------------------------------------- /abis/CometMigrator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/CometMigrator.ts -------------------------------------------------------------------------------- /abis/CometMigratorV2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/CometMigratorV2.ts -------------------------------------------------------------------------------- /abis/Comptroller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/Comptroller.ts -------------------------------------------------------------------------------- /abis/ERC20.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/ERC20.ts -------------------------------------------------------------------------------- /abis/Oracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/abis/Oracle.ts -------------------------------------------------------------------------------- /embedded.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/embedded.html -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/foundry.toml -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/package.json -------------------------------------------------------------------------------- /script/PlaygroundV1.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/PlaygroundV1.s.sol -------------------------------------------------------------------------------- /script/PlaygroundV2.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/PlaygroundV2.s.sol -------------------------------------------------------------------------------- /script/check-vendor.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/check-vendor.sh -------------------------------------------------------------------------------- /script/constants.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/constants.sh -------------------------------------------------------------------------------- /script/copy-abi.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/copy-abi.sh -------------------------------------------------------------------------------- /script/goerli/deploy_migrator.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/goerli/deploy_migrator.sh -------------------------------------------------------------------------------- /script/goerli/deploy_migrator_v2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/goerli/deploy_migrator_v2.sh -------------------------------------------------------------------------------- /script/ipfs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/ipfs.js -------------------------------------------------------------------------------- /script/mainnet/deploy_migrator.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/mainnet/deploy_migrator.sh -------------------------------------------------------------------------------- /script/mainnet/deploy_migrator_v2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/mainnet/deploy_migrator_v2.sh -------------------------------------------------------------------------------- /script/playground.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/playground.sh -------------------------------------------------------------------------------- /script/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/script/test.sh -------------------------------------------------------------------------------- /src/CometMigrator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/CometMigrator.sol -------------------------------------------------------------------------------- /src/CometMigratorV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/CometMigratorV2.sol -------------------------------------------------------------------------------- /src/interfaces/AaveInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/interfaces/AaveInterface.sol -------------------------------------------------------------------------------- /src/interfaces/CTokenInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/interfaces/CTokenInterface.sol -------------------------------------------------------------------------------- /src/interfaces/CometInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/interfaces/CometInterface.sol -------------------------------------------------------------------------------- /src/interfaces/IERC20NonStandard.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/interfaces/IERC20NonStandard.sol -------------------------------------------------------------------------------- /src/interfaces/IWETH9.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/interfaces/IWETH9.sol -------------------------------------------------------------------------------- /src/vendor/@openzeppelin/contracts/token/ERC20/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@openzeppelin/contracts/token/ERC20/IERC20.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3FlashCallback.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3FlashCallback.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol -------------------------------------------------------------------------------- /src/vendor/@uniswap/v3-periphery/contracts/interfaces/external/IWETH9.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/@uniswap/v3-periphery/contracts/interfaces/external/IWETH9.sol -------------------------------------------------------------------------------- /src/vendor/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/src/vendor/manifest.json -------------------------------------------------------------------------------- /styles/abstracts/_mixins.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/abstracts/_mixins.scss -------------------------------------------------------------------------------- /styles/abstracts/_variables.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/abstracts/_variables.scss -------------------------------------------------------------------------------- /styles/base/_reset.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/base/_reset.scss -------------------------------------------------------------------------------- /styles/base/_scaffolding.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/base/_scaffolding.scss -------------------------------------------------------------------------------- /styles/base/_theme.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/base/_theme.scss -------------------------------------------------------------------------------- /styles/base/_typography.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/base/_typography.scss -------------------------------------------------------------------------------- /styles/components/_asset.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_asset.scss -------------------------------------------------------------------------------- /styles/components/_button.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_button.scss -------------------------------------------------------------------------------- /styles/components/_divider.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_divider.scss -------------------------------------------------------------------------------- /styles/components/_dropdown.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_dropdown.scss -------------------------------------------------------------------------------- /styles/components/_icon-pair.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_icon-pair.scss -------------------------------------------------------------------------------- /styles/components/_load-spinner.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_load-spinner.scss -------------------------------------------------------------------------------- /styles/components/_logo.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_logo.scss -------------------------------------------------------------------------------- /styles/components/_masthead.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_masthead.scss -------------------------------------------------------------------------------- /styles/components/_meter.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_meter.scss -------------------------------------------------------------------------------- /styles/components/_modal.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_modal.scss -------------------------------------------------------------------------------- /styles/components/_page.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_page.scss -------------------------------------------------------------------------------- /styles/components/_panel.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_panel.scss -------------------------------------------------------------------------------- /styles/components/_svg.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_svg.scss -------------------------------------------------------------------------------- /styles/components/_swap-dropdown.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_swap-dropdown.scss -------------------------------------------------------------------------------- /styles/components/_theme-toggle.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_theme-toggle.scss -------------------------------------------------------------------------------- /styles/components/_tooltip.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/components/_tooltip.scss -------------------------------------------------------------------------------- /styles/main.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/main.scss -------------------------------------------------------------------------------- /styles/pages/_extensions.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/pages/_extensions.scss -------------------------------------------------------------------------------- /styles/pages/_markets.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/pages/_markets.scss -------------------------------------------------------------------------------- /styles/pages/_migrator.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/styles/pages/_migrator.scss -------------------------------------------------------------------------------- /test/CometMigrator.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/test/CometMigrator.t.sol -------------------------------------------------------------------------------- /test/CometMigratorV2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/test/CometMigratorV2.t.sol -------------------------------------------------------------------------------- /test/MainnetConstants.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/test/MainnetConstants.t.sol -------------------------------------------------------------------------------- /test/MainnetConstantsV2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/test/MainnetConstantsV2.t.sol -------------------------------------------------------------------------------- /test/Positor.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/test/Positor.t.sol -------------------------------------------------------------------------------- /test/PositorV2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/test/PositorV2.t.sol -------------------------------------------------------------------------------- /test/Tokens.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/test/Tokens.t.sol -------------------------------------------------------------------------------- /test/TokensV2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/test/TokensV2.t.sol -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/tsconfig.node.json -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/vite.config.js -------------------------------------------------------------------------------- /web/AaveV2Migrator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/AaveV2Migrator.tsx -------------------------------------------------------------------------------- /web/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/App.tsx -------------------------------------------------------------------------------- /web/CompoundV2Migrator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/CompoundV2Migrator.tsx -------------------------------------------------------------------------------- /web/EmbeddedApp.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/EmbeddedApp.tsx -------------------------------------------------------------------------------- /web/Network.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/Network.ts -------------------------------------------------------------------------------- /web/StandaloneApp.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/StandaloneApp.tsx -------------------------------------------------------------------------------- /web/components/AaveBorrowInputView.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/AaveBorrowInputView.tsx -------------------------------------------------------------------------------- /web/components/ApproveModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/ApproveModal.tsx -------------------------------------------------------------------------------- /web/components/Dropdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/Dropdown.tsx -------------------------------------------------------------------------------- /web/components/ErrorViews.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/ErrorViews.tsx -------------------------------------------------------------------------------- /web/components/Icons/ArrowRight.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/Icons/ArrowRight.tsx -------------------------------------------------------------------------------- /web/components/Icons/ChevronDown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/Icons/ChevronDown.tsx -------------------------------------------------------------------------------- /web/components/Icons/CircleCheckmark.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/Icons/CircleCheckmark.tsx -------------------------------------------------------------------------------- /web/components/Icons/CircleClose.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/Icons/CircleClose.tsx -------------------------------------------------------------------------------- /web/components/Icons/CircleExclamation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/Icons/CircleExclamation.tsx -------------------------------------------------------------------------------- /web/components/Icons/Close.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/Icons/Close.tsx -------------------------------------------------------------------------------- /web/components/Icons/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/Icons/index.ts -------------------------------------------------------------------------------- /web/components/LoadSpinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/LoadSpinner.tsx -------------------------------------------------------------------------------- /web/components/LoadingViews.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/LoadingViews.tsx -------------------------------------------------------------------------------- /web/components/SwapDropdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/components/SwapDropdown.tsx -------------------------------------------------------------------------------- /web/helpers/Aave/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/helpers/Aave/config.ts -------------------------------------------------------------------------------- /web/helpers/multicall.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/helpers/multicall.ts -------------------------------------------------------------------------------- /web/helpers/numbers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/helpers/numbers.ts -------------------------------------------------------------------------------- /web/helpers/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/helpers/utils.ts -------------------------------------------------------------------------------- /web/init.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/init.ts -------------------------------------------------------------------------------- /web/lib/useAsyncEffect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/lib/useAsyncEffect.ts -------------------------------------------------------------------------------- /web/lib/usePoll.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/lib/usePoll.ts -------------------------------------------------------------------------------- /web/lib/useRPC.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/lib/useRPC.ts -------------------------------------------------------------------------------- /web/lib/useTransactionTracker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/lib/useTransactionTracker.ts -------------------------------------------------------------------------------- /web/lib/useWeb3.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/lib/useWeb3.ts -------------------------------------------------------------------------------- /web/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web/types.ts -------------------------------------------------------------------------------- /web/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /web_public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/favicon.ico -------------------------------------------------------------------------------- /web_public/images/assets/asset_AAVE.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_AAVE.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_AVALANCHE.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_AVALANCHE.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_BAT.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_BAT.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_BTC.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_BTC.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_BUSD.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_BUSD.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_COMP.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_COMP.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_DAI.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_DAI.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_ETH.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_ETH.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_ETHEREUM.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_ETHEREUM.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_FEI.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_FEI.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_GUSD.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_GUSD.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_LINK.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_LINK.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_MKR.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_MKR.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_RAI.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_RAI.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_REP.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_REP.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_SAI.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_SAI.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_SUSD.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_SUSD.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_SUSHI.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_SUSHI.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_TUSD.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_TUSD.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_UNI.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_UNI.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_USDC.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_USDC.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_USDP.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_USDP.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_USDT.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_USDT.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_V2.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_V2.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_YFI.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_YFI.svg -------------------------------------------------------------------------------- /web_public/images/assets/asset_ZRX.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/assets/asset_ZRX.svg -------------------------------------------------------------------------------- /web_public/images/browser-wallets-symbol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/browser-wallets-symbol.png -------------------------------------------------------------------------------- /web_public/images/coinbase-symbol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/coinbase-symbol.png -------------------------------------------------------------------------------- /web_public/images/compound-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/compound-192.png -------------------------------------------------------------------------------- /web_public/images/compound-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/compound-512.png -------------------------------------------------------------------------------- /web_public/images/icn-desktop.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/icn-desktop.svg -------------------------------------------------------------------------------- /web_public/images/icn-metamask.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/icn-metamask.svg -------------------------------------------------------------------------------- /web_public/images/icn-wallet.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/icn-wallet.svg -------------------------------------------------------------------------------- /web_public/images/ledger-symbol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/ledger-symbol.png -------------------------------------------------------------------------------- /web_public/images/line-graph-hover-icn-borrow.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/line-graph-hover-icn-borrow.svg -------------------------------------------------------------------------------- /web_public/images/line-graph-hover-icn-supply.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/line-graph-hover-icn-supply.svg -------------------------------------------------------------------------------- /web_public/images/meta-tag.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/meta-tag.jpg -------------------------------------------------------------------------------- /web_public/images/metamask-symbol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/metamask-symbol.png -------------------------------------------------------------------------------- /web_public/images/walletconnect-symbol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/web_public/images/walletconnect-symbol.png -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/comet-migrator/HEAD/yarn.lock --------------------------------------------------------------------------------