fix: lower UniswapV3Sampler quote gas allowance to 700k (#438)

* fix: lower UniswapV3Sampler quote gas allowance to 700k

* chore: add asset-swapper changelog entry
This commit is contained in:
Kim Persson 2022-03-03 13:45:20 +01:00 committed by GitHub
parent 9141a9d2c8
commit 87be6fbb8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,11 @@
"changes": [
{
"note": "Add BTRFLY/WETH Curve pool on mainnet",
"pr": "437"
"pr": 437
},
{
"note": "Lower Uniswap V3 Sampler gas allowance",
"pr": 438
}
]
},

View File

@ -77,7 +77,7 @@ interface IUniswapV3Pool {
contract UniswapV3Sampler
{
/// @dev Gas limit for UniswapV3 calls. This is 100% a guess.
uint256 constant private QUOTE_GAS = 900e3;
uint256 constant private QUOTE_GAS = 700e3;
/// @dev Sample sell quotes from UniswapV3.
/// @param quoter UniswapV3 Quoter contract.