Increase KyberDMM base gas [TKR-317] (#479)

* Increase KyberDMM base gas

* Update CHANGELOG.json
This commit is contained in:
Kyu 2022-05-18 17:00:11 -07:00 committed by GitHub
parent fedb53187d
commit 0233f00b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -13,6 +13,10 @@
{
"note": "Add Yoshi Exchange support in Fantom",
"pr": 473
},
{
"note": "Fix KyberDMM gas underestimation",
"pr": 479
}
]
},

View File

@ -2529,8 +2529,7 @@ export const DEFAULT_GAS_SCHEDULE: Required<FeeSchedule> = {
return gas;
},
[ERC20BridgeSource.KyberDmm]: (fillData?: FillData) => {
// TODO: Different base cost if to/from ETH.
let gas = 95e3;
let gas = 170e3;
const path = (fillData as UniswapV2FillData).tokenAddressPath;
if (path.length > 2) {
gas += (path.length - 2) * 65e3; // +65k for each hop.