Skip to content

Commit

Permalink
feat: minor chnages for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenvaleri committed Apr 17, 2024
1 parent c1525f3 commit 9e7a637
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/PointTokenVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ contract PointTokenVault is UUPSUpgradeable, OwnableUpgradeable {
bytes32 pointsId = _claim.pointsId;

bytes32 claimHash = keccak256(abi.encodePacked(_account, pointsId, _claim.totalClaimable));
verifyClaimAndUpdateClaimed(_claim, claimHash, _account, claimedPTokens);
_verifyClaimAndUpdateClaimed(_claim, claimHash, _account, claimedPTokens);

pointTokenHub.mint(_account, pointsId, _claim.amountToClaim);

Expand All @@ -105,7 +105,7 @@ contract PointTokenVault is UUPSUpgradeable, OwnableUpgradeable {

bytes32 claimHash =
keccak256(abi.encodePacked(REDEMPTION_RIGHTS_PREFIX, msg.sender, pointsId, _claim.totalClaimable));
verifyClaimAndUpdateClaimed(_claim, claimHash, msg.sender, claimedRedemptionRights);
_verifyClaimAndUpdateClaimed(_claim, claimHash, msg.sender, claimedRedemptionRights);

// Will fail if the user doesn't also have enough point tokens.
pointTokenHub.burn(msg.sender, pointsId, amountToClaim * 1e18 / exchangeRate);
Expand All @@ -120,7 +120,7 @@ contract PointTokenVault is UUPSUpgradeable, OwnableUpgradeable {
}
}

function verifyClaimAndUpdateClaimed(
function _verifyClaimAndUpdateClaimed(
Claim calldata _claim,
bytes32 _claimHash,
address _account,
Expand Down Expand Up @@ -166,7 +166,7 @@ contract PointTokenHub is UUPSUpgradeable, OwnableUpgradeable {
error OnlyTrusted();
// Trust ---

mapping(address => bool) isTrusted; // user => isTrusted
mapping(address => bool) public isTrusted; // user => isTrusted

mapping(bytes32 => PToken) public pointTokens; // pointsId => pointTokens
mapping(bytes32 => RedemptionParams) public redemptionParams; // pointsId => redemptionParams
Expand Down

0 comments on commit 9e7a637

Please sign in to comment.