Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dristpunk committed Dec 22, 2023
1 parent d147722 commit 06ba7e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions solidity/contracts/Unlock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ contract Unlock is Owned, IUnlock {
startTime = _startTime;
}

function _unlockedSupply(address _token, uint256 _timestamp) internal view returns (uint256 _unlockedSupply) {
function _unlockedSupply(address _token, uint256 _timestamp) internal view returns (uint256 _unlockedSupplyReturn) {
if (_timestamp < startTime + 365 days) {
_unlockedSupply = 0;
_unlockedSupplyReturn = 0;
} else {
_unlockedSupply = TOTAL_SUPPLY / 13 + (TOTAL_SUPPLY * 12 / 13) * (_timestamp - startTime - 365 days) / 365 days;
_unlockedSupply -= withdrawedSupply[_token];
_unlockedSupplyReturn =
TOTAL_SUPPLY / 13 + (TOTAL_SUPPLY * 12 / 13) * (_timestamp - startTime - 365 days) / 365 days;
_unlockedSupplyReturn -= withdrawedSupply[_token];
}
}

Expand Down

0 comments on commit 06ba7e3

Please sign in to comment.