Skip to content

Commit

Permalink
fix: comment logic, h/t Datapunk
Browse files Browse the repository at this point in the history
  • Loading branch information
GalloDaSballo authored Mar 8, 2022
1 parent 87aee8a commit c5b5c53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/RewardsManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {ReentrancyGuard} from "@oz/security/ReentrancyGuard.sol";
/// Total supply may be different
/// However, we calculate your share by just multiplying the share * seconds in the vault
/// If you had X tokens a epoch N, and you had X tokens at epoch N+1
/// You'll get N + 1 * SECONDS_PER_EPOCH points in epoch N+1 if you redeem at N+2
/// You'll get X * SECONDS_PER_EPOCH points in epoch N+1 if you redeem at N+2
/// If you have X tokens at epoch N and withdraw, you'll get TIME_IN_EPOCH * X points

/// MAIN ISSUE
Expand Down Expand Up @@ -623,4 +623,4 @@ contract RewardsManager is ReentrancyGuard {
function _min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
}
}

0 comments on commit c5b5c53

Please sign in to comment.