diff --git a/core/src/calleeFunctions/CurveLpTokenUniv3Callee.ts b/core/src/calleeFunctions/CurveLpTokenUniv3Callee.ts index 390548c79..1f8b86e7e 100644 --- a/core/src/calleeFunctions/CurveLpTokenUniv3Callee.ts +++ b/core/src/calleeFunctions/CurveLpTokenUniv3Callee.ts @@ -18,7 +18,7 @@ const getCalleeData = async function ( const route = await encodeRoute(network, collateral.exchange.route); const curveData = [CURVE_POOL_ADDRESS, CURVE_COIN_INDEX]; const joinAdapterAddress = await getContractAddressByName(network, getJoinNameByCollateralType(collateral.ilk)); - const minProfit = 0; + const minProfit = 1; const typesArray = ['address', 'address', 'uint256', 'bytes', 'address', 'tuple(address,uint256)']; return ethers.utils.defaultAbiCoder.encode(typesArray, [ profitAddress, diff --git a/core/src/calleeFunctions/UniswapV2CalleeDai.ts b/core/src/calleeFunctions/UniswapV2CalleeDai.ts index 6efcfdd9b..55b4ce7bb 100644 --- a/core/src/calleeFunctions/UniswapV2CalleeDai.ts +++ b/core/src/calleeFunctions/UniswapV2CalleeDai.ts @@ -13,7 +13,7 @@ const getCalleeData = async function ( throw new Error(`getCalleeData called with invalid collateral type "${collateral.ilk}"`); } const joinAdapterAddress = await getContractAddressByName(network, getJoinNameByCollateralType(collateral.ilk)); - const minProfit = 0; + const minProfit = 1; const typesArray = ['address', 'address', 'uint256', 'address[]']; return ethers.utils.defaultAbiCoder.encode(typesArray, [ profitAddress, diff --git a/core/src/calleeFunctions/UniswapV2LpTokenCalleeDai.ts b/core/src/calleeFunctions/UniswapV2LpTokenCalleeDai.ts index 4967bdc72..fc5693fe8 100644 --- a/core/src/calleeFunctions/UniswapV2LpTokenCalleeDai.ts +++ b/core/src/calleeFunctions/UniswapV2LpTokenCalleeDai.ts @@ -19,7 +19,7 @@ const getCalleeData = async function ( throw new Error(`getCalleeData called with invalid collateral type "${collateral.ilk}"`); } const joinAdapterAddress = await getContractAddressByName(network, getJoinNameByCollateralType(collateral.ilk)); - const minProfit = 0; + const minProfit = 1; const typesArray = ['address', 'address', 'uint256', 'address[]', 'address[]']; return ethers.utils.defaultAbiCoder.encode(typesArray, [ profitAddress, diff --git a/core/src/calleeFunctions/UniswapV3Callee.ts b/core/src/calleeFunctions/UniswapV3Callee.ts index 1b30005a4..27ca72f97 100644 --- a/core/src/calleeFunctions/UniswapV3Callee.ts +++ b/core/src/calleeFunctions/UniswapV3Callee.ts @@ -13,7 +13,7 @@ const getCalleeData = async function ( throw new Error(`getCalleeData called with invalid collateral type "${collateral.ilk}"`); } const joinAdapterAddress = await getContractAddressByName(network, getJoinNameByCollateralType(collateral.ilk)); - const minProfit = 0; + const minProfit = 1; const uniswapV3route = await encodeRoute(network, [collateral.symbol, ...collateral.exchange.route]); const typesArray = ['address', 'address', 'uint256', 'bytes', 'address']; return ethers.utils.defaultAbiCoder.encode(typesArray, [ diff --git a/core/src/calleeFunctions/WstETHCurveUniv3Callee.ts b/core/src/calleeFunctions/WstETHCurveUniv3Callee.ts index a0388189d..76c115137 100644 --- a/core/src/calleeFunctions/WstETHCurveUniv3Callee.ts +++ b/core/src/calleeFunctions/WstETHCurveUniv3Callee.ts @@ -12,7 +12,7 @@ const getCalleeData = async function ( profitAddress: string ): Promise { const joinAdapterAddress = await getContractAddressByName(network, getJoinNameByCollateralType(collateral.ilk)); - const minProfit = 0; + const minProfit = 1; const typesArray = ['address', 'address', 'uint256', 'uint24', 'address']; return ethers.utils.defaultAbiCoder.encode(typesArray, [ profitAddress,