Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyonline committed Oct 17, 2024
1 parent 691771a commit ba302f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ynEIGEN/RedemptionAssetsVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,17 @@ contract RedemptionAssetsVault is IRedemptionAssetsVault, Initializable, AccessC
uint256 reqAmountInAsset = assetRegistry.convertFromUnitOfAccount(asset, amount);
ynEigen.processWithdrawn(reqAmountInAsset, address(asset));
balances[address(asset)] -= reqAmountInAsset;
emit AssetWithdrawn(address(asset), msg.sender, address(ynEigen), reqAmountInAsset);
break;
} else {
ynEigen.processWithdrawn(assetBalance, address(asset));
balances[address(asset)] = 0;
amount -= assetBalanceInUnit;
emit AssetWithdrawn(address(asset), msg.sender, address(ynEigen), assetBalance);
}
}
}
emit AssetWithdrawn(ETH_ASSET, msg.sender, address(ynEigen), amount);
emit TotalAssetsTransferred(ETH_ASSET, msg.sender, address(ynEigen), amount);
}

//--------------------------------------------------------------------------------------
Expand Down

0 comments on commit ba302f1

Please sign in to comment.