Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gas zip facet revisited [GasZipFacet v2.0.0,IGasZip v1.0.0,GasZipPeri…
…phery v1.0.0] (#807) * wip zip * feat: zip erc20 with libswap * chore: update bsc gaszip address * clean * chore: updated gaszip routers + add docs * chore: deployRequirements * chore: remove allowedToken * chore: withdraw wallet from global config * chore: comments * chore: import * chore: remove owner * chore: unused import * chore: remove unused errors * forge install: solady v0.0.208 * forge install: solady v0.0.208 * added test and fixed some issues in the contract * adds refundAddress parameter for ERC20 * forge install: solady v0.0.208 * forge install: solady v0.0.208 * tests updated * gasZip redeployed to BSC staging * update .gitmodules file * removes ERC20 refund handling and adds complex test case * removes coverage files * cleanup * update docs * adds complex native test case * deploys GasZipFacet to BSC staging * fixes issue in deploy log file * adds a function with deposit for standalone gas-zip only calls * adds the usual startBridge... functions to the facet + tests * adds a amountOutMin parameter for ERC20 deposit function * redeployed gasZipFacet to bsc staging * feat: removes destinationChains parameter from GasZipData * docs: updates GasZipFacet docs * updates facet (startBridge => nativeOnly) * replaces amountOutMin parameter with balance checks & updates tests * updates docs * fixes typo in URL and adds link to config file * restricts swapAndBridge.. function to native only + updates tests * restricts swapAndBridge.. function to native only + updates tests * redeployed gasZipFacet to bsc staging * Gas.Zip split into facet & periphery, tests and docs added * remove receiver address from GasZipData struct * minor fixes * some changes based on coderabbit review comments * opens swapAndBridge on GasZipFacet for both ERC20 and native * deployed to bsc staging * updated gasZip to use V2 router * updates git actions and docs * adds an amount parameter to native deposit function in periphery * redeployed GasZipPeriphery to bsc staging * returns leftover native funds to msg.sender after deposit plus bsc staging redeployment * bugfix + bsc staging redeploy * bugfix#2 + bsc staging redeploy * adds a test case to increase coverage to 100% * minor fixes * gas optimization of helper function (audit issue #1) * remove unused error (audit issue #2) * adds check for msg.value==amount and removes refundExcessNative mod (audit issue#4) * replaces require with custom error (audit issue#6) * adds WithdrawablePeriphery for stuck token withdrawals (audit issue#8) * adds WithdrawablePeriphery base contract for token withdrawals * adds receiverAddress check (audit issue#9) * fix test * adds version tag to contract * ensures last swap output is native before bridging (audit issue#5) * removes validateBridgeData modifier and adds dedicated bridgeData checks (audit issue#3) * redeployed gasZipPeriphery with PROD LiFiDEXAggregator address * audit report added * change facet variable to constant * change parameter name and order in GasZipData * redeployed to BSC staging * test coverage back to 100% * redeployed to BSC staging * add complex testcase for destinationChains value * adjust test case * fix staging diamond log * replaces low-level native transfer with function from solady lib * removes unused import (re-audit issue#11) * update (re-)audit report * remove old gaszip audit entry * fix incorrect path in audit log * Redeploy to production (except zksync) * Update pragma * update audit * deploy to zksync * adds GasZipPeriphery addresses to dexs.json * make error message more visible in console output * update some diamond logs * remove old openzeppelin lib * forge install: openzeppelin-contracts v4.9.2 * reinstall openzeppelin contracts 4.9.2 * add gasZipPeriphery sigs * fix json * fix json * fix logs * diamond logs updated * undo (wording) changes in git action --------- Co-authored-by: Leonardo Cascianelli <[email protected]> Co-authored-by: Daniela Chybisova <[email protected]> Co-authored-by: Max Klenk <[email protected]> Co-authored-by: Ed Zynda <[email protected]> Co-authored-by: Ed Zynda <[email protected]>
- Loading branch information