Skip to content

Commit

Permalink
Improve the logic of the rigidRedemption function.
Browse files Browse the repository at this point in the history
  • Loading branch information
LybraFinance committed Jul 28, 2023
1 parent c27c154 commit 306a82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/lybra/pools/base/LybraEUSDVaultBase.sol
Expand Up @@ -235,7 +235,7 @@ abstract contract LybraEUSDVaultBase {
require(collateralAmount >= minReceiveAmount, "EL");
depositedAsset[provider] -= collateralAmount;
totalDepositedAsset -= collateralAmount;
collateralAsset.safeTransfer(msg.sender, collateralAmount);
collateralAsset.safeTransfer(msg.sender, checkWithdrawal(msg.sender, collateralAmount));
emit RigidRedemption(msg.sender, provider, eusdAmount, collateralAmount, block.timestamp);
}
Expand Down

0 comments on commit 306a82d

Please sign in to comment.