Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Jun 25, 2024
1 parent 45e77e8 commit 51fcac7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/staking/KtonDAOVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ contract KtonDAOVault is Initializable, Ownable2StepUpgradeable {
address(this).balance >= reward, "RewardsDistribution contract does not have enough tokens to distribute"
);

uint256 oldTotalSupply = IOldStakingRewards(OLD_KTON_STAKING_REWARDS).TotalSupply();
uint256 oldTotalSupply = IOldStakingRewards(OLD_KTON_STAKING_REWARDS).totalSupply();
uint256 newTotalSupply = IStakingRewards(stakingRewards).underlyingTotalSupply();
uint256 totalSupply = oldTotalSupply + newTotalSupply;

Expand Down
4 changes: 2 additions & 2 deletions src/staking/interfaces/IOldStakingRewards.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ interface IOldStakingRewards {

function getRewardForDuration() external view returns (uint256);

function TotalSupply() external view returns (uint256);
function totalSupply() external view returns (uint256);

function BalanceOf(address account) external view returns (uint256);
function balanceOf(address account) external view returns (uint256);

// Mutative

Expand Down

0 comments on commit 51fcac7

Please sign in to comment.