Conversation
33ca9c6 to
1145778
Compare
gomesalexandre
left a comment
There was a problem hiding this comment.
Untested but conceptually looks excellent so far
src/features/defi/providers/fox-farming/components/FoxFarmingManager/Claim/ClaimConfirm.tsx
Show resolved
Hide resolved
src/lib/swapper/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.ts
Outdated
Show resolved
Hide resolved
src/lib/swapper/swappers/ThorchainSwapper/utils/txFeeHelpers/evmTxFees/getEvmTxFees.ts
Outdated
Show resolved
Hide resolved
d751850 to
33859cb
Compare
b976bfd to
eea80a8
Compare
src/features/defi/providers/univ2/components/UniV2Manager/Deposit/components/Deposit.tsx
Outdated
Show resolved
Hide resolved
gomesalexandre
left a comment
There was a problem hiding this comment.
Tested with a lil help from Tenderly:
UNI-V2 approvals
FOX
UNI (More logic in their approve() method which makes us require a bit of buffer currently, see https://github.com/Uniswap/governance/blob/eabd8c71ad01f61fb54ed6945162021ee419998e/contracts/Uni.sol#L151-L155)
FOX Farming
https://etherscan.io/tx/0xbb33a4111850fda35d3811fc9d9d483081e47332b3eca09494de34d0561d8fcb
ZRX Swapper using the 100000 default APPROVAL_GAS_LIMIT
Not for this PR, but we may want to not hardcode a gas limit for approvals anymore in the future, now that we have more sane estimations
CoW swapper using the default APPROVAL_GAS_LIMIT
THOR Swapper
Sends/swaps
THOR Swapper using the 100000 THOR_EVM_GAS_LIMIT
CoW swapper
Unable to test with Tenderly since this uses signatures and would imply broadcasting an actual Tx - this diff should produce no changes here
ZRX
Unable to test without testing funds, though running through the gas limit / usage of previous similar calls over the last minutes for the sellToUniswap() method, our gasLimit has enough buffer here ✅ will obviously need to be tested by ops
Didn't notice any regressions here, according to Tenderly which gives us the same actual deterministic guarantees as broadcasting Txs.
Will obviously need some ops love of legacy/EIP-1559 after this goes in, and ideally shapeshift/hdwallet#614 to go in and be bumped here as well to ensure MM uses EIP-1559 fees, but conceptually looks good to me functionally so far!
642f9d7 to
63140b5
Compare
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
gomesalexandre
left a comment
There was a problem hiding this comment.
LGTM after the latest changes and the UNI-V2 addLiquidityEth ETH value fix - re-tested in a poile







Description
Update to use EIP-1559 fee where possible in swapper
averageeip1559 gas price andfastlegacy gas priceLifi will be a follow up for the rest of the flow outside of approval.
Pull Request Type
Issue (if applicable)
Risk
high - this touches a lot of the gas logic which is very fragmented across the code base with possibility of a missed edge case
Testing
Engineering
☝️
Operations
☝️
Screenshots (if applicable)
ZRX:
https://etherscan.io/tx/0x3f20cf391a8c00b6f12f7e00640c1ea6ed63ad7b118d38f9a606e646d6e7f798
https://etherscan.io/tx/0x3f1e142b9128d16d0728614a96fd6c41998caa41a263ab026ce9ed4f0db2ab8d
Thor:
https://etherscan.io/tx/0x62f387ee148475665d8b74affe7bbd6aabffb96d1fccdeb335d5eb10d8148b68
https://etherscan.io/tx/0x23a738adf80157026995bd8506431ab83337caf6951151deed2a50679343dbfe
FoxFarming:
https://etherscan.io/tx/0xbacb24242a6fbbcb1b2e3fd316270c1b763afed48ac21bb0ad1eb4b0f8d4f662
https://etherscan.io/tx//0x3bbbf5dbc21410978ae23d09f75c640fcd76f204f84b7c4849d8942b08abd87b
https://etherscan.io/tx/0x450b251f874a4938acbe7f4bf1aab8b967370161d8ae6858e6ebc6944a52d77f
https://etherscan.io/tx//0x7e8e43ae424dd07367fc32963550bacf636ef78738ad95c903b89698c463d7bf
UniV2:
https://etherscan.io/tx/0x8b243f7de0f94100349c5a3f5c502d217fbfcf256224f09a7d637604aafd05cd
https://etherscan.io/tx/0xa9a0412ee6c1080361de8fa5ea4f9f8e691a0dfc6211df2f88d43a7cbf4f51de
https://etherscan.io/tx/0x6ce7c41042b80f48b6711bca8729da543ff290b268636c03096fe5cedfb97a26