Skip to content

Commit

Permalink
fix decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
elshan-eth committed Feb 21, 2024
1 parent adfc914 commit 56ce65c
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 14 deletions.
8 changes: 8 additions & 0 deletions contracts/contracts/DevRewardDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ contract DevRewardDistributor {
*/
uint256 public immutable halvePeriod;

/**
* @notice Returns the vesting contract decimals
*
*/
uint8 public immutable decimals;

/**
* @notice Initial user's reward
*
Expand Down Expand Up @@ -136,6 +142,8 @@ contract DevRewardDistributor {

deployTime = block.timestamp;
claimingEndTime = block.timestamp + _claimingPeriod;

decimals = _token.decimals();
}

modifier whenClaimingIs(bool isActive) {
Expand Down
28 changes: 14 additions & 14 deletions contracts/deployments/sepolia/DevRewardDistributor.json

Large diffs are not rendered by default.

Loading

0 comments on commit 56ce65c

Please sign in to comment.