Skip to content

Commit

Permalink
Formatting / function naming
Browse files Browse the repository at this point in the history
  • Loading branch information
FortisFortuna authored Mar 3, 2023
1 parent 2692adc commit a2c6ecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hardhat/contracts/Staking/FraxUnifiedFarmTemplate_V2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pragma solidity >=0.8.4;
// | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ |
// | |
// ====================================================================
// ====================== FraxUnifiedFarmTemplate =====================
// ==================== FraxUnifiedFarmTemplate_V2 ====================
// ====================================================================
// Farming contract that accounts for veFXS
// Overrideable for UniV3, ERC20s, etc
Expand Down Expand Up @@ -158,7 +158,7 @@ contract FraxUnifiedFarmTemplate_V2 is OwnedV2, ReentrancyGuardV2 {
}

modifier updateRewardAndBalanceMdf(address account, bool sync_too) {
updateRewardAndBalance(account, sync_too);
_updateRewardAndBalance(account, sync_too);
_;
}

Expand Down Expand Up @@ -463,7 +463,7 @@ contract FraxUnifiedFarmTemplate_V2 is OwnedV2, ReentrancyGuardV2 {

// ------ REWARDS SYNCING ------

function updateRewardAndBalance(address account, bool sync_too) public {
function _updateRewardAndBalance(address account, bool sync_too) internal {
// Need to retro-adjust some things if the period hasn't been renewed, then start a new one
if (sync_too){
sync();
Expand Down

0 comments on commit a2c6ecf

Please sign in to comment.