Skip to content

Commit

Permalink
fix: precision issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavaparoksham committed Jan 13, 2025
1 parent 71f0819 commit 5af4d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/AssetPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ contract AssetPool is IAssetPool, Ownable, Pausable {
redemptionScaledRequests[msg.sender] = 0;
totalRedemptionRequests -= redemptionRequests[msg.sender];
totalRedemptionScaledRequests -= scaledAmount;
uint256 price = amount / scaledAmount;
uint256 price = amount * PRECISION / scaledAmount;
assetToken.mint(msg.sender, amount, price);

emit BurnCancelled(msg.sender, amount, cycleIndex);
Expand Down

0 comments on commit 5af4d55

Please sign in to comment.