Skip to content

Commit

Permalink
chore: comment cleanup, make umd in readme smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
jparklev committed Apr 18, 2024
1 parent 84fab21 commit 13a18e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
<img src="./assets/point-tokenization-system.png" width="250" height="250">

### PToken

Expand Down
6 changes: 4 additions & 2 deletions contracts/PointTokenVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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 ---
Expand Down

0 comments on commit 13a18e5

Please sign in to comment.