Skip to content

Commit

Permalink
chg: update event log
Browse files Browse the repository at this point in the history
  • Loading branch information
twygod committed Dec 7, 2024
1 parent 668bc9e commit e3db37e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/market/UToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ contract UToken is IUToken, Controller, ERC20PermitUpgradeable, ReentrancyGuardU
// send all to asset manager
_depositToAssetManager(balanceAfter - balanceBefore);

emit LogMint(msg.sender, decimalReducing(mintAmount, underlyingDecimal), mintTokens);
emit LogMint(msg.sender, actualObtained, mintTokens);
}

/**
Expand Down Expand Up @@ -876,7 +876,7 @@ contract UToken is IUToken, Controller, ERC20PermitUpgradeable, ReentrancyGuardU
_burn(msg.sender, realUtokenAmount);

_totalRedeemable -= actualAmount;
emit LogRedeem(msg.sender, amountIn, amountOut, realUtokenAmount, actualAmount);
emit LogRedeem(msg.sender, amountIn, amountOut, realUtokenAmount, underlyingAmount - remaining);
}

/* -------------------------------------------------------------------
Expand Down Expand Up @@ -920,7 +920,7 @@ contract UToken is IUToken, Controller, ERC20PermitUpgradeable, ReentrancyGuardU
uint256 actualAmount = decimalScaling(reduceAmount - remaining, underlyingDecimal);
_totalReserves -= actualAmount;

emit LogReservesReduced(receiver, decimalReducing(actualAmount, underlyingDecimal), _totalReserves);
emit LogReservesReduced(receiver, reduceAmount - remaining, _totalReserves);
}

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

0 comments on commit e3db37e

Please sign in to comment.