From 13a18e5f4cb32ecdf67452894fad519aed7a2d69 Mon Sep 17 00:00:00 2001 From: Josh Levine Date: Thu, 18 Apr 2024 10:11:42 -0400 Subject: [PATCH] chore: comment cleanup, make umd in readme smaller --- README.md | 2 +- contracts/PointTokenVault.sol | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b4e6099..b330b8d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Deposit points-earning tokens into the vault. Collect tokenized versions of your These contracts are only a piece of a larger decentralized system that will allow users to tokenize their points. Here is a UMD for the entire system: -![Point Tokenization System](./assets/point-tokenization-system.png) + ### PToken diff --git a/contracts/PointTokenVault.sol b/contracts/PointTokenVault.sol index fd89dc5..2ac2b68 100644 --- a/contracts/PointTokenVault.sol +++ b/contracts/PointTokenVault.sol @@ -121,7 +121,7 @@ contract PointTokenVault is UUPSUpgradeable, AccessControlUpgradeable, Multicall } if (isMerkleBased) { - // If it's merkle-based, only those callers with redemption rights can redeem their point tokens for rewards. + // If it's merkle-based, only those callers with redemption rights can redeem their point token for rewards. bytes32 claimHash = keccak256(abi.encodePacked(REDEMPTION_RIGHTS_PREFIX, msg.sender, pointsId, _claim.totalClaimable)); @@ -167,7 +167,9 @@ contract PointTokenVault is UUPSUpgradeable, AccessControlUpgradeable, Multicall if (_claim.totalClaimable < alreadyClaimed + amountToClaim) revert ClaimTooLarge(); // Update the total claimed amount. - _claimed[_account][pointsId] = alreadyClaimed + amountToClaim; + unchecked { + _claimed[_account][pointsId] = alreadyClaimed + amountToClaim; + } } // Admin ---