From 470c7694d450906e6c6db1e545b2c826c3d8d3be Mon Sep 17 00:00:00 2001 From: aazhou1 Date: Wed, 18 Dec 2024 12:19:43 -0800 Subject: [PATCH] withdraw assets without share conversion --- src/Strategy.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Strategy.sol b/src/Strategy.sol index 8ddb639c..b71accb2 100644 --- a/src/Strategy.sol +++ b/src/Strategy.sol @@ -538,7 +538,7 @@ contract Strategy is BaseStrategy, Pausable, AccessControl { */ function _withdrawAsset(uint256 amount) private { YEARN_VAULT.withdraw( - YEARN_VAULT.convertToShares(amount), + amount, address(this), address(this) );