Skip to content

Commit 9a7a0b3

Browse files
authored
Add Uniswap V3 Fixture (#95)
* add basic Uniswap V3 fixture * add createPool to fixture * add quoter * add getTokenOrder helper * add addLiquidityWide helper function * add external contracts * sort imports * fix imports * improve comments * use exact values in tests * split uniswap contracts into v2/v3 folders * review changes * add weth and wbtc price in initialize function
1 parent 859941f commit 9a7a0b3

35 files changed

+2388
-2
lines changed

contracts/protocol/integration/oracles/UniswapPairPriceAdapter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { AddressArrayUtils } from "../../../lib/AddressArrayUtils.sol";
2626
import { IController } from "../../../interfaces/IController.sol";
2727
import { IPriceOracle } from "../../../interfaces/IPriceOracle.sol";
2828
import { IUniswapV2Pair } from "../../../interfaces/external/IUniswapV2Pair.sol";
29-
import { UniswapV2Library } from "../../../../external/contracts/uniswap/lib/UniswapV2Library.sol";
29+
import { UniswapV2Library } from "../../../../external/contracts/uniswap/v2/lib/UniswapV2Library.sol";
3030
import { PreciseUnitMath } from "../../../lib/PreciseUnitMath.sol";
3131
import { ResourceIdentifier } from "../../lib/ResourceIdentifier.sol";
3232

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

external/abi/uniswap/v3/NFTDescriptor.json

Lines changed: 8 additions & 0 deletions
Large diffs are not rendered by default.

external/abi/uniswap/v3/NonfungiblePositionManager.json

Lines changed: 8 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)