From 675740919af8e2576f16df4a45c16ae841fd484d Mon Sep 17 00:00:00 2001 From: Veronica <42095633+Nicca42@users.noreply.github.com> Date: Wed, 4 Aug 2021 20:52:51 +0200 Subject: [PATCH] Fixed redeem bug (#7) --- contracts/Eth_broker.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Eth_broker.sol b/contracts/Eth_broker.sol index ae98fb2..533b85b 100644 --- a/contracts/Eth_broker.sol +++ b/contracts/Eth_broker.sol @@ -339,7 +339,7 @@ contract Eth_broker { "Curve burn failed" ); // Getting expected ETH for DAI - uint256 ethMin = sellRewardDai(dai_.balanceOf(address(this))); + uint256 ethMin = sellRewardDai(_minDaiSellValue); // Approving the router as a spender require( dai_.approve(