Merge branch 'refs/heads/main' into router/dc/deploy-executors
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
## [0.53.1](https://github.com/propeller-heads/tycho-execution/compare/0.53.0...0.53.1) (2025-02-27)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* remove 0 amount check in _unwrapEth ([0273f58](https://github.com/propeller-heads/tycho-execution/commit/0273f5827462f6f6cadb5b7e78ae7c1d0bfd2e29))
|
||||||
|
|
||||||
## [0.53.0](https://github.com/propeller-heads/tycho-execution/compare/0.52.2...0.53.0) (2025-02-26)
|
## [0.53.0](https://github.com/propeller-heads/tycho-execution/compare/0.52.2...0.53.0) (2025-02-26)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -4340,7 +4340,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tycho-execution"
|
name = "tycho-execution"
|
||||||
version = "0.53.0"
|
version = "0.53.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy",
|
"alloy",
|
||||||
"alloy-primitives",
|
"alloy-primitives",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tycho-execution"
|
name = "tycho-execution"
|
||||||
version = "0.53.0"
|
version = "0.53.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
|
|||||||
// ✷✷✷✷✷✷ ✷✷✷✷✷ ✷✷✷✷✷✷✷✷ ✷✷✷✷✷✷ ✷✷✷✷✷✷ ✷✷✷✷✷✷✷✷
|
// ✷✷✷✷✷✷ ✷✷✷✷✷ ✷✷✷✷✷✷✷✷ ✷✷✷✷✷✷ ✷✷✷✷✷✷ ✷✷✷✷✷✷✷✷
|
||||||
|
|
||||||
error TychoRouter__AddressZero();
|
error TychoRouter__AddressZero();
|
||||||
|
error TychoRouter__AmountZero();
|
||||||
error TychoRouter__EmptySwaps();
|
error TychoRouter__EmptySwaps();
|
||||||
error TychoRouter__NegativeSlippage(uint256 amount, uint256 minAmount);
|
error TychoRouter__NegativeSlippage(uint256 amount, uint256 minAmount);
|
||||||
error TychoRouter__AmountInNotFullySpent(uint256 leftoverAmount);
|
error TychoRouter__AmountInNotFullySpent(uint256 leftoverAmount);
|
||||||
@@ -440,13 +441,11 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard {
|
|||||||
* @param amount of WETH to unwrap.
|
* @param amount of WETH to unwrap.
|
||||||
*/
|
*/
|
||||||
function _unwrapETH(uint256 amount) internal {
|
function _unwrapETH(uint256 amount) internal {
|
||||||
uint256 unwrapAmount =
|
_weth.withdraw(amount);
|
||||||
amount == 0 ? _weth.balanceOf(address(this)) : amount;
|
|
||||||
_weth.withdraw(unwrapAmount);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Allows this contract to receive native token
|
* @dev Allows this contract to receive native token with empty msg.data from contracts
|
||||||
*/
|
*/
|
||||||
receive() external payable {
|
receive() external payable {
|
||||||
require(msg.sender.code.length != 0);
|
require(msg.sender.code.length != 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user